]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-4
Rename to the more correct gtk-go-up.
[~andy/gtk] / ChangeLog.pre-2-4
1 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
2
3         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
4         Rename to the more correct gtk-go-up.
5
6         * gtk/stock-icons/stock_menu_sort_ascending.png:
7         Added new file.
8         
9         * gtk/stock-icons/stock_menu_sort_descending.png:
10         Changed to show descending instead of ascending.
11
12         * gtk/gtkiconfactory.c:
13         Added menu size icon to sort ascending.
14
15         * gtk/stock-icons/Makefile.am:
16         Added stock_menu_sort_ascending.png.
17         
18         * gtk/gtkseparatormenuitem.c:
19         Use correct typenames.
20
21 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
22
23         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
24         gulong as in GSignal.
25
26 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
27
28         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
29         instances of GtkCellRenderer in code (all but dnd icon code).
30         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
31         there, and I can do multiple Cells per column.
32
33         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
34
35         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
36         when model was unreffed prior to removing the row reference.
37
38 2001-05-25  Havoc Pennington  <hp@redhat.com>
39
40         * gtk/gtkiconfactory.c: fix so that default icons are created if 
41         you call gtk_stock_list_ids()
42
43         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
44         in list
45
46 2001-05-25  Havoc Pennington  <hp@redhat.com>
47
48         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
49         set can render without falling back to missing image icon
50
51         * gtk/gtktextview.c (gtk_text_view_size_request): request full
52         size of text, instead of random values
53
54         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
55         size of tree view, instead of random values
56
57         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
58         image in an appropriate size
59
60         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
61         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
62
63         Throughout: fix GTK_STOCK_BUTTON_ instances
64         
65         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
66         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
67         Add a bunch of new stock items/icons
68
69         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
70         new function, convenience for inserting columns with a data func
71
72         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
73         (_gtk_icon_factory_list_ids): use list of all factories to
74         generate a list of all known IDs
75
76         * gtk/gtkstock.c (gtk_stock_list_ids): replace
77         gtk_stock_list_items() with a function that returns all IDs known
78         including those for GtkIconFactory.
79
80 2001-05-25  Hans Breuer  <hans@breuer.org>
81
82         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
83         work -> check boxes and radio buttons are drawn now, even on win9x.
84         Improved line settings a bit, still no clue how to get really dotted
85         lines on win9x, on NT it's PS_ALTERNATE.
86
87         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
88         GDK_HINT_MIN_SIZE as well
89
90         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
91
92         * gtk/gtk.def : updated
93
94         * gtk/gtktreeprivate.h : change column_drop_func to be a function
95         pointer not a function pointer pointer
96
97         * tests/testdnd.c : include <stdlib.h> for putenv prototype
98
99         * tests/testsocket.c : made it compile on win32 again
100
101         * tests/makefile.msc : one more test-app uses prop-editor.obj
102
103 2001-05-22  Havoc Pennington  <hp@pobox.com>
104
105         * gtk/gtkbin.c (gtk_bin_get_child): New function
106
107 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
108
109         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
110         to ignore when doing compose processing.
111
112 2001-05-22  Joe Shaw  <joe@ximian.com>
113
114         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
115         Simplify as suggested by Havoc. Just get the last iter and work
116         backward to the tag instead of getting a line and working back from
117         there. Fixes passing in an invalid offset to
118         iter_init_from_byte_offset().
119
120 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
121
122         * gtk/gtktreeview*.h: 
123         * gtk/gtkcell*.h:
124         * gtk/gtk*store.h:
125         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
126         macros to all objects.
127
128 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
129
130         * gtk/gtkcellrenderertext.c
131         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
132         with very large (TM) amounts of text.  May be moved to
133         GtkCellRenderer in the future, though I'm not sure it wants to be
134         this accessible.
135
136         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
137         More sanity brought to this class.  I like it.
138
139         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
140         case.  Kids, don't try this at home.
141
142         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
143         convenience function.
144
145         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
146
147 2001-05-21  Alexander Larsson  <alexl@redhat.com>
148
149         * gtk/gtkfontsel.c:
150         Added properties. Based on patch by Lee Mallabone.
151
152         * gtk/gtkruler.c:
153         * gtk/gtkhruler.c:
154         * gtk/gtkvruler.c:
155         * gtk/gtktext.c:
156         * gtk/gtktextview.c:
157         Converted GtkArg to GParam. Based on patches by John Margaglione.
158
159         * tests/Makefile.am:
160         * tests/testtext.c:
161         Add a property editor to testtext.
162         
163 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
164
165         * gtk/gtk{h,v,}paned.c: Only show the separator if 
166
167         * configure.in: Fixed reversed conditional causing all image
168         libraries to be linked in.
169
170 2001-05-21  Joe Shaw  <joe@ximian.com>
171
172         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
173         that top_y needs to be >= 0.
174
175 2001-05-11  Havoc Pennington  <hp@pobox.com>
176         
177         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
178         losing connection to the X server.
179
180 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
181
182         * configure.in: Start checks for X from pangox/pangoxft
183         CFLAGS to avoid duplicate libraries.
184
185         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
186
187         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
188         to include gobject.
189         
190 2001-05-18  Alexander Larsson  <alexl@redhat.com>
191
192         * gtk/gtkspinbutton.c:
193         Convert GtkArgs to GParams. Based on patch by John Margaglione.
194         Also do size request reasonable for MAXDOUBLE. Previously it printed
195         the limits to a buffer and overran it. Instead do it using log10() and
196         limit the width to 10 digits.
197         
198         * gtk/gtkwidget.c (gtk_widget_get_property):
199         Correctly handle setting the parent property to NULL.
200
201 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
202
203         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
204         style attributes even if the widget isn't realized.
205
206         * demos/gtk-demo/main.c: Use a slightly smaller font.
207
208 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
209
210         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
211         This is something that only a widget writer would ever want
212         to change.
213
214         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
215         gtk_signal_emit_by_name().
216
217         * gtk/gtkviewport.c: Fix some warnings.
218
219         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
220         allowing the requisitions of multiple widgets to be grouped
221         together.
222
223         * tests/testgtk.c: Add GtkSizeGroup test
224
225         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
226
227         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
228         warnings.
229
230         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
231
232 2001-04-28  Martin Baulig  <baulig@suse.de>
233
234         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
235         to gtk_image_menu_item_set_icon() and made it work if there's already
236         an image.
237         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
238         (gtk_image_menu_item_new_with_label): New function.
239
240 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
241
242         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
243         highlighting code!!!!  The result is okay so long as you don't try
244         to stress it.  It also highlights a bug in the TextView so it's in
245         an unproportional font right now until it's fixed.
246
247         *demos/gtk-demo/*.c: Clean up code a bit to make it
248         ugly-parser(TM) friendly. (-:
249
250 2001-05-17  Joe Shaw  <joe@ximian.com>
251
252         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
253         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
254         if it is only partially onscreen.
255
256 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
257
258         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
259         not by characters.
260
261         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
262         are not zero or one; that is, when graphemes of multiple characters
263         are involved.
264
265         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
266         FIXME.
267
268 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
269         
270         * gtk/gtkbbox.c:
271         Add properties, based on patch by Lee Mallabone.
272
273         * gtk/gtknotebook.c:
274         * gtk/gtktoolbar.c:
275         Convert from GtkArg to GParam, based on patch by John Margaglione.
276         
277         * gtk/gtkhscale.c:
278         * gtk/gtkvscale.c:
279         * gtk/gtkhscrollbar.c:
280         * gtk/gtkvscrollbar.c:
281         * gtk/gtkrange.c:
282         Move adjustment property to GtkRange.
283
284         * gtk/gtklabel.c:
285         Setup mnemonics on property changes
286
287         * gtk/gtkwidget.c (gtk_widget_get_property):
288         GdkExtensionMode is an enum, not a flag. Set it with
289         g_value_set_enum ().
290
291         * tests/prop-editor.c:
292         Better propery editor.
293
294         * tests/testgtk.c:
295         Add new property test. Pass zero to the property editor to
296         get properties from all derived types.
297         
298 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
299
300         * autogen.sh (have_automake): Require libtool-1.4,
301         automake-1.4p1.
302
303         * acinclude.m4: Remove libtool macros.
304
305         * gdk-pixbuf/Makefile.am: Add dependencies to loade
306         modules.
307
308         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
309         for libgdk.
310
311         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
312         libgdk.la for libgtk.
313
314         * modules/input/Makefile.am: Make modules have full
315         dependencies.
316
317 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
318
319         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
320         #54699 where paths weren't being checked for correctness.
321
322 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
323
324         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
325         in any order you wan, whether or not the column is added to the
326         tree, or the tree is realized.  Yay!
327
328         * gtk/gtktreeviewcolumn.c
329         (gtk_tree_view_column_setup_sort_column_id_callback): handle
330         sorting columns a lot saner
331
332         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
333         new function to actually set wether or not a column is
334         reorderable.
335
336         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
337         if we have 'em.
338
339         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
340         Fix nasty bug where we were showing the button just before
341         realizing it.  As a result, the parent window was
342         tree_view->window instead of tree_view->priv->header_window.
343
344         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
345         to let you easily reorder a list or tree.
346
347 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
348
349         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
350         from args to properties.
351
352 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
353
354         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
355         from args to properties. (#51957)
356
357         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
358         calls to after ->set_property call.
359
360 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
361
362         * tests/prop-editor.c: Block against redundant changes.
363
364         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
365         properties.
366
367 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
368
369         * gdk/gdkpixmap.h: Remove creative formatting.
370
371 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
372
373         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
374         property API. (#51669)
375
376         * gtk/gtkscale.c: Patch from John Margaglione converting to
377         property API. (#51891)
378
379         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
380         to property API. (#50985)
381
382 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
383
384         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
385         buffering state across expose event, so we still call end_paint().
386
387 2001-05-11  Alexander Larsson  <alexl@redhat.com>
388
389         * gtk/gtkhsv.c (paint_triangle):
390         Expose the ring in the triangle at the correct place when
391         exposing just a part of the triangle.
392
393         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
394         Return FALSE, or window focusing will not work.
395
396 2001-05-11  Havoc Pennington  <hp@pobox.com>
397
398         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
399         #54144
400
401         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
402         bug #54330
403
404 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
405
406         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
407         propagate exposes to NULL child.
408
409         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
410         against not having one of the scrollbars.
411
412         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
413         we don't keep a mnemonic window if we have no mnemonic installed.
414
415 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
416
417         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
418         it has the _important_ side effect of initializing a class.
419
420 2001-05-10  Alexander Larsson  <alexl@redhat.com>
421
422         * gdk/linux-fb/gdkprivate-fb.h:
423         Make sure you can compile out the implementation/wrapper assert
424         macros.
425
426         * gdk/linux-fb/gdkdrawable-fb2.c:
427         Check implementation/wrappers, initialize type for pixmap dummys.
428
429         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
430         Hide the cursor if reading from the screen.
431
432         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
433         Fix sign bug in tiling code.
434
435         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
436         Handle background pixmaps.
437
438 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
439
440         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
441         function to let user control where columns are dragged.
442
443         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
444         Escape is pressed.
445
446 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@webwynk.net>
447
448         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
449         "columns_changed" signal.
450         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
451         motion code to draw arrows to the side if indicator is outside the
452         widget.
453         (gtk_tree_view_map_expanded_rows): Implement.
454
455 2001-05-07  Alexander Larsson  <alexl@redhat.com>
456
457         * demos/testpixbuf-save.c: 
458         * demos/testpixbuf-drawable.c:
459         Include gdkfb.h on linux-fb.
460
461 2001-05-07  Alexander Larsson  <alexl@redhat.com>
462
463         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
464         New function for getting toplevel window at position.
465         (gdk_drag_find_window): Use get_toplevel_window () instead
466         of gdk_window_get_pointer(). (gdk_drag_status): Use
467         correct context for getting window.
468
469         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
470         g_strdup the atom name.
471
472         * gdk/linux-fb/gdkwindow-fb.c:
473         Costmetic fix.
474
475         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
476         Add code for changing cursor on linux-fb backend (same as
477         win32).
478
479 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
480
481         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
482         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
483         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
484         report was not for the development branch of GTK+, but it applies
485         anyways).
486
487 2001-05-04  Havoc Pennington  <hp@redhat.com>
488
489         * configure.in: fix some shell typos
490
491         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
492
493         * gtk/gtkimage.c: handle animations
494
495         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
496         border_width * 2, not just border_width
497
498         * gtk/gtkscale.c: add "format_value" signal to allow people
499         to override the way values are drawn.
500         (gtk_scale_get_value_size): fix width/height mistake,
501         and compute size from actual displayed text, not 
502         from made-up text.
503
504         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
505         signal registration
506
507         * tests/testtext.c: Add "Remove all tags" menu item for testing
508
509         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
510
511         * demos/gtk-demo/main.c (main): add hack so we can find modules
512         without installing gtk
513
514         * demos/gtk-demo/textview.c (insert_text): demo font scaling
515
516         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
517         factor)
518         (gtk_cell_renderer_text_set_property): remove some bogus
519         g_object_notify
520
521         * gtk/gtktexttag.c: add "scale" property which is a font scaling
522         factor
523
524         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
525         to layout
526
527         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
528         gtk_text_iter_is_first
529
530 2001-01-06  Hans Breuer  <hans@breuer.org>
531
532         * gdk/gdk.def : updated exports
533
534         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
535         gdk won't compile anymore
536  
537         * gdk/win32/gdkevents-win32.c : initialize ret_val when
538         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
539         Improved gdk_flush () to not only do pending drawing operations
540         but also process all currently pending events. This should make
541         the behaviour more similar to the X11 version.  
542
543         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
544         option needs to be set even if there is no GDK_GC_BACKGROUND.
545         (gdk_win32_hdc_get) : use predraw_set_background () independent
546         of value_mask. This allows to draw dashed lines leaving the original
547         background intact.
548
549         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
550         after processing, because we can't reuse it as the X11 version does.
551
552         * gtk/gtk.def : updated exports
553
554         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
555         would like to get rid of this file again, and use straight
556         makefile.msc again, as the other Gtk+ subdirs do)
557
558         * test/makefile.msc (new file) : build the test apps here
559
560 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
561
562         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
563         strike-through setting
564         (gdk_draw_layout_line_with_colors): Render strike-through
565
566 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
567
568         * Release 1.3.5
569
570         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
571
572         * NEWS: Updated
573
574         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
575         Makefile breakage.
576
577 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
578
579         * demos/gtk-demo/images.c (progressive_timeout): Fix
580         typo in filename.
581
582         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
583         out FIXME warning; just too annoying.
584
585 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
586
587         * gdk/linux-fb/gdkcolor-fb.c:
588         Better error messages.
589
590         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
591         Initialize abs_x and abs_y.
592         
593         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
594         Correct handling of stipple offset.
595
596         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
597         Treat directcolor framebuffers as truecolor.
598         
599 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
600
601         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
602         dependency on Atk for accessibility support.
603
604         * configure.in **/Makefile.am: Major reworking of substituted
605         variables for CFLAGS/LIBS to make a lot more sane and 
606         keep the the compile/link lines a bit shorter.
607
608         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
609
610 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
611
612         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
613         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
614         use _gtk_boolean_handled_accumulator.
615
616 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
617
618         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
619         to fix things so clicking inside selection leaves cursor
620         at point where clicked. (#50324)
621
622         * gtk/gtksettings.c (gtk_settings_class_init): Restore
623         sane value for default double click time.
624
625         * tests/testtext.c (test_init): Really path to input modules.
626
627 2001-05-03  Sven Neumann  <sven@convergence.de>
628
629         * demos/testpixbuf-save.c: include target-specific headers as
630         done in testpixbuf-drawable.c
631
632 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
633
634         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
635         new_text_length appropriately when we run into the 
636         size limit for the entry. (#53445, reported by Jeff Franks)
637
638         * tests/testgtk.c (create_entry): Remove most of the
639         property toggle buttons. Replace with a "Props" button
640         that brings up a property editor.
641
642         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
643         Split the property editor code out for reuse, improve.
644
645 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
646
647         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
648         trap errors around calls to XSetInputFocus since we have
649         no way of knowing reliably whether we are viewable or
650         not. (#53947)
651
652 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@webwynk.net>
653
654         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
655         fix bug in dropping columns.  Moving columns now basically works
656         modula some fine tuning.
657
658 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
659
660         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
661         autoscroll support.  It mostly works, but could use some fine
662         tuning.
663         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
664         Actually move the column.
665
666 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
667
668         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
669           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
670           New default theme! A slighly improved version of the 2.0 Raleigh
671           theme, with Windows-esque focus/drawing default. 
672           (GtkWidget::interior_focus defaults to TRUE.)
673
674         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
675
676 2001-04-30  Havoc Pennington  <hp@pobox.com>
677
678         * tests/testtext.c (line_numbers_expose): fix to work with
679         gtk_paint_layout change
680
681 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
682
683         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
684           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
685           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
686           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
687
688         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
689           with GtkWidget::interior_focus = TRUE better.
690
691         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
692         ::default_outside_border for more flexibility.
693
694         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
695         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
696         change that had to be made with g_object_get.
697
698 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
699
700         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
701         (gtk_tree_view_move_column_after): Clean up interface. 
702
703 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
704
705         * gtk/gtkpacker.h:
706         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
707          to gtkenum.h.
708
709         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
710         handled in switch).
711
712         * gtk/Makefile.am:
713         (gtk.defs): generate enum portions with  glib-mkenums.
714         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
715         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
716         
717         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
718         addition.
719
720         * docs/Changes-2.0.txt: keep a note on signal handlers now
721         not getting emitted during the emission they were connected within.
722
723 2001-04-28  Havoc Pennington  <hp@pobox.com>
724
725         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
726
727 2001-04-24  Havoc Pennington  <hp@redhat.com>
728
729         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
730         (gtk_text_layout_move_iter_to_next_line): fix these two for
731         invisible text, lots of other stuff still hosed.
732
733         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
734         new function, replaces the get/set palette stuff. This function 
735         is intended for use by libgnomeui which should set the hook to a
736         thing which sets the palette in GConf, and we need the
737         GConf-to-xsettings proxy which will result in the change being
738         propagated back to the GTK app.
739
740         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
741         about unusable signals that it may be because the signal has 
742         parameters.
743
744         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
745         style, otherwise gtkrc.c won't know to create a new GtkStyle for
746         it.
747         (gtk_widget_modify_color_component): call
748         gtk_widget_modify_style() so the rc style will get copied.
749         (gtk_widget_modify_font): ditto
750
751         * gtk/gtkrc.c: make a couple variables static
752
753         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
754         help button by default, since it does nothing
755
756         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
757         around with UI
758
759         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
760         so we can have tooltips
761
762         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
763         can have tooltips
764
765         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
766         GDK_ENABLE_BROKEN, because its memory behavior is completely
767         hosed.
768
769         * gtk/gtknotebook.c: remove key press handler, replace with
770         binding set, add numeric keypad support
771
772         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
773
774         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
775
776         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
777         addition to plain Delete
778
779         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
780         GDK_KP_Enter in addition to GDK_Return
781
782         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
783         activate on entry instead of key press
784         (gtk_font_selection_on_clist_key_press): get
785         rid of this signal handler, not needed with new font sel.
786
787         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
788         no-longer-needed emit_stop_by_name(), just return TRUE
789
790         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
791         cruft, this widget is no longer focusable.
792
793         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
794         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
795         move_slider action signal, add binding set for vscale/hscale, in
796         the process support numeric keypad
797
798         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
799         make GDK_Return and GDK_KP_Enter activate the entry via 
800         binding set, instead of hardcoded.
801
802 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
803
804         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
805         code.  Some documentation added.
806
807 2001-04-27  Havoc Pennington  <hp@redhat.com>
808
809         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
810
811         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
812
813         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
814         line/para separators
815         (gtk_entry_create_layout): set single paragraph mode on the layout
816
817         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
818         spacing between the image and label; instead, inside a button box 
819         the button will get extra space that will go there, but if people 
820         configure button box for 0 chubbiness, then there's no spacing.
821
822         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
823         and min/max size style properties, so people can tune their
824         chubbiness.
825
826         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
827         functions
828
829         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
830         space_style, and button_relief into style properties, remove
831         functions for setting them
832         
833         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
834         it back down
835
836         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
837         types from gtk_widget_style_get
838
839         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
840         with a style property.
841
842         * gdk/x11/gdkevents-x11.c: namespace the settings
843
844         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
845
846         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
847         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
848         be used. Also, translate doc strings for settings. Also, namespace
849         the double-click-time property. Also, remove bell properties crap.
850
851 2001-04-27  Sven Neumann  <sven@gimp.org>
852
853         * Makefile.am: before creating links, check if pkg-config files
854         exist for the default target. Otherwise link to the pkg-config files
855         that got installed with this build.
856
857 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
858
859         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
860         dragging code.  Revealed some (potential) GdkWindow bugs.
861
862         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
863         _gdk_window_init_position to the end of reparent to fix the case
864         of reparenting when new_x != old_x and new_y != old_y.
865
866 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
867
868         * gtk/gtkentry.c (strstr_len): Fix optimization that
869         was correct for the use here, but completely incorrect
870         in general.
871
872 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
873
874         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
875         until patch adding gtk_window_set_size() is recommitted. 
876
877         * **Makefile.am configure.in gdk/x11/gdkim-11.c
878           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
879           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
880           (#10784)
881
882 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
883
884         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
885         window == NULL in a number of cases.
886
887         * tests/testdnd.c: Set module path for gdk-pixbuf.
888
889 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
890
891         * gtk/Makefile.am xembed.h: File containing #defines
892         for XEMBED protocol.
893
894         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
895
896         - Change protocol from old plug/socket specific protocol
897           to XEMBED draft
898         - Various fixes to work with GTK+-2.0
899
900         Still quite a bit of work to do here to handle initiation
901         from the socket side (as specified by XEMBED), to handle
902         the more advanced features of XEMBED, and to figure out
903         a good way to handle same-app embedding with less overhead
904         than using full XEMBED.
905
906 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
907
908         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
909         track of whether the toplevel has the focus; only send
910         focus-in events to the focus widget when the window
911         actually has the focus.
912
913 2001-04-25  Havoc Pennington  <hp@pobox.com>
914
915         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
916         were still in the header
917
918 2001-04-24  Alexander Larsson  <alexl@redhat.com>
919
920         * gtk/gtkclist.[ch]:
921         * gtk/gtkctree.c:
922         When there is a row highlighted for D'n'D it must alse
923         be painted hightlighted on exposes. Otherwise exposes from
924         the icon being dragged will mess up the hightlight.
925
926         * gtk/gtkfontsel.c:
927         Don't recenter selected font when exposing the font family
928         clist. This means you can now actually scroll the font family
929         list.
930
931         * gtk/gtknotebook.c:
932         Fix focus movement on scrolling tabs that are placed on the left
933         and right.
934
935 2001-04-21  Havoc Pennington  <hp@pobox.com>
936
937         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
938         empty/invisible lines.
939
940         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
941         (gtk_text_iter_set_visible_line_index): new functions to set
942         indexes excluding invisible text
943
944         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
945         index
946
947         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
948         (gtk_text_iter_get_visible_line_offset): new functions to 
949         get indexes excluding invisible text
950
951         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
952         bunch of extra padding that served no purpose
953
954         * gtk/gtkdialog.c: Make all the spacings configurable via style
955         properties, for chubbiness configuration in themes
956
957         * tests/testtext.c: fix path to the immodules.
958         
959 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
960
961         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
962         got munched by #endif.
963
964         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
965
966         * gtk/gtktreeview.c: Refactored code to clean up a number of
967         events.
968
969         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
970         values to make consistent with other functions.  Spotted by Jeff
971         Franks <jcf@tpg.com.au>.
972
973         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
974         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
975
976 2001-04-23  Sven Neumann  <sven@gimp.org>
977
978         * gtk/Makefile.am
979         * gtk/gtkplug.c
980         * gtk/gtksocket.c: on request of Owen, reverted my last change 
981         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
982
983 2001-04-23  Sven Neumann  <sven@gimp.org>
984
985         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
986         compile for non-X11 targets again
987
988 2001-04-20  Alexander Larsson  <alexl@redhat.com>
989
990         * gtk/gtkcolorsel.[ch]:
991         API Change. Take GdkColor arguments instead of gdouble *.
992         Leave the old gtk_color_selection_set_color for compatibility,
993         but marked deprecated.
994         Do correct rounding when converting RGB <-> HSV.
995         
996         * gtk/gtkcolorseldialog.c:
997         * tests/testgtk.c:
998         Use new GtkColorSelection API.
999
1000         * gtk/gtkhsv.c:
1001         Fix problem selecting colors in triangle when Hue is 330.
1002         Fix some black dots around the HSB triangle.
1003         
1004         * gtk/gtkfilesel.c:
1005         return FALSE from the focus_in_event handler to fix focus problems.
1006
1007 2001-04-18  Havoc Pennington  <hp@redhat.com>
1008
1009         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
1010         set, so keybindings are configurable    
1011         (gtk_window_activate_default): Change to activate the focus widget
1012         instead if there's a focus widget, to be consistent with the
1013         behavior that previously existed in key_press_event
1014
1015 2001-04-18  Havoc Pennington  <hp@redhat.com>
1016
1017         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
1018
1019 2001-04-18  Havoc Pennington  <hp@redhat.com>
1020
1021         Close bug #50615:
1022         
1023         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
1024         the layout
1025
1026         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
1027
1028         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
1029
1030         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
1031         
1032         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
1033         to blue for base, in addition to bg
1034         
1035 2001-04-18  Havoc Pennington  <hp@redhat.com>
1036
1037         * tests/testgtk.c (create_image): allow shrinking the image window
1038         to test that we clip to allocation.
1039
1040         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
1041         #9845
1042
1043         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
1044
1045 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
1046
1047         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
1048         mode on shm segments to 0600. We'll see who complains.
1049
1050         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
1051         _gdk_windowing_window_destroy() AFTER recursing through
1052         children.
1053
1054         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
1055         testsocket_child on X.
1056
1057         * tests/testsocket[_child].c: Fix uses of
1058         gtk_window_get_default_accel_group().
1059
1060         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
1061
1062         * gdk/gdkimage.c: (gdk_image_get):
1063         Deal with the possibility that XGetImage() might return NULL.
1064         Allocate the GdkImagePrivate structure only after XGetImage()
1065         succeeds in order not to dereference a NULL ximage pointer.  This
1066         prevents a core dump when XGetImage() fails - which is unlikely,
1067         but can happen due to race conditions accessing the geometries of
1068         drawables.  An x error will still be triggered, but the gdk image
1069         wrapper at least wont seg fault.
1070         
1071 2001-04-18  Havoc Pennington  <hp@redhat.com>
1072
1073         * gtk/gtkimage.c: fix to properly queue resizes when the image is
1074         set
1075
1076         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
1077         if the insertion point isn't editable
1078
1079         * demos/gtk-demo/images.c: Added a GtkImage demo
1080
1081         * demos/gtk-demo/drawingarea.c: drawing area demo
1082         
1083         * demos/gtk-demo/menus.c (create_menu): cleanups
1084
1085 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
1086
1087         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
1088           gdk/x11/gdkevents-x11.c: Introduce an extra child
1089         of toplevel windows that serves to hold the focus to
1090         avoid events being delivered to embedded windows.
1091
1092         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
1093         some extra variables to clean up code and reduce the
1094         number of casts.
1095
1096         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
1097         guint for 1 bit bit fields, not gboolean.
1098
1099 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
1100
1101         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
1102         not TRUE. (Fixes #52925)
1103
1104 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
1105
1106         * Released 1.3.4
1107
1108         * NEWS: Updated
1109
1110         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
1111         use GTK_TYPE_ENUM.
1112
1113 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
1114
1115         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
1116
1117         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
1118         names to compatibility #defines so docs work.
1119
1120         * gtk/gtkenums.h: Remove GtkMenuFactoryType
1121
1122         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
1123
1124         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
1125
1126         * tests/testgtkrc: No magenta cursors, please.
1127
1128         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
1129
1130         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
1131         
1132 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
1133
1134         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
1135         grabs, since they are no longer necessary.
1136
1137         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
1138         by signal_connect() and call gtk_button_pressed() rather
1139         than signal_connect_after().
1140
1141         * tests/testgtk.c: Restore radio menu items to combos 
1142         since they'll look OK with Raleigh, and it is easier
1143         than finishing the process of removing them that was
1144         started earlier.
1145
1146 2001-04-16  Hans Breuer  <hans@breuer.org>
1147
1148         * gdk/gdk.def :
1149         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
1150
1151         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
1152         we are interested in the functions return value not the function address
1153         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
1154
1155         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
1156
1157 2001-04-14  Hans Breuer  <hans@breuer.org>
1158
1159         * gdk/gdk.def :
1160         * gdk/makefile.msc : updated
1161
1162         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
1163         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
1164         (the testgtk::text backgound pixmap is drawn again)
1165         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
1166         Win32 Pango change
1167         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
1168
1169         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
1170         Not sure if the returned settings have the right unit, because I couldn't
1171         find any docs for the X version ...
1172
1173         * gtk/gtk.def :
1174         * gtk/makefile.msc.in : updated
1175
1176 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
1177
1178         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
1179         wording problems. (Compared to version from Johannes Stezenbach to
1180         check correctness.)
1181
1182 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
1183
1184         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
1185         this to compile.
1186
1187 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
1188
1189         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
1190         not pixbufpos.
1191
1192         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
1193
1194         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
1195         are unsigned insts, therefore use g_value_set_uint.
1196         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
1197
1198 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@webwynk.net>
1199
1200         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
1201
1202         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
1203         GTK_TYPE_STRING.
1204
1205         * gtk/gtktreeview.c: New functions to allow initial column
1206         dragging work.
1207
1208         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
1209
1210         * tests/testtreefocus.c: give dave some love.
1211
1212         * tests/testtreesort.c: Modify test to check really long samples.
1213
1214 2001-04-11  Alexander Larsson  <alexl@redhat.com>
1215
1216         * gtk-2.0.m4: Pass pkg-config options
1217         before the other args so it works even if
1218         POSIXLY_CORRECT is set.
1219
1220 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
1221
1222         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
1223         0, interface 0).
1224
1225 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
1226
1227         * gtk/gtkcalendar.c (gtk_calendar_button_press):
1228         check for action_func != NULL
1229
1230 2001-04-04  Sven Neumann  <sven@gimp.org>
1231
1232         * tests/testgtk.c (test_init): corrected path to gtk.immodules
1233
1234 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
1235
1236         * Released Gtk+-1.3.3.
1237
1238 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
1239
1240         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
1241
1242 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
1243
1244         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
1245         files to/from source dir. (if we don't stay in builddir, we
1246         can't reach make-inline-pixbuf.
1247
1248         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
1249         deps.
1250
1251         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
1252         ages 0).
1253
1254 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
1255
1256         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
1257         moved to the GtkTreeSortable interface.
1258
1259         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
1260         Make more efficient (fixes #50262).
1261
1262 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
1263
1264         * NEWS: Updated.
1265
1266         * configure.in: Remove support for uninstalled glib.
1267
1268         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
1269         so as not to stop emission.
1270
1271         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
1272         is no longer supported.
1273
1274         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
1275         into tests, change build order to build modules before
1276         gtk/.
1277
1278         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
1279         to here.
1280
1281 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
1282
1283         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
1284         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
1285         GPatternSpec. this is actually unlikely to cause breakage in
1286         third-party apps since except for gle, pretty much ever caller
1287         passes NULL here.
1288
1289         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
1290
1291         * *.c: use g_pattern_*() API.
1292
1293         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
1294
1295         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
1296         directions aren't passed in.
1297
1298         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
1299         functionality to be usable from gtkstyle.c as well, give precedence
1300         for conversion to user-supplied parsers.
1301         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
1302
1303         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
1304         _gtk_settings_parse_convert() for rcporperty value conversion.
1305
1306 2001-04-03  Alexander Larsson  <alexl@redhat.com>
1307
1308         * gdk/linux-fb/gdkevents-fb.c:
1309         Add empty gdk_setting_get().
1310
1311 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
1312
1313         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
1314         variable names.
1315         
1316         * gtk/makeenums.pl: touch this so enum files get remade.
1317
1318 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
1319
1320         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
1321         work again when not sorted.
1322
1323         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
1324         and "expand_row" signal, closing bug 52578.
1325
1326         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
1327         support.
1328
1329         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
1330         support.
1331
1332 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
1333
1334         * gdk/gdkevents.h: Add GdkEventSetting event for notification
1335         of changes to system settings, gdk_setting_get() to retrieve
1336         a single system setting.
1337
1338         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
1339         to the draft XSETTINGS mechanism.
1340
1341         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
1342         XSETTINGS.
1343
1344         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
1345         of GDK settings changes to the GtkSettings object.
1346
1347         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
1348         double-click-timeout property to GDK.
1349
1350         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
1351         Define GDK boxed types here.
1352
1353         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
1354         gdk/gdkenumtypes.[ch] for enum definitions.
1355
1356         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
1357         * gtk/gtk-boxed.defs: Comment out GDK types
1358         * gtk/gtktypeutils.h: Remove GDK types
1359         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
1360
1361 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
1362
1363         * Applied patch from Ron Steinke to add signal accumulators
1364         so that signals with the convention 'TRUE return means
1365         handled' stop emission on a TRUE return.
1366
1367         * gtk/gtkmain.[ch]: Add private accumulator 
1368         _gtk_boolean_handled_accumulator, used throughout GTK+.
1369         
1370         * gtk/gtkspinbutton.c: Add accumulator for ::output.
1371
1372         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
1373         
1374         * gtk/gtkwidget.c: Add accumulators for event signals,
1375         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
1376         for ::mnemonic-activate.
1377
1378         * gtk/gtkwindow.c: Add accumulator for ::frame_event
1379
1380 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
1381
1382         * gtk/gtkwidget.c: Add missing include.
1383
1384 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
1385
1386         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
1387         marshaller.
1388
1389         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
1390         "changed" signal to "range_changed".
1391
1392         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
1393         removing a tree from one model would remove all trees from that
1394         model.
1395         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
1396         changed signal instead.
1397
1398 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
1399
1400         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
1401         chaining up to parent impl, since we have a INPUT_ONLY
1402         window.
1403
1404         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
1405         foreground color for the cursor.
1406
1407 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
1408
1409         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
1410         param spec when caching property values, since we unref it
1411         later when we free the style.
1412
1413         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
1414         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
1415
1416 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
1417
1418         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
1419         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
1420         stupidity.
1421
1422 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
1423
1424         [ First pass at adding style properties. Still needs some definite
1425         fine-tuning. ]
1426
1427         * gtk/gtkbutton.c: Add ::default_spacing style property.
1428          
1429         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
1430         ::indicator_spacing style properties.
1431
1432         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
1433         style properties.
1434
1435         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
1436         rather than a normal property.
1437
1438         * gtk/gtkwidget.c: Add an ::interior_focus style property to
1439         draw focus inside buttons, in the Windows/Java Metal/etc. style.
1440
1441         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
1442         Honor ::interior_focus.
1443         
1444         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
1445         TRUE.
1446
1447         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
1448         Add ::slider_width, ::trough_border, ::stepper_size,
1449         ::stepper_spacing style properties.
1450
1451         * gtk/gtkscale.[ch] Add ::slider-length style property.
1452
1453 2001-04-02 Alexander Larsson   <alexl@redhat.com>
1454
1455         * gdk/linux-fb/gdkwindow-fb.c:
1456         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
1457         warnings that were spewed on startup.
1458
1459         * gtk/gtkwindow-decorate.c:
1460         gtk_window_reposition -> _gtk_window_reposition
1461
1462 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
1463
1464         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
1465         Add boxed type for GtkRequistion. Use it for ::size-request.
1466
1467         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
1468         Add a new GtkBorder structure useful for geometry properties
1469         for widgets. Add corresponding GTK_TYPE_BORDER.
1470         
1471         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
1472         Support automatic parser selection like
1473         gtk_settings_install_property_parser().
1474
1475         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
1476         functionality for use by gtk_widget_class_install_style_property.
1477         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
1478
1479 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
1480
1481         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
1482         g_param_spec_unichar(). 
1483
1484 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
1485
1486         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
1487         _NET window managers.
1488
1489         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
1490
1491 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
1492
1493         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
1494         bad needs to be nuked, not just deprecated.
1495
1496         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
1497         gtk_widget_popup().
1498
1499         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
1500         
1501         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
1502         widget.
1503         
1504         * docs/Changes-2.0.txt: updates.
1505         
1506 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
1507
1508         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
1509         for (i = 0; i < 100; i ++)
1510           g_print ("I will confirm it compile before committing\n");
1511
1512 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
1513
1514         * gtk/gtktreestore.c: Initial work on implementing the
1515         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
1516
1517 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
1518
1519         * gtk/gtkwidget.c: fixed a bunch of notifications, added
1520         reference counts around emissions where the widget is used afterwards.
1521         added freeze/thaws around multiple properties being notified.
1522         (_gtk_widget_get_aux_info): cleanups.
1523         
1524         * gtk/gtksettings.c (gtk_settings_install_property): provide
1525         default parsing functions for gdkcolor, enums and flags.
1526
1527         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
1528         applied by owen.
1529         backed out gtk_window_get_location(), gtk_window_set_location(),
1530         gtk_window_get_size() and gtk_window_set_size(), these
1531         have to be sorted out wrg x/y/width/height/default_with/default_height
1532         properties.
1533         kept a flag in GtkWindowGeometryInfo to handle user
1534         resetting default sizes.
1535         cleaned up ZVT comments.
1536         bunch of assorted bug fixes, notification fixes.
1537         (_gtk_window_reposition): make this a really internal function.
1538         
1539         * gtk/testgtk.c: fixups.
1540         
1541 2001-03-31  Hans Breuer  <hans@breuer.org>
1542
1543         * config.h.win32.in : disable USE_MMX for msvc build cause
1544         the assembler doesn't fit and is out of my scope. Disable
1545         USE_GMODULE for msvc build as wel. The right way to share
1546         binaries on win32 would be to use libtiff.dll etc. To reduce
1547         installation hassles IMO it's better to include all fileformats
1548         builtin to gdk-pixbuf
1549
1550         * gdk-pixbuf/makefile.msc : new file
1551
1552         * gdk/gdk.def : updated
1553
1554         * gdk/win32/gdkevents-win32.c : don't erase the background if
1555         .no_bg is set. It improves the scrolling (e.g. of testgtk main
1556         buttons
1557         * gdk/win32/gdkgeometry-win32.c : added comment about the above
1558
1559         * gdk/win32/gdkwindow-win32.c : added three new functions like
1560         the X version. Only one is implemented, because the other two
1561         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
1562         be default behaviour on win32 anyway ...
1563
1564         * gtk/gtk.def : updated
1565
1566         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
1567         from where it was built and add an additional rule to automagically
1568         build gtkmarshal.[hc]
1569
1570         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
1571         before array access for the current entry isn't finished
1572
1573         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
1574         use g_return_val_if_fail
1575
1576         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
1577         for the static array, but let the compiler calculate it. It
1578         makes me wonder if gcc isn't capable to catch bugs like this ...
1579
1580 2001-03-31  James Henstridge  <james@daa.com.au>
1581
1582         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
1583         constant "-1" in the aux info structure.
1584
1585 2001-03-30  Alexander Larsson  <alexl@redhat.com>
1586
1587         * gtk/gtkbutton.c (gtk_button_get_property):
1588         * gtk/gtklabel.c:
1589         Remove leaks.
1590         
1591         * gtk/gtkcontainer.c:
1592         * gtk/gtkhscale.c:
1593         * gtk/gtkhscrollbar.c:
1594         * gtk/gtklayout.c:
1595         * gtk/gtkmisc.c:
1596         * gtk/gtkprogress.c:
1597         * gtk/gtkprogressbar.c:
1598         * gtk/gtkrange.c:
1599         * gtk/gtktable.c:
1600         * gtk/gtkviewport.c:
1601         * gtk/gtkvscale.c:
1602         * gtk/gtkvscrollbar.c:
1603         * gtk/gtkwidget.c:
1604         Property patches, based on patches from John Margaglione and Lee Mallabone.
1605
1606 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
1607
1608         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
1609         adjustment. Cleaned redundant preconditions (spin != NULL). Added
1610         inline API function docs.
1611         (gtk_spin_button_new_with_range): New convenience constructor.
1612         (gtk_spin_button_set_increments): New adjustment helper.
1613         (gtk_spin_button_set_range): New adjustment helper.
1614
1615         * gtk/testgtk.c : added test of the new convenince constructor and
1616         value_changed signals.
1617
1618 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
1619
1620         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
1621         listen to the reorder signal.
1622
1623 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
1624
1625         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
1626         to get the aux info structure fo the widget.
1627
1628         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
1629         above function.
1630
1631         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
1632
1633         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
1634         to get the size of the window manager frame, basically the same
1635         code that gdk_window_get_root_origin() had
1636         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
1637
1638         * gtk/gtkwindow.c (gtk_window_set_default_size): use
1639         gdk_window_resize() if the window is realized and resizeable
1640
1641         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
1642         typo so that setting gravity works
1643
1644         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
1645         allocation if auto_shrink is on, even if the default size
1646         has not changed.
1647
1648         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
1649         g_return_if_fail
1650
1651 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
1652
1653         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
1654         reordering/sorting work.  Now pretty much works.
1655
1656         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
1657         reorder mostly work.  Still need to get the parity correct.
1658
1659         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
1660         signal, so I can listen for the sort_column_changed signal so I
1661         can change my "sort_indicator" property.  Cool.
1662
1663 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
1664
1665         [ Patch from Havoc Pennington, hp@redhat.com ]
1666
1667         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
1668         Add functions gdk_window_begin_resize_drag/begin_move_drag
1669         to start resizing or moving a toplevel window. This
1670         is done either using the _NET_WM_MOVERESIZE protocol,
1671         or, if that isn't present, by emulation.
1672
1673         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
1674         to export the above to GTK+-land.
1675
1676         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
1677         
1678         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
1679         Move this function into gdkwindow, since we need it
1680         when implementing fallback resizing.
1681
1682         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
1683         Fix typo when setting gravity.
1684
1685         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
1686         Add an optional (but on by default) resize grip for resizing 
1687         the parent window.
1688
1689 01-03-29  Alexander Larsson  <alexl@redhat.com>
1690
1691         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
1692         Don't return TRUE from the event handler, that blocks all
1693         event signals on the tooltip widget. Now you can press buttons
1694         in toolbars again.
1695
1696 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
1697
1698         * gtk/testtext.c (create_buffer): Add missing NULL on
1699         valist.
1700
1701         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
1702         c-n-p problem with INCONSISTENT property.
1703
1704         [ Patch from Havoc Pennington  <hp@redhat.com> ]
1705
1706         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
1707         hook.
1708
1709         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
1710         signal as a hook for extending the default popup menu
1711
1712         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
1713         use radio menu items for the input method menuitems
1714
1715         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
1716         inserted unicode from Ctrl-Shift-hex input method
1717
1718         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
1719         validatation here, already done at GtkTextBuffer level.
1720
1721         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
1722         popup_menu run action signal and Shift+F10 and Menu keybindings.
1723
1724         * gtk/gtkentry.c: implement a default handler for popup_menu
1725
1726         * gtk/gtktextview.c: implement a default handler for popup_menu
1727
1728         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
1729         from a key event
1730         
1731         * gtk/gtklabel.c: remove "trailer" cruft
1732
1733 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
1734
1735         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
1736         handle reordering of trees.  Seems to mostly work w/ the exception
1737         of the parity flag.
1738
1739         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
1740         signal.
1741
1742 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
1743
1744         * gtk/gtkwidget.h: c++ fixes.
1745
1746 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
1747
1748         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
1749         memory.
1750
1751 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
1752
1753         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
1754         Nils Barth fixing event return values. (#51041)
1755
1756         * gtk/gtkwidget.c: Fix some return values for default
1757         functions.
1758
1759         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
1760         return values for trough_keys functions.
1761
1762         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
1763         value for add_accelerator (shoudl have been a void
1764         return.)
1765
1766         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
1767         Fix return type of EVENT.
1768
1769         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
1770         signal return a boolean.
1771
1772 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
1773
1774         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
1775         reordered signal.
1776
1777         * tests/testtreesort.c (main): fix spelling.
1778
1779 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
1780
1781         * gtk/gtkliststore.c: More work on implementing sortable
1782         interface.
1783
1784 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
1785
1786         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
1787         reference the widgets in the resulting list. (#11821)
1788         This makes this consistent with gtk_container_children.
1789
1790         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
1791         uses of gtk_window_list_toplevels.
1792
1793 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
1794
1795         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
1796         a virtual function to set whether the IM context should use 
1797         the preedit string. (#51922)
1798         
1799 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
1800
1801         * gdk/gdkpango.h: Remove stale FIXME comment.
1802
1803 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
1804
1805         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
1806         Fixed bug that returned NULL if a filename was selected.
1807
1808 2001-03-24  Havoc Pennington  <hp@pobox.com>
1809
1810         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
1811         to contain the word "theme"
1812
1813 2001-03-24  Havoc Pennington  <hp@pobox.com>
1814
1815         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
1816         slower but finer-grained
1817         (gtk_hsv_focus): get initial focus on the ring or triangle 
1818         according to tab direction
1819
1820         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
1821
1822 2001-03-23  Havoc Pennington  <hp@pobox.com>
1823
1824         * gtk/gtkhsv.c: make this somewhat key-navigable
1825
1826         * gtk/gtkfontsel.c: mnemonics
1827
1828         * gtk/gtkgamma.c: mnemonics
1829
1830         * gtk/gtkcolorsel.c: add mnemonics to labels
1831
1832 2001-03-22  Havoc Pennington  <hp@pobox.com>
1833
1834         Applied big patch from Seth Lytle to fix event handler return
1835         values, slightly modified.
1836
1837         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
1838         handled.
1839         (gtk_calendar_key_press): return TRUE for GDK_space triggers
1840         select_day
1841
1842         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
1843         (gtk_clist_button_release): return TRUE if handled
1844
1845         * gtk/gtkcolorsel.c (mouse_release):
1846         (palette_activate): 
1847         (palette_press): 
1848         (palette_new): 
1849         (mouse_press): 
1850         (get_screen_color): 
1851         fixed return type (void to gboolean), return TRUE,
1852         added GTK_SIGNAL_FUNC cast
1853
1854         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
1855         (void to gboolean), and return TRUE
1856         (gtk_combo_button_release): changed return value to TRUE after
1857         gtk_grab_add on combo->popwin
1858
1859         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
1860         collapse or expand
1861
1862         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
1863         button/motion
1864
1865         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
1866         press/release and motion that trigger act
1867
1868         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
1869
1870         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
1871         for GDK_Return
1872         
1873         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
1874         (gtk_list_button_release): return TRUE if selection
1875
1876         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
1877         press
1878
1879         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
1880         (gtk_menu_shell_button_release): chain parent_menu_shell retval
1881
1882         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
1883         nothing triggered
1884         (gtk_notebook_button_release): return TRUE if we do anything
1885
1886         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
1887         (gtk_spin_button_button_release): return TRUE or chained retval
1888
1889         * gtk/gtktext.c (gtk_text_button_press): 
1890         (gtk_text_button_release): return TRUE
1891         (gtk_text_key_press): remove redundant retval code
1892         
1893         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
1894         and sensitive
1895         (gtk_tree_item_subtree_button_click): changed type to gint, and return
1896         TRUE if sensitive
1897
1898         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
1899         return TRUE
1900
1901 2001-03-23  Havoc Pennington  <hp@redhat.com>
1902
1903         * gtk/testgtk.c: fix warnings
1904
1905         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
1906
1907         * gtk/gtktextview.c: fix warnings
1908
1909         * gtk/gtktext.c (find_cursor_at_line): fix warning
1910
1911         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
1912
1913         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
1914         of this function
1915
1916         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
1917         fix warning
1918
1919         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
1920
1921         * gtk/gtkfontsel.c: fix warning
1922
1923         * gtk/gtkcolorsel.c: fix warnings
1924
1925 2001-03-23  Havoc Pennington  <hp@redhat.com>
1926
1927         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
1928
1929         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
1930
1931         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
1932         and deprecated gtk_check_menu_item_set_show_toggle().
1933         
1934         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
1935
1936         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
1937
1938         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
1939
1940 2001-03-23  Havoc Pennington  <hp@redhat.com>
1941
1942         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
1943         some docs
1944
1945 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
1946
1947         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
1948         this.
1949
1950         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
1951         set_cell to set_value
1952
1953         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
1954         set_cell to set_value
1955
1956 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
1957
1958         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
1959         fix braino.
1960         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
1961         support.
1962
1963         * gtk/gtktreeview.c: Addition of initial sortable support.
1964
1965         * gtk/gtktreestore.c: Addition of initial sortable support.
1966
1967         * gtk/gtkliststore.c: Addition of initial sortable support.
1968
1969         * gtk/gtkmarshal.list: yet another marshaller.
1970
1971         * gtk/gtktreedatallist.[ch]: shared code between the store models
1972         for handling sorting headers.
1973
1974 2001-03-22  Havoc Pennington  <hp@redhat.com>
1975
1976         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
1977         (gtk_container_unset_focus_chain): Add ability to override the 
1978         focus chain for a container explicitly
1979
1980 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
1981
1982         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
1983         added PROP_MNEMONIC_WIDGET.
1984
1985         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
1986         (gtk_window_remove_mnemonic): 
1987         (gtk_window_add_mnemonic): fixed assertions.
1988         (gtk_window_activate_mnemonic): constrain modifier checks to those
1989         permitted by gtk_accelerator_get_default_mod_mask().
1990         got rid of gtk_window_get_default_accel_group().
1991
1992         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
1993         activatable widgets either by focussing or a warning.
1994         added a signal accumulator to ::activate_mnemonic which stops the
1995         emission once a handler returned TRUE.
1996
1997 2001-03-22  Havoc Pennington  <hp@pobox.com>
1998
1999         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
2000         the stock item label
2001
2002         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
2003
2004         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
2005
2006         * demos/gtk-demo/*.c: Add mnemonics all over the place
2007
2008         * gtk/gtklabel.h: mark parse_uline deprecated
2009
2010 2001-03-21  Alexander Larsson  <alexl@redhat.com>
2011
2012         * gtk/gtkitemfactory.[ch]:
2013         Add support for stock and normal imagemenuitems.
2014         
2015         * gtk/testgtk.c:
2016         Add some tests for mnemonics, stock toolbars, stock
2017         and image menuitems in itemfactory and gdk_window_scroll.
2018
2019 2001-03-21  Alexander Larsson  <alexl@redhat.com>
2020
2021         * gtk/gtkbutton.[ch]:
2022         * gtk/gtkdialog.c:
2023         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
2024         removed accel_group argument. Renamed gtk_button_new_accel() to
2025         gtk_button_new_with_mnemonic() and removed accel_group argument.
2026
2027         * gtk/gtkcheckbutton.[ch]:
2028         New function gtk_check_button_new_with_mnemonic().
2029
2030         * gtk/gtkentry.c:
2031         Override activate_mnemonic and just grab focus.
2032
2033         * gtk/gtkitemfactory.c:
2034         Don't add menu uline accel group, instead use mnemonics support.
2035
2036         * gtk/gtklabel.[ch]:
2037         New support for mnemonics.
2038
2039         * gtk/gtkmarshal.list:
2040         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
2041
2042         * gtk/gtkmenu.[c]:
2043         * gtkmenushell.c:
2044         Use mnemonics instead of accel groups for uline
2045         support in menu items.
2046         Removed gtk_menu_get_uline_accel_group() and
2047         gtk_menu_ensure_uline_accel_group().
2048
2049         * gtk/gtkmenuitem.c:
2050         Override activate_mnemonic to handle switching between
2051         menu items if there are collisions.
2052         
2053         * gtk/gtknotebook.c:
2054         Connect to activate_mnemonic on the tab_label, so that
2055         activating it switches to that notebook page.
2056
2057         * gtk/gtkwidget.[ch]:
2058         Add activate_mnemonic signal. New function
2059         gtk_widget_activate_mnemonic() to emit it.
2060         Default implementation does activate/grab_focus.
2061
2062         * gtk/gtkwindow.[ch]:
2063         Add support for mnemonics in windows.
2064         New functions:
2065         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
2066         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
2067
2068         * gtk/testgtk.c:
2069         Update to function name changes.
2070         
2071 2001-03-21  Alexander Larsson  <alexl@redhat.com>
2072
2073         * gtk/gtkimagemenuitem.[c]:
2074         Add gtk_image_menu_item_new_from_stock()
2075
2076 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
2077
2078         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
2079         Fix buglet in meeting.
2080
2081 2001-03-19  Havoc Pennington  <hp@redhat.com>
2082
2083         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
2084         add a bunch of accessor functions. This is because we have
2085         reasonable expectations of extending what fields it contains in
2086         the future.
2087
2088         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
2089         changes
2090
2091         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
2092         GtkIconSource   
2093
2094 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
2095
2096         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
2097         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
2098
2099         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
2100           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
2101           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
2102           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
2103         Change float to double everywhere with the exception of 0<->1.0 alignment
2104         and GtkCurve.
2105
2106 2001-03-19  Tor Lillqvist  <tml@iki.fi>
2107
2108         * gdk/win32/gdkdrawable-win32.c
2109         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
2110         output.
2111
2112         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
2113         gdkwin32.h.
2114
2115 2001-03-18  Tor Lillqvist  <tml@iki.fi>
2116
2117         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
2118         print_event_state, print_event): Use preprocessor macro to make
2119         code more compact. Print also GDK_WINDOW_STATE events.
2120         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
2121         
2122         * gtk/gtk.def
2123         * gtk/makefile.mingw.in: Update.
2124
2125         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
2126         to catch also Cygwin.
2127
2128 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
2129
2130         * gtk/gtkspinbutton.[hc]: added rc-style argument
2131         GtkSpinButton::shadow_type.
2132         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
2133         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
2134         rc-style settings.
2135
2136         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
2137
2138         * gtk/gtkwidget.c: quark cleanups.
2139
2140         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
2141         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
2142         to create_rc_style() (we don't do cloning in standard OO sense).
2143         added per rc style properties.
2144         
2145         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
2146         property values and for caching those. some cleanups.
2147         
2148         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
2149         
2150         * gtk/gtksettings.[hc]: new file for global rc-file properties
2151         (at least currently, should get extended to support X properties
2152         and other communication mechanisms).
2153         
2154         * gtk/gtkwidget.[hc]: added style property support:
2155         (gtk_widget_class_install_style_property_parser): install style
2156         property pspec with parser function for rc-file values other
2157         than LONG, DOUBLE or STRING.
2158         (gtk_widget_class_install_style_property): same as above without
2159         parser (parsers are going to be needed quite infrequently).
2160         (gtk_widget_style_get_property): retrive style property value.
2161         (gtk_widget_style_get_valist): same as above with varargs support,
2162         has NOCOPY semantics.
2163         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
2164
2165 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
2166
2167         * demos/gtk-demo/main.c (row_activated_cb): modified to use
2168         "row_activated" signal.
2169
2170         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
2171         stupidity.  Lets actually pass in the row with this signal...
2172
2173 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
2174
2175         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
2176
2177         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
2178
2179         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
2180         everything into the ::destroy function, and freed a lot more.
2181
2182 2001-03-16  Havoc Pennington  <hp@redhat.com>
2183
2184         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
2185         instead of gint16, to avoid overflow issues, since sizes > 16-bit
2186         are now allowed.
2187
2188 2001-03-16  Havoc Pennington  <hp@redhat.com>
2189
2190         * Applied patch from Nils Barth (bug # 51041) to 
2191         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
2192         in various places.
2193
2194 2001-03-15  Havoc Pennington  <hp@redhat.com>
2195         
2196         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
2197         for properties to set on the tag.
2198
2199         * gtk/testtext.c: fixups to reflect create_tag change
2200         
2201         * gtk/gtktexttag.c (gtk_text_tag_set_property):
2202         background/foreground stipple are objects, not boxed.
2203
2204         * demos/gtk-demo/textview.c: intellihancing
2205
2206 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
2207
2208         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
2209         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
2210
2211 2001-03-16  Alexander Larsson  <alexl@redhat.com>
2212
2213         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
2214         Fix sign error with queued region translations.
2215
2216 2001-03-15  HideToshi Tajima  <tajima@happy>
2217
2218         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
2219         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
2220         * gtk/gtkentry.c (update_im_cursor_location): 
2221         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
2222         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
2223         set_cursor_pos to set_cursor_location in GtkInputContext class
2224
2225 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
2226
2227         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
2228         the location of the cell relative to its area.
2229         * gtk/gtkcell*: modified for above change
2230         * gtk/gtktreeview.c: modified for above change.
2231
2232 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
2233
2234         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
2235          (gtk_tree_view_finalize): actually unref the model.  Thanks to
2236         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
2237
2238 2001-03-14  Havoc Pennington  <hp@redhat.com>
2239
2240         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
2241         
2242         * gtk/gtk.h: remove gtkdata.h
2243
2244         * gtk/Makefile.am: remove gtkdata
2245         
2246         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
2247         not "disconnect" on the adjustments.
2248         
2249         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
2250         GtkData
2251
2252         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
2253         not GtkData
2254
2255         * configure.in: handle case where X render exists, but Pango lacks
2256         Xft support.
2257
2258 2001-03-15 Alexander Larsson  <alexl@redhat.com>
2259
2260         * gtk/gtktoolbar.[ch]:
2261         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
2262         to add stock items to toolbars.
2263
2264         * gtk/Makefile.am:
2265         Remove ../gdk/gdkim.h from gdk_headers.
2266
2267 2001-03-15  Sven Neumann  <sven@gimp.org>
2268
2269         * gdk/gdkim.h: removed
2270         
2271         * gdk/gdkprivate.h
2272         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
2273
2274 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
2275
2276         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
2277         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
2278         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
2279         set_cursor_pos() virtual method
2280
2281         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
2282         (gtk_im_context_xim_set_cursor_pos): add implementation for
2283         set_cursor_pos() method
2284
2285         * gtk/gtkentry.c (recompute_idle_func): set current cursor
2286         position to input methods
2287
2288 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
2289
2290         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
2291         code a lot.
2292
2293         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
2294         g_mem_chunk.
2295         (_gtk_tree_data_list_alloc): use g_mem_chunk.
2296         (_gtk_tree_data_list_node_to_value): Fix to switch on
2297         G_TYPE_FUNDAMENTAL.
2298         (_gtk_tree_data_list_value_to_node): Fix to switch on
2299         G_TYPE_FUNDAMENTAL.
2300         (_gtk_tree_data_list_node_copy): Fix to switch on
2301         G_TYPE_FUNDAMENTAL.
2302
2303 2001-03-12  Havoc Pennington  <hp@redhat.com>
2304
2305         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
2306         to convert to new property API. Also, change default_width and
2307         default_height get_property to return 0 as the flag value for
2308         "unset"; -1 is not a valid value for these fields.
2309
2310 2001-03-12  Havoc Pennington  <hp@redhat.com>
2311
2312         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
2313         enum with registration for icon sizes, instead of strings.
2314
2315         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
2316         gtkwidget.c: Fix to reflect GtkIconSize
2317         
2318 2001-03-12  Alexander Larsson  <alexl@redhat.com>
2319
2320         Make GtkFB compile and link.
2321         
2322         * gdk/linux-fb/gdkdrawable-fb2.c:
2323         window->mapped to GDK_WINDOW_IS_MAPPED(). 
2324         
2325         * gdk/linux-fb/gdkwindow-fb.c:
2326         window->mapped to GDK_WINDOW_IS_MAPPED(). 
2327         Added gdk_window_shape_combine_region.
2328         Added assorted placeholders for unimplemented new GdkWindow API calls.
2329
2330 2001-03-12  Alexander Larsson  <alexl@redhat.com>
2331
2332         * gtk/gtkfilesel.c:
2333         Add more test when converting filenames from/to utf-8.
2334         Don't allow entering text in the filename entry which isn't allowed in
2335         a filename. Just beep instead.
2336
2337 2001-03-12  Alexander Larsson  <alexl@redhat.com>
2338
2339         * gtk/gtkclist.c:
2340         Scroll using gdk_window_scroll(). Don't wait for exposes.
2341         Move the column headers in an order that makes them flash less.
2342
2343 2001-03-10  Hans Breuer  <hans@breuer.org>
2344
2345         * gdk/gdk.def : updated
2346
2347         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
2348         to offseting the clip_mask at the right place
2349
2350         * gdk/win32/gdkwindow-win32.c : don't create background brushes
2351         for all the gdkClasses, especially not for the input_only case.
2352         Otherwise flickering wont be avoidable, because we don't get
2353         WM_ERASEBKGND message for these windows.
2354
2355         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
2356         and fixed massive redraw problems apparently triggered by Alexanders 
2357         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
2358         but it seems to work quite well :-)
2359
2360         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
2361         prototype
2362
2363 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
2364
2365         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
2366         (gtk_list_store_set_cell): Fix a stupid typo.
2367
2368 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
2369
2370         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
2371         select_all not work if you're in SINGLE mode (it doesn't make that
2372         much sense, anyway.)
2373
2374         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
2375         handle types more sanely.
2376         (_gtk_tree_data_list_value_to_node): handle types more sanely.
2377         (_gtk_tree_data_list_node_copy): handle types more sanely.
2378
2379         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
2380         GValue better. Converts the type as well.
2381
2382         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
2383         GValue better. Converts the type as well.
2384
2385 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
2386
2387         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
2388         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
2389         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
2390         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
2391
2392         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
2393         gdk_im/gdk_ic.
2394
2395 2001-03-09  Hans Breuer  <hans@breuer.org>
2396
2397         * gdk/gdk.def : updated
2398
2399         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
2400         for their palette
2401
2402         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
2403         removing
2404
2405         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
2406         removing and implemented Havoc's GdkWindow state functions; 
2407         stick/unstick only as no-op, cause I don't know how to emulate 
2408         on win32 ...
2409
2410         * gtk/gtk.def : updated
2411
2412         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
2413
2414         * gtk/gtktypeutils.c : #include <string.h>
2415
2416         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
2417
2418 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
2419
2420         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
2421         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
2422         not a boxed.
2423
2424 2001-03-09  Alexander Larsson  <alexl@redhat.com>
2425
2426         * docs/Changes-2.0.txt:
2427         Document expose event->region change and that gtk_widget_event
2428         doesn't allow passing expose events.
2429
2430         * gdk/gdkevents.h:
2431         Add region to expose event.
2432         
2433         * gdk/gdkevents.c:
2434         Handle event->region in gdk_event_copy() and gdk_event_free().
2435
2436         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
2437         Generate expose_event->region when creating expose events.
2438
2439         * gdk/x11/gdkevents-x11.c:
2440         Generate expose events with regions when translating X events.
2441
2442         * gtk/gtkcontainer.[ch]:
2443         Default expose handler that propagates expose events to NO_WINDOW
2444         children. New function gtk_container_propagate_expose()
2445
2446         * gtk/gtkwidget.[ch]:
2447         Moved gtk_widget_event implementation to gtk_widget_event_internal.
2448         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
2449         expose events. New function gtk_widget_send_expose() to send expose
2450         events. New function gtk_widget_region_intersect() to calculate
2451         window/region intersections.
2452         
2453         * gtk/gtkmain.c (gtk_main_do_event):
2454         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
2455         Use gtk_widget_send_expose() to send expose events.
2456         
2457         * gtk/gtkbin.c:
2458         * gtk/gtkbox.c:
2459         * gtk/gtkfixed.c:
2460         * gtk/gtkimagemenuitem.c:
2461         * gtk/gtklist.c:
2462         * gtk/gtkpacker.c:
2463         * gtk/gtktable.c:
2464         * gtk/gtktree.c:
2465         Remove expose handler, using the default container implementation
2466         instead.
2467         
2468         * gtk/gtkbutton.c:
2469         * gtk/gtkcheckbutton.c:
2470         * gtk/gtkeventbox.c:
2471         * gtk/gtkfixed.c:
2472         * gtk/gtkhandlebox.c:
2473         * gtk/gtklayout.c:
2474         * gtk/gtklistitem.c:
2475         * gtk/gtkmenu.c:
2476         * gtk/gtkmenubar.c:
2477         * gtk/gtkmenuitem.c:
2478         * gtk/gtknotebook.c:
2479         * gtk/gtkoptionmenu.c:
2480         * gtk/gtkpaned.c:
2481         * gtk/gtkscrolledwindow.c:
2482         * gtk/gtktogglebutton.c:
2483         * gtk/gtktoolbar.c:
2484         * gtk/gtktreeitem.c:
2485         * gtk/gtkviewport.c:
2486         Chain expose handler to parent class handler. Use
2487         gtk_container_propagate_expose() to propagate exposes.
2488
2489         * gtk/gtkclist.c (check_exposures):
2490         * gtk/gtktext.c (process_exposes):
2491         Use gtk_widget_send_expose instead of gtk_widget_event.
2492
2493 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
2494
2495         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
2496
2497 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
2498
2499         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
2500         unref the nodes.   Fixes bug #50058.
2501
2502         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
2503         "::ref_iter" to "::ref_node".
2504         (gtk_tree_model_unref_node): change "::unref_iter" to
2505         "::unref_node". Fixes bug #50064.
2506
2507 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
2508
2509         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
2510         support for invisible cells.
2511          (gtk_tree_view_bin_expose): ditto
2512
2513 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
2514
2515         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
2516         on gobjects.
2517
2518         * tests/testtreefocus.c (main): New test file.
2519
2520         * tests/testtreeview.c: update to latest glib changes.
2521
2522         * tests/testtreecolumns.c: update to latest glib changes.
2523
2524 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
2525
2526         * gtk/testgtk.c: re-enabled event watcher emission hooks.
2527
2528 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
2529
2530         * *.c: added accumulator data argument to g_signal_newc()
2531         functions.
2532
2533         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
2534         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
2535         * gtk/treestoretest.c (make_window):
2536         s/g_signal_connect/g_signal_connectc/.
2537
2538         * gtk/gtktextbuffer.c: completed signal arg fixups,
2539         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
2540
2541 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
2542
2543         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
2544         G_CONST_RETURN.
2545
2546         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
2547         ::hierarchy-changed signal when a widget changes
2548         from anchored to unanchored or vice versa.
2549         (anchored means 
2550          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
2551         Use a private flag to keep track of this efficiently.
2552
2553 2001-03-07  Havoc Pennington  <hp@redhat.com>
2554
2555         * gtk/testgtk.c (create_spins): uglify so that size request gets
2556         tested.
2557
2558         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
2559         request on values for upper/lower, completes #6152
2560
2561 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
2562
2563         * Makefile.am: Remove gtk-config-2.0 again.
2564         (Grrrr, pkg-config. And stops make loops.)
2565
2566 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
2567
2568         * gtk/gtksignal.[hc]: removed old emission hook API.
2569         
2570         * docs/Changes-2.0.txt: fixed sections.
2571         
2572         * gtk/gtktextbuffer.c: signal arg fixups.
2573
2574 2001-03-07  Havoc Pennington  <hp@redhat.com>
2575
2576         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
2577
2578         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
2579         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
2580         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
2581         validation and the redraw which is higher priority than the
2582         validation.
2583
2584 2001-03-07  Havoc Pennington  <hp@redhat.com>
2585
2586         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
2587         (gtk_entry_set_property): remove trailer
2588
2589         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
2590         (gtk_entry_get_width_chars): new functions, to set size request to 
2591         a given number of characters
2592
2593         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
2594
2595         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
2596         (gtk_dialog_get_has_separator): new function
2597         (run_delete_handler): fix to not emit "response" signal
2598         because we already did in the delete event handler installed
2599         at dialog creation time.
2600         
2601         * gtk/gtkdialog.h: add a has_separator property,
2602         add GTK_DIALOG_NO_SEPARATOR flag
2603
2604 2001-03-07  Havoc Pennington  <hp@redhat.com>
2605
2606         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
2607         off decorations for a window.
2608
2609         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
2610         changes
2611
2612         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
2613         to get location of PangoLayout inside the label, closes #51198
2614
2615         * gtk/testgtk.c (create_bbox): fix up button box usage
2616
2617         * gtk/testcalendar.c (create_calendar): fix up button box usage
2618
2619         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
2620
2621         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
2622
2623         * gtk/gtkhbbox.h: deprecations
2624
2625         * gtk/gtkvbbox.h: deprecations
2626
2627         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
2628         emulate deprecated gtk_button_box_get_spacing
2629
2630         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
2631         the "set global default" functions
2632         (struct _GtkButtonBox): remove "spacing" field, use the one from 
2633         GtkBox base class
2634
2635         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
2636
2637         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
2638         render the icon, return the missing image icon.
2639
2640         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
2641         image icon if the load fails.   
2642
2643         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
2644         when no image is found; should be the Netscape "missing image"
2645         icon eventually but for now is a random image
2646
2647         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
2648         role for the session manager
2649
2650         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
2651
2652         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
2653         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
2654
2655         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
2656
2657 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
2658
2659         * gtk/*.c: marshaller fixes.
2660         
2661         * gtk/gtkmarshal.list: extreme cleanup.
2662
2663         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
2664         param spec for now.
2665
2666         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
2667         where appliable.
2668
2669         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
2670         special cased autogenerated boxed types from gtktypebuiltins_ids.c
2671         which are not reference counted:
2672         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
2673         PangoFontDescription, GtkTreeIter and GtkTreePath.
2674
2675 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
2676
2677         * gtk/gtktreeselection.h: 
2678         * gtk/gtktreemodel.c:
2679         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
2680         file should be included directly, and gobject/gmarshal.h
2681         as well as gtk/gtkmarshal.h even can't be included directly.
2682
2683         * Makefile.am: grr, install gtk-config-2.0.
2684
2685         * gtk/testgtk.c:
2686         * gtk/simple.c:
2687         * gtk/gtkmenu.c:
2688         * gtk/gtkitemfactory.c: use g_object_connect() instead of
2689         passing "*signal*::*" args to gtk_widget_set().
2690         
2691         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
2692         
2693         * gtk/*.c: removed trailer arg from property setters and getters.
2694         macro fixups.
2695
2696 2001-03-07  Alexander Larsson  <alexl@redhat.com>
2697
2698         * gtk/gtklabel.c (set_markup): Removed warning
2699
2700 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
2701
2702         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
2703         field to allow you to hide cell renderers.
2704
2705         * gtk/gtkcellrenderer.c: Add support for invisible cells.
2706
2707         * gtk/gtktreeview.c: Add support for invisible cells.
2708
2709 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
2710
2711         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
2712         Add "clicked" signal back to columns.
2713
2714         * ChangeLog: remove conflict markers.
2715
2716 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
2717
2718         * gtk/gtkbutton.c: Add animation of activation by, on 
2719         activate, pressing the button, and adding a timeout that 
2720         releases the button after 250ms or on key release and
2721         emits ::clicked. (#51501)
2722
2723         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
2724         action area, we connect to ::clicked instead of ::activate
2725         so the dialog stays up through the animation.
2726
2727 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
2728
2729         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
2730         check the ignore_enter flag for the menu shell that
2731         the item is actually a child of, not for attached
2732         submenus. (#51536)
2733
2734 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
2735
2736         * gtk/gtkmain.c (gtk_propagate_event): Only do special
2737         special key-press grab handling for widgets within
2738         GtkWindows. Otherwise, fall through to normal case.
2739
2740         This prevents key events being sent twice to GtkInvisible
2741         widgets, which can cause all sorts of mischief.
2742
2743 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
2744
2745         * gtk/gtkmain.c (gtk_propagate_event): When a grab
2746         widget is in effect, give the grab widget a first
2747         crack at KEY_PRESS/RELEASE events. (#424)
2748
2749 2001-03-06  James Henstridge  <james@daa.com.au>
2750
2751         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
2752         offset for the window_state_event to point at window_state_event
2753         rather than no_expose_event.
2754
2755 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
2756
2757         * gtk/gtkimmodule.h: fix busted /* comment */
2758
2759 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
2760
2761         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
2762         object properties.
2763
2764 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
2765
2766         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
2767         add object properties.
2768
2769         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
2770         to add object properties.
2771
2772         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
2773         object properties.
2774
2775         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
2776         add object properties.
2777
2778         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
2779         object properties.
2780
2781 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
2782
2783         * gtk/gtktreemodel.c: renamed "child_toggled" to
2784         "has_child_toggled".
2785
2786         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
2787         handle new signal name.
2788
2789         * gtk/gtktreestore.c: Updated to handle new signal name.
2790         * gtk/gtklisttore.c: Updated to handle new signal name.
2791         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
2792
2793 2001-03-05  Alexander Larsson  <alexl@redhat.com>
2794
2795         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
2796         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
2797
2798 2001-03-05  Michael Natterer  <mitch@gimp.org>
2799
2800         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
2801         pixbuf-engine coincidentially also failed to make one of it's
2802         parent_class pointers static, causing overwriting of GtkLabel's
2803         parent_class pointer in pixbuf_style_class_init().
2804         (Will commit the fix to the pixbuf-engine too).
2805
2806 2001-03-05  Alexander Larsson  <alexl@redhat.com>
2807
2808         * gdk/gdkwindow.h:
2809         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
2810         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
2811         gdk_window_set_icon_list for net wmspec functionality.
2812
2813         * gdk/x11/gdkwindow-x11.c:
2814         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
2815         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
2816         gdk_window_set_icon_list.
2817         Added gdk_wmspec_change_state helper function and used it in the code.
2818         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
2819
2820         * gtk/gtkdialog.c (gtk_dialog_init):
2821         Set GDK_WINDOW_TYPE_HINT_DIALOG.
2822
2823         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
2824         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
2825
2826         * gtk/gtkwindow.c:
2827         new function gtk_window_set_type_hint.
2828         On realize, set type hint and modal hint.
2829
2830         * gtk/gtkwindow.h:
2831         Added type_hint field and gtk_window_set_type_hint.
2832
2833 2001-03-05  Alexander Larsson  <alexl@redhat.com>
2834
2835         * gtk/gtklabel.[ch]:
2836         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
2837         New function gtk_label_get_accel_keyval () to get the underline accelerator
2838         of the label. Setting the label pattern overrides other attributes.
2839
2840 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
2841
2842         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
2843         Added missing initializers to gtk_rc_style_init().
2844
2845 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
2846
2847         * gtk/gtktextview.c: fixed bug #51097 about setting 
2848         gtk_text_view_set_border_window_size() if the widget is 
2849         already realized.
2850
2851 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
2852
2853         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
2854
2855         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
2856         comment. Won't do to have duplicated doc comments between
2857         the platform subdirs.
2858
2859 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
2860
2861         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
2862           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
2863
2864         Detectable auto-repeat - make a repeating key generate
2865         press/press/press/release instead of press/release pairs.
2866
2867         If we have Xkb and XkbSetDectableAutoRepeat supports
2868         that, we do it that way. Otherwise, when we get
2869         a release event, we check ahead with XPending to see
2870         if the next key is a KeyPress with the same keycode
2871         and timestamp. (Not 100% reliable, but pretty close.)
2872           
2873 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
2874         
2875         * gtk/gtkmain.c (gtk_propagate_event): Only do special
2876         special key-press grab handling for widgets within
2877         GtkWindows. Otherwise, fall through to normal case.
2878  
2879         This prevents key events being sent twice to GtkInvisible
2880         widgets, which can cause all sorts of mischief.
2881  
2882 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
2883  
2884         * gtk/gtkmain.c (gtk_propagate_event): When a grab
2885         widget is in effect, give the grab widget a first
2886         crack at KEY_PRESS/RELEASE events. (#424)
2887  
2888 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
2889
2890         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
2891         to extend the selection. (Roughly based on patch
2892         from Jay Cox, #50939)
2893
2894         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
2895         to properly handle previous GDK_BUTTON_PRESS. 
2896         (Patch from Jay Cox, #50938)
2897
2898         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
2899         '\0' back along with the deleted text. (#51148)
2900
2901 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
2902
2903         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
2904         the group when extracting it from the X keyboard event.
2905
2906         * modules/input/Makefile.am modules/input/imipa.c: 
2907         Simple module for entering IPA. (Do we need a 
2908         gtk-stupid-input-tricks CVS module?)
2909
2910 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
2911
2912         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
2913         const.
2914
2915         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
2916
2917         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
2918         is no focus widget for the dialog currently, grab the focus as well
2919         as the default.
2920
2921         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
2922         the action area's children to iterate through, not the
2923         dialog's children.
2924
2925 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
2926
2927         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
2928         Add plug-socket tests. (Won't work worth a darn until I commit
2929         the rest of the plug-socket changes, but no reason these
2930         can't go into CVS now.)
2931
2932 2001-03-02  Havoc Pennington  <hp@redhat.com>
2933
2934         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
2935         _gdk_region_get_xrectangles()
2936
2937         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
2938
2939         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
2940
2941         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
2942         function, contributed by Ron Steinke    
2943
2944         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
2945         gdk_net_wm_supports
2946
2947         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
2948         New function, contributed by Ron Steinke
2949
2950         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
2951         used to line up the text in the entry when using the entry for
2952         editable sheet cell hacks
2953
2954         * gtk/testgtk.c (create_entry): test the activate_default setting
2955         on GtkEntry
2956
2957         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
2958         cause the entry to activate the default button for a dialog when 
2959         activated
2960         (gtk_entry_get_activates_default): new function
2961
2962 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
2963
2964         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
2965         Hwang to move call to sync_selection() up a few lines
2966         to before the row list is modified, to fix crash when
2967         removing rows in the undo_selection list.
2968
2969         (Test case provided by Daniel Elstner:
2970
2971         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
2972
2973 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
2974
2975         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
2976         of tree->root_tree in parent_set rather than _map(), 
2977         fixing #50892 in a bit better manner.
2978
2979 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
2980
2981         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
2982
2983 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
2984
2985         * gtk/gtkstyle.c : Remove duplicate fwd decl for
2986         gtk_default_draw_shadow.
2987
2988 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
2989
2990         * gdk/gdkimage.c (gdk_image_new): Remove excess 
2991         warning, make warnings more verbose, treat a error
2992         in shmat as permanent, and don't try again.
2993         (#51163, Ed Randall.)
2994
2995 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
2996
2997         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
2998         delay for the first click before starting to scroll.
2999         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
3000
3001         * gtk/gtktext.c: GtkText should have I-beam cursor. 
3002         (based on gtk-enf-990513-1.patch, Eric Fisher.)
3003
3004 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
3005
3006         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
3007         cleanup to remove some references to unused
3008         ->xoffset, ->yoffset.
3009
3010 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
3011
3012         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
3013         mask. (#51039, fix from Martin Maierhofer)
3014
3015 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
3016
3017         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
3018         for unshifted + and shifted = for non-us keyboards.
3019         Make <Control>+ and <Control>- work as well as 
3020         <Control>KP_Plus, <Control>KP_Minus for recursive
3021         open/close.  (#2682, René Seindal)
3022
3023 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
3024
3025         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
3026         the active menu item before deactivating the menu,
3027         so gtk_menu_popdown doesn't change the history. (#50964)
3028         
3029 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
3030
3031         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
3032         draw lines with text_gc rather than black_gc.
3033         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
3034
3035 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
3036
3037         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
3038         Move handling of buttons fully in gtktreeviewcolumn.  This code is
3039         less interrelated then it was, but it still requires the
3040         GtkTreeView to map it.
3041
3042         * test/testtreecolumn.c: Now I can add a column to one view,
3043         remove it, add it to the another view, remove it, then re-add it
3044         to the first.  Nifty.
3045
3046 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
3047
3048         * docs/tutorial/gtk-tut.sgml: Minor corrections
3049
3050 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
3051
3052         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
3053         GtkRowReference.
3054
3055 2001-02-28  Havoc Pennington  <hp@redhat.com>
3056
3057         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
3058         draw_default
3059         (gtk_widget_draw_focus): remove this function; we could instead
3060         make it just gtk_widget_draw(), but in most cases I think the
3061         result would be broken user code, so think it's better to have
3062         that code not compile and get fixed
3063         (gtk_widget_draw_default): ditto
3064
3065         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
3066         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
3067         
3068         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
3069         widgets lose/get the default, instead of calling draw_default
3070         
3071         * docs/Changes-2.0.txt: note about all this
3072
3073         Then fixed every widget in GTK, I won't list all the filenames.
3074
3075 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
3076
3077         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
3078         _gtk_tree_row_reference_deleted.
3079         (inserted_callback): Proxy out to
3080         _gtk_tree_row_reference_inserted.
3081         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
3082         get around signal emission ordering problem.
3083
3084         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
3085         fix to work with SINGLE 
3086         (_gtk_tree_selection_internal_select_node): Major sanitization on
3087         selections.  SINGLE now seems to work.
3088
3089         * tests/Makefile.am: add testtreecolumn.c:
3090
3091         * tests/testtreecolumn.c: New test.  Mostly points out selection
3092         bugs currently, but will test columns later.
3093
3094         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
3095         selection bug.  I hate touching this code -- it's scary.
3096
3097 2001-02-26  Havoc Pennington  <hp@redhat.com>
3098
3099         * gtk/testgtk.c: test the window state stuff
3100
3101         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
3102         window come to the user's attention as if it were just created
3103         (gtk_window_iconify): new function
3104         (gtk_window_deiconify): new function
3105         (gtk_window_stick): new function
3106         (gtk_window_unstick): new function
3107         (gtk_window_maximize): new function
3108         (gtk_window_unmaximize): new function
3109
3110         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
3111
3112         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
3113
3114         * gdk/x11/gdkevents-x11.c: create window state events when
3115         appropriate
3116         (gdk_wmspec_supported): new function
3117
3118         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
3119         iconification before showing the window
3120         (gdk_window_deiconify): new function
3121         (gdk_window_stick): new function
3122         (gdk_window_unstick): new function
3123         (gdk_window_maximize): new function
3124         (gdk_window_unmaximize): new function
3125
3126         * gdk/gdkwindow.c: store the window state in the window; 
3127         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
3128         window->mapped.
3129         (gdk_window_get_state): return the current window state
3130
3131         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
3132         (gdk_event_get_state): handle GDK_WINDOW_STATE
3133         (gdk_synthesize_window_state): function to create the window state
3134         events
3135
3136         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
3137         event, for changes to "window state" such as maximized, sticky, 
3138         etc.
3139         
3140         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
3141         focuses a window
3142
3143         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
3144         finds out if we support a given WM spec hint
3145
3146 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
3147
3148         * docs/faq/gtk-faq.sgml: New question re memory leaks.
3149
3150 2001-02-25  Hans Breuer  <hans@breuer.org>
3151
3152         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
3153         cause we want to loose those prototypes only in the latter case
3154
3155         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
3156         GdkPixmapImplWin32 because it itsn't derived from it. Use the
3157         impl member variable instead
3158
3159         * gtk/gtk.def : updated
3160
3161         * gtk/gtklist.c : 
3162         * gtk/gtkmenus.c : include <string.h> for memset ()
3163
3164         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
3165         for everthing built here, but for gtk-x.x.dll only. This solves
3166         problem of indifferent gtk type definitions
3167
3168 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
3169
3170         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
3171
3172 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
3173
3174         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
3175         column that is exposed.
3176
3177         (_gtk_tree_view_update_size): Changed name from set_size, and
3178         changed function to do more work, and not force people calling it
3179         to figure out the size.  Simplifies a lot of code elsewhere.
3180
3181 2001-02-23  Alexander Larsson  <alexl@redhat.com>
3182
3183         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
3184         return solid masks for xpms that have no transparent color.
3185         This makes the ..._create_from_xpm... API backwards
3186         compatible.
3187
3188 2001-02-23  Tor Lillqvist  <tml@iki.fi>
3189
3190         * README.win32: Update. Mention the gtk-1-3-win32-production
3191         branch.
3192
3193         * gdk/win32/bdfcursor.c: New file. A program that generates
3194         xcursors.h. Thanks to Stefan Ondrejicka.
3195
3196         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
3197         compact format.
3198
3199         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
3200
3201         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
3202         function, uses xcursors.h.
3203         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
3204         cursor from inline data instead of using LoadCursor() to generate
3205         it from a resource.
3206
3207         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
3208         event, must check the Windows message for mouse button state, as
3209         the GDK event state might not have been built if it is
3210         undelivered. Remove one goto.
3211
3212         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
3213         SetCursor() if the current cursor as returned by GetCursor() is
3214         the window's previous cursor. The ChildWindowFromPoint() test
3215         apparently didn't work correctly.
3216
3217         * gdk/win32/rc/*.cur: Remove.
3218
3219         * gdk/win32/rc/gdk.rc.in: Remove cursors.
3220
3221         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
3222
3223         * gtk/makefile.{mingw,msc}.in: Updates.
3224
3225 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
3226
3227         * gtk/gtktreemodel.h: add functions for signal emission.
3228
3229         * gtk/gtktreestore.c: move to use above functions instead of
3230         g_signal_emit.
3231
3232         * gtk/gtkliststore.c: ditto
3233
3234 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
3235
3236         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
3237         GObject instead of GtkObject.
3238
3239         * gtk/gtkliststore.c: ditto.
3240
3241         * gtk/gtktreemodelsort.c: ditto.
3242
3243         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
3244         GtkTreeModelIface, instead of in each model.
3245
3246 2001-02-21  Havoc Pennington  <hp@redhat.com>
3247
3248         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
3249         unbreak this function
3250
3251         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
3252         properties
3253
3254         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
3255         properties
3256
3257         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
3258         properties
3259
3260         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
3261         mean unset the max length
3262
3263 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
3264
3265         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
3266         Changed name to be set_cell_data_func to make it clear what
3267         the functino does.  Close bug #51069.
3268
3269 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
3270
3271         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
3272         have memory actually freed.  Keeps box running longer.
3273
3274 2001-02-21  Alexander Larsson  <alexl@redhat.com>
3275         
3276         * gtk/gtkseparatormenuitem.[ch]:
3277         Added new menu separator item. The drawing and size handling
3278         is still done in GtkMenuItem, but the API is a bit more sane.
3279         
3280         * gtk/Makefile.am:
3281         Add gtkseparatormenuitem.[ch].
3282
3283         * gtk/gtk.h:
3284         Add gtkseparatormenuitem.h.
3285         
3286         * gtk/gtkentry.c:
3287         * gtk/gtkmenufactory.c:
3288         * gtk/gtktextview.c:
3289         Use the new API for menu separators.
3290         
3291         * demos/gtk-demo/menus.c (create_menu):
3292         Add some GtkSeparatorMenuItem demo code.
3293
3294 2001-02-20  Havoc Pennington  <hp@redhat.com>
3295
3296         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
3297         Lee Mallabone
3298
3299         * gtk/gtkarrow.c: Convert to new property API, patch from 
3300         Lee Mallabone
3301
3302 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
3303
3304         * tests/testtreeview.c (toggled_callback): fix to reflect change
3305         in GtkTreeModelStore.
3306
3307 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
3308
3309         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
3310         function to create an icon set from a pixbuf.
3311
3312 2001-02-20  Alexander Larsson  <alexl@redhat.com>
3313
3314         * gtk/gtkcellrenderertext.[ch]:
3315         Add a "markup" property.
3316
3317         * gtk/treestoretest.c:
3318         Use the markup property, remove some leftover stuff from
3319         GtkTreeModelMapping.
3320
3321 2001-02-20  Alexander Larsson  <alexl@redhat.com>
3322
3323         * gtk/gtklabel.c (gtk_label_set_selectable):
3324         Queue a redraw if the selectable setting was changed.
3325
3326 2001-02-20  Alexander Larsson  <alexl@redhat.com>
3327
3328         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
3329         Actually copy the whole gc, not just the public parts.
3330         
3331         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
3332         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
3333         labels.
3334
3335 2001-02-19  Havoc Pennington  <hp@pobox.com>
3336
3337         * gdk/gdkwindow.c: docs
3338
3339         * gdk/gdkrgb.c: docs
3340
3341         * gdk/gdkregion-generic.c: docs
3342
3343         * gdk/gdkgc.c (gdk_gc_set_values): docs
3344
3345         * gdk/gdkdraw.c: docs
3346
3347         * gdk/gdkdrawable.h: deprecate drawable get/set data
3348
3349 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
3350
3351         * demos/gtk-demo/dialog.c: Add simple new demo.
3352
3353 2001-02-19  Havoc Pennington  <hp@redhat.com>
3354
3355         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
3356         insert_child_anchor signal, bug #50245
3357
3358         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
3359         from create_child_anchor, so the anchor is passed in
3360
3361         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
3362         (_gtk_widget_segment_new): have the child anchor object passed in, 
3363         instead of creating it.
3364
3365         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
3366         to gtk_text_buffer_get_modified
3367
3368 2001-02-19  Havoc Pennington  <hp@redhat.com>
3369
3370         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
3371         changed GLib without fixing GTK
3372
3373         * gtk/gtkrange.h: Rename all the stupid implementation detail 
3374         functions to have an underscore in front. Most of them should 
3375         probably just go away, but for starters don't export them.
3376         Bug #50482
3377
3378 2001-02-19  Havoc Pennington  <hp@redhat.com>
3379
3380         * gdk/gdkcolor.h: test was backward, so deprecated functions were
3381         excluded by default
3382
3383         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
3384         clean up the old code a bit
3385
3386         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
3387         inconsistent state
3388
3389         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
3390         draw inconsistent state
3391
3392         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
3393         (create_menu): add inconsistent test
3394
3395         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
3396         new function
3397         (gtk_check_menu_item_get_inconsistent): new function
3398         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
3399         state (using etched in for now)
3400
3401         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
3402         draw inconsistent state
3403
3404         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
3405         function, used when the user has selected a range of stuff in
3406         different states
3407         (gtk_toggle_button_get_inconsistent): accessor for that
3408         (gtk_toggle_button_paint): draw inconsistent state (etched in?
3409         don't know what else to do)
3410
3411 2001-02-19  Hans Breuer <hans@breuer.org>
3412
3413         * gtk/gtk.def : updated exported symbols
3414
3415         * gtk/makefile.msc.in : updated
3416
3417         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
3418         a colormap, when invoked from testgtk::entry. I'm not sure where
3419         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
3420         avoids immediate crashing ...
3421
3422         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
3423         any objections ?
3424
3425         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
3426         0 parameter. At least msvc doesn't like macros with var args. 
3427         I simply removed the extra 0, was it a feature or a typo ?
3428
3429         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
3430         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
3431         because the value assignment to the internal struct wasn't working.
3432         I'm not absolutely sure. The problem could have been resolved by
3433         changing the "func" declartion in the struct, but was the pointer
3434         to the function pointer intended ?
3435
3436         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
3437
3438         * gdk/gdk.def : updated exported symbols
3439
3440         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
3441         only use SetDIBitsToDevice if there is a palette at the drawable
3442         and the image is GDK_VISUAL_PSEUDO_COLOR
3443
3444         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
3445
3446         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
3447
3448         * gdk/*/makefile.msc : updated
3449
3450 2001-02-19  Havoc Pennington  <hp@redhat.com>
3451
3452         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
3453         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
3454
3455         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
3456         (gdk_key_repeat_restore): nuke
3457
3458         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
3459         (gdk_init_check): no atexit func
3460
3461         * gdk/gdkrgb.h: mark some stuff deprecated
3462
3463         * gdk/gdkcolor.h: mark some stuff deprecated
3464         
3465         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
3466
3467         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
3468
3469 2001-02-16  Havoc Pennington  <hp@redhat.com>
3470
3471         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
3472         scroll steps.
3473
3474         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
3475         steps, and add Ctrl-arrow shortcuts for paging visually as with
3476         HScale, since Page Up and Page Down move logically.
3477
3478         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
3479         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
3480         
3481         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
3482         steps
3483         (gtk_range_scroll): handle the visual steps
3484
3485         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
3486         scroll steps
3487
3488         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
3489         steps, not the logical ones.
3490
3491         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
3492         (scroll_vertical): handle up/down steps
3493
3494 2001-02-19 Alexander Larsson  <alexl@redhat.com>
3495
3496         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
3497         Copy data and free data with free().
3498
3499         * gdk-pixbuf/gdk-pixbuf.c:
3500         * gdk-pixbuf/io-jpeg.c:
3501         * gdk-pixbuf/io-png.c:
3502         Use g_try_malloc/g_free instead malloc/free.
3503         
3504         * gdk-pixbuf/test-gdk-pixbuf.c:
3505         Must... initialize... gobject...
3506         
3507         * gdk-pixbuf/pixops/timescale.c:
3508         * gtk/gtkcalendar.c:
3509         Use g_malloc instead of malloc.
3510         
3511 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
3512
3513         * gtk/testgtkrc:
3514         Comment out property assignments, these don't work yet.
3515
3516 2001-02-17  Havoc Pennington  <hp@pobox.com>
3517
3518         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
3519         bit.
3520
3521 2001-02-17  Havoc Pennington  <hp@pobox.com>
3522
3523         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
3524         shadowed variables that had broken size request in some cases,
3525         leading to bogus tooltips (#50996)
3526
3527 2001-02-06  Jon K Hellan  <hellan@acm.org>
3528
3529         Implement fast browsing of tooltips, bug #50619
3530         
3531         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
3532         and last_popdown
3533         
3534         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
3535         use_sticky_delay and last_popdown.
3536         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
3537         time of popdown.
3538         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
3539         is NULL.
3540         (gtk_tooltips_recently_shown): New static function.  Return true
3541         if < sticky_delay has elapsed since last popdown.
3542         (gtk_tooltips_event_handler): Display window after sticky_delay
3543         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
3544         since last popdown.
3545         
3546 2001-02-17  Havoc Pennington  <hp@pobox.com>
3547
3548         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
3549         instead of (). #6394
3550
3551         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
3552         G_CONST_RETURN, make it return by reference, #50473
3553         
3554 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
3555
3556         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
3557         generated ENTER_NOTIFY event with 0, otherwise not explicitely
3558         setup fields contain garbage (e.g. subwindow, breaking
3559         gdk_drawable_ref() upon event copy).
3560         (gtk_menu_stop_navigating_submenu_cb): same here.
3561
3562         * gtk/gtklist.c (gtk_list_vertical_timeout): 
3563         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
3564         * gtk/gtkclist.c (vertical_timeout): 
3565         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
3566         default-zero-intialization for unions to memset(,0,), as unions are
3567         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
3568         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
3569
3570         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
3571         g_closure_sink() warning.
3572
3573         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
3574         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
3575         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
3576         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
3577         
3578 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
3579
3580         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
3581         gtk_*_store_get, and moved to GtkTreeModel.
3582
3583         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
3584
3585         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
3586
3587         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
3588
3589         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
3590         set the func.
3591
3592         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
3593         freeze/thaw notify between setting all the properties for a cell.
3594
3595         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
3596
3597 2001-02-15  Havoc Pennington  <hp@redhat.com>
3598
3599         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
3600         the X coordinates so they're with respect to the line, rather than 
3601         with respect to the layout.
3602
3603         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
3604         Mallabone
3605
3606         * gtk/testgtk.c (create_range_controls): add vscale tests, 
3607         and inverted test
3608
3609         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
3610         #50806
3611
3612         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
3613
3614         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
3615         gtk_text_iter_is_end
3616
3617         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
3618         rename gtk_text_buffer_get_end_iter
3619
3620         * gtk/testgtk.c (create_labels): Add test for selectable
3621
3622         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
3623         the selection stuff. This code is kind of broken since it doesn't 
3624         use the theme engine.
3625
3626         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
3627         fix infinite loop and y offset problem
3628         (gdk_draw_layout_line_with_colors): fix foreground color handling
3629
3630         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
3631         that makes the label selectable.
3632         
3633         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
3634         layout when the style is set, since fonts etc. could have changed.      
3635
3636 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
3637
3638         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
3639
3640         * gtk/gtktreemodelsimple.[ch]: removed.
3641
3642 2001-02-16  Alexander Larsson  <alexl@redhat.com>
3643
3644         * gtk/gtktreemodelmapping.[ch]:
3645         New files. Implement GtkTreeModelMapping.
3646         
3647         * gtk/Makefile.am:
3648         Add gtktreemodelmapping.[ch].
3649         
3650         * gtk/gtk.h:
3651         Add gtktreemodelmapping.h
3652
3653         * gtk/treestoretest.c:
3654         Test the GtkTreeModelMapping
3655
3656 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
3657
3658         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
3659         have a demo, we might as well pass in real values.  Thanks to
3660         clahey for pointing this out.
3661
3662 2001-02-14  Havoc Pennington  <hp@pobox.com>
3663
3664         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
3665         "static" to a private function
3666         (gtk_image_menu_item_class_init): remove destroy handler,
3667         add "image" object property
3668
3669 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
3670
3671         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
3672         Add a shortcut if the window and the current clip_region doesn't
3673         overlap. This is needed when there are a lot of windows in a
3674         window. The layout test in testgtk is a good test.
3675
3676         * gdk/linux-fb/gdkwindow-fb.c:
3677         Whitespace fix.
3678
3679 2001-02-13  Sven Neumann  <sven@convergence.de>
3680
3681         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
3682
3683 2001-02-13  Alexander Larsson  <alexl@redhat.com>
3684
3685         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
3686         Don't reference last_cursor if it is null. Fixes crash when rotating
3687         the screen before having moved the mouse.
3688
3689         * gdk/linux-fb/gdkcc-fb.c: Zapp!
3690
3691         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
3692
3693         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
3694         when using 90 or 270 degrees rotation.
3695
3696 2001-02-12  Havoc Pennington  <hp@pobox.com>
3697
3698         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
3699         it always set the foreground, even if we were only using
3700         a stipple.
3701         (gdk_draw_layout_line_with_colors): new function, allow
3702         override colors
3703         (gdk_draw_layout_with_colors): new function, allow override
3704         colors
3705         (gdk_pango_layout_line_get_clip_region): function to get the clip
3706         region for a logical text range
3707         (gdk_pango_layout_get_clip_region): get the clip region for a
3708         logical text range
3709
3710         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
3711         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
3712         the right number of arguments.
3713
3714         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
3715         enhance the function to check that node data corresponds to a 
3716         view still belonging to the tree.
3717
3718         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
3719         GtkTreePath
3720         (gtk_tree_view_inserted): ditto
3721         (gtk_tree_view_child_toggled): ditto
3722
3723         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
3724         simplify this code.
3725
3726         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
3727         a PangoAttrList
3728
3729         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
3730
3731         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
3732
3733         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
3734         size in the size request 
3735         (gtk_menu_bar_size_allocate): consider toggle size here
3736
3737         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
3738         that displays a widget in the toggle slot
3739
3740         * gtk/testgtk.c: test GtkImageMenuItem
3741
3742         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
3743         
3744         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
3745         request and allocation
3746
3747         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
3748
3749         * gtk/gtkcheckmenuitem.c
3750         (gtk_check_menu_item_toggle_size_request): ditto
3751         
3752 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
3753
3754         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
3755         reference.
3756
3757         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
3758         and refuse to initialize GTK+ if they fail.
3759
3760 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
3761
3762         * configure.in: Add check for gtk-doc version.
3763
3764 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
3765
3766         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
3767         where the xpad/ypad was only being used on one side!
3768
3769 2001-02-11  Tor Lillqvist  <tml@iki.fi>
3770
3771         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
3772         function, copied from X11 version.
3773
3774         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
3775         DestroyCursor failures. The reason for the problem (despite the
3776         inconsistent messages from GetLastError()) was that
3777         DestroyCursor() cannot be called while a cursor is set in a
3778         window. Set the new cursor first and then destroy the old one.
3779         Thanks to jpe@archaeopteryx.com.
3780
3781         * gdk/win32/gdkcc-win32.c: Remove.
3782
3783         * gdk/win32/Makefile.am: Remove from here, too.
3784         
3785         * gdk/gdk.def
3786         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
3787
3788         * gtk/gtk.def
3789         * gtk/makefile.mingw.in: Updates.
3790
3791 2001-02-08  Havoc Pennington  <hp@redhat.com>
3792
3793         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
3794         add a widget to a bin that already has a child.
3795
3796         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
3797
3798         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
3799         
3800         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
3801
3802         * gdk/gdk.h: remove gdkcc.h
3803
3804         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
3805
3806         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
3807         GdkPixbuf, since the previous implementation was GdkColorContext
3808         dependent.
3809
3810         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
3811         
3812 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
3813
3814         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
3815         a sane value!
3816
3817 2001-02-08  Havoc Pennington  <hp@redhat.com>
3818
3819         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
3820         lighten them.
3821
3822 2001-02-08  Havoc Pennington  <hp@redhat.com>
3823
3824         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
3825         validation idle
3826
3827         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
3828         cell renderer
3829
3830         * demos/pixbuf-demo.c (timeout): remove deprecated
3831         gtk_widget_draw
3832
3833         * demos/testpixbuf-save.c (main): remove deprecated
3834         gtk_drawing_area_size
3835
3836         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
3837         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
3838         at the start of the allocation.
3839         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
3840         unsetup or NULL model.
3841
3842         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
3843         even/odd/sorted cells in the tree view.
3844
3845         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
3846         bugfixes
3847
3848         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
3849         backgrounds with draw_flat_box using different detail for even/odd
3850         rows.
3851
3852         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
3853         row, so we can draw the alternating colors thing
3854
3855         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
3856         property from a synonym property, notify for the synonym.
3857         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
3858         (gtk_text_tag_get_property): Always return the font, even if
3859         all its fields aren't set
3860
3861         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
3862         store the attr list; it leaves us with no way to change attributes
3863         in _render according to the render flags, and no way to implement
3864         get_property. Instead store all the specific text attributes. 
3865         Separate whether an attribute is enabled from its value. Sync all
3866         properties with GtkTextTag, make them all consistent, etc.
3867
3868         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
3869         renderers can highlight the sort row/column     
3870
3871         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
3872         accessor functions to get values; this has the side effect of
3873         showing up which accessor functions were missing. Added those.
3874
3875         * gtk/gtktreeviewcolumn.h: Replace set_justification with
3876         set_alignment, to be consistent with GtkLabel, GtkMisc
3877
3878         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
3879         arrow.
3880
3881         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
3882
3883         * gtk/gtktreesortable.h: updates in here
3884
3885 2001-02-07  Sven Neumann  <sven@convergence.de>
3886
3887         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
3888         pango dimensions after painting the background. We used to draw
3889         gigantic flat boxes here.
3890
3891 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
3892
3893         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
3894         error introduced with earlier commit) (pointed out by
3895         Ollie Lho)
3896
3897 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
3898
3899         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
3900         which are no longer necessary.
3901
3902 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
3903
3904         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
3905
3906 2001-02-04  Tor Lillqvist  <tml@iki.fi>
3907
3908         * gdk/gdk.def
3909         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
3910         Provide dummy implementations.
3911
3912 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
3913
3914         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
3915
3916         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
3917         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
3918         deprecated this function.
3919
3920         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
3921         argument.
3922
3923 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
3924
3925         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
3926
3927 2001-02-03  Havoc Pennington  <hp@pobox.com>
3928
3929         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
3930         Mikael Hermansson with patch from Mikael (if there was a toggle
3931         start one after the first character in the range, this function
3932         was broken). Bug #50380
3933
3934 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
3935
3936         * configure.in: Remove confusing comment about X11.
3937
3938 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
3939
3940         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
3941         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
3942         
3943 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
3944
3945         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
3946         it breaks things on BSD. If you want to compile GTK+ with
3947         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
3948         when configuring, since GTK+ simply can't be "pure ANSI" 
3949         in the header files it uses. (#8170, Greg Hudson)
3950
3951 2001-02-02  Havoc Pennington  <hp@redhat.com>
3952
3953         * gtk/gtkwindow.c: docs
3954
3955         * gtk/gtkwidget.c: docs
3956         (gtk_widget_set_colormap): add a reference to the colormap
3957         (gtk_widget_get_default_colormap): add a reference to the colormap
3958
3959         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
3960
3961         * gtk/gtktextiter.c: docs
3962
3963         * gtk/gtkmain.c (gtk_propagate_event): docs
3964
3965         * gtk/gtkpaned.c (gtk_paned_get_position): docs
3966         (gtk_paned_set_position): docs
3967
3968         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
3969         sort interface, no implementation yet.
3970
3971         * demos/testpixbuf.c (new_testrgb_window): replace
3972         gtk_drawing_area_size() with gtk_widget_set_usize()
3973
3974         * demos/testpixbuf-drawable.c (main): ditto
3975         
3976         * gtk/testgtk.c: remove use of GtkStatusbarMsg
3977
3978         * gtk/gtktextbuffer.c: docs
3979
3980         * gtk/gtkstock.c: docs
3981
3982         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
3983
3984         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
3985
3986         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
3987         
3988         * gtk/gtkimage.c: add some docs in here
3989         (gtk_image_size_request): change name of
3990         gtk_widget_render_stock_icon
3991         (gtk_image_get_icon_set): don't dup returned string
3992         (gtk_image_get_icon_set): don't dup returned string
3993
3994         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
3995         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
3996         and gtkiconfactory.h functions
3997
3998         * gtk/gtkiconfactory.c: add some docs in here
3999
4000         * gtk/gtkmain.c (gtk_get_default_language): document
4001         (gtk_get_current_event): document
4002         (gtk_get_current_event_state): document
4003         (gtk_get_event_widget): document
4004
4005         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
4006
4007         * gtk/gtkcontainer.c: Add some documentation
4008         (gtk_container_add): give a more explanatory warning on adding an
4009         already-parented widget, this is kind of a FAQ and also a common
4010         typo that's easier to debug with a nice warning 
4011
4012         * gtk/gtkcellrenderertoggle.c
4013         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
4014         adding this, it's useless
4015         (gtk_cell_renderer_toggle_set_active): remove
4016         (gtk_cell_renderer_toggle_get_radio): add
4017
4018         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
4019         the NULL cell renderer, that doesn't make any sense to me. 
4020
4021         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
4022         demo code should never use deprecated features.
4023
4024         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
4025         code should never use deprecated features.
4026
4027         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
4028         gtk_widget_queue_clear_area deprecated
4029
4030         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
4031         deprecated
4032
4033         * gtk/gtklabel.h: mark gtk_label_get() deprecated
4034
4035         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
4036         a GdkImage deprecated, replaced by new consistently-named
4037         functions       
4038
4039         * gtk/gtkmain.h: Mark gtk_exit() deprecated
4040
4041         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
4042
4043         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
4044         deprecated
4045
4046         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
4047         so it won't appear in docs and confuse people.
4048
4049         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
4050
4051         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
4052         macros deprecated. (can't mark the type itself deprecated, since
4053         GtkProgressBar is not deprecated and we need the type decl to use
4054         GtkProgressBar)
4055
4056         * gtk/gtkpixmap.h: Mark deprecated
4057
4058         * gtk/gtkoldeditable.h: Mark deprecated
4059
4060         * gtk/gtklist.h: Mark deprecated
4061
4062         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
4063         for anything anymore.
4064
4065         * gtk/gtkctree.h: Mark deprecated
4066
4067         * gtk/gtkclist.h: Mark deprecated
4068
4069         * gtk/gtkpreview.h: Mark deprecated
4070
4071         * gtk/gtkpacker.h: Mark deprecated
4072
4073         * gtk/gtktipsquery.h: Mark deprecated
4074
4075         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
4076
4077         * gtk/gtkvruler.h: Add comment that it will move out of GTK
4078
4079         * gtk/gtkhruler.h: Add comment that it will move out of GTK
4080
4081         * gtk/gtkruler.h: Add comment that it will move out of GTK
4082
4083         * gtk/gtkgamma.h: Add comment that it will move out of GTK
4084
4085         * gtk/gtkcurve.h: Add comment that it will move out of GTK
4086
4087 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
4088
4089         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
4090         gdk_colormap_sync private since it was never exported
4091         in a header file.
4092
4093         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
4094         colormap->colors[] for StaticGray, StaticColor colormaps.
4095
4096         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
4097         was being used as if it was image->bits_per_pixel.
4098
4099         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
4100         for the image in the GdkImage structure since it isn't
4101         reconstructable, and we need it to handle packed types
4102
4103         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
4104         the assumption that on Win32 image->bits_per_pixel == image->depth,
4105         always.
4106
4107         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
4108
4109         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
4110         warning message if no converter can be found. 
4111
4112 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
4113
4114         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
4115         chars to isupper() / tolower(). (#567)
4116
4117         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
4118         to clear up 64-bit warnings. (#567)
4119
4120 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
4121
4122         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
4123         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
4124
4125         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
4126         since some people set $(libdir) separately. (#1290, David Kaelbling)
4127
4128 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
4129
4130         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
4131         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
4132         MAXPATHLEN, but the code here depends on a fixed value.)
4133         (#4524)
4134
4135 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
4136
4137         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
4138         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
4139
4140 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
4141
4142         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
4143         viewable there is no way that moving the node will cause the 
4144         focus row to become not viewable, so omit check on the visibility
4145         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
4146
4147 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
4148
4149         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
4150         selection before inserting new text.
4151
4152 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
4153
4154         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
4155         Make the sensitivity of the reparented child track that of
4156         the original parent menu item. (#34218, David Hodson)
4157
4158         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
4159         the case where the current item is destroyed properly.
4160
4161         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
4162         some edge cases with child-less menuitems.
4163         
4164 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
4165
4166         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
4167         key pop down window. (#12074, Jon K Hellan)
4168
4169 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
4170
4171         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
4172         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
4173         The solution here isn't perfect - you get an extraneous
4174         emission of "toggle", which could conceivably confuse an app,
4175         but better than the current situation. LXR search seems to
4176         indicate that no apps in GNOME CVS connect to "toggle".
4177
4178 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
4179
4180         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
4181         gtk_public_h_sources to directly here to avoid warning when
4182         building srcdir != builddir. (#9656)
4183
4184 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
4185
4186         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
4187         handlers in gtkrange.c return the proper values (TRUE == handled)
4188         (#10316).
4189
4190         This is just the tip of the iceberg, but gtkrange.c is the
4191         most common place where the propagation is problematical,
4192         and also a place where it is almost certainly safe to change
4193         this in the stable branch.
4194
4195         (You don't want right click popups on a range control or anything...)
4196
4197 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
4198
4199         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
4200         area on focus out, even if a background pixmap isn't set.
4201         (#13941)
4202         
4203 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
4204
4205         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
4206         to deal with setting the shape properly when scrolling arrows are
4207         turned on, but not visible because there is sufficient space.
4208         (#13432)
4209
4210 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
4211
4212         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
4213         items with submenus, destroy the item along with the submenu.
4214         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
4215         properly.
4216
4217         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
4218         later.
4219
4220 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
4221
4222         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
4223         the focus widget sometimes wasn't drawn with the default if there
4224         was no default widget.
4225
4226         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
4227         unreference pixmaps. 
4228
4229         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
4230         for some extra safety.
4231
4232 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
4233
4234         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
4235         the text of a cell to the old pointer value better, by
4236         copying the new text before freeing the old text. Some code
4237         cleanup. (#8079, Karl Nelson)
4238
4239 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
4240
4241         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
4242         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
4243
4244 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
4245
4246         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
4247         item from a menu, check to see if it matches 
4248         menu->old_active_menu_item, and if so, unref and clear
4249         old_active_menu_item (Patch from Pavel Cisler)
4250
4251         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
4252         menu_shell->active_menu_item, if it is the child being
4253         removed. (Patch based on that of Gene Ragan, #50337)
4254
4255 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
4256
4257         * gdk/linux-fb/gdkselection-fb.c: 
4258         * gdk/linux-fb/gdkcolor-fb.c: 
4259         * gdk/linux-fb/gdkdrawable-fb2.c: 
4260         * gdk/linux-fb/gdkfont-fb.c: 
4261         * gdk/linux-fb/gdkim-fb.c: 
4262         * gdk/linux-fb/gdkinput.c: 
4263         * gdk/linux-fb/gdkkeyboard-fb.c: 
4264         * gdk/linux-fb/gdkmain-fb.c: 
4265         * gdk/linux-fb/gdkrender-fb.c: 
4266         A bunch of whitespace cleanup.
4267         
4268 2001-01-30  Havoc Pennington  <hp@pobox.com>
4269
4270         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
4271         #ifdef GTK_ENABLE_BROKEN.
4272
4273         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
4274         GTK_ENABLE_BROKEN just before including the broken headers.
4275         
4276         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
4277         deprecated types registered.
4278
4279         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
4280         we have to test the broken stuff.
4281
4282         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
4283         
4284 2001-01-30  Havoc Pennington  <hp@redhat.com>
4285
4286         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
4287         here where prev pointer was set to the wrong thing
4288
4289         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
4290         (gtk_tree_path_is_descendant): new function
4291
4292         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
4293         cached length
4294         (gtk_list_store_get_iter): don't modify iter if we can't get the
4295         path.
4296
4297         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
4298         
4299         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
4300         GtkTreeDragDest
4301
4302         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
4303         was causing segfault
4304
4305         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
4306         pointer to NULL
4307
4308         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
4309
4310         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
4311         on returning FALSE
4312         (gtk_list_store_iter_children): ditto
4313         (gtk_list_store_iter_nth_child): ditto
4314         (gtk_list_store_iter_nth_child): ditto
4315         (gtk_list_store_iter_parent): ditto
4316
4317         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
4318         on iter->user_data != NULL instead of silently accepting it.
4319         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
4320         we are returning TRUE.
4321         (gtk_tree_store_iter_children): ditto
4322         (gtk_tree_store_iter_nth_child): ditto
4323         (gtk_tree_store_iter_parent): ditto
4324         (gtk_tree_store_insert): remove handling of parent->user_data ==
4325         NULL, replace with parent == NULL       
4326
4327         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
4328         and a comment explaining things
4329
4330         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
4331         interface support to GtkTreeStore.
4332
4333         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
4334         FALSE if no prev, fix
4335
4336         * gtk/gtktreeview.c (set_source_row): use a row reference
4337         (set_dest_row): use a row reference
4338
4339 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
4340
4341         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
4342         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
4343         (gtk_tree_selection_select_iter): The same as above.
4344
4345 2001-01-26  Havoc Pennington  <hp@redhat.com>
4346
4347         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
4348         which holds a handle to a specific row (particular set of values
4349         in the model, i.e. pointer-identity row).
4350
4351         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
4352         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
4353         Still need to use it for the src/dest row saved on the drag context.
4354
4355 2001-01-26  Havoc Pennington  <hp@redhat.com>
4356
4357         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
4358
4359         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
4360         not offset by TREE_VIEW_HEADER_HEIGHT
4361         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
4362         TREE_VIEW_HEADER_HEIGHT
4363
4364         * configure.in (included_loaders): for me, --with-included-loaders
4365         generates the error "the specified loader yes does not exist",
4366         i.e. the arg defaults to "yes", so change test for value ""
4367         to test for value "yes", and include all loaders in that case.
4368
4369         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
4370
4371         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
4372         handle TREE_VIEW_VERTICAL_SEPARATOR
4373         (gtk_tree_view_bin_expose): fix to consider the row offset as
4374         pointing halfway into vertical separator.       
4375         (gtk_tree_view_draw_node_focus_rect): ditto
4376
4377         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
4378         --gtk-debug=updates, which causes gdk_window_set_debug_updates
4379         (TRUE) to be called.
4380
4381         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
4382         debug mode where the invalid region is colored in on invalidate,
4383         so you can see the flicker and know whether your redraw code is 
4384         doing a good job.
4385
4386         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
4387         tree window coordinates (clip rect is in tree window coords)
4388
4389         * gtk/Makefile.am: add gtktreednd.[hc]
4390
4391         * gtk/gtkliststore.c: implement gtktreednd interfaces.
4392
4393         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
4394         drag-and-drop data operations on a model (so we can set up tree
4395         drag-and-drop automatically)
4396
4397         * gtk/testgtk.c: Add a window to change sensitivity in the
4398         GtkLabel test; add a way to change the entry frame in GtkEntry
4399         test
4400
4401         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
4402         (gtk_entry_get_has_frame): new functions to remove the frame
4403         around an entry
4404         (gtk_entry_size_request): shrink requisition if no frame
4405         (gtk_entry_draw_focus): don't draw frame if no frame
4406
4407         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
4408         checks inside a cell renderer
4409         (gtk_default_draw_option): ditto for options
4410
4411         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
4412         children from the alignment, not the button
4413         (gtk_tree_view_column_init): ref/sink the column, to emulate
4414         GObject refcounting.
4415
4416         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
4417         
4418         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
4419         Use theme functions to draw the toggles 
4420
4421         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
4422
4423         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
4424         GdkPangoAttrEmbossed to use in rendering insensitive text
4425
4426         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
4427
4428         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
4429         using new GDK features
4430         
4431 2001-01-24  Alexander Larsson  <alexl@redhat.com>
4432
4433         * gtk/gtkimage.c:
4434         Splitted gtk_image_clear into gtk_image_clear() and
4435         gtk_image_reset(). Call gtk_image_clear() in ::destroy
4436         to avoid leaks.
4437
4438         * gtk/gtklabel.c (set_markup):
4439         Don't leak text.
4440
4441         * gtk/gtktextlayout.c:
4442         Always free display->shaped_objects.
4443
4444         * gtk/testgtk.c (create_clist):
4445         Don't leak custom style.
4446
4447 2001-01-23  Alexander Larsson  <alexl@redhat.com>
4448
4449         * gtk/gtkcolorsel.c (grab_color_at_mouse):
4450         Don't leak image. Simplify using gdk_colormap_query_color().
4451         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
4452
4453         * linux-fb/gdkcolor-fb.c:
4454         Implemented gdk_colormap_query_color.
4455
4456 2001-01-23  Alexander Larsson  <alexl@redhat.com>
4457
4458         * linux-fb/gdkcursor-fb.c:
4459         Don't leak built-in cursors.
4460
4461         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
4462         Don't leak tmp_points.
4463
4464         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
4465         Don't modify desc. Don't leak font if the PangoFont
4466         isn't found.
4467         
4468         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
4469         Free dash_list.
4470
4471         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
4472         Don't leak string.
4473         
4474 2001-01-20  Havoc Pennington  <hp@pobox.com>
4475
4476         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
4477         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
4478         me, matches Pango
4479
4480 2001-01-22  Havoc Pennington  <hp@redhat.com>
4481
4482         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
4483
4484         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
4485
4486         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
4487         Remove, move back to gdk-pixbuf
4488
4489         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
4490         to all the word functions
4491
4492         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
4493         before doing anything on NULL layout or if we don't have the focus
4494
4495         * gtk/testtext.c (fill_example_buffer): "justification"
4496
4497         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
4498         to be called "justification" not "justify"
4499
4500         * demos/gtk-demo/textview.c (create_tags): "justification"
4501         
4502         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
4503
4504 2001-01-22  Alexander Larsson  <alexl@redhat.com>
4505
4506         * gdk/gdkwindow.c (gdk_window_invalidate_region):
4507         Don't leak visible_region. Use visible_region instead of region.
4508         
4509         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
4510         Don't do extra gdk_drawable_ref(). This is not X.
4511         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
4512         gdk_fb_focused_window is ref:ed.
4513         (gdk_fb_window_send_crossing_events): Watch out for destroyed
4514         windows.
4515
4516 2001-01-22  Alexander Larsson  <alexl@redhat.com>
4517
4518         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
4519         Don't leak the PangoFontDescriptor.
4520
4521 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
4522
4523         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
4524         when not realized.
4525         (gtk_tree_view_scroll_to_cell): Make work when not realized.
4526         (gtk_tree_view_realize): add scroll_to support
4527         (gtk_tree_view_finalize): add a finalize method.  Populate.
4528         (gtk_tree_view_insert_column): ref and sink the column.
4529         (gtk_tree_view_append_column): ref and sink the column.
4530         (gtk_tree_view_queue_draw_node): New function to handle redrawing
4531         individual nodes.  Should make the code much more efficient, if
4532         actually used.
4533
4534 2001-01-19  Havoc Pennington  <hp@redhat.com>
4535
4536         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
4537         byte_offset variable was being used to mean both "offset into
4538         layout" and "offset into buffer line" which was no longer true
4539         with addition of preedit string; fix
4540
4541 2001-01-19  Havoc Pennington  <hp@redhat.com>
4542
4543         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
4544
4545         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
4546         function
4547
4548         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
4549         implement
4550
4551         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
4552         scroll_to_cell, matches TextView scroll functions better
4553         (gtk_tree_view_tree_to_widget_coords): new function
4554         (gtk_tree_view_widget_to_tree_coords): new function
4555         (gtk_tree_view_get_visible_rect): new function
4556         (gtk_tree_view_get_path_at_pos): accept negative coordinates
4557         (gtk_tree_view_draw_node_focus_rect): new function moved from
4558         draw_focus, also, use width of bin_window as width of the focus
4559         rect
4560         (gtk_tree_view_expand_row): fix bug where it didn't recognize
4561         already-expanded rows
4562         (gtk_tree_view_get_cell_rect): new function
4563         (gtk_tree_view_get_path_at_pos): return the click position
4564         relative to the passed-in cell
4565         (gtk_tree_view_set_expander_column): new function
4566
4567         * configure.in: remove gtk-config-2.0 chmod
4568
4569         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
4570         and properly handle drags with targets we don't understand
4571         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
4572         scrolling anyway
4573         (gtk_text_view_drag_drop): stop scrolling here though, and set the
4574         mark invisible
4575
4576         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
4577         function
4578         (gtk_drag_dest_get_target_list): new function
4579         (gtk_drag_dest_set_target_list): new function
4580         
4581         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
4582
4583         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
4584         related to drag-and-drop
4585
4586 2001-01-19  Alexander Larsson  <alexl@redhat.com>
4587
4588         * gdk/linux-fb/gdkprivate-fb.h:
4589         Define EMULATE_GDKFONT.
4590         Add extra pango_font stuff to GfkFontPrivate.
4591         
4592         * gdk/linux-fb/gdkdrawable-fb2.c:
4593         * gdk/linux-fb/gdkfont-fb.c:
4594         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
4595         emulation using PangoFont.
4596
4597 2001-01-17  Havoc Pennington  <hp@pobox.com>
4598
4599         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
4600         all the non-deprecated set_foo functions. Added missing object
4601         properties, and added g_object_notify() to setters. 
4602         Wrote docs.
4603         
4604 2001-01-18  Tor Lillqvist  <tml@iki.fi>
4605
4606         * gtk/gtkmain.c
4607         * gtk/gtkrc.c: (Win32) Use the new
4608         g_win32_get_package_installation_(sub)directory() functions.
4609
4610         * config.h.win32.in: New file.
4611         
4612         * config.h.win32: Removed.
4613
4614         * configure.in: Output config.h.win32.
4615
4616         * Makefile.am: Add it to EXTRA_DIST.
4617
4618         * gtk/gtk.def: Update.
4619
4620 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
4621
4622         * gtk/gtklabel.c (gtk_label_size_request): Set the
4623         attributes onto the PangoLayout even if they are newly
4624         created from label->pattern.
4625
4626 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
4627
4628         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
4629
4630         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
4631         structures in functions. Fixes bug where gtk_dataset_*
4632         was accidentally still being used in one place, causing
4633         every dest side event to be treated independently.
4634
4635         * gtk/gtkdnd.c: Remove last vestages of handling
4636         ::draw (fixes warning)
4637         
4638         * gtk/gtkentry.[ch]: Add drag and drop support.
4639
4640         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
4641         new function gtk_check_drag_threshhold() for checking
4642         to check if (dx,dy) has exceeded the threshhold for starting
4643         a drag and use it everywhere.
4644
4645 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
4646
4647         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
4648         add -I{includedir}/gtk-2.0.
4649
4650         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
4651         gdk/gdk-pixbuf.h: Doc fixups.
4652         
4653         * gtk/gtkobject.h: Remove trailing , from enum
4654
4655 2001-01-17 Alexander Larsson <alexl@redhat.com> 
4656
4657         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
4658         Doh! Mixed up x and y.
4659
4660         * gdk/linux-fb/gdkglobals-fb.c:
4661         Removed gdk_fb_pointer_grab_window_events,
4662         added _gdk_fb_pointer_grab_owner_events and
4663         _gdk_fb_keyboard_grab_owner_events.
4664
4665         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
4666         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
4667         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
4668         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
4669         Send crossing events after ungrab finished.
4670         (gdk_keyboard_grab): Set ..._owner_events
4671         (type_masks): Move out of function.
4672         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
4673         gdk_fb_keyboard_event_window): New functions, return the
4674         window an event should be targeted at. Handles grabs and
4675         event propagation. Can return NULL.
4676         (gdk_event_make): Remove event_mask checking. Now always
4677         returns an event.
4678                 
4679         * gdk/linux-fb/gdkkeyboard-fb.c:
4680         * gdk/linux-fb/gdkproperty-fb.c:
4681         * gdk/linux-fb/gdkselection-fb.c:
4682         Use new event_window/gdk_event_make() behaviour.
4683         
4684         * gdk/linux-fb/gdkmouse-fb.c:
4685         Use new event_window/gdk_event_make() behaviour.
4686         Only send motion events if in the same window.
4687         If grabbed, use cursor from window if sibling of grabbed
4688         window, and cursor from grabbed window otherwise.
4689
4690         * gdk/linux-fb/gdkprivate-fb.h:
4691         Update gdk_fb_window_send_crossing_events, gdk_event_make
4692         and grab varaible declarations. Add gdk_fb_*_event_window().
4693
4694         * gdk/linux-fb/gdkwindow-fb.c:
4695         Use new event_window/gdk_event_make() behaviour.
4696         Keep correct track of focus window.
4697         (gdk_window_set_events): Set all specific button motion masks
4698         if GDK_BUTTON_MOTION_MASK set.
4699
4700         * gtk/gtkdnd.c (gtk_drag_update):
4701         Free info->last_event if gdk_drag_motion returned FALSE.
4702
4703 2001-01-16  Tor Lillqvist  <tml@iki.fi>
4704
4705         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
4706         Eliminate redraws when input-only windows are shown or
4707         hidden. Thanks to jpe@archaeopteryx.com.
4708
4709 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
4710
4711         * docs/faq/gtk-faq.sgml: FAQ update:
4712           - Update to bugzilla
4713           - Add GTK+ and security/SUID/SGID
4714           - Add DnD question
4715
4716 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
4717
4718         * gdk/linux-fb/gdkdnd-fb.c:
4719         Some cleanups.
4720         
4721 2001-01-15  Havoc Pennington  <hp@pobox.com>
4722
4723         * tests/testtreeview.c: add test stuff for CellRendererToggle
4724
4725         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
4726         accessor
4727
4728         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
4729         only toggle on button press (would do release like GtkButton, but
4730         we'd need implicit grab code for treeview cells)
4731
4732 2001-01-16  Tor Lillqvist  <tml@iki.fi>
4733
4734         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
4735
4736         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
4737         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
4738
4739         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
4740         to g_{locale,filename}_{to,from}_utf8 to match current API.
4741
4742         * gtk/makefile.msc.in (gtk_OBJECTS)
4743         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
4744
4745         * gtk/gtk.def: Update.
4746
4747 2001-01-15  Tor Lillqvist  <tml@iki.fi>
4748
4749         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
4750         implementaion that more closely mimics the events that an X server
4751         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
4752         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
4753         with nested preview widgets, for instance, more responsive when
4754         you move the mouse quickly into them.
4755         (find_window_for_pointer_event): Make it actually compile.
4756         (gdk_event_translate): Set send_event to the value of
4757         InSendMessage (). This doesn't really mean the same as X11's
4758         send_event flag, but is close enough, says jpe@archaeopteryx.com
4759
4760 2001-01-15  Alexander Larsson  <alexl@redhat.com>
4761
4762         * gdk/linux-fb/gdkdnd-fb.c:
4763         Implemented drag and drop.
4764         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
4765         when it tries to free and then copy the same event (info->last_event).
4766         I am not sure about why this happens, but will continue looking.
4767
4768 2001-01-15  Alexander Larsson  <alexl@redhat.com>
4769
4770         * gdk/linux-fb/gdkwindow-fb.c:
4771         Use gdk_window_invalidate_rect instead of
4772         gdk_window_invalidate_rect_clear to minimise flashing.
4773         When hiding windows you need to clear the root window though.
4774
4775 2001-01-15  Alexander Larsson  <alexl@redhat.com>
4776
4777         * gdk/linux-fb/gdkdrawable-fb2.c:
4778         For optization, add an full_shapes argument to gdk_fb_clip_region.
4779         If this is false, only the cliprects of the shapes are used.
4780
4781         * gdk/linux-fb/gdkprivate-fb.h:
4782         Export gdk_fb_window_peek_shape.
4783         Add full_shapes to gdk_fb_clip_region.
4784
4785         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
4786         When moving a window, don't clear everything under the it, just the
4787         root window. Makes stuff faster and flash less.
4788         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
4789         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
4790         offset of the shape.
4791         
4792
4793 2001-01-12  Havoc Pennington  <hp@redhat.com>
4794
4795         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
4796         current invalid region, fixes redraw bug while scrolling the 
4797         text widget
4798
4799         * gtk/gtktextview.c, gtk/gtktextview.h:
4800         Rearrange the scrolling/validation/etc. code in a major way, 
4801         so it seems to make sense to me. Probably isn't genuinely that
4802         much better, but...
4803
4804         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
4805         notifies
4806
4807         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
4808
4809 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
4810
4811         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
4812         Hide mouse pointer while rotation. Show it afterwards.
4813
4814 2001-01-12  Alexander Larsson  <alexl@redhat.com>
4815
4816         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
4817         windows in consideration when generating clip region.
4818
4819         * gdk/linux-fb/gdkfb.h:
4820         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
4821
4822         * gdk/linux-fb/gdkprivate-fb.h:
4823         Add shape to GdkWindowFBDatat.
4824         exported gdk_fb_window_get_abs_shape().
4825         removed gdk_fb_draw_lines declaration.
4826
4827         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
4828         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
4829         send focus changes when there is a grabbed window.
4830         (gdk_window_get_pointer): Handle shaped windows.
4831         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
4832         (gdk_fb_window_peek_shape): Returns the shape for a window,
4833         handles GDK_FB_USE_CHILD_SHAPE.
4834         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
4835         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
4836         (gdk_window_shape_combine_mask): Implement.
4837
4838         * gtk/gtkwindow-decorate.c:
4839         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
4840         setting the shape of a window makes the window transparent.
4841
4842 2001-01-11  Havoc Pennington  <hp@redhat.com>
4843
4844         * gtk/gtktreemodelsimple.h: Oops, broke some macros
4845
4846 2001-01-10  Havoc Pennington  <hp@redhat.com>
4847
4848         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
4849         add this function, bug 40251
4850
4851         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
4852         of type macro   
4853
4854 2001-01-11  Alexander Larsson  <alexl@redhat.com>
4855
4856         * acconfig.h:
4857         Added ENABLE_SHADOW_FB
4858
4859         * configure.in:
4860         Added --disable-shadowfb
4861
4862         * gdk/linux-fb/gdkcursor-fb.c:
4863         Update shadowfb when updating cursor
4864
4865         * gdk/linux-fb/gdkdrawable-fb2.c:
4866         Added wrappers for shadowfb that calls  the normal drawable
4867         methods, but calls gdk_shadow_fb_update(bounding box) when
4868         GdkWindows are drawed to.
4869         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
4870         which also returns the bounding box.
4871
4872         * gdk/linux-fb/gdkfb.h:
4873         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
4874
4875         * gdk/linux-fb/gdkgeometry-fb.c:
4876         Update shadowfb when scrolling window.
4877
4878         * gdk/linux-fb/gdkglobals-fb.c:
4879         Add _gdk_fb_screen_angle.
4880         
4881         * gdk/linux-fb/gdkkeyboard-fb.c:
4882         Test code for screen rotation. Shift-F2 in the xlate driver
4883         rotates the screen.
4884
4885         * gdk/linux-fb/gdkmain-fb.c:
4886         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
4887
4888         * gdk/linux-fb/gdkmouse-fb.c:
4889         Use fb_width/height instead of modeinfo.xres/yres.
4890
4891         * gdk/linux-fb/gdkprivate-fb.h:
4892         Added fb_men, fb_width, fb_height & fb_stride. When using
4893         shadow fb these can differ from the framebuffer stuff.
4894         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
4895         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
4896         _gdk_fb_screen_angle. Removed CM, RP.
4897
4898         * gdk/linux-fb/gdkrender-fb.c:
4899         Added code for shadowfb handling and screen rotation using
4900         shadowfb.
4901
4902         * gdk/linux-fb/gdkwindow-fb.c:
4903         Use fb_mem, fb_stride, fb_width, fb_height.
4904         Added recompute_rowstride to reset the rowstride of all windows.
4905         Added gdk_fb_recompute_all() which recomputes rootwindow size,
4906         window abs positions and window rowstrides. Usefull when the
4907         rotation has changed.
4908
4909 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
4910
4911         * docs/faq/gtk-faq.sgml: update to make web site updating easier
4912
4913 2001-01-10  Havoc Pennington  <hp@redhat.com>
4914
4915         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
4916         where sibling == iter
4917         (gtk_tree_store_insert_after): handle sibling == iter
4918         (gtk_tree_store_prepend): remove stamp checks
4919         (gtk_tree_store_insert_before): ditto
4920         (gtk_tree_store_append): ditto
4921         (gtk_tree_store_get_path): ditto
4922         (gtk_tree_store_get_value): ditto
4923         (gtk_tree_store_iter_has_child): ditto
4924         (gtk_tree_store_iter_n_children): ditto
4925         (gtk_tree_store_iter_nth_child): ditto
4926         (gtk_tree_store_insert_after): ditto
4927         (gtk_tree_store_is_ancestor): ditto
4928         (gtk_tree_store_iter_depth): ditto
4929         (gtk_tree_store_insert_before): assert that sibling's parent is
4930         the same as the passed-in parent
4931         (gtk_tree_store_insert_after): assert that sibling's parent is
4932         the same as the passed-in parent
4933
4934         
4935         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
4936         function to get the first iterator in a model
4937         
4938         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
4939         conventionally the "root" in this sense is just NULL afaict.
4940
4941         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
4942         where sibling == iter
4943         (gtk_list_store_insert_after): handle case where sibling == iter
4944
4945         * tests/testtreeview.c (run_automated_tests): fairly lame basic
4946         automated tests for ListStore, TreeStore
4947
4948         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
4949         (gtk_list_store_insert): update tail pointer, and fix it to work
4950         (gtk_list_store_insert_before): update tail pointer, and fix it to work
4951         (gtk_list_store_append): use tail to be faster
4952         (gtk_list_store_prepend): fix it, update tail pointer
4953         (gtk_list_store_insert_after): fix it, update tail pointer
4954
4955         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
4956         the list
4957
4958 2001-01-09  Havoc Pennington  <hp@redhat.com>
4959
4960         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
4961         is NULL due to a pending resize
4962
4963         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
4964         column width to values less than 1
4965
4966         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
4967         width to be between min/max width, and still set the width 
4968         even if autosize is turned on, so the tree view can use this 
4969         function in order to autosize.
4970         (gtk_tree_view_column_init): set initial width to 1 not 0
4971
4972         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
4973         setter function to modify column width, so we get notification
4974         (gtk_tree_view_insert_iter_height): ditto
4975         (gtk_tree_view_calc_size): ditto
4976         (gtk_tree_view_check_dirty): ditto
4977
4978         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
4979         properties to change all the interesting attributes of the tree
4980         view column.
4981         (gtk_tree_view_column_set_header_clickable): rename set_clickable
4982         (gtk_tree_view_column_get_clickable): add
4983         (gtk_tree_view_column_set_cell_renderer): don't unset the current
4984         attributes; assume a cell renderer with equivalent object
4985         properties has been swapped in. Do g_object_notify().
4986         (gtk_tree_view_column_set_visible): g_object_notify
4987         (gtk_tree_view_column_get_sizing): rename from get_col_type
4988         (gtk_tree_view_column_set_sizing): g_object_notify
4989         (gtk_tree_view_column_set_width): add g_object_notify
4990         (gtk_tree_view_column_set_min_width): ditto
4991         (gtk_tree_view_column_set_max_width): ditto
4992         (gtk_tree_view_column_set_title): ditto
4993         (gtk_tree_view_column_set_clickable): ditto
4994         (gtk_tree_view_column_set_widget): ditto
4995         (gtk_tree_view_column_set_justification): ditto
4996
4997 2001-01-09  Havoc Pennington  <hp@redhat.com>
4998
4999         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
5000         there are no rows in the model
5001
5002         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
5003         NULL, then return the start of the list
5004
5005         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
5006         if we can't get any rows from an empty model 
5007
5008         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
5009         extraneous * after function pointer typedef usage
5010
5011         * Makefile.am: don't specify full path to cp and rm
5012
5013         * gtk/gtkcellrenderertextpixbuf.c
5014         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
5015         NULL before dereferencing, fixes a segfault that happened from
5016         time to time
5017
5018         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
5019         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
5020         and reindent the function
5021         (gtk_cell_renderer_pixbuf_get_size): indentation
5022
5023         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
5024         we quit it
5025         (gtk_dialog_add_buttons_valist): add g_return_if_fail
5026         (gtk_dialog_set_default_response): New function, to set default
5027         button
5028         (gtk_dialog_set_response_sensitive): New function, to set 
5029         sensitivity of buttons
5030
5031         * gtk/gtkcellrendererpixbuf.c
5032         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
5033         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
5034
5035         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
5036         handle any G_TYPE_OBJECT subclass, not just the base class, and 
5037         also boxed types.
5038         (_gtk_tree_data_list_value_to_node): ditto
5039
5040         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
5041         --gtk-debug=tree
5042
5043         * gtk/gtkmain.c: add GTK_DEBUG_TREE
5044
5045         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
5046
5047 2001-01-09  Tor Lillqvist  <tml@iki.fi>
5048
5049         * gdk/win32/gdkevents-win32.c: Implement better mouse
5050         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
5051         (find_window_for_pointer_event): New function.
5052         (gdk_event_translate): Use it when handling mouse events.
5053
5054 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
5055
5056         * configure.in:
5057         Added --with-included-loaders option
5058
5059         * gdk-pixbuf/Makefile.am:
5060         * gdk-pixbuf/gdk-pixbuf-io.c:
5061         Add support for including selected gdk-pixbuf loaders only.
5062
5063         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
5064         gtk_window_set_has_frame):
5065         Added inline documentation.
5066
5067         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
5068         * docs/reference/gdk/tmpl/windows.sgml:
5069         Added inline documentation.
5070
5071 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
5072
5073         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
5074         realizing buttons that have already been realized.
5075
5076 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
5077
5078         * tests/testtreeview.c (main): Show menu items before adding to
5079         option menu.
5080
5081         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
5082         around if we kill them.
5083
5084         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
5085         Return if we pass in a NULL model.
5086
5087 2001-01-08  Havoc Pennington  <hp@redhat.com>
5088
5089         * tests/testtreeview.c: hack on this some
5090
5091         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
5092         gtk_tree_store_set_valist, v is for arrays, valist for varargs
5093         list
5094         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
5095
5096         * gtk/gtkliststore.h: Add varargs set() and get() convenience
5097         functions
5098
5099 2001-01-08  Alexander Larsson  <alexl@redhat.com>
5100
5101         * gtk/gtkwindow-decorate.[hc]:
5102         * gtk/Makefile.am:
5103         New files. Contains an implementation of a minimal WM for
5104         linux-fb.
5105
5106         * gtk/gtkwindow.h:
5107         Add the possibility for GtkWindows to specify a frame. This
5108         is used for the window decoration code, but could concievably
5109         be used for X programs too (xmms style windows).
5110         GtkWindow->frame is the toplevel window if the window is framed.
5111         The signal frame_event gets all events that are targeted to
5112         GtkWindow->frame.
5113         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
5114         
5115         * gtk/gtkwindow.c:
5116         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
5117         Call out to gtkwindow-decorate.c for WM support in linx-fb.
5118
5119 2001-01-08  Alexander Larsson  <alexl@redhat.com>
5120
5121         * docs/README.linux-fb:
5122         Correct filename ~/.pangoft2_aliases
5123
5124         * gdk/gdkwindow.h:
5125         Added new function gdk_window_get_decorations.
5126
5127         * gdk/linux-fb/gdkfb.h:
5128         Removed _gdk_window_get_decorations declaration.
5129         Renamed _gdk_window_set_child_handler to
5130         gdk_fb_window_set_child_handler.
5131
5132         * gdk/linux-fb/gdkwindow-fb.c:
5133         Renamed _gdk_window_set_child_handler to
5134         gdk_fb_window_set_child_handler.
5135
5136         * gdk/x11/gdkwindow-x11.c:
5137         New function gdk_window_get_mwm_hints().
5138         Implemented gdk_window_get_decorations.
5139
5140         * docs/reference/gdk/tmpl/windows.sgml:
5141         * docs/reference/gdk/gdk-sections.txt:
5142         Added gdk_window_get_decorations docs.
5143         
5144 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
5145
5146         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
5147         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
5148         gdk_fb_window_send_crossing_events):
5149         Possibly send focus events when the mouse moves from one
5150         window to another.
5151
5152 2001-01-07  Tor Lillqvist  <tml@iki.fi>
5153
5154         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
5155         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
5156         to match current API.
5157
5158         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
5159         environment variable is set, don't call g_error when on a
5160         palettized (PseudoColor) display. Some people want to use GTK+ 
5161         in 256-colour mode even though works only partially.
5162
5163         * gdk/gdk.def
5164         * gtk/gtk.def
5165         * gtk/makefile.mingw.in: Update.
5166
5167 2001-01-05  Havoc Pennington  <hp@redhat.com>
5168
5169         * tests/testtreeview.c: hack on this a bit
5170
5171         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
5172         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
5173
5174         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
5175         was spelled incorrectly
5176         (GTK_IS_TREE_MODEL_SIMPLE): ditto
5177
5178         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
5179         from gtk_tree_view_set_headers_active   
5180
5181         * gtk/gtktexttag.c:
5182         (gtk_text_tag_get_property): handle PROP_DIRECTION
5183         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
5184         properties, bug 40235
5185
5186         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
5187         forward_to_line_end
5188
5189 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
5190
5191         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
5192         modules/input/gtkimcontextxim.c: Adapt to new prototypes
5193         for unicode,locale,filename conversion functions.
5194
5195 2001-01-05  Havoc Pennington  <hp@redhat.com>
5196
5197         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
5198         broken if called on the first position in the buffer.
5199
5200         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
5201         forward_to_delimiters to be called only if we aren't already at
5202         the delimiters.
5203
5204 2001-01-05  Havoc Pennington  <hp@redhat.com>
5205
5206         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
5207
5208 2001-01-05  Alexander Larsson  <alexl@redhat.com>
5209
5210         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
5211         colormap in here. Sync from X port.
5212         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
5213         Sync from X port.
5214         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
5215         This happens now and then, and i don't think it is a bug.
5216         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
5217         != endpoint.
5218         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
5219         GDK_LINE_SOLID.
5220
5221         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
5222         some of the fields filled in at least.
5223
5224         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
5225         miLineArcD is no more, remove it from the function definition.
5226
5227 2001-01-04  Havoc Pennington  <hp@redhat.com>
5228
5229         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
5230         this
5231
5232         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
5233         user_data instead of tree_node
5234
5235         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
5236         TREE_VIEW_COLUMN_SIZE
5237
5238         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
5239         "size" field to "width" finishes bug 40061
5240
5241         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
5242         for bitfields, bug 40268
5243
5244 2001-01-04  Havoc Pennington  <hp@redhat.com>
5245
5246         Rename some stuff:
5247         
5248         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
5249
5250         s/GtkModelSimple/GtkTreeModelSimple/g;
5251         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
5252         s/gtk_model_simple/gtk_tree_model_simple/g;
5253         s/gtkmodelsimple/gtktreemodelsimple/g;
5254
5255         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
5256
5257         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
5258         s/column_set_col_type/column_set_sizing/g;
5259
5260         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
5261         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
5262
5263         s/GtkCellRendererType/GtkCellRendererState/g;
5264         
5265         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
5266         (gtk_cell_renderer_toggle_class_init): change "state" property to
5267         "active", to match GtkToggleButton
5268         (gtk_cell_renderer_toggle_get_active): new function, bug
5269         40269
5270         (gtk_cell_renderer_toggle_set_active): new function
5271         (gtk_cell_renderer_toggle_set_property): route changes to toggle
5272         state through gtk_cell_renderer_set_active
5273
5274 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
5275
5276         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
5277         temporarily until they work again.  Brought up to date with
5278         changes in the model.
5279         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
5280         model.
5281
5282 2001-01-04  Havoc Pennington  <hp@redhat.com>
5283
5284         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
5285         equal to the line length, then position iterator before paragraph 
5286         separators. Fixes crash reported by Mikael Hermansson when
5287         pressing left arrow from the start of a line.   
5288
5289         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
5290         about byte indexes off the end
5291         (iter_set_from_char_offset): add g_error about char offsets
5292         off the end
5293
5294 2001-01-03  Havoc Pennington  <hp@redhat.com>
5295
5296         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
5297
5298         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
5299         of private functions; remove inclusion of private headers.
5300
5301         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
5302         function, so we don't need private functions in gtktextdisplay.c
5303
5304         * gtk/gtktextiterprivate.h: underscore-ification
5305
5306         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
5307         to instead say "only useful to implement widgets"
5308
5309         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
5310         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
5311         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
5312
5313         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
5314         This function was completely broken
5315
5316         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
5317
5318         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
5319
5320         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
5321
5322         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
5323
5324         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
5325
5326         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
5327
5328         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
5329         gtk_paint_layout
5330
5331         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
5332         gtk_paint_layout
5333
5334         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
5335         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
5336         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
5337         which were not implemented.     
5338
5339         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
5340         insert_pixbuf signal. Rename delete_text to delete_range since it
5341         also deletes pixbufs and child anchors. This almost closes bug
5342         40245 (still need to deal with child anchors)
5343
5344         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
5345         insert_pixbuf, change signal names as appropriate, change types of
5346         signals taking marks/tags to have the specific type, not just
5347         G_TYPE_OBJECT
5348         
5349         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
5350         closes bug 40051
5351
5352         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
5353         unnecessary remove_contents() call
5354         (gtk_option_menu_class_init): add a "changed" signal, closes
5355         bug 40039
5356         (gtk_option_menu_update_contents): emit "changed" if the 
5357         active menu item changes
5358
5359         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
5360         cast to GtkObject, reported by Jonas Borgstrom
5361         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
5362         we can't do stuff with side effects in finalize. Instead, spew a
5363         warning if the loader isn't closed.
5364
5365         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
5366         colormap in here, non-X ports probably need to sync to this change
5367
5368         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
5369         assertion that colormap != NULL, you can set the colormap to NULL
5370         if you like.
5371         
5372         * Makefile.am: remove gtk-config-2.0
5373
5374         * configure.in: Use pkg-config to locate GLib. Remove
5375         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
5376         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
5377         Use pkg-config to locate Pango. Output correct Pango libs to
5378         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
5379
5380         * Makefile.am (pkgconfig_DATA): install only target-specific pc
5381         files
5382         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
5383         X11 pc files
5384
5385         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
5386         unref from here
5387
5388 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
5389
5390         * configure.in:
5391         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
5392
5393 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
5394
5395         * gtk/gtktextlayout.c
5396         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
5397         variable when moving back onto a single line.
5398
5399 2001-01-01  Havoc Pennington  <hp@redhat.com>
5400
5401         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
5402
5403         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
5404
5405         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
5406         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
5407
5408 2001-01-01  Havoc Pennington  <hp@redhat.com>
5409
5410         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
5411
5412         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
5413         GtkTextAttributes
5414
5415         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
5416         #40246
5417         (gtk_text_attributes_copy_values): rename from 
5418         gtk_text_attributes_copy
5419         (gtk_text_attributes_copy): a more standard GTK copy function, 
5420         which returns a new object
5421
5422 2001-01-01  Havoc Pennington  <hp@redhat.com>
5423
5424         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
5425         
5426         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
5427         don't fill in tree_view->priv->selection, kind of an unexpected
5428         side effect
5429
5430         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
5431         gtkintl.h
5432         
5433         * gtk/gtkcellrenderer.c: Remove definition of _ and include
5434         gtkintl.h
5435         (gtk_cell_renderer_get_property): remove calls to g_value_init
5436
5437         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
5438         gtkintl.h
5439
5440         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
5441         and include gtkintl.h
5442         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
5443         property names
5444
5445         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
5446         GtkTreeSelection
5447         (_gtk_tree_selection_new_from_with_view): rename, return
5448         GtkTreeSelection
5449         (_gtk_tree_selection_set_tree_view): rename with uscore
5450         (gtk_tree_selection_get_selected): fill in the "model" out param
5451         first, so it gets filled in even if we return at the top of the 
5452         function
5453         (gtk_tree_selection_real_select_all): add a comment and an else{}
5454         to clarify this a bit
5455         (gtk_tree_selection_real_unselect_all): add the same else{}
5456
5457         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
5458         set_tree_view to have underscore prefixes, move them to the
5459         private header, fix return type of new_with_tree_view
5460         (struct _GtkTreeSelection): mark struct
5461         fields private  
5462
5463         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
5464         GtkTreeModelFlags, not a guint
5465         (gtk_tree_path_prev): return gboolean not gint
5466         (gtk_tree_path_up): return gboolean not gint
5467
5468         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
5469         return GtkTreeModelFlags, not a guint
5470
5471         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
5472         that child model is non-null before unrefing it
5473         (g_value_int_compare_func): make this a qsort compare func, not 
5474         a boolean predicate
5475
5476         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
5477         (add -umn to the end), and mark it unimplemented
5478         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
5479         I don't see what it's for - doesn't the model always sort itself?
5480         (gtk_tree_model_sort_set_compare): this had the wrong signature
5481
5482         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
5483         Fix the docs to say that it destructively replaces existing
5484         attributes (previously said that it added attributes).
5485         (gtk_tree_view_column_set_visible): canonicalize bool before
5486         equality testing. Also, check for realization before
5487         hiding/showing the tree_column->window; if this window could exist
5488         before realization, then it's busted and needs fixing, we can't 
5489         create GDK resources pre-realization. Also, remove
5490         superfluous queue_resize(), since set_size() does that for us.
5491         (gtk_tree_view_column_set_col_type): check realization before 
5492         using tree_column->window
5493
5494         * gtk/gtktreedatalist.c: fix filename in copyright notice
5495
5496 2000-12-31  Havoc Pennington  <hp@pobox.com>
5497
5498         * gtk/gtktextview.c: Rearrange all the
5499         scroll-while-dragging-or-selecting code to be different, not
5500         necessarily better. ;-)
5501         (gtk_text_view_scroll_to_mark): Change this
5502         function to take within_margin as a fraction instead of a pixel
5503         value, and to take alignment arguments (indicating where to align 
5504         the mark inside the visible area)
5505         
5506         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
5507         to GtkObject
5508
5509         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
5510         behavior so that offsets past the end of the line are not 
5511         allowed, and an offset equal to the line length moves the iterator
5512         to the next line
5513         (gtk_text_iter_set_line_index): make parallel change
5514         (gtk_text_iter_get_bytes_in_line): add this function
5515         
5516         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
5517         of byte indexes off the end of the line; byte index at the end of
5518         the line now returns FALSE and doesn't fill in the requested
5519         values, byte index past the end of the line is an error.  Also,
5520         don't allow -1 offset anymore, since its meaning is unclear.
5521
5522         This change exposes some bug in visual cursor motion, where we
5523         end up with a huge invalid byte index; needs fixing. Symptom of 
5524         bug is a crash when you hit up arrow.
5525         
5526         (_gtk_text_line_char_locate): match the change to byte_locate
5527
5528         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
5529         from start of line properly. fixes bug reported by Mikael
5530         Hermansson where backspace would delete all text before the
5531         cursor.
5532
5533 2000-12-30  Tor Lillqvist  <tml@iki.fi>
5534
5535         * gdk/win32/gdkwindow-win32.c
5536         (gdk_window_impl_win32_get_visible_region): New function, as in
5537         the X11 backend.
5538         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
5539         instead of duplicating the same code here.
5540
5541         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
5542         GDK_COLORMAP macro.
5543
5544         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
5545         destroy function.
5546         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
5547         access that.
5548
5549         * gtk/gtk.def: Update.
5550
5551         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
5552
5553 2000-12-30  Havoc Pennington  <hp@pobox.com>
5554
5555         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
5556         colormap on input only windows, to avoid special cases all over
5557         the code for these windows.
5558
5559 2000-12-26  Tor Lillqvist  <tml@iki.fi>
5560
5561         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
5562         we are on a palettized display ("PseudoColor" in X11), as the code
5563         for that doesn't work anyway, and never has.
5564
5565 2000-12-22  Alexander Larsson  <alexl@redhat.com>
5566
5567         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
5568         Don't use isprint() for chars > 255.
5569
5570 2000-12-21  Havoc Pennington  <hp@redhat.com>
5571
5572         * tests/testtreeview.c: more work
5573
5574 2000-12-21  Alexander Larsson  <alexl@redhat.com>
5575
5576         * docs/README.linux-fb:
5577         Update the docs to the new pangoft2 way.
5578
5579 2000-12-21  Alexander Larsson  <alexl@redhat.com>
5580
5581         * configure.in:
5582         For linux-fb get the pangoft2 cflags and libs. This needs a recent
5583         pango version.
5584         Remove modules/linux-fb/Makefile.
5585
5586         * gdk/linux-fb/gdkdrawable-fb2.c:
5587         Render glyphs using freetype.
5588
5589         * gdk/linux-fb/gdkfb.h:
5590         Add new fb-specific functions needed for managing windows.
5591
5592         * gdk/linux-fb/gdkmain-fb.c:
5593         Remove gdk_font_init/fini() calls.
5594
5595         * gdk/linux-fb/gdkpango-fb.c:
5596         Remove old implementation. Use pangoft2 instead.
5597
5598         * gdk/linux-fb/gdkprivate-fb.h:
5599         Remove PangoFBFont and related stuff.
5600
5601         * gdk/linux-fb/gdkwindow-fb.c:
5602         Implement drawable->get_visible_region.
5603         Implement support for _gdk_window_set_child_handler () and
5604         _gdk_window_get_decorations().
5605
5606         * modules/Makefile.am:
5607         Remove linux-fb subdir.
5608
5609         * modules/linux-fb/*:
5610         Removed all.
5611         
5612 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
5613
5614         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
5615         calls, as they are no longer needed.
5616
5617         * gtk/gtktreemodelsort.c: Fix up the comparison code.
5618         
5619         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
5620         figure out how to emit a signal on an interface.
5621
5622 2000-12-20  Havoc Pennington  <hp@redhat.com>
5623
5624         * tests: new directory to contain tests, gtk/test* should move
5625         here sometime (with appropriate on-cvs-server hackery)
5626
5627         * tests/testtreeview.c, tests/Makefile.am: a test
5628         
5629         * configure.in (AC_OUTPUT): add tests/Makefile
5630
5631         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
5632         and "invisible_set" which were missing
5633
5634         * gtk/gtkrbtree.h: some cheesy indentation fix
5635         
5636 2000-12-20  Alexander Larsson  <alexl@redhat.com>
5637
5638         * gtk/gtkinvisible.c (gtk_invisible_realize):
5639         Attach the style to the window so that the style it is not
5640         leaked when unrealizing the window.
5641
5642 2000-12-18  Havoc Pennington  <hp@redhat.com>
5643
5644         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
5645         begin/end user action where appropriate
5646         (gtk_text_view_commit_handler): add begin/end user action
5647
5648         * gtk/gtktextbuffer.c: add begin/end user action signals, and
5649         bracket interactive operations with begin/end user action pair.
5650         
5651         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
5652         "interactive" arg from insert_text and delete_text signals.
5653         Add begin_user_action, end_user_action signals
5654         (gtk_text_buffer_begin_user_action): 
5655         (gtk_text_buffer_end_user_action): New functions to delimit 
5656         a user-visible action
5657
5658         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
5659         signals.
5660         
5661 2000-12-18  Havoc Pennington  <hp@redhat.com>
5662
5663         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
5664         was pretty non-working.
5665
5666         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
5667         by passing the length to g_utf8_validate().
5668
5669 2000-12-16  Havoc Pennington  <hp@pobox.com>
5670
5671         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
5672         Port to GObject, can go back in gdk-pixbuf after setting up 
5673         a gdk-pixbuf-marshal.h header over there.
5674
5675         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
5676         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
5677         args
5678         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
5679         set
5680         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
5681         here, do it when we create the buttons later
5682         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
5683         (gtk_tree_view_map): paranoia checks that column->button is shown 
5684         and unmapped
5685         (gtk_tree_view_size_request): only request visible children.
5686         Move header size calculation in here, for cleanliness, and 
5687         to maintain invariants for child widgets if we eventually 
5688         let users set different children inside the buttons
5689         (gtk_tree_view_map_buttons): factor out code to map buttons,
5690         since it was being called several times
5691         (gtk_tree_view_size_allocate_buttons): move_resize the drag
5692         windows instead of just moving them; their height may change 
5693         if we allow random widgets in there, or the theme changes.
5694         (gtk_tree_view_size_allocate): move button size allocation 
5695         above emitting the scroll signals, to ensure a sane state when we
5696         hit user code
5697         (gtk_tree_view_button_release): remove queue_resize after
5698         tree_view_set_size(), set_size() will handle any resize queuing
5699         that's needed
5700         (gtk_tree_view_focus_in): just queue a draw, don't fool with
5701         draw_focus goo
5702         (gtk_tree_view_focus): use gtk_get_current_event() and
5703         gdk_event_get_state()
5704         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
5705         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
5706         semicolon
5707         (gtk_tree_view_create_button): show the button here
5708         (gtk_tree_view_button_clicked): actually emit the clicked signal
5709         on the column
5710         (_gtk_tree_view_set_size): return right away if the size is
5711         unchanged, as a cheesy optimization
5712         (gtk_tree_view_setup_model): rename set_model_realized to 
5713         setup_model to match the flag that indicates whether we've 
5714         called it
5715         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
5716         exist, because set_scroll_adjustment does that and it shouldn't
5717         matter what order you call these in
5718         (gtk_tree_view_get_vadjustment): ditto
5719         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
5720         for paranoia
5721         (gtk_tree_view_set_headers_visible): call
5722         gtk_tree_view_map_buttons() instead of using cut-and-paste code
5723         (gtk_tree_view_append_column): clarify whether the return value
5724         is the count of columns before or after, and do the increment 
5725         separately from the return statement so you can tell from the code.
5726         (gtk_tree_view_remove_column): ditto
5727         (gtk_tree_view_insert_column): ditto
5728         (gtk_tree_view_get_column): remove g_return_if_fail for columns
5729         outside the existing range, the docs say that outside-range
5730         columns are allowed, so we handle them as documented. (Presumably
5731         this allows a nice loop with column != NULL as test.)
5732         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
5733         mean (left/right/center etc.).
5734         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
5735         (gtk_tree_view_expand_row): add docs
5736         (gtk_tree_view_collapse_row): add docs
5737
5738         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
5739         function to emit the clicked signal on a column
5740         
5741         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
5742         state of an event
5743         (gdk_event_get_time): don't treat GDK_SCROLL 
5744         as a button event, remove default case from switch so gcc 
5745         will whine if we don't explicitly handle all event types
5746
5747         * gtk/gtktreeselection.h: added some FIXME 
5748         
5749         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
5750         "columns" to "n_columns" and "column" to "columns" for clarity
5751
5752 2000-12-16  Havoc Pennington  <hp@pobox.com>
5753         
5754         * gtk/gtktextiter.c: General cleanup of the log attr iteration
5755         stuff. This should make e.g. the delete key work again in the
5756         text widget...
5757         (gtk_text_iter_forward_cursor_positions): handle negative count
5758         (gtk_text_iter_backward_cursor_positions): handle negative count
5759         (gtk_text_iter_forward_word_ends): handle negative count
5760         (gtk_text_iter_backward_word_starts): handle negative count
5761
5762         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
5763         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
5764         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
5765         GObject. No doubt will cause breakage.
5766
5767         * demos/gtk-demo/textview.c: remove hacks around
5768         non-GObject-ification of the text objects
5769
5770         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
5771         the text tag
5772         
5773 2000-12-14  Havoc Pennington  <hp@pobox.com>
5774
5775         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
5776         that we have Xrender
5777
5778 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
5779
5780         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
5781         Add two virtualized functions gdk_drawable_get_clip_region - to
5782         get the clip region when drawing.
5783         
5784         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
5785         use invalidate_region.
5786
5787         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
5788         region.
5789
5790         * acconfig.h configure.in: Check for Xft. For now, assume
5791         that if Xft is found, Pango was compiled with Xft support
5792         as well.
5793
5794         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
5795         gdk_colormap_query_color().
5796         
5797         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
5798         with Xft if appropriate.
5799
5800         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
5801         a pangoxft context if we have XFT and the environment
5802         variable GD_USE_XFT is set.
5803         
5804         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
5805         and also possibly an XftDraw structure.
5806
5807         * gtk/gtkfontsel.c: Handle the case where the font from the
5808         style doesn't match any of the fonts a bit better.
5809         
5810         * gtk/testgtk.c: Add tabs between directional segments for
5811         hebrew/arabic test. (Not really necessary, just a little
5812         prettier.)
5813
5814 2000-12-14  Havoc Pennington  <hp@redhat.com>
5815
5816         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
5817         reading a file
5818
5819 2000-12-14  Havoc Pennington  <hp@redhat.com>
5820
5821         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
5822         unused call to get_last_line()
5823
5824         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
5825         here until boxed is working (and maybe after that - we should
5826         really not gratuitously break old code)
5827
5828         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
5829         specific types for font_desc and tabs args, move them to
5830         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
5831         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
5832
5833         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
5834         use GTK_TYPE_POINTER for signal signatures as a hack-around
5835
5836         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
5837         PangoTabArray
5838
5839         * gtk/gtktextlayout.c (line_display_iter_to_index): 
5840         make static
5841         (line_display_index_to_iter): make static
5842
5843         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
5844         to marshal a string not a boxed
5845
5846         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
5847
5848         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
5849         since the UTF-8 isn't validated yet
5850
5851         * gtk/gtktextsegment.c (char_segment_check_func): don't require
5852         lines to end in '\n'
5853         
5854         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
5855         forward_to_delimiters, and grapheme boundaries
5856         (gtk_text_view_delete_from_cursor): properly handle non-newline
5857         delimiters, and grapheme boundaries
5858
5859         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
5860         to gtk_text_iter_forward_to_delimiters, and make it work properly
5861         if empty lines end with a character other than '\n'
5862
5863         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
5864         position
5865
5866 2000-12-15  Tor Lillqvist  <tml@iki.fi>
5867
5868         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
5869
5870         * gtk/gtk.def
5871         * gdk/gdk.def: Update.
5872
5873         * gdk/win32/gdkmain-win32.c
5874         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
5875         gdkmain-win32.c here.
5876
5877         * gdk/win32/makefile.mingw.in (all): No need to make
5878         gdk-win32res.o here, the makefile one step up will call us to make
5879         it.
5880
5881         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
5882         gdkkeys-win32.
5883
5884         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
5885
5886         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
5887         call to g_source_add().
5888
5889         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
5890         leak. Thanks to Andreas Kemnade.
5891
5892 2000-12-13  Havoc Pennington  <hp@pobox.com>
5893
5894         * gtk/gtktextbtree.h: Remove double _ in front of some functions
5895
5896         * gtk/gtktext*.[hc]: update accordingly
5897         
5898 2000-12-13  Havoc Pennington  <hp@pobox.com>
5899
5900         * gtk/gtktextbtree.h: Put _ in front of every function in this 
5901         header file
5902
5903         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
5904
5905 2000-12-13  Alex Larsson  <alexl@redhat.com>
5906
5907         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
5908         Add support for ps2 intellimouse.
5909
5910         * gdkkeyboard-fb.c:
5911         Move shift-F1 repaint handling to xlate handler only.
5912         
5913         * docs/README.linux-fb:
5914         Add imps2 to docs.
5915         Document the new refresh keys.
5916         
5917 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
5918
5919         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
5920
5921         * gtk/gtkbox.c: change property types from (u)long to (u)int for
5922         ::position and ::padding.
5923
5924         * gtk/gtkcontainer.c: make ::border_width an INT property.
5925
5926         * gtk/gtkpacker.c: make ::position an INT property.
5927
5928         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
5929         guard against NULL h/v scrollbars, since this is used at construction
5930         time.
5931
5932         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
5933         internal gtk_clist_constructor().
5934
5935         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
5936         gtk_ctree_constructor().
5937
5938         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
5939         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
5940
5941         * docs/reference/Makefile.am: fun stuff, disabled docs generation
5942         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
5943
5944         * gtk/gtkwidget.[hc]:
5945         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
5946         and gtk_widget_get().
5947         (gtk_widget_new): use g_object_new_valist().
5948         (gtk_widget_set): use g_object_set_valist().
5949
5950         * gtk/gtkobject.[hc]:
5951         removed gtk_object_arg_get_info(), gtk_object_getv(),
5952         gtk_object_query_args(), gtk_object_newv(),
5953         gtk_object_class_add_signals(),
5954         gtk_object_class_user_signal_new(),
5955         gtk_object_class_user_signal_newv(),
5956         gtk_object_arg_set(), gtk_object_arg_get(),
5957         gtk_object_args_collect(),
5958         gtk_object_default_construct(),
5959         gtk_object_constructed(),
5960         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
5961         removed nsignals, signals and n_args members from GtkObjectClass.
5962         (gtk_object_new): use g_object_new_valist().
5963         (gtk_object_set): use g_object_set_valist().
5964         (gtk_object_get): use g_object_get_valist().
5965         
5966         * gtk/gtkcompat.h: define gtk_object_default_construct().
5967         
5968         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
5969         g_object_new().
5970
5971         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
5972         fucntions, cleaned up method assignments (make sure your structures
5973         are setup properly before calling out). removed all GTK_CONSTRUCTED
5974         hacks ;)
5975
5976 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
5977
5978         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
5979         off-by-one error in checks. (Dave Lambert)
5980
5981 2000-12-12  Alexander Larsson  <alexl@redhat.com>
5982
5983         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
5984         Don't free gdk_fb_keyboard twice.
5985
5986 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
5987
5988         * gtk/testgtk.c:
5989         (create_tooltips): 
5990         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
5991         use GObject swapped_signal:: properties instead.
5992
5993         * gtk/gtkcellrenderertoggle.c: 
5994         * gtk/gtkcellrenderertextpixbuf.c: 
5995         * gtk/gtkcellrenderertext.c: 
5996         * gtk/gtkcellrendererpixbuf.c: 
5997         * gtk/gtkcellrenderer.c:
5998         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
5999         missing warnings for invalid property ids, install properties
6000         with g_object_class_install_property() now.
6001         
6002         * gtk/gtksignal.c:
6003         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
6004         
6005 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
6006         
6007         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
6008         to determine if a window is the focus widget within
6009         its toplevel.
6010
6011         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
6012         to be boolean.
6013
6014         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
6015         of the case where the container CAN_FOCUS to here instead
6016         of having it in each individual move-the-focus place.
6017
6018         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
6019         focusing to be geometric in a much more obvious sense. Arrowing
6020         around is still non-intuitive because it isn't perfect and
6021         because entries, etc, grab the arrow keys, but it at least
6022         usually will do what you expect now.
6023         
6024         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
6025         file.
6026
6027         * gtk/gtknotebook.c: Change tabs to be a single item in
6028         the focus chain. Make movement of focus on tabs with arrow
6029         keys wrap around.
6030         
6031         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
6032         CHECK_FIND_CHILD macro to give informative error messages
6033         instead of silent returns.
6034
6035         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
6036         flag since we handle GdkReturn on the tabs.
6037
6038         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
6039         windows rather than sending expose events directly.
6040
6041         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
6042         definition for GtkNotebookPage into .c file, since it is private.
6043
6044         * gtk/testgtk.c (create_notebook): Add option for 
6045         testing borderless notebook.
6046
6047         * gtk/testgtk.c (page_switch): Removed egregious poking
6048         around in GTK+ internals.
6049
6050         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
6051
6052         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
6053         properly through gtk_clist_focus. Make the title headers a
6054         single item in the tab-focus chain, and make left-right wrap
6055         around.
6056
6057         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
6058         focus method so that wrapping around works properly.
6059
6060         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
6061         that is handled for the widget now. 
6062
6063 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
6064
6065         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
6066         widgets as TOPLEVEL.
6067
6068         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
6069         TOPLEVEL widgets are containers.
6070
6071         * gtk/gtkinvisible.h: Remove useless include.
6072
6073 2000-12-11  Havoc Pennington  <hp@redhat.com>
6074
6075         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
6076         Handle chopping off \r\n and 0x2029 in addition to \n before
6077         passing to PangoLayout
6078
6079         * gtk/gtkimcontextsimple.c
6080         (gtk_im_context_simple_get_preedit_string): 
6081         return an empty string if no match is pending
6082
6083         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
6084         assertion that the returned preedit string was sane
6085
6086         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
6087         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
6088         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
6089
6090 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
6091
6092         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
6093         Fix up finalizer to chain to its parent.
6094
6095 2000-12-11  Alexander Larsson  <alexl@redhat.com>
6096
6097         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
6098         Clearified the difference between the keyboard types. Wrote a note
6099         about the magic sysrq key to get out of raw mode.
6100
6101 2000-12-09  James Henstridge  <james@daa.com.au>
6102
6103         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
6104         member to hold masks for detecting the start of a protocol packet.
6105         (mouse_devs): add packet start masks for ps2 and ms device types.
6106         Left the mask for fidmour blank, as I have no idea what it should
6107         be.
6108         (handle_mouse_io): skip bytes until we get to the start of a
6109         packet.  My Logitech mouse seems to be passing an extra NULL pad
6110         byte, and GPM does a similar thing here.
6111         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
6112         this is the ms mouse driver.
6113         (gdk_fb_mouse_ms_packet): fix up button handling, which was
6114         completely broken except for button1.  It was checking the wrong
6115         bit in the packet for the status of the right mouse button, and
6116         wrongly assuming right == button2 rather than 3.  I fixed that and
6117         also added support for middle button (button2).
6118
6119 2000-12-08  Havoc Pennington  <hp@redhat.com>
6120
6121         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
6122         that cause a segfault on text insertion
6123
6124         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
6125         warning
6126
6127         * gtk/gtktextiter.c (test_log_attrs): use
6128         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
6129
6130         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
6131         Get log attrs for a line, using a cache stored on the buffer
6132         
6133         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
6134         reported by Jeff Franks
6135
6136 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
6137
6138         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
6139         /dev/ttyS0 -> /dev/mouse
6140
6141 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
6142
6143         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
6144         Added dummy gdk_fontset_load.
6145
6146 2000-12-08  Alexander Larsson  <alexl@redhat.com>
6147
6148         * docs/README.linux-fb:
6149         * docs/Makefile.am:
6150         Initial GtkFB docs.
6151         
6152         * gdk/linux-fb/Makefile.am:
6153         Define GDK_DATA_PREFIX.
6154
6155         * gdk/linux-fb/gdkmain-fb.c:
6156         Fix typo.
6157         Change default display to /dev/fb0.
6158
6159         * gdk/linux-fb/gdkpango-fb.c:
6160         Add $(prefix)/share/fonts/ to font path.
6161         
6162 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
6163
6164         * gdk/linux-fb/gdkkeyboard-fb.c:
6165         New file containing the abstracted keyboard driver. Most code
6166         taken from gdkinput-ps2.c
6167
6168         * gdk/linux-fb/gdkinput-ps2.c:
6169         Removed file.
6170         
6171         * gdk/linux-fb/Makefile.am:
6172         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
6173
6174         * gdk/linux-fb/gdkcolor-fb.c:
6175         display->fb was renamed to display->fb_fd.
6176
6177         * gdk/linux-fb/gdkcursor-fb.c:
6178         gdk_mouse_get_info -> gdk_fb_mouse_get_info
6179
6180         * gdk/linux-fb/gdkinput.c:
6181         Moved gdk_input_init here from gdkinput-ps2.c
6182
6183         * gdk/linux-fb/gdkmain-fb.c:
6184         display->fb was renamed to display->fb_fd.
6185         Now the tty and the console is opened here instead
6186         of in the keyboard driver. Also check GDK_VT to see what
6187         tty to open.
6188         Move gdk_beep () here from gdkinput-ps2.c
6189         gdk_mouse_get_info -> gdk_fb_mouse_get_info
6190
6191         * gdk/linux-fb/gdkmouse-fb.c:
6192         Add header.
6193         gdk_mouse_get_info -> gdk_fb_mouse_get_info
6194         Return correct keyboard modifiers.
6195         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
6196
6197         * gdk/linux-fb/gdkprivate-fb.h:
6198         Add tty and vt info to display.
6199         Add orignal modeinfo storage to display
6200         Update global functions
6201
6202         * gdk/linux-fb/gdkwindow-fb.c:
6203         Added gdk_fb_window_find_focus().
6204         gdk_mouse_get_info -> gdk_fb_mouse_get_info
6205
6206 2000-12-07  Havoc Pennington  <hp@pobox.com>
6207
6208         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
6209         function, noticed by Alex
6210
6211 2000-12-06  Elliot Lee  <sopwith@redhat.com>
6212
6213         * configure.in: Detect freetype properly
6214
6215         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
6216         above.
6217
6218 2000-12-06  Alexander Larsson  <alexl@redhat.com>
6219
6220         * gdk/linux-fb/Makefile.am:
6221         Add gdkmouse-fb.c
6222         
6223         * gdk/linux-fb/gdkmouse-fb.c:
6224         New file. Abstracted the mouse drivers a bit.
6225
6226         * gdk/linux-fb/gdkcursor-fb.c:
6227         The cursor hide/show functions was moved here from gdkinput-ps2.c.
6228
6229         * gdk/linux-fb/gdkinput-ps2.c:
6230         Removed old mouse handling code. Moved cursor handling code
6231         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
6232         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
6233         gdk_mouse_get_info.
6234
6235         * gdk/linux-fb/gdkmain-fb.c:
6236         Pass NULL pointers for x,y in gdk_mouse_get_info call.
6237
6238         * gdk/linux-fb/gdkprivate-fb.h:
6239         Removed public gdk_fb_find_common_ancestor, added and renamed
6240         functions for the new mouse handling code.
6241
6242         * gdk/linux-fb/gdkwindow-fb.c:
6243         Moved gdk_fb_window_send_crossing_events here. added global
6244         variable gdk_fb_window_containing_pointer. made
6245         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
6246         renamed to gdk_mouse_get_info.
6247
6248 2000-12-06  Alexander Larsson  <alexl@redhat.com>
6249
6250         * gdk/linux-fb/gdkevents-fb.c:
6251         Update to match latest gmain/gsource changes.
6252
6253         * gdk/linux-fb/gdkinput-ps2.c:
6254         Bogus gdk_keymap_get_entries_for_keycode implementation so that
6255         it links. Will be implemented later.
6256
6257 2000-12-03  Havoc Pennington  <hp@pobox.com>
6258
6259         * gdk/Makefile.am: add gdkkeys.[hc]
6260
6261         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
6262         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
6263
6264         * acconfig.h, configure.in: add checks and command line options
6265         for XKB
6266
6267         * gdk/x11/gdkkeys-x11.c: Implement the above functions
6268         
6269         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
6270         and group in the key event
6271
6272         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
6273         field with the low-level hardware key code, and a group
6274         field with the keyboard group
6275
6276         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
6277         and declare a couple globals used for keymap handling
6278         
6279         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
6280         hold down Shift-Control and type a hex number to get a Unicode 
6281         character corresponding to the hex number
6282         (gtk_im_context_simple_get_preedit_string): Fix cursor position
6283         (return bytes not chars)
6284
6285 2000-12-05  Elliot Lee  <sopwith@redhat.com>
6286
6287         * gdk/gdkcolor.h: Make GdkColor specify element sizes
6288         to avoid waste on 64-bit platforms.
6289
6290 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
6291
6292         * INSTALL: Fix link to PNG home, remove reference
6293         to fribidi.
6294
6295         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
6296         
6297         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
6298         tested.)
6299
6300         * gtk/gtkcheckmenuitem.c: Permanently turn on
6301         always_show_toggle.
6302
6303         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
6304         be NULL. (Vladimir Klebanov, #26545)
6305
6306         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
6307         some signed/unsigned comparison problems. (#6510,
6308         David Kaelbling)
6309
6310         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
6311         return type to boolean (Oskar Liljeblad, #18648)
6312
6313 2000-12-05  Alexander Larsson  <alexl@redhat.com>
6314
6315         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
6316         Remove bogus colormap setting.
6317
6318 2000-12-05  Alexander Larsson  <alexl@redhat.com>
6319
6320         * gdk/linux-fb/gdkcolor-fb.c:
6321         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
6322
6323         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
6324         Must set colormap.
6325         
6326 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
6327
6328         * docs/tutorial/gtk-tut.sgml: DND updates
6329
6330 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
6331
6332         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
6333         Remove old debug g_warning().
6334         (gdk_fb_draw_drawable): The src argument can be either a wrapper
6335         or an implementation, just pass the implementation to draw_drawable_2.
6336         
6337         * gdk/linux-fb/gdkprivate-fb.h:
6338         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
6339
6340         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
6341         clear and invalidate area when window is destroyed.
6342         (send_map_events): Remove old commented out code.
6343
6344 2000-12-05  Alexander Larsson  <alexl@redhat.com>
6345
6346         * gdk/linux-fb/gdkpango-fb.c:
6347         Use italic instead of oblique in font aliases.
6348         
6349         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
6350         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
6351         other unsupported functions.
6352
6353 2000-12-04  Havoc Pennington  <hp@redhat.com>
6354
6355         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
6356
6357         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
6358
6359         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
6360
6361         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
6362         hack to avoid infinite loops (synthetic expose event) - 
6363         Owen has more appropriate fixes in a branch he'll check in later.
6364
6365         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
6366         separator, CR, and CRLF as line ends
6367
6368         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
6369         into lines using pango_find_paragraph_boundary(); other bits of
6370         the widget are still going to be broken if the boundary isn't '\n'
6371         though
6372
6373 2000-12-04  Alexander Larsson  <alexl@redhat.com>
6374
6375         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
6376         multiply.
6377
6378         * gdk/linux-fb/gdkpango-fb.c:
6379         Copied some 26.6 scaling macros from pango to clean up the rounding.
6380         (pango_fb_font_get_glyph_info): Correct sign on x value.
6381
6382         * gdk/linux-fb/gdkprivate-fb.h:
6383         Removed unreferenced external functions.
6384
6385         * modules/linux-fb/Makefile.am: Use ` instead of '.
6386
6387         * modules/linux-fb/basic.c:
6388         Remove dead code. In particular the dummy lang engine which broke all
6389         pango layouts in GtkFB. Don't include tables-big.i anymore.
6390
6391         * modules/linux-fb/tables-big.i:
6392         Upgrade to latest version from pango. Left for reference, basic_ranges
6393         moved to basic.c.
6394         
6395 2000-12-04  Havoc Pennington  <hp@redhat.com>
6396
6397         Fix bugs Alex found:
6398         
6399         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
6400         to "draw"
6401
6402         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
6403
6404         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
6405
6406         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
6407         implementation in here, apparently the expose() implementation was
6408         dead code.
6409
6410 2000-12-04  Alexander Larsson  <alexl@redhat.com>
6411
6412         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
6413         Return positive descent.
6414
6415 2000-12-02  Havoc Pennington  <hp@pobox.com>
6416
6417         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
6418         method and signal
6419         
6420         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
6421         calls gdk_window_process_updates() to push the exposes through
6422         (gtk_widget_class_init): No more draw signal, no
6423         gtk_widget_real_draw()  
6424         
6425         * gtk/gtkbin.c (gtk_bin_draw): remove
6426
6427         * gtk/gtkbox.c (gtk_box_draw): remove
6428
6429         * gtk/gtkbutton.c (gtk_button_draw): remove
6430
6431         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
6432
6433         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
6434
6435         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
6436
6437         * gtk/gtkclist.c (gtk_clist_draw): remove
6438
6439         * gtk/gtkentry.c (gtk_entry_draw): remove
6440
6441         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
6442
6443         * gtk/gtkfixed.c (gtk_fixed_draw): remove
6444
6445         * gtk/gtkframe.c (gtk_frame_draw): remove
6446
6447         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
6448
6449         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
6450
6451         * gtk/gtklayout.c (gtk_layout_draw): remove
6452
6453         * gtk/gtklist.c (gtk_list_draw): remove
6454
6455         * gtk/gtklistitem.c (gtk_list_item_draw): remove
6456
6457         * gtk/gtkmenu.c (gtk_menu_draw): remove
6458
6459         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
6460
6461         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
6462
6463         * gtk/gtknotebook.c (gtk_notebook_draw): remove
6464
6465         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
6466
6467         * gtk/gtkpacker.c (gtk_packer_draw): remove
6468
6469         * gtk/gtkrange.c (gtk_range_draw): remove
6470
6471         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
6472
6473         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
6474
6475         * gtk/gtktable.c (gtk_table_draw): remove
6476
6477         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
6478
6479         * gtk/gtktext.c (gtk_text_draw): remove
6480
6481         * gtk/gtktextview.c (gtk_text_view_draw): remove
6482
6483         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
6484
6485         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
6486
6487         * gtk/gtktree.c (gtk_tree_draw): remove
6488
6489         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
6490
6491         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
6492
6493         * gtk/gtkviewport.c (gtk_viewport_draw): remove
6494
6495         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
6496
6497         * gtk/gtkvscale.c (gtk_vscale_draw): remove
6498
6499         * gtk/gtkwindow.c (gtk_window_draw): remove
6500
6501 2000-20-01  Anders Carlsson  <andersca@gnu.org>
6502
6503         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
6504         a GtkToggleButton is both insensitive and active, it was being
6505         drawn by the GtkButton draw handler which doesn't check the
6506         state. Now it's calling gtk_toggle_button_paint instead.
6507         
6508 2000-12-01  Havoc Pennington  <hp@redhat.com>
6509
6510         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
6511         dangling pointers to the appearance attributes from the 
6512         line display
6513
6514         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
6515         width/height to mean "full width/height of drawable"
6516
6517         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
6518         click to select word/line
6519         
6520         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
6521         when getting log attrs. Get a slice, so that pixmaps and stuff
6522         are properly handled.
6523
6524         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
6525         paste into the selection (replaces selection now, previously
6526         crashed or added to selection). Reveals longstanding btree bug -
6527         select multiple lines, middle-click on the selection, boom. This
6528         isn't related to my changes though.
6529
6530         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
6531         PangoLogAttrs changes
6532         (gtk_entry_move_backward_word): ditto
6533
6534         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
6535         functions return bool whether the iter moved onto a
6536         dereferenceable position.
6537  
6538         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
6539         functions for motion in terms of display lines.
6540
6541         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
6542         get the buffer a mark is inside
6543         
6544 2000-12-01  Alexander Larsson  <alexl@redhat.com>
6545
6546         * gdk/linux-fb/Makefile.am:
6547         * modules/linux-fb/Makefile.am:
6548         Freetype 2 final uses freetype-config
6549
6550         * gdk/linux-fb/gdkpango-fb.c:
6551         Upgrade to use Freetype 2 final.
6552         More flexible support for font aliases, this also fixes a bug with
6553         GtkFontSelector, as the aliases must be visible in the font/family list,
6554         or GtkFontSelector reads uninitialized memory.
6555
6556 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
6557
6558         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
6559         XGetIMValues to properly terminate variable argument list, and do
6560         NULL return check for ic_values and xim_styles.
6561
6562         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
6563         Restore preedit state after XmbResetIC().
6564         
6565         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
6566         XvaCreateNestedList() should take XvaNestedList, but not
6567         XvaNestedList*.
6568
6569         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
6570         preedit_draw_callback, preedit_caret_callback): Match
6571         "preedit-changed" signal name to "preedit_changed" to be
6572         consistent to the spec.
6573
6574         * gtk/gtkimcontextsimple.c (check_table):
6575         Match "preedit-changed" to "preedit_changed" to be consistent
6576         to the spec.
6577
6578 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
6579
6580         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
6581         gc->clip_region == NULL>
6582
6583 2000-11-30  Tor Lillqvist  <tml@iki.fi>
6584
6585         Changes by Hans Breuer:
6586         
6587         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
6588         Dont't use negative width and height as max_hints. This fixes
6589         Owen's recent testgtk changes for win32.
6590
6591         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
6592         gdk_win32_hdc_release): These are exported and may be called with
6593         other drawable types than our GdkDrawableImplWin32 (?).
6594
6595         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
6596         so always #define USE_BACKING_STORE.
6597
6598         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
6599         of printf for debugging output.
6600
6601         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
6602         
6603         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
6604
6605         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
6606         declaration.
6607
6608         * gtk/gtktexttypes.h: Ditto.
6609
6610         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
6611         (GDK_VoidSymbol) also if in case of arg check failure.
6612
6613         * gtk/gtkimcontextsimple.c
6614         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
6615         position to the pointer, but to the variable it points to.
6616
6617         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
6618
6619         * gtk/gtk.def: Updates.
6620
6621 2000-11-29  Elliot Lee  <sopwith@redhat.com>
6622
6623         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
6624         GTK_TYPE_TREE_MODEL.
6625
6626 2000-11-29  Alexander Larsson  <alexl@redhat.com>
6627
6628         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
6629         Set the size of the font from the description.
6630         (gdk_text_width): Gross hack that calculates the width
6631         of text by text_length * size/2. This is necessary because
6632         GtkLabel does some ugly gtk_string_width call to calculate
6633         an good size.
6634         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
6635
6636 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
6637
6638         * docs/tutorial/gtk-tut.sgml: DND updates
6639
6640 2000-11-29  Alexander Larsson  <alexl@redhat.com>
6641
6642         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
6643         If you pass width or height == 0 to gdk_window_clear_area they
6644         should be calculated from the window size.
6645
6646 2000-11-29  Alexander Larsson  <alexl@redhat.com>
6647
6648         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
6649         a grab, but no grab-cursor, use the cursor from the grabbed
6650         window. (gdk_fb_window_send_crossing_events): Send normal
6651         enter/leave notifications if grab and owner_events == TRUE.
6652
6653 2000-11-29  Alexander Larsson  <alexl@redhat.com>
6654
6655         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
6656         Do implicit button grabs, even if the window doesn't
6657         want the event.
6658         (gdk_fb_window_send_crossing_events): If there is a
6659         grab, only the grabbed window gets normal enter/leave
6660         notifications. On ungrab go from grabbed window to current.
6661         Don't send any notification to b when propagating from c -> b.
6662         If setting a grab on window, don't set prev_window.
6663         (handle_mouse_input): Send enter/leave events to the window the
6664         mouse is over, not the grabbed one.
6665         
6666 2000-11-28  Elliot Lee  <sopwith@redhat.com>
6667
6668         * gdk/gdkregion-generic.c: Zap warning.
6669         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
6670         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
6671
6672 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
6673
6674         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
6675         The cursor should be hidden if it is part of either the
6676         source or destination region. Not only if it is in both.
6677         (gdk_window_set_transient_for): Silence warnings.
6678
6679 2000-11-28  Alexander Larsson  <alexl@redhat.com>
6680
6681         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
6682         The default mode in X is Pie Arcs, therefore that is
6683         what Gtk+ uses.
6684
6685 2000-11-28  Alexander Larsson  <alexl@redhat.com>
6686
6687         * gdk/linux-fb/gdkinput-ps2.c:
6688         Implement correct EnterNotify/LeaveNotify:
6689         (gdk_fb_window_send_crossing_events): New function that sends
6690         all GdkCrossingEvents from the last mouse-window to the specified
6691         destination.
6692         (gdk_fb_window_visibility_crossing): Removed function.
6693         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
6694         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
6695         instead of gdk_window_get_pointer() for better readability.
6696
6697         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
6698         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
6699
6700         * gdk/linux-fb/gdkprivate-fb.h:
6701         removed gdk_fb_window_visibility_crossing, added
6702         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
6703
6704         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
6705         New function that finds the least common ancestor of two windows.
6706         (gdk_window_show, gdk_window_hide):
6707         Use gdk_fb_window_send_crossing_events.
6708         (gdk_fb_window_move_resize): Send configure events to toplevel
6709         windows. Use gdk_fb_window_send_crossing_events.
6710
6711 2000-11-27  Havoc Pennington  <hp@redhat.com>
6712
6713         * gtk/gtkprivate.h (enum): Remove a trailing comma
6714
6715 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
6716
6717         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
6718         the "changed" callback of the adjustment.  We need to redraw the
6719         spin button's arrows when the adjustment's range changes.
6720         (adjustment_changed_cb): Draw the arrows.
6721         (gtk_spin_button_value_changed): Draw the arrows.
6722
6723 2000-11-23  Alexander Larsson  <alexl@redhat.com>
6724
6725         * gdk/linux-fb/gdkselection-fb.c:
6726         Initial selection implementation.
6727
6728         * gtk/gtkselection.c:
6729         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
6730         requestor in gtk_selection_request.
6731         
6732         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
6733         Added gdk_selection_property atom.
6734
6735         * gdk/linux-fb/gdkprivate-fb.h:
6736         Export _gdk_selection_window_destroyed.
6737         Removed mask_off_x/y from GdkCursorPrivateFB.
6738         Removed hbearing, added top, left to PangoFBGlyphInfo.
6739
6740         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
6741         Call _gdk_selection_window_destroyed
6742         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
6743         the root window has been created.
6744         (static_dx_hack, static_dy_hack, compare_draw_rects,
6745         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
6746         in region. They are already sorted. Instead just traverse them in
6747         reverse if draw_direction < 0.
6748         
6749         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
6750         Double-clicks must be sent after the normal button_press.
6751         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
6752         
6753         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
6754         Pass _gdk_fb_screen_gc instead of NULL.
6755
6756         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
6757         Initialize gdk_selection_property.
6758         (gdk_event_make): Remove unused code.
6759
6760         * gdk/linux-fb/gdkcursor-fb.c:
6761         Make the pixmap for the cursor the same size as the mask. Also remove
6762         the mask_off_x/y fields in GdkCursorPrivateFB and combine
6763         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
6764         Now the whole cursor is visible.
6765
6766         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
6767         Fix bug where xdest+height instead of ydest+height was used
6768         to calculate if the source and dest overlapped. This fixes the
6769         redraw bug when the main window in testgtk was scrolled when
6770         partially covered by a tall window.
6771         Copy rectangles in region in order depending on draw_direction.
6772         Also moved the draw_direction flipping of start_y and end_y into
6773         the gc functions, as this might not be what all of them want.
6774         (gdk_fb_draw_lines): Support dashed lines.
6775         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
6776         so that the text is positioned correctly (was 1 pixel high).
6777
6778         gdk/linux-fb/gdkgc-fb.c:
6779         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
6780         all lines were drawn a pixel to short. Also checked the default of
6781         the rest of the values, and they're the same as X now.
6782
6783         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
6784         Clean up pixel positioning of the glyphs. Just use bgy->top and
6785         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
6786         to all divisions to get correct rounding behaviour.
6787
6788         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
6789         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
6790         Moved start_y/end_y flip into draw_drawable implementations.
6791         Flip also x rendering when draw_direction < 0.
6792         Remove unneccesary multiply with draw_direction.
6793
6794 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
6795
6796         * docs/tutorial/gtk-tut.sgml:
6797           - get rid of gtk_toggle_button_toggled FUD
6798           - start DND section - needs work - based on:
6799                 http://wolfpack.twu.net/docs/gtkdnd/
6800
6801 2000-11-22  Alexander Larsson  <alexl@redhat.com>
6802
6803         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
6804         Correct calculation of font metrics. Now GtkEntrys have sane
6805         size.
6806
6807 2000-11-22  Alexander Larsson  <alexl@redhat.com>
6808
6809         * gdk/gdktypes.h:
6810         Add new type GdkSpan
6811         
6812         * docs/reference/gdk/gdk-sections.txt,
6813         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
6814         gdk/gdkregion.h:
6815         Implement and document gdk_region_spans_intersect_foreach.
6816
6817         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
6818         Add new file gdkrender-fb.c which contains all core
6819         rendering code.
6820         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
6821         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
6822         (optimized rectangle fillers).
6823
6824         * gdk/linux-fb/gdkdrawable-fb2.c:
6825         Move all rendering code to gdkrender-fb.c.
6826         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
6827         Use the new span intersection functions in gdk_fb_fill_spans.
6828         gdk_fb_draw_rectangle() clips filled rectangles and calls
6829         gc->fill_rectangle with the result.
6830         gdk_fb_fill_spans() gets extra argument "sorted".
6831
6832         * gdk/linux-fb/gdkevents-fb.c:
6833         Remove unused includes and defines.
6834         New function gdk_fb_get_time() to get correct time for events.
6835
6836         * gdk/linux-fb/gdkinput-ps2.c:
6837         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
6838         Make sure to set the time of all events.
6839
6840         * gdk/linux-fb/gdkmain-fb.c:
6841         Use gdk_fb_get_time ().
6842
6843         * gdk/linux-fb/gdkprivate-fb.h:
6844         New virtual GC calls: fill_span & fill_rectangle.
6845         Export gdk_fb_get_time().
6846         gdk_fb_fill_spans() gets extra argument "sorted".
6847
6848         * gdk/linux-fb/mi*.c:
6849         Use GdkSpan instead of GdkRectangle.
6850         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
6851         from XFree 4 source)
6852         
6853 2000-11-22    <jrb@redhat.com>
6854
6855         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
6856         reversing the order in an if statement will do.  Doing so managed
6857         to make the treemodelsort half work.  Other half will follow after
6858         I get the insert function fully fixed.
6859
6860 2000-11-21  Elliot Lee  <sopwith@redhat.com>
6861         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
6862         more than 2 bits. Besides, I need to implement an evil hack. :)
6863
6864 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
6865
6866         * docs/tutorial/gtk-tut.sgml: minor corrections
6867
6868 2000-11-20  Jonathan Blandford <jrb@redhat.com>
6869         * gtk/gtktreemodelsort.h: Add convertion functions to let you
6870           convert to and from relative path's and iters.
6871
6872         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
6873           testing sorting functions a bit better.  Currently broken -- will
6874           fix in morning.
6875
6876 2000-11-20  Havoc Pennington  <hp@redhat.com>
6877
6878         * gtk/gtkwidget.c: Documented a bunch of functions in here
6879         (gtk_widget_realize): Warn if you try to realize
6880         a widget with no parent that isn't a toplevel
6881         (gtk_widget_intersect): return a gboolean
6882
6883 2000-11-20  Havoc Pennington  <hp@redhat.com>
6884
6885         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
6886         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
6887         scrolling to be implemented in GDK to finish. Also, right now
6888         we just size_allocate all children on every layout change,
6889         which is pretty lame. Test commented out of testtext.c, 
6890         until it works better.
6891
6892 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
6893
6894         * gdk/linux-fb/gdkdrawable-fb2.c:
6895         Removed unused arguments from gdk_fb_drawable_get_pixel().
6896
6897         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
6898         Renamed fidur specific mouse packet data in MouseDevice to
6899         generic. Used it in ps2 mouse handling code to avoid blocking
6900         reads.
6901
6902 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
6903
6904         * demos/gtk-demo/main.c: Changed to have the list become
6905         non-italic when the demo window is destroyed through an external
6906         event (like a close button).  Doing so found three bugs in the
6907         widget.
6908
6909         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
6910
6911         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
6912         we actually set the cell.
6913
6914         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
6915
6916         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
6917         free a leaked path.  Thanks memprof.
6918
6919 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
6920
6921         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
6922         off-by-one error when destroying allocated segments
6923         on failure. (Elliot)
6924
6925 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
6926
6927         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
6928         memleaks found by Evan Martin.
6929
6930 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
6931
6932         * Released 1.3.2
6933         
6934         * NEWS: Updates for 1.3.2
6935
6936 2000-11-17  Tor Lillqvist  <tml@iki.fi>
6937
6938         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
6939         but in general for window system specific events.
6940
6941         * gtk/gtk.def
6942         * gtk/makefile.mingw.in
6943         * gtk/makefile.msc.in: Update.
6944         
6945         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
6946
6947 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
6948
6949         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
6950         distribute gtk.immodules.
6951
6952         * gtk/Makefile.am (install-data-local): Don't install the
6953         gtk.immodules file created for the uninstalled modules;
6954         instead run gtk-query-immodules after install
6955
6956 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
6957
6958         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
6959         -rpath to the right install location.
6960
6961         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
6962         -export-dynamic.
6963
6964         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
6965         properly.
6966
6967 2000-11-15  Havoc Pennington  <hp@pobox.com>
6968
6969         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
6970         patch from Mikael Hermansson to temporarily stop blinking while
6971         the user is using the keyboard to type or navigate. 
6972
6973         Also, when blinking, stay on for longer than we stay off. Also,
6974         return from start_cursor_blink if !cursor_visible, to save
6975         checking that flag all over the place before we call
6976         start_cursor_blink.
6977
6978 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
6979
6980         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
6981         only contain a "fontset" line, which is now ignored.
6982
6983         * gtk/gtkentry.c (gtk_entry_button_release): Make 
6984         double-click-to-select-word work.
6985         
6986 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
6987
6988         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
6989         Don't move back one char when we are actually at the end of the 
6990         paragraph.
6991
6992 2000-11-15  Robert Brady  <robert@suse.co.uk>
6993
6994         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
6995         'o' < 'p'.
6996         
6997         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
6998         bind_textdomain_codeset.
6999
7000         (gtk_init_check): Make the warning about translating default:LTR
7001         sterner.
7002         
7003 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
7004
7005         * **/Makefile.am : remove unecessary rules for win32-specific
7006         config-substituted targets. If you want these rules, use
7007         --enable-maintainer-mode (called automatically by autogen.sh).
7008         Stops a lot of unneccessary make-time warnings.
7009
7010         * gtk/gtktext{layout,display}.c: Factor in total width as
7011         well as screen when figuring alignment for word-wrap as well as
7012         no wrap; this is necessary to handle lines that cannot be wrapped
7013         at all.
7014
7015 2000-11-15  Havoc Pennington  <hp@redhat.com>
7016
7017         * gtk/testtext.c: Implement essential color cycling feature
7018
7019 2000-11-15  Havoc Pennington  <hp@redhat.com>
7020
7021         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
7022         when we invalidate the main window.
7023
7024         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
7025         GtkTextView will now invalidate the side windows for us when text
7026         changes.
7027
7028 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
7029
7030         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
7031         unconditionally, since we may need to update the horizontal
7032         scrollbars even if the height didn't change.
7033
7034         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
7035         the extra attrs, since some of them affect size.
7036
7037         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
7038         x_offset correctly.
7039
7040 2000-11-15  Havoc Pennington  <hp@redhat.com>
7041
7042         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
7043         don't move the first line out into the margin, instead move the
7044         whole paragraph in order to make space for the first line within 
7045         the margin
7046
7047 2000-11-15  Havoc Pennington  <hp@redhat.com>
7048
7049         * gtk/gtktextview.c (changed_handler): offset redraw rect by
7050         xoffset in addition to yoffset, so horizontal scrolling doesn't
7051         break redraws
7052
7053 2000-11-15  Havoc Pennington  <hp@redhat.com>
7054
7055         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
7056         from the cursor
7057         (render_layout_line): fix reversed test that caused weird
7058         underlines to get drawn
7059
7060 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
7061
7062         * gdk/linux-fb/gdkprivate-fb.h:
7063         Fix debug macros.
7064         
7065 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
7066
7067         * gdk/linux-fb/gdkprivate-fb.h:
7068         Added virtual functions set_pixel, get_color,
7069         fill_span and draw_drawable to the GC.
7070         Added global _gdk_fb_screen_gc to use instead of
7071         NULL when drawing to the screen.
7072         Added _gdk_fb_gc_calc_state() prototype.
7073
7074         * gdk/linux-fb/gdkgc-fb.c:
7075         Call _gdk_fb_gc_calc_state() on any gc state change.
7076
7077         * gdk/linux-fb/gdkglobals-fb.c:
7078         Add _gdk_fb_screen_gc
7079                 
7080         * gdk/linux-fb/gdkdrawable-fb2.c:
7081         _gdk_fb_gc_calc_state() calculates best functions
7082         for the GC state and depth.
7083         Moved bpp specialized code to separate functions.
7084         Added optimized 24 bpp AA draw_drawable.
7085
7086         * gdk/linux-fb/gdkevents-fb.c:
7087         Silence gcc warning.
7088
7089         * gdk/linux-fb/gdkimage-fb.c:
7090         Use _gdk_fb_screen_gc
7091
7092         * gdk/linux-fb/gdkwindow-fb.c:
7093         Init and use _gdk_fb_screen_gc
7094
7095         * gdk/linux-fb/mitypes.h:
7096         Remove unused types.
7097
7098 2000-11-14  Havoc Pennington  <hp@pobox.com>
7099
7100         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
7101         to pixels
7102
7103 2000-11-14  Havoc Pennington  <hp@pobox.com>
7104
7105         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
7106
7107         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
7108         unknown char, no real reason we were using a variable. 
7109         Remove gtk_text_unknown_char variable. Fix all the text widget
7110         files accordingly.
7111
7112         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
7113         since the Unicode spec seems to prefer that character for our
7114         purposes.
7115
7116 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
7117
7118         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
7119         value of g_getenv() isn't freeable, so g_strdup it.
7120
7121         * modules/input/inuktitut.c: Inuktitut input method.
7122
7123         * modules/input/Makefile.am: Build this.
7124         
7125 2000-11-14  Elliot Lee  <sopwith@redhat.com>
7126
7127         * gtk/Makefile.am: Install gtk.immodules, needed for operation
7128         of gtk programs.
7129
7130 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
7131
7132         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
7133         reversed > that was causing Home to go to end of previous line.
7134
7135         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
7136         modified-keypresses (leave for bindings.)
7137
7138         * modules/input/Makefile.am: Remove useless -export-dynamic
7139         from module LDFLAGS.
7140
7141 2000-11-14  Havoc Pennington  <hp@redhat.com>
7142
7143         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
7144         higher.
7145
7146         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
7147         account. Also, render rise, underline, background, etc. for
7148         pixbufs as well as text. Also, draw underlines one pixel higher.
7149
7150         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
7151         PangoAttribute for the rise, so it gets drawn properly. Also,
7152         add the GtkTextAppearance attribute for pixbuf/widget segments
7153         as well; we should go ahead and have rise, underline, background,
7154         stipple work for those
7155
7156         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
7157         Pango
7158
7159 2000-11-15  Tor Lillqvist  <tml@iki.fi>
7160
7161         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
7162
7163         * gtk/gtk.def: Update.
7164
7165         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
7166         included.
7167         (gtk_rc_get_im_module_file): Use run-time installation directory
7168         on Win32.
7169
7170         * gdk/win32/rc/gdk.rc: Remove.
7171         * gdk/win32/rc/gdk.rc.in: New file.
7172         * gdk/win32/rc/Makefile.am: New file
7173         * gdk/win32/Makefile.am: Corresponding changes.
7174
7175         * gtk/gtk.rc: Remove.
7176         * gtk/gtk-win32.rc.in: New file.
7177         * gtk/Makefile.am: Corresponding changes.
7178
7179         * configure.in: Corresponding changes.
7180
7181         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
7182         has a built gtkcompat.h. Developers using CVS code on Win32 can
7183         hand-edit it from gtkcompat.h.in.
7184
7185         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
7186         gtkcompat.h from gtkcompat.h.win32.
7187
7188 2000-11-14  Havoc Pennington  <hp@redhat.com>
7189
7190         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
7191         to default to GDK_ACTION_MOVE if the drag is within a single
7192         widget. Defaults to GDK_ACTION_COPY between widgets.
7193
7194 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
7195
7196         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
7197
7198         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
7199
7200         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
7201         srcdir != builddir
7202
7203         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
7204
7205         * configure.in (GTK_VERSION): Up to 1.3.2
7206
7207         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
7208         gtkimcontextxim.h
7209
7210         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
7211         missing doc comment.
7212
7213 2000-11-14  Alexander Larsson  <alexl@redhat.com>
7214
7215         * modules/linux-fb/basic.c:
7216         Use the glib iconv wrappers.
7217
7218 2000-11-13  Havoc Pennington  <hp@pobox.com>
7219
7220         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
7221         still more bugs.
7222
7223         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
7224         scroll the GdkWindows before realization.
7225
7226 2000-11-13  Havoc Pennington  <hp@redhat.com>
7227
7228         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
7229         where GC didn't always get updated properly
7230
7231         * demos/gtk-demo/textview.c (create_tags): Use subattributes
7232         of fonts instead of setting the entire font
7233
7234         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
7235         setting entire font
7236
7237         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
7238
7239         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
7240         a bunch of individually-settable font attributes. You can still 
7241         use the "font" and "font_desc" args, they just set all the font
7242         attributes at once.
7243
7244 2000-11-13 Elliot Lee <sopwith@redhat.com>
7245
7246         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
7247
7248 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
7249
7250         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
7251         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
7252
7253         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
7254         work better.
7255
7256 2000-11-13  Havoc Pennington  <hp@redhat.com>
7257
7258         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
7259         the module file.
7260
7261         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
7262         dest->language
7263
7264         * gtk/testtext.c: Test pixels above/below/inside paragraphs
7265         settings
7266
7267         * gtk/gtktextview.c: Implement object args and setters/getters for
7268         all the aspects of the GtkTextAttributes that are not set from
7269         GtkWidget attributes. This is spacing, justification, margins,
7270         etc.
7271
7272         (gtk_text_view_set_arg)
7273         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
7274         args
7275         (gtk_text_view_class_init): Add args for justify, left_margin,
7276         right_margin, indent, and tabs
7277         
7278
7279         * gtk/gtktextlayout.c (set_para_values): fix to display indent
7280         attribute properly
7281
7282         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
7283         replace with indent attribute
7284
7285         * gtk/gtktextlayout.c (set_para_values): multiply indent by
7286         PANGO_SCALE
7287
7288         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
7289         rearranging code to do that
7290         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
7291         i.e. don't subtract the top_margin first, just to keep
7292         all margin-futzing in one place.
7293
7294         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
7295
7296         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
7297         special case of last line, Pango now handles this itself.
7298         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
7299         Y coordinate
7300         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
7301         (find_display_line_above): wasn't moving the byte index as it
7302         iterated over lines, so always returned byte 0. Also, port to use
7303         PangoLayoutIter.
7304         (find_display_line_below): same problem as
7305         find_display_line_above. Also, port to use PangoLayoutIter.
7306
7307 2000-11-13  Alexander Larsson  <alexl@redhat.com>
7308
7309         * gdk/linux-fb/*.[ch]:
7310         Massive reindent to gtk+ standard. My hands hurt.
7311
7312         * gdk/linux-fb/gdkcolor-fb.c:
7313         Move GdkColorPrivateFB from inherited to windowing_data
7314
7315         * gdk/linux-fb/gdkcursor-fb.c:
7316         _gdk_cursor_new_from_pixmap made static
7317
7318         * gdk/linux-fb/gdkdnd-fb.c:
7319         GdkDragContextPrivate moved to windowing_data
7320
7321         * gdk/linux-fb/gdkdrawable-fb2.c:
7322         Removed endian.h, use glib endianness macros instead
7323         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
7324         and GDK_DRAWABLE_IMPL_FBDATA
7325
7326         * gdk/linux-fb/gdkfont-fb.c:
7327         Add empty gdk_font_load(). Needed for linking of Gtk+.
7328
7329         * gdk/linux-fb/gdkimage-fb.c:
7330         Removed endian.h, use glib endianness macros instead
7331         Moved GdkImagePrivateFB to windowing_data
7332         gdk_image_new_bitmap didn't always allocate enough
7333         memory.
7334
7335         * gdk/linux-fb/gdkinput-ps2.c:
7336         Added semi-working support for MS serial mice.
7337
7338         * gdk/linux-fb/gdkprivate-fb.h:
7339         s/GdkWindowPrivate/GdkWindowObject/
7340         Removed GdkWindowPrivate typedef
7341         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
7342         Removed GDK_DRAWABLE_P
7343         Move GdkColorPrivateFB from inherited to windowing_data
7344         Moved GdkImagePrivateFB to windowing_data
7345
7346         * gdk/linux-fb/gdkvisual-fb.c:
7347         Removed some unused debug code.
7348
7349         * gdk/linux-fb/gdkwindow-fb.c:
7350         Use stock cursors instead of including X headers.
7351         s/GdkWindowPrivate/GdkWindowObject/
7352
7353         * gdk/linux-fb/mitypes.h:
7354         Removed unused types.
7355
7356         * modules/linux-fb/basic.c:
7357         Use the pango fribidi wrappers.
7358
7359 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
7360
7361         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
7362         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
7363         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
7364         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
7365         GEqualFunc where applicable.
7366         
7367         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
7368         pango_font_description_equal as changed in pango.
7369         
7370         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
7371
7372         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
7373
7374         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
7375
7376         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
7377
7378         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
7379
7380         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
7381
7382         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
7383         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
7384
7385         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
7386         gtk_rc_styles_compare -> gtk_rc_styles_equal.
7387
7388 2000-11-12  Havoc Pennington  <hp@pobox.com>
7389
7390         * demos/gtk-demo/Makefile.am (democodedir): change demo install
7391         dir to datadir/gtk+-2.0/demo
7392
7393         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
7394         sorts of text widget and Pango font bugs. Urgh.
7395
7396         * demos/gtk-demo/Makefile.am (demos): Add textview.c
7397
7398         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
7399         tree that you should double click to see the demo. Fix 
7400         types of variables to reflect changed return values from 
7401         GtkTreeStore and GtkTreeViewColumn constructors.
7402
7403         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
7404         newly-created buffer to prepare for GObject semantics
7405
7406         * gtk/testtext.c: don't leak the buffer with GObject semantics
7407
7408         * gtk/testtextbuffer.c: ditto
7409         
7410 2000-11-12  Havoc Pennington  <hp@pobox.com>
7411
7412         Rename this testgtk to gtk-demo to avoid confusion, and 
7413         install it so people can use it as a supplement to 
7414         the documentation.
7415         
7416         * demos/gtk-demo: Moved from demos/testgtk
7417
7418         * demos/testgtk: Removed
7419
7420         * configure.in: make Makefile in gtk-demo
7421         
7422         * demos/gtk-demo/Makefile.am: Install sample source to 
7423         datadir/gtk-demo (maybe there's a better place?), and 
7424         rename the binary to gtk-demo
7425         
7426         * demos/gtk-demo/main.c (load_file): Load installed sample
7427         source if source isn't found in pwd.
7428
7429 2000-11-09  Havoc Pennington  <hp@pobox.com>
7430
7431         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
7432         argument to set the char displayed when visibility == FALSE
7433         (gtk_entry_create_layout): If !entry->visible, replace 
7434         all chars with the "invisible char"
7435
7436         * gtk/testgtk.c: Test the invisible_char deal
7437         
7438 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
7439
7440         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
7441         can't get a native font in the right encoding.
7442
7443 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
7444
7445         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
7446         respectively.
7447
7448 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
7449
7450         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
7451         Fix warning when moving between paragraphs.
7452
7453         * gtk/gtkentry.[ch]: Change move => move_cursor, 
7454         delete => delete_from_cursor, insert => insert_at_cursor
7455
7456 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
7457
7458         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
7459
7460         * modules/input/imthai-broken.c: A Thai input method for use if
7461         Thai keys are really generating Latin1 keysyms.
7462
7463         * modules/input/Makefile.am: Build these.
7464
7465 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
7466
7467         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
7468         g_filename_{to,from}_utf8 now takes an extra parameter.
7469
7470         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
7471         strftime into UTF-8.
7472
7473         (column_from_x, gtk_calendar_paint_day_names): Support RTL
7474         calendars.
7475
7476         (gtk_calendar_paint_day_names): Draw day names in the right 
7477         place.
7478         
7479 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
7480
7481         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
7482         problem with using result of g_get_charset() backwards -
7483         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
7484
7485         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
7486         negative min_width/height and max_width/height to
7487         mean "requisition"; this allows setting a window
7488         to be user-resizable in only one direction easily.
7489
7490         * gtk/testgtk.c (create_main_window): Remove hard-coded
7491         usize - set a default size in the vertical direction.
7492
7493 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
7494
7495         * gtk/gtkrange.c: Add some missing casts. Support 
7496         2 and 3 button clicks on the arrows to mean 
7497         "move by pages" and "jump to end". (Like gtkspinbutton)
7498
7499 2000-11-12 Hans Breuer <Hans@Breuer.Org>
7500
7501         * gdk/win32/makefile.msc : reflect build module changes
7502
7503         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
7504         from GdkPixmap*, cast implementation member instead.
7505
7506         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
7507         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
7508         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
7509         more Gdi functions return value checking. 
7510         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
7511         GdkImagePrivateWin32 *.
7512
7513         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
7514         menus useable again. Add #pragma message to keep reminded on this issue.
7515         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
7516         windows. This allows to enable backing store on Win32!
7517
7518         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
7519         in drawable is of impl type. Correct specific type checks appropriate.
7520  
7521         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
7522         GDK_WINDOW_DESTROYED before allocating new resources.
7523
7524         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
7525
7526         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
7527         (gdk_window_foreign_new) initialize parent handle.
7528         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
7529
7530         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
7531         Let the GDI invalidate the window on MoveWindow call to fix scrolling
7532         problems (e.g. main buttons in testgtk). 
7533
7534 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
7535
7536         * gtk/gtkentry.c (gtk_entry_key_press): Call 
7537         gtk_widget_activate for GDK_Return.
7538
7539         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
7540         of preedit cursor position.
7541
7542 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
7543
7544         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
7545         static.
7546
7547 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
7548
7549         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
7550         out support for multiple locales; that simple doesn't
7551         work reliably with current Xlib
7552
7553         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
7554         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
7555         Add support for positioning the cursor within the preedit string.
7556
7557 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
7558
7559         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
7560         at XIM input method module.
7561
7562         * gtk/gtktextview.c: Check for bindings after passing
7563         events to im context filter.
7564
7565 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
7566
7567         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
7568         empty attribute lists properly.
7569
7570 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
7571
7572         * gtk/queryimmodules.c (main): Return non-zero exit
7573         status if errors were encountered querying any
7574         modules.
7575
7576         * modules/input/Makefile.am (moduledir): remove
7577         leftover bin program target.
7578
7579         * docs/make-todo: Fix typo in error message.
7580
7581 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
7582
7583         * configure.in: Add modules/input/Makefile
7584
7585 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
7586
7587         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
7588         don't include gtkthemes.h.
7589
7590         * gtk/testgtk.c gtk/testtext.c: Set environment variables
7591         to point
7592
7593         * gtk/Makefile.am: Add new .c and .h files, build 
7594         gtk-query-immodules and use it to create a gtk.immodules
7595         file for use of test programs.
7596
7597         * gtk/gtkpreview.c: remove extra blank line.
7598
7599 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
7600
7601         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
7602         Add the ability to add extra tables beyond the default
7603         one, and also the ability to have compose sequences 
7604         that are prefixes of other compose sequences. 
7605
7606         * gtk/gtkimcontextsimple.c: Export a preedit string which
7607         consists of possible candidates for keystrokes that have
7608         been entered but not yet committed.
7609
7610         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
7611         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
7612
7613         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
7614         Add a function to add input-method switching menu items
7615         to a menu.
7616
7617         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
7618         when switching input methods.
7619
7620         * gtk/gtkimcontextsimple.[ch]: Change the format of
7621         the compose table to allow compose tables of different
7622         lengths / sequence.
7623
7624 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
7625
7626         * gtk/gtkimmodule.[ch]: Support routines for loading
7627         GtkIMContext implementations dynamically at runtime.
7628
7629         * modules/input/imcyrillic-translit.c: A sample input
7630         method (based on GtkIMContextSimple with an extra table),
7631         which demonstrates preedit strings and the module
7632         system for input modules
7633
7634         * gtk/queryimmodules.c: Program to query the available
7635         input modules and write the results into a file.
7636          
7637         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
7638         extra config options "im_module_file" (cache file for
7639         input method modules), and "im_module_path" - path
7640         to look for modules when generating cache file.
7641
7642         This doesn't scale.
7643
7644 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
7645
7646         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
7647         generic code from gtkthemes into a new abstraction
7648         GtkModule which has the logic for implementing
7649         a loadable module which implements a number of 
7650         GObject types.
7651
7652 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
7653
7654         * gtk/gtkeditable.[ch]: Convert GtkEditable from
7655         a class into an interface  
7656         
7657         * gtk/gtkoldeditable.[ch]: Move the old editable
7658         implementation into here, so legacy widgets can
7659         still rely on the implemenation. GtkOldEditable
7660         exports GtkEditable. Make selection handling
7661         code use new text conversion functions (and
7662         handle UTF-8 as a side-effect). Use GtkClipboard
7663         for CLIPBOARD.
7664
7665         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
7666         Adopt to match above changes.
7667
7668         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
7669         avoid GtkOldEditable implementation. Restructure
7670         to reduce number of places that modify state directly.
7671         Move to GtkBindingSet. Display the preedit string.
7672         Queue recomputation of PangoLayout and scroll position
7673         to improve effiency of doing complex changes naively.
7674         Add a menu with cut/copy/paste and input method selection.
7675
7676 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
7677
7678         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
7679         to set preedit string and attributes; display preedit string by
7680         inserting string and attributes at cursor when creating the
7681         GtkTextLineDisplay.
7682
7683         * gtk/gtktextlayout.c: Move all conversions between byte
7684         positions in PangoLayout and GtkTextIter into new functions
7685         line_display_iter_to_index/index_to_iter that properly
7686         handle the preedit string.
7687
7688         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
7689         it to return const char * (eventually will end up
7690         as GCONST char *, most likely.)
7691
7692         * gtk/gtktextview.[ch]: Handle the preedit string, call
7693         gtk_im_context_reset() as necessary, add a menu to switch
7694         input methods.
7695         
7696         * gtk/gtktextlayout.[ch]: Remove useless
7697         gtk_text_layout_get_log_attrs() function.
7698
7699 2000-11-11  Tor Lillqvist  <tml@iki.fi>
7700
7701         * gdk/gdk.def
7702         * gtk/gtk.def: Update.
7703
7704         * gdk/win32/*.c: Add last argument to g_type_register_static()
7705         calls.
7706
7707         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
7708
7709         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
7710         generated by older wheel mouse drivers. Get the correct y
7711         coordinate from WM_MOUSEWHEEL messages.
7712
7713         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
7714         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
7715         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
7716         Debugging functions.
7717
7718         * gdk/win32/gdkprivate-win32.h: Declare them.
7719
7720         * gdk/win32/gdkinput-win32.h: Add declaration for
7721         gdk_input_window_destroy().
7722
7723         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
7724
7725 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
7726
7727         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
7728         function to help handle keeping things in sync.
7729
7730 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
7731
7732         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
7733         BOXED marshallers.
7734
7735         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
7736         (gtk_list_store_class_init): use the new BOXED marshallers.
7737
7738         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
7739         new_with_values to new_with_types.
7740         (gtk_tree_store_get_column_type): add this.
7741         (gtk_tree_store_class_init): use the new BOXED marshallers.
7742
7743         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
7744         mirror some POINTER marshallers.
7745
7746 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
7747
7748         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
7749         allow more interesting iterators.  Also, made the lifecycle of
7750         iterators more explicit.
7751
7752         * gtk/gtktreemodelsort.[ch]: New model for sorting.
7753
7754         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
7755         types.
7756
7757 2000-11-09  Alexander Larsson  <alexl@redhat.com>
7758
7759         * demos/testgtk/menus.c:
7760         Changes to make the new testgtk compile after
7761         gtk_menu_append was removed.
7762
7763         * gdk/linux-fb/gdkdrawable-fb2.c
7764         (gdk_fb_get_depth, gdk_fb_get_visual,
7765         gdk_drawable_impl_fb_class_init): Implement
7766         these drawable functions. Now GtkImages work again.
7767
7768         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
7769
7770         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
7771         
7772         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
7773         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
7774         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
7775         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
7776
7777 2000-11-08  Havoc Pennington  <hp@pobox.com>
7778
7779         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
7780         visible_set args, don't know where these had gone, I thought they
7781         used to be there
7782
7783         * gtk/testtext.c: Add a menu item to apply invisibility tag;
7784         now we can test the feature and see that it's totally broken.
7785
7786 2000-11-08  Havoc Pennington  <hp@pobox.com>
7787
7788         Make DND copy pixbufs and tags when source and target share a 
7789         tag table.
7790         
7791         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
7792         in-process GTK_TEXT_BUFFER_CONTENTS target
7793         (gtk_text_view_drag_data_received): Paste from
7794         GTK_TEXT_BUFFER_CONTENTS if we receive it.
7795
7796 2000-11-08  Alexander Larsson  <alexl@redhat.com>
7797
7798         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
7799         API changes.
7800
7801         * gtk/gtkmenu.c: Add support for scrolling menus.
7802         Remove gtk_menu_append/prepend/insert, these have been moved to
7803         gtkcompat.h as #defines.
7804
7805         * gtk/gtkcompat.h.in:
7806         Add compatibility #defines for gtk_menu_append/prepend/insert
7807
7808         * gtk/gtkmenu.h: Add data needed for scrolling menus.
7809         GtkMenuPositionFunc gets an extra argument push_in.
7810         gtk_menu_append/prepend/insert removed.
7811         
7812         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
7813         positioning behaviour to fit to scrolling menus.
7814
7815         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
7816         into menuitem->submeny. That is wrong, and broke torn
7817         off submenus of torn off menus, since they were unrealized
7818         when the first menu was unrealized.
7819
7820         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
7821         gtk_menu_shell_select_item() since these need to be overridden in
7822         GtkMenu.
7823
7824         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
7825         positioning behaviour to fit to scrolling menus.
7826         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
7827         the current item so that it is prelighted when the menu pops up.
7828         This is a workaround to the fact that the menu doesn't get the
7829         initial enter event (due to grabs).
7830
7831         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
7832         s/gtk_menu_append/gtk_menu_shell_append/
7833
7834         * gtk/gtknotebook.c:
7835         s/gtk_menu_insert/gtk_menu_shell_insert/
7836
7837         * gtk/testgtk.c (create_menu, create_menus):
7838         Create the first menu with 50 items so that menu scrolling
7839         can be tested.
7840         
7841         
7842         Patch from Jonathan Blandford  <jrb@redhat.com>
7843
7844         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
7845         system to handle size requests.  First, we ask what the size of
7846         the toggle is.  Then, when allocating the size, we allocate the
7847         toggle_size first.  This way we can have multiple menu-item
7848         classes w/o needing a seperate class for each.
7849
7850         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
7851         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
7852
7853         * gtk/gtkcheckmenuitem.c
7854         (gtk_check_menu_item_toggle_size_request): New function to handle
7855         the toggle size-request.
7856
7857 2000-11-07  Havoc Pennington  <hp@redhat.com>
7858
7859         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
7860         Half-ass somewhat fix this function, so that scrolling to the
7861         insertion point works. Pango hacking is in the future to really
7862         fix it.
7863
7864         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
7865         length of data, no longer used.
7866
7867         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
7868         method contents in here, get rid of destroy method
7869         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
7870         that were backward. Remove debug spew.
7871         (cut_or_copy): Make the clipboard work with insert_range to
7872         preserve tags and pixbufs, not just the primary selection.
7873
7874 2000-11-07  Havoc Pennington  <hp@redhat.com>
7875
7876         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
7877         to gtk_text_mark_get_visible
7878
7879         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
7880         bug that was generating an invalid iterator
7881
7882         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
7883         ensure_char_offsets() in front of code placing the iter in an
7884         invalid state.
7885
7886         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
7887         make override_location arg const
7888         (paste): Replace the selection if we paste into the 
7889         current selection
7890
7891         * gtk/gtkselection.h: Remove "GtkSelectioData"
7892         (struct _GtkSelectionData): move the definition here.
7893
7894         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
7895         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
7896
7897         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
7898
7899         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
7900         (gtk_text_buffer_insert_range_interactive): implement
7901         (gtk_text_buffer_get_tags): Remove, replaced by
7902         gtk_text_iter_get_tags()
7903
7904         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
7905         limit parameter, to avoid infinite linear scan.
7906         (gtk_text_iter_backward_search): Add search limit
7907         (gtk_text_iter_forward_find_char): Add search limit
7908         (gtk_text_iter_backward_find_char): Add search limit
7909
7910 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
7911
7912         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
7913         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
7914         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
7915         gdk/linux-fb/gdkwindow-fb.c:
7916         use g_object_new() instead of g_type_create_instance() which
7917         is a private function for fundamental type implementations.
7918
7919         * gdk/linux-fb/gdkinput-ps2.c:
7920         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
7921         instead just store the current modifier state. Add a (somewhat broken)
7922         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
7923         Rename exported function gdk_input_ps2_get_mouseinfo to
7924         gdk_input_get_mouseinfo.
7925
7926         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
7927         gdk/linux-fb/gdkwindow-fb.c:
7928         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
7929         
7930
7931 2000-11-02  Havoc Pennington  <hp@redhat.com>
7932
7933         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
7934         use stock buttons. Should be 100% source compatible, appropriate
7935         filesel fields now point to dialog->vbox and dialog->action_area.
7936         On the bizarre side, dialog->action_area and filesel->action_area
7937         are not the same widget.
7938         (gtk_file_selection_init): Put some padding around the selection
7939         entry, so it isn't touching the GtkDialog separator.    
7940
7941         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
7942         use stock buttons, etc. Should also be source compatible.
7943         Set the dialog default title in _init not _new().
7944         
7945         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
7946         Use stock buttons; don't put a button box inside the existing
7947         dialog button box. Don't bother with push/pop colormap anymore.
7948
7949         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
7950         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
7951         for message dialog, and necessary for the font selection and color
7952         selection with help and apply buttons.
7953         
7954         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
7955         to the created button widget. Set GTK_CAN_DEFAULT on the button.
7956         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
7957         between buttons, put less padding around the action area.
7958         (gtk_dialog_run): Exit on unmap rather than on destroy. 
7959         This will also exit the loop if the widget is hidden.
7960         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
7961         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
7962         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
7963         special-case delete event.
7964
7965         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
7966         formatting
7967         
7968 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
7969
7970         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
7971         button to temporarily disable position recording in the
7972         "saved position" test.
7973
7974 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
7975
7976         * gtk/gtkthemes.c: added compat code that temporarily implements
7977         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
7978         going to be revamped by owen's upcoming GtkModule patches, but
7979         untill then people want gtk to build, right? ;)
7980
7981 2000-11-04  Havoc Pennington  <hp@pobox.com>
7982
7983         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
7984         list
7985
7986         * docs/Changes-2.0.txt: Add note about
7987         gtk_container_get_toplevels()
7988
7989         * gtk/gtktextview.h: formatting
7990         
7991         * gtk/gtktextview.c: don't start descriptions with "Returns",
7992         confuses gtk-doc
7993
7994 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
7995
7996         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
7997         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
7998
7999 2000-11-03  Havoc Pennington  <hp@redhat.com>
8000
8001         * gtk/gtktexttagtable.c: Docs
8002         (gtk_text_tag_table_size): return a signed int
8003
8004         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
8005         (gtk_text_tag_event): make the event_object a GObject
8006
8007         * gtk/gtktextview.c: Write API docs for all functions.
8008
8009         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
8010         for gtk_text_view_get_window_type() called on one of the private
8011         windows.
8012
8013         * gtk/gtktextview.c: Instead of accessing text_view->buffer
8014         directly, call get_buffer() which demand-creates a default
8015         buffer. So gtk_text_view_new() can be used to create a view with a
8016         default buffer in it, if you just want an empty text box users can
8017         put data in. Useful for GUI builders also.
8018
8019 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
8020
8021         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
8022         the charset encodign portion MUST be in lowercase.
8023         * gtk/gtkrc.az: added file for Azeri language
8024
8025 2000-11-03  Havoc Pennington  <hp@redhat.com>
8026
8027         Get widgets working on the btree/buffer side. Display of them 
8028         still doesn't work.
8029         
8030         * gtk/gtktextview.c: start implementing child widget stuff
8031
8032         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
8033
8034         * gtk/gtktextlayout.c: handle embedded widgets
8035
8036         * gtk/gtktextdisplay.c: handle embedded widgets
8037
8038         * gtk/gtktextchild.c: Implement all the child anchor goo
8039
8040         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
8041         function
8042
8043         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
8044         (insert_pixbuf_or_widget_segment): abstract out common portions of 
8045         creating a child anchor or a pixbuf segment.
8046         (gtk_text_btree_create_child_anchor): new function
8047         (gtk_text_btree_unregister_child_anchor): new function
8048
8049         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
8050         allocate_child signal on GtkTextLayout
8051
8052         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
8053         values
8054         (gtk_text_iter_get_child_anchor): new function
8055
8056         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
8057         default handler for the changed signal, which calls
8058         gtk_text_buffer_set_modified(), instead of just always emitting
8059         changed then calling set_modified() manually. I guess this is
8060         maybe more flexible. It seems logical.
8061
8062 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
8063
8064         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
8065         now.
8066
8067         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
8068
8069 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
8070
8071         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
8072         been marked static.
8073
8074 2000-11-02  Havoc Pennington  <hp@redhat.com>
8075
8076         * gtk/testgtk.c (create_labels): had a test backward
8077
8078         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
8079         fields, so the dest GC ends up with the correct clip origin, 
8080         etc. Fixes a bug where colored labels didn't redraw 
8081         properly.
8082
8083 2000-11-02  Alexander Larsson  <alexl@redhat.com>
8084
8085         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
8086         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
8087         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
8088         Add last argument to t_type_register_static call.
8089         
8090         * gdk/linux-fb/gdkdrawable-fb2.c:
8091         Add last argument to t_type_register_static call.
8092         export the get_image drawable virtual function.
8093
8094         * gdk/linux-fb/gdkimage-fb.c:
8095         Add last argument to t_type_register_static call.
8096         rename gtk_image_get to _gdk_fb_get_image and
8097         export it for use by gdkdrawable-fb2.
8098
8099         * gdk/linux-fb/gdkprivate-fb.h:
8100         export _gdk_fb_get_image.
8101
8102         * gdk/linux-fb/gdkselection-fb.c:
8103         Add new api call stubs.
8104
8105         * gtk/Makefile.am:
8106         Missing ( in linux-fb part.
8107
8108         * modules/linux-fb/Makefile.am:
8109         Must link with gdk_pixbuf or get unresolved symbol.
8110
8111 2000-11-01  Havoc Pennington  <hp@pobox.com>
8112
8113         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
8114         GTK_TYPE_TEXT_ITER and BOXED marshallers
8115
8116         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
8117
8118         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
8119         
8120         * gtk/gtk-boxed.defs: add GtkTextIter
8121
8122         * gtk/gtkmarshal.list: Add marshallers for text widget that 
8123         properly use OBJECT and BOXED
8124
8125 2000-11-01  Havoc Pennington  <hp@redhat.com>
8126
8127         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
8128
8129         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
8130         before returning it. 
8131         
8132 2000-11-01  Havoc Pennington  <hp@redhat.com>
8133
8134         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
8135         Clip the rectangle to be rendered to the drawable, since
8136         get_from_drawable() requires a region within the drawable
8137
8138 2000-11-01  Havoc Pennington  <hp@redhat.com>
8139
8140         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
8141         from coordinates.
8142
8143 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
8144
8145         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
8146         it isn't NULL.
8147
8148 2000-11-01  Havoc Pennington  <hp@pobox.com>
8149
8150         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
8151         on a label
8152         (gtk_label_finalize): unref the attr list if any.
8153
8154         * gtk/testgtk.c (create_get_image): close test on second click
8155         (make_message_dialog): close dialog if it exists
8156
8157         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
8158
8159         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
8160         gdk-pixbuf
8161
8162         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
8163         from Pango markup format
8164         (gtk_label_set_markup_with_accel): ditto but with accelerator
8165         parsing
8166
8167         * gtk/gtkimage.c (gtk_image_expose): reformatting.
8168
8169         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
8170         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
8171         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
8172         call gdk_window_get_origin().
8173
8174         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
8175         implement GDK_PIXBUF_ALPHA_FULL
8176         
8177 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
8178
8179         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
8180         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
8181         g_signal_handlers_disconnect_matched to block/unblock and disconnect
8182         multiple handlers respectively, instead of only treating the
8183         first handler found (bug reported by owen).
8184
8185 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
8186
8187         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
8188
8189         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
8190
8191         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
8192         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
8193         gtk/gtktreeviewcolumn.h: Fixed inline docs.
8194
8195         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
8196         widget.  Needs writing someday.
8197
8198         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
8199         the docs.
8200
8201 2000-10-30  Havoc Pennington  <hp@redhat.com>
8202
8203         * gtk/gtktextview.h, gtk/gtktextview.c:
8204         Rename delete_at_cursor delete_from_cursor, and 
8205         move to move_cursor.
8206
8207 2000-10-30  Havoc Pennington  <hp@redhat.com>
8208
8209         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
8210         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
8211         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
8212         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
8213         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
8214         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
8215         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
8216         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
8217         gtktexttypes.h, gtktextview.c, gtktextview.h:
8218
8219         Massive reindentation and reformatting. Arg alignment and comments
8220         still need fixing in various places.
8221
8222 2000-10-30  Havoc Pennington  <hp@redhat.com>
8223
8224         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
8225         to be named insert_at_cursor and delete_at_cursor so C++ can
8226         handle them.
8227
8228 2000-10-28  Tor Lillqvist  <tml@iki.fi>
8229
8230         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
8231         to get a double directory separator in case the home directory
8232         ends with one. This would cause trouble especially on Windows,
8233         where the path will be confused with the syntax for an an UNC
8234         (network share) path \\server\share\path.
8235         (gtk_rc_add_initial_default_files): Ditto.
8236
8237 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
8238
8239         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
8240
8241         * gtk/gtktextview.c: Use correct marshallers.
8242
8243 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
8244
8245         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
8246         use new iter stuff, and added all the appropriate signals et al.
8247
8248         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
8249         code is internal to gtk only.
8250
8251 2000-10-28  Tor Lillqvist  <tml@iki.fi>
8252
8253         * gtk/gtk.def
8254         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
8255         glib-genmarshal etc.
8256
8257 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
8258
8259         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
8260         parallel builds.
8261
8262 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
8263
8264         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
8265
8266 2000-10-27  Robert Brady  <robert@suse.co.uk>
8267
8268         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
8269         en_GB (British), ia (Interlingua).
8270
8271 2000-10-26  Havoc Pennington  <hp@redhat.com>
8272
8273         * gtk/gtktextiter.c (my_strrstr): fix constness warning
8274
8275         Fixed output of:
8276         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
8277         
8278         * gtk/gtktextsegment.c (char_segment_new): rename
8279         (_char_segment_new_from_two_strings): rename
8280         (_toggle_segment_new): rename
8281         
8282         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
8283         (make_clipboard_widget): make it static
8284         (text_get_func): static
8285         (text_clear_func): static
8286
8287         * gtk/gtkcolorsel.c (adjustment_changed): make this function
8288         static
8289         (hex_changed): make it static
8290         (hsv_changed): make it static
8291         (opacity_entry_changed): make it static
8292
8293         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
8294         (toggle_segment_check_func): rename with _gtk
8295
8296         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
8297         (_widget_segment_new): rename
8298         (_widget_segment_add): rename
8299         (_widget_segment_remove): rename
8300         (_widget_segment_ref): rename
8301         (_widget_segment_unref): rename
8302
8303         * gtk/gtktextmark.c (_mark_segment_new): Rename
8304         _gtk_mark_segment_new   
8305
8306 2000-10-26  Havoc Pennington  <hp@redhat.com>
8307
8308         * gtk/gtkmarshal.list: add new marshallers used by the text widget
8309         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
8310         types
8311
8312         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
8313         marshaller types
8314
8315         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
8316         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
8317         license on these files.
8318
8319         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
8320         work.
8321
8322         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
8323         runtime random number different for each tree, instead of 
8324         a constant I made up.
8325
8326 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
8327
8328         * gtk/Makefile.am: buncha cleanups, kludged build sources
8329         dependencies with a Makefile: oldest-source-stamp dependancy
8330         for the moment. automake is really fighting us here, with
8331         intentionally not allowing user-defined rules or dependancies
8332         prior to it's -include $(DEP_FILES) statement. sucks rocks!
8333
8334         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
8335         to public headers. tehy have a comment stating that they are
8336         "semi-public" aren't included by gtk.h and if enums popup there,
8337         they can be /*< skip >*/-ed.
8338
8339         * gtk/gtktextlayout.h: 
8340         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
8341         added LGPL... <SIGH>
8342
8343 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
8344
8345         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
8346         GtkTreeIter.  Added iterators everywhere.
8347
8348         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
8349
8350         * gtk/gtktreeviewselection.c: Changed to use the iterators.
8351
8352         * gtk/gtktreestore.c: Changed to use the iterators.
8353
8354         * gtk/gtkliststore.c: Commented out the code.  Will convert to
8355         iterators tomorrow.
8356
8357         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
8358         iterators tomorrow.
8359
8360         * gtk/treestoretest.c: Changed to use iterators.
8361
8362         * demos/testgtk/main.c: Moved to use the new iterator system.
8363
8364 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
8365
8366         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
8367         localization misbehaviour.
8368
8369         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
8370         a useless type without copy/free.
8371
8372         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
8373         of GTK_TYPE_CTREE_NODE.
8374
8375 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
8376
8377         * gtk/gtksignal.c:
8378         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
8379         applicable.
8380
8381         * gtk/gtk-boxed.defs (GtkSelectionData): specify
8382         gtk_selection_data_copy and gtk_selection_data_free
8383         do GtkSelectionData work as params in signals.
8384
8385 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
8386
8387         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
8388         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
8389         couldn't they at least give it a non-standard name?
8390         
8391         * gtk/gtktextlayout.c: arg! yet another implementation of
8392         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
8393
8394         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
8395         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
8396         home. now i know this _is_ a conspiracy.
8397
8398         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
8399         ::state-changed.
8400
8401         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
8402         (gtk_accel_group_create_add): marshaller signature fixups.
8403
8404         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
8405         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
8406
8407         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
8408         anymore.
8409
8410 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
8411
8412         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
8413         due to the signal system changes, it wouldn't build currently. to
8414         be fixed soon.
8415
8416         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
8417
8418         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
8419         so it needs gtk_marshal_VOID__ENUM() instead of
8420         gtk_marshal_NONE__UINT().
8421
8422         * gdk/gdk*.c: adapted type registration functions.
8423
8424         * gtk/gtkbindings.c:
8425         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
8426         gone.
8427
8428         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
8429
8430         * gtk/gtkobject.c:
8431         (gtk_object_destroy):
8432         (gtk_object_shutdown): fixed recursion guards. basically we have to
8433         catch the case where any of GObject.shutdown() or gtk_object_destroy()
8434         is called during ::destroy, and avoid recursion there.
8435
8436         * gtk/gtktypeutils.c:
8437         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
8438         boxed_copy/boxed_free. this needs a more general solution based on a
8439         publically installed code-generator utility.
8440
8441         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
8442         glib's gobject has support for that now.
8443         define GtkSignalMarshaller in terms of GSignalCMarshaller.
8444
8445 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
8446
8447         * gtk/gtksignal.[hc]:
8448         * gtk/gtkmarshal.[hc]:
8449         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
8450         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
8451         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
8452         care of that.
8453
8454         * *.c: marshaller name fixups.
8455
8456         * gtk/gtkmarshal.list: added a comment briefing the format.
8457
8458 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
8459
8460         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
8461         compatibility macros here now. more specifically, most of
8462         the API is preserved (yes, _most_, nonwithstanding the
8463         following exceptions listed, the API is stil lHUGE ;)
8464         things that got removed completely:
8465         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
8466         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
8467         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
8468         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
8469         gtk_signal_remove_emission_hook().
8470         non-functional functions variants:
8471         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
8472         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
8473         not supported anymore.
8474         (gtk_signal_compat_matched): new internal function to aid
8475         implementation of the compatibility macros, it  provides
8476         functionality to block/unblock/disconnect handlers based
8477         on func/data.
8478
8479         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
8480
8481         * *.c: adaptions to new type registration API signatures.
8482
8483 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
8484
8485         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
8486
8487 2000-10-25  Robert Brady  <robert@suse.co.uk>
8488
8489         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
8490         gdk_property_delete): If window == NULL, assume the root window.
8491         (restoring the behaviour that was in 1.2).
8492         
8493         * gtk/testtext.c (save_buffer): Allow creation of new files when
8494         saving.
8495
8496         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
8497         calls to read().
8498
8499 2000-10-25  Tor Lillqvist  <tml@iki.fi>
8500
8501         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
8502
8503         * gdk/win32/gdkdrawable-win32.c
8504         * gdk/win32/gdkimage-win32.c
8505         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
8506         X11 backend.
8507
8508         * gdk/win32/gdkcc-win32.c
8509         * gdk/win32/gdkcolor-win32.c
8510         * gdk/win32/gdkfont-win32.c
8511         * gdk/win32/gdkinput-win32.c
8512         * gdk/win32/gdkmain-win32.c
8513         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
8514
8515 2000-10-24  Havoc Pennington  <hp@redhat.com>
8516
8517         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
8518         it a static function
8519
8520         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
8521         redraw text when a tag is applied to it.
8522
8523         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
8524         (gtk_text_tag_affects_nonsize_appearance): private functions to
8525         see if a tag requires various kinds of redraw/layout to be queued
8526         up.
8527
8528         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
8529
8530         * gtk/testtext.c (fill_example_buffer): Put the cursor 
8531         at the start of the buffer, so search works by default
8532
8533         * gtk/gtktextiter.c (lines_match): init match_start always
8534
8535         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
8536         function, get iter at a line + a byte index
8537
8538         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
8539         to set byte position within a line
8540         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
8541
8542 2000-10-23  Havoc Pennington  <hp@redhat.com>
8543
8544         * gtk/testtext.c: Re-enable the "find" dialog
8545
8546         * gtk/testgtk.c: Add test for gdk_drawable_get_image
8547         
8548         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
8549         the arguments to gdk_draw_drawable were in the wrong order
8550         (gdk_window_paint_init_bg): This function was ignoring the
8551         init_region, instead of clipping to it, so the entire backing
8552         pixmap was cleared on every begin_paint()
8553         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
8554         was in here again, the loop kept using the same GtkWindowPaint
8555         over and over.
8556         (gdk_window_begin_paint_region): Fix a bug where we had two
8557         x_offset instead of x_offset and y_offset
8558
8559         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
8560         before we get the image.
8561         (gdk_draw_drawable): get the composite before we draw the drawable.
8562         (gdk_drawable_real_get_composite_drawable): default
8563         get_composite_drawable implementation that returns the drawable 
8564         itself
8565
8566         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
8567         get_composite_drawable virtual function
8568
8569         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
8570         list-walking bug
8571
8572         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
8573         make this work if the source drawable is a GdkDrawableImplX11
8574         instead of a public drawable type. This is really broken; the
8575         problem is that GdkDrawable needs a virtual method get_xid(), but
8576         of course that doesn't work in practice. Enter RTTI.
8577
8578         Also, improve mismatched depth message.
8579
8580         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
8581         GdkPixmap
8582
8583         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
8584         install _gdk_x11_get_image as our implementation of get_image
8585         
8586         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
8587         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
8588
8589         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
8590         gdk_drawable_get_image
8591
8592         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
8593
8594         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
8595         get_image
8596
8597         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
8598         trailing semicolon after for loop
8599
8600 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
8601
8602         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
8603         where font_desc for widget's context lagged widget's font_desc by
8604         one step.
8605
8606 2000-10-22  Tor Lillqvist  <tml@iki.fi>
8607
8608         * gdk/win32/gdkgc-win32.c
8609         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
8610
8611         * gtk/makefile.mingw.in
8612         * gtk/gtk.def: Updates.
8613
8614         * gtk/testgtk.c: sleep() is called _sleep in MS's C
8615         library.
8616
8617         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
8618
8619         * gtk/makefile.msc: Remove
8620
8621         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
8622
8623         * gtk/Makefile.am: Add it.
8624
8625         * configure.in: Generate it.
8626
8627         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
8628         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
8629         something even if not implemented, to satisfy picky MSVC.
8630
8631         Patches by Hans Breuer:
8632         
8633         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
8634         SetBkMode() and SetTextAlign() before calling
8635         pango_win32_render().
8636
8637         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
8638         Set hcliprgn to NULL after destroying it.
8639         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
8640
8641         * gdk/win32/gdkgeometry-win32.c
8642         (_gdk_windowing_window_queue_antiexpose): More effective
8643         implementation.
8644
8645         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
8646         depth as default, not the visual's.
8647
8648         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
8649         against empty title.
8650
8651         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
8652         IMAGE_PRIVATE_DATA.
8653
8654         * gdk/win32/gdkimage-win32.c: Use it.
8655
8656 2000-10-22  Robert Brady  <robert@suse.co.uk>
8657
8658         * configure.in: Check for bind_textdomain_codeset
8659
8660         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
8661         present, make use of it.
8662
8663         Add a translatable string "default:LTR" which, if translated
8664         to "default:RTL", will cause the default direction to be
8665         Right-to-Left.
8666
8667         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
8668         direction if marked as flippable.
8669
8670         * gtk/gtkhscale.c: Mark widget as flippable.
8671         
8672 2000-10-04  Havoc Pennington  <hp@redhat.com>
8673
8674         * gtk/testgtk.c (create_buttons): create some stock buttons
8675         with the default accel group
8676         (create_image): test some new GtkImage features
8677         (make_message_dialog): test GtkMessageDialog
8678         (create_modal_window): fix someone's bizzarro indentation
8679
8680         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
8681         GTK_WIN_POS_CENTER_ON_PARENT. 
8682         Add "destroy with parent" setting, which means the window goes
8683         away with its transient parent.
8684         (gtk_window_get_default_accel_group): get the default accel group
8685         for the window.
8686         (gtk_window_set_destroy_with_parent): set/unset destroy with
8687         parent flag
8688         (gtk_window_read_rcfiles): invalidate icon set caches
8689         after reloading rcfiles 
8690
8691         * gtk/gtkenums.h (GtkWindowPosition): add
8692         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
8693         on its parent window when the dialog is mapped for the first time.
8694
8695         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
8696         a simple message dialog class
8697         
8698         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
8699         handler to emit response signal, and maybe later it would
8700         honor a hide_on_delete flag - though that isn't there yet.
8701         Set border width on the vbox to 2, so we get some padding.      
8702         Use a button box for the action area.
8703         (gtk_dialog_key_press): synthesize a delete event if Esc
8704         is pressed and the GtkWidget key press handler didn't 
8705         handle the escape key.
8706         (gtk_dialog_new_with_buttons): new function creates a dialog
8707         with some default buttons in it.
8708         (gtk_dialog_add_action_widget): add an activatable widget
8709         as a button in the dialog - you can also add a non-activatable
8710         widget by accessing the action area directly.
8711         (gtk_dialog_add_button): add a simple button - stock ID or 
8712         label - to the action area
8713         (gtk_dialog_response): emit response signal
8714         (gtk_dialog_run): block waiting for the dialog, return 
8715         the response. Override normal delete_event behavior, so that 
8716         delete_event does nothing inside gtk_dialog_run().
8717
8718         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
8719         emitted when an action widget is clicked or the dialog gets
8720         delete_event
8721
8722         * gtk/gtk.h: add gtkmessagedialog.h
8723
8724         * gtk/Makefile.am: add gtkmessagedialog.[hc]
8725
8726 2000-10-18  Havoc Pennington  <hp@redhat.com>
8727
8728         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
8729         where any number of empty lines would get skipped
8730
8731         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
8732         edge.
8733
8734         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
8735         warning about invalid iterators (explain more thoroughly)
8736         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
8737
8738         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
8739         big
8740
8741         * demos/*.c: Add error handling
8742
8743         * gtk/gtktextbuffer.c: don't modify const iterators
8744
8745         * gtk/gdk-pixbuf-loader.c: Add full error handling here
8746
8747         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
8748         on file load
8749
8750         * gtk/gtkiconfactory.c: Update to reflect addition of error
8751         handling to gdk-pixbuf loaders
8752
8753 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
8754
8755         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
8756         move to new modularized testgtk.
8757
8758 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
8759
8760         * gtk/gtktreeview.c: Draw the arrows correctly.
8761
8762         * gtk/gtktreemodel.c: Added user docs.
8763
8764         * gtk/gtk.h: remove gtktreedatalist.h.
8765
8766         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
8767         parent when generating my type.
8768
8769         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
8770         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
8771
8772 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
8773
8774         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
8775         GtkTreeModel from object to interface.
8776
8777 2000-10-16  Havoc Pennington  <hp@redhat.com>
8778
8779         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
8780         compilation
8781
8782 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
8783
8784         * gtk/gtktreeselection.c: Add API documentation to all public
8785         functions.
8786
8787         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
8788         functions.
8789
8790 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
8791
8792         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
8793         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
8794         docs to all public functions.
8795
8796         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
8797         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
8798         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
8799         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
8800         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
8801         issue.
8802
8803 2000-10-14  Robert Brady  <robert@suse.co.uk>
8804
8805         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
8806
8807 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
8808
8809         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
8810         values other then G_TYPE_STRING.
8811         * gtk/gtktreeselection.c: Minor commenting updates.
8812         * gtk/gtktreeview.c: Format updates.
8813
8814 2000-10-09  Tor Lillqvist  <tml@iki.fi>
8815
8816         * README.win32: Update.
8817
8818         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
8819         lines that had been deleted by mistake (?).
8820
8821         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
8822         also the case fg==white and bg==black (but still not randomly
8823         coloured cursors). Thanks to Wolfgang Sourdeau.
8824
8825         * gdk/win32/*.c: Silence gcc -Wall.
8826
8827         * gtk/gtk.def: Add missing entry points.
8828
8829         Fixes by Hans Breuer:
8830
8831         * gdk/makefile.msc
8832         * gdk/win32/makefile.msc: Update.
8833
8834         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
8835         some MSVC thing, presumably), cause breakpoint on failures. Add
8836         GDK_NOR case. Call g_log_set_always_fatal.
8837
8838         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
8839         should be pased by reference.
8840         
8841         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
8842         
8843         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
8844
8845         * gdk/win32/gdkevents-win32.c
8846         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
8847
8848         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
8849         implementation object.
8850
8851         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
8852         not just windows.
8853         
8854         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
8855         Use the wrapper object.
8856         
8857 2000-10-06  Havoc Pennington  <hp@redhat.com>
8858
8859         * Makefile.am (SRC_SUBDIRS): contrib subdir
8860
8861         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
8862         so it can be used in Xlib version
8863
8864         * demos/testpixbuf.c (update_timeout): error checking from 1.0
8865         tree
8866
8867         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
8868         change from 1.0 tree that returns first frame of animation
8869         if the loaded file is an animation.
8870
8871         * contrib: add new directory to hold stuff that comes with GTK+
8872         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
8873         
8874         * configure.in: add contrib/*
8875
8876 2000-10-05  Havoc Pennington  <hp@redhat.com>
8877
8878         * demos/testpixbuf-save.c: add pixbuf save test
8879
8880         * demos/Makefile.am: add testpixbuf-save.c
8881
8882 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
8883
8884         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
8885         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
8886         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
8887         * gtk/gtktreeselection.[ch]: Replaced
8888         "node_selected"/"node_unselected" signal with "selection_changed"
8889         signal.
8890
8891 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
8892
8893         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
8894         tree widget.
8895
8896 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
8897
8898         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
8899         drawing.
8900
8901 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
8902
8903         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
8904         Move list pointer forwards before removing item from
8905         list. (Crash reported by Salmaso Raffaele)
8906
8907         * gdk/gdkwindow.h: Remove spurious trailing ,
8908
8909         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
8910         dependencies on uninstalled libraries, sorry folks.
8911
8912 2000-10-04  Havoc Pennington  <hp@redhat.com>
8913
8914         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
8915         gtk/gtkiconfactory.c: Fix copyrights    
8916
8917         * demos/testpixbuf.c: add inline pixbuf test
8918         
8919 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
8920
8921         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
8922         Add gdk_window_iconify.
8923
8924         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
8925         (gdk_window_set_geometry_hints): Add win_gravity
8926         to geometry structure.
8927
8928         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
8929         Implement _NET_WM_PING.
8930
8931         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
8932         Set _NET_WM_PID on the client leader.
8933
8934         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
8935         Handle UTF-8 better.
8936
8937         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
8938         UTF-8 better, set _NET_WM_NAME as well. Only set
8939         icon name if it hasn't previously been explicitely 
8940         set.
8941
8942 2000-10-03  Havoc Pennington  <hp@redhat.com>
8943
8944         * gtk/testtextbuffer.c: clean up trailing whitespace,
8945         add extensive tests for tag toggle iteration.
8946         
8947         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
8948         distance
8949
8950         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
8951         optimize case where the tag root is on level 1
8952         (gtk_text_line_previous_could_contain_tag): attempt to implement
8953         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
8954         functionality
8955
8956         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
8957         Implement this, though not very efficiently.
8958
8959         * gtk/gtktextiterprivate.h: reformat
8960
8961         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
8962         iterator
8963
8964         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
8965         this to properly revalidate the iterators.
8966
8967         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
8968         properly at the end of the line (and therefore on empty lines)
8969
8970         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
8971         maybe we should return a value...
8972
8973 2000-10-03  Tor Lillqvist  <tml@iki.fi>
8974
8975         * config.h.win32: Guard definition of alloca(). glib.h now handles
8976         that.
8977
8978         * gdk/gdk.def
8979         * gtk/gtk.def: Add new entry points.
8980
8981         Changes just to make GTK+ build without errors on Win32. No hope
8982         of it working in its current state, though...:
8983         
8984         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
8985         some functions from the X11 backend, just to make GTK+ build.
8986
8987         * gdk/makefile.mingw.in
8988         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
8989         number. Add new object files.
8990
8991         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
8992         GetMessageTime to get timestamp (where on X11 uses
8993         gdk_x11_get_server_time()).
8994
8995 2000-10-02  Havoc Pennington  <hp@pobox.com>
8996
8997         * gtk/gtktextview.c: text_window_* weren't static and should have
8998         been.
8999         Start work on child widgets; not yet complete, syncing to 
9000         office computer.
9001
9002         * gtk/gtktextchild.h: change this to contain a public interface,
9003         starting work on child interfaces.
9004         * gtk/gtktextchildprivate.h: move private interfaces here
9005
9006         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
9007
9008         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
9009         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
9010         gtk/gtktextmark.c: copyright notices
9011
9012         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
9013         internal functions      
9014
9015         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
9016         internal function
9017
9018         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
9019         Reformatting    
9020
9021 2000-09-30  Havoc Pennington  <hp@pobox.com>
9022
9023         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
9024         NULL start/end pointers
9025
9026         * gtk/gtktextbuffer.c: Write some docs
9027         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
9028         NULL, so you can just check whether there's a selection.        
9029
9030         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
9031         cleanup_line or segments_changed ourselves, it gets done 
9032         in unlink_segment
9033
9034         * gtk/gtktextmark.h:
9035         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
9036         
9037         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
9038
9039         * gtk/gtktextmark.c: delete some more old Tk cruft
9040
9041         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
9042         mark before removing it, so we can emit MARK_DELETED with a valid
9043         pointer.
9044         (gtk_text_buffer_mark_set): hold ref across signal emission
9045
9046         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
9047         whining about attempts to delete special marks
9048
9049         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
9050         underscore, since it's internal.
9051
9052         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
9053         now implemented in terms of iterators in gtktextiter.h
9054
9055         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
9056         New function, destructively sets contents of buffer. Also 
9057         a convenient way to clear the buffer by setting text to ""
9058
9059         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
9060         multiline string literal
9061
9062         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
9063         text changes.
9064
9065         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
9066         is not dereferenceable
9067         (gtk_text_iter_forward_lines): fix return value
9068
9069 2000-09-29  Havoc Pennington  <hp@redhat.com>
9070
9071         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
9072
9073         * gtk/gtktextview.c: Implement drag thresholding; change functions 
9074         that set border window size to have nicer name
9075         (gtk_text_view_mark_set_handler):  Fix this to have the 
9076         right signature.
9077
9078         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
9079
9080         * gtk/testtext.c: Update with API changes, put line numbers on 
9081         both sides.
9082         
9083         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
9084         with this
9085
9086         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
9087         pixbuf; delete a big block of #if 0 Tk code
9088
9089         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
9090         insert_pixmap with insert_pixbuf
9091
9092 2000-09-29  Martin Baulig  <baulig@suse.de>
9093
9094         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
9095         confusion with the GdkPixbuf of the GNOME 1.x platform.
9096
9097 2000-09-29  Havoc Pennington  <hp@pobox.com>
9098
9099         * gtk/gtktextview.c: Implement the side windows.
9100
9101         * gtk/testtext.c: Implement simple line numbering in the 
9102         left side window; seems to make scrolling sloooow. Oops.
9103         Also, cursor blink is for some reason causing redraws
9104         of the line numbers. Should investigate...
9105
9106 2000-09-28  Havoc Pennington  <hp@redhat.com>
9107
9108         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
9109         scrolling child windows, and draw focus rectangle properly.
9110         
9111         (gtk_text_view_buffer_to_window_coords):
9112         Coordinate transformation to deal with all these freaking windows
9113         and offsets
9114         (gtk_text_view_window_to_buffer_coords): transform the other way
9115
9116         * gtk/testtext.c (create_buffer): Update to match Pango API change
9117
9118         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
9119         anonymous tags
9120         (foreach_unref): don't emit remove signal from finalize, just
9121         set tag's parent to NULL
9122
9123 2000-09-26  Havoc Pennington  <hp@redhat.com>
9124
9125         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
9126         Fix some warnings       
9127
9128 2000-09-26  Havoc Pennington  <hp@redhat.com>
9129
9130         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
9131         headers into the private header list
9132
9133         * Makefile.am (pkgconfig_DATA): install pkg-config files
9134
9135         * configure.in: add pkg-config files
9136
9137         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
9138
9139         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
9140         outstanding icon caches on theme change.
9141
9142         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
9143         important types:
9144
9145         (GtkIconSource): Specification for creating a pixbuf 
9146         appropriate for a direction/state/size triplet from 
9147         a source pixbuf or filename
9148
9149         (GtkIconSet): List of GtkIconSource objects that are used to
9150         create the "same" icon (e.g. an OK button icon), and cache for
9151         rendered icons
9152
9153         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
9154         up the icon set for a given stock ID.  GTK maintains a stack of
9155         GtkIconFactory to search, and applications or libraries can add
9156         additional icon factories on top of the stack
9157         
9158         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
9159         the set of GtkIconSource specified for a given stock ID into 
9160         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
9161         RcStyle, under the specified stock ID.
9162
9163         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
9164         render_icon used to derive a GdkPixbuf from a GtkIconSource.
9165         This allows people to theme how prelight, insensitive, etc. are
9166         done.
9167
9168         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
9169         icon factories for a style, and return the resulting 
9170         icon set if any.
9171
9172         (gtk_style_render_icon): Render an icon using the render_icon 
9173         method in the GtkStyleClass.
9174
9175         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
9176         Use the style for a given widget to look up a stock ID, get the
9177         icon set, and render an icon using the render_icon method 
9178         of the style
9179
9180         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
9181         (contains information about a stock item), the built-in stock item
9182         IDs, and functions to add/lookup stock items.
9183
9184         * gtk/stock-icons/*: Stock icons that come with GTK
9185
9186         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
9187         a button based on a GtkStockItem
9188         (gtk_button_new_accel): Takes a uline string and accel group, and
9189         installs the accelerator.
9190
9191         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
9192         image-display widget.
9193
9194 2000-09-25  Havoc Pennington  <hp@redhat.com>
9195
9196         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
9197
9198         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
9199         Fix a bug when removing node data, we didn't properly 
9200         re-splice the linked list after removing the data.
9201
9202         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
9203         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
9204
9205         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
9206
9207         * gtk/gtktextlayout.c (set_para_values): Set tab array 
9208         for the layout from the GtkTextTag.
9209
9210         * gtk/gtktexttypes.h: delete tab and search cruft, 
9211         remove g_convert() in favor of GLib version
9212
9213         * gtk/gtktexttypes.c: remove tab implementation from here,
9214         move to Pango
9215
9216         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
9217         tab stuff using new PangoTabArray from Pango
9218
9219         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
9220         unused border_width stuff
9221
9222 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
9223
9224         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
9225         glib) and now useless utf_to_latin1() latin1_to_utf()
9226
9227         * gtk/gtktextview.[ch]: Change ::move_insert and
9228         ::delete_text action signals to ::move and ::delete;
9229         create the signals with the right enumeration type,
9230         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
9231         C-v bindings, change Home, End to move to beginning/end
9232         of line, Add C-Home C-End to move to beginning/end
9233         of buffer. Change ::cut_text to ::cut_clipboard, etc;
9234         combine ::scroll_text into ::move; use new GtkSelectionData
9235         functions to simplify DND text handling.
9236         
9237         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
9238         deletion enumerations here, rename enumeration values to 
9239         be consistently plural.
9240
9241         * gtk/gtktextbuffer.c: Use new clipboard interfaces
9242         for cut/copy/paste and primary selection.
9243
9244         * gtk/gtktextbuffer.[ch]: Remove excess time and
9245         'interactive' arguments from cut/copy/paste;
9246         rename cut to cut_clipboard, etc; remove
9247         gtk_text_buffer_get_clipboard_contents().
9248
9249         * gtk/gtktextlayout.[ch]: Add 
9250         gtk_text_layout_move_iter_to_line_end() to move the iter to 
9251         line ends.
9252
9253         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
9254         Functions to set or get a UTF-8 string on the selection
9255         data.
9256
9257         * gtk/gtkclipboard.[ch]: New, simplified selection handling
9258         interfaces.
9259
9260         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
9261         created widgets - one of these is useless if we don't.
9262
9263         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
9264         a public function clear all targets registered for the
9265         widget.
9266
9267         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
9268         Never call gtk_widget_realize() - that was just asking
9269         for bizarre side-effects.
9270
9271         * gtk/gtkselection.c (gtk_selection_owner_set): Call
9272         gdk_selection_owner_set even if the widget is the
9273         same so that we reliably update the timestamp on
9274         the server.
9275
9276         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
9277         gdk_x11_get_server_time() function.
9278         
9279         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
9280         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
9281         Add some tricky filtering on serial numbers for
9282         selection clear events to fix up long-standard
9283         race condition FIXME's in gtkselection.c.
9284
9285         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
9286         routines to convert from utf8 to compound text or
9287         STRING and from a text property to UTF-8.
9288
9289         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
9290         a convenience function gdk_get_current_event_time().
9291
9292         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
9293         and free selection_data->data properly
9294
9295 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
9296
9297         * gtk/gtkthemes.c: Remove some unecessary includes.
9298
9299 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
9300
9301         * gtk/gtktextdisplay.c
9302         * gtk/gtktextlayout.c
9303         * gtk/gtktexttag.c
9304         * gtk/gtktexttag.h
9305         * gtk/testtext.c: Change the overstrike property to strikethrough,
9306         to closer match pango.
9307
9308 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
9309
9310         * gtk/gtktextview.c: Fix up visibility so that focus,
9311         cursor_visible and blink interact properly.  Reenable cursor blink
9312         which had been roughly disabled. Make blink and focus
9313         properly per-view.
9314
9315         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
9316         Add a flag for whether to display insertion cursor and
9317         a function to set the flag.
9318
9319         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
9320         get_line_y() to get_line_yrange(), to be a bit more generally
9321         useful.
9322
9323 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
9324
9325         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
9326           do stop_navigating_submenu, to clear last timeout properly.
9327           Also in gtk_menu_motion_notify move ignore_enter above
9328           the conditional to make it always happen as suggested by Owen
9329
9330 2000-09-07  Tor Lillqvist  <tml@iki.fi>
9331
9332         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
9333
9334         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
9335         w32api headers.
9336
9337         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
9338         declarations.
9339
9340         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
9341         (gdk_win32_get_colormap): A line had been deleted by mistake.
9342
9343         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
9344         (gdk_event_translate): Handle more virtual keycodes to be able to
9345         generate GDK events for Control-comma, Control-period, etc.
9346
9347         * gtk/gtk.def: Add some missing entry points.
9348
9349 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
9350
9351         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
9352         Doc comment fixing. (Mostly non-matching parameter names.)
9353
9354         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
9355         comments a little to avoid looking like a doc comment.
9356
9357         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
9358         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
9359         conversions be changed to GError?)
9360
9361         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
9362         Move private #defines into .c file.
9363
9364         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
9365         order of argument addition, remove duplicates.
9366
9367         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
9368         parent class is FrameClass, not BinClass.
9369
9370         * gtk/gtk.h: Add gtkinvisible, which was missing.
9371         (It's occasionalyl useful for client apps, if seldom.)
9372
9373         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
9374         #define.
9375
9376 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
9377
9378         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
9379         coordinates when creating window, instead of GDK-space
9380         coordinates. (Avoid BadValue on too large windows.)
9381
9382 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
9383
9384         * configure.in (use_mmx_asm): Remove conftest* after use along the
9385         lines of AC_TRY_COMPILE.        
9386         
9387         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
9388         of g_dirname, which is deprecated.
9389         (gtk_rc_parse_any): Removed calls to
9390         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
9391
9392         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
9393         Removed calls to g_hash_table_{freeze,thaw}, as they are
9394         deprecated now.
9395
9396         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
9397         instead of g_basename.
9398         
9399 2000-09-04 Elliot Lee <sopwith@redhat.com>
9400         
9401         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
9402         ANSI warning.
9403
9404 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
9405
9406         * gtk/gtkwidget.h:  Add some documenting comments about 
9407           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
9408           just as owen said on irc.
9409
9410         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
9411           set HAS_DEFAULT.  Only set it if there isn't another window
9412           holding it (a focus window which RECEIVES_DEFAULT) and only unset
9413           it if the widget is not the focused window with RECEIVES_DEFAULT.
9414           This fixes weird double default bugs in dialogs which has things
9415           call gtk_window_set_default at times.
9416
9417 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
9418
9419         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
9420         Nils Barth and David Santiago to improve submenu
9421         navigation. The patch does this by creating a triangular
9422         region from the point where the pointer leaves the
9423         menu to the submenu.  While the pointer is in
9424         that region and a timeout has not expired, events 
9425         that would cause the active submenu to change are
9426         ignored.
9427
9428 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
9429
9430         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
9431         moving a toplevel window immediately after sizing it would
9432         result in it being sized back to the old size since 
9433         impl->width, impl->height aren't updated until we hear
9434         back from the server. There is still a (longstanding) bug
9435         here that gdk_window_get_size() will give the wrong size
9436         until we do hear back.
9437
9438 2000-08-31  Havoc Pennington  <hp@redhat.com>
9439
9440         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
9441         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
9442         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
9443         Rename GtkTextStyleValues to GtkTextAttributes
9444
9445 2000-08-31  Havoc Pennington  <hp@pobox.com>
9446
9447         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
9448         for rapid testing whether an iterator is the end iterator
9449         (gtk_text_btree_new): init end line cache
9450         (gtk_text_line_is_last): use fast cached line to 
9451         see if we're the last line.
9452         (get_last_line): use cached line here too, should 
9453         speed up some random unrelated code.
9454         
9455 2000-08-30  Havoc Pennington  <hp@pobox.com>
9456
9457         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
9458         signals.
9459
9460         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
9461         delete_text signals. This allows the signals to be used for
9462         implementing undo.
9463
9464         * gtk/gtktextbuffer.c: Change signal handler signatures; 
9465         provide "interactive" argument when emitting insert_text or
9466         delete_text signal.
9467         
9468 2000-08-30  Havoc Pennington  <hp@pobox.com>
9469
9470         * gtk/gtktextbuffer.c: Docs
9471
9472 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
9473
9474         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
9475         from switch statements, since Tor removed the enumeration
9476         value.
9477         
9478         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
9479         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
9480
9481 2000-08-29 Elliot Lee <sopwith@redhat.com>
9482         * */*.h: Use G_GNUC_CONST.
9483
9484 2000-08-27  Havoc Pennington  <hp@pobox.com>
9485
9486         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
9487         minor indentation fixes, inserted some FIXME about stuff I
9488         realized was broken while documenting it.
9489         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
9490         GTK convention  
9491
9492 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
9493
9494         * gtk/testgtk.c (create_styles): Fix double free of
9495         font desc.
9496
9497 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
9498
9499         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
9500         
9501         * gtk/testgtk.c (create_styles): Add a test for modifying
9502         the style through gtk_widget_modify_*.
9503
9504         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
9505         a function to get the current modifier style.
9506
9507         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
9508         of the passed in GtkRcStyle instead of ref'ing it.
9509
9510         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
9511
9512 2000-08-20  Tor Lillqvist  <tml@iki.fi>
9513
9514         * gdk/gdkimage.h
9515         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
9516         shared memory image+pixmap GdkImage type, or
9517         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
9518         I am dropping that.
9519
9520         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
9521         actually call gtk_init_abi_check(), passing also
9522         sizeof(GtkWindow). Ditto for gtk_init_check(). 
9523
9524         * gtk/gtk.def
9525         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
9526         New functions, used to check that the GTK+-using code has been
9527         compiled using the correct compiler and switches. In particular,
9528         with gcc one has to use the -fnative-struct switch as GTK+ is
9529         compiled with that.
9530
9531 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
9532
9533         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
9534         ->prev fields when merging lists. (Found simultaneously
9535         by Pawel Salek and Jakub Jelinek)
9536
9537 2000-08-12  Tor Lillqvist  <tml@iki.fi>
9538
9539         * gdk/gdk.def
9540         * gtk/gtk.def: Add missing entries.
9541
9542         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
9543         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
9544
9545         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
9546         function. Dummy implementation at this point.
9547
9548         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
9549         rules. Undefine GTK_COMPILATION when compiling the test programs.
9550         
9551         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
9552
9553 2000-08-11  Tor Lillqvist  <tml@iki.fi>
9554
9555         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
9556         to convert back and forth from UTF-8 and the "system" (or "current
9557         locale") charset when necessary. Indentation/spacing cleanup.
9558
9559 2000-08-10  Havoc Pennington  <hp@redhat.com>
9560
9561         * Makefile.am (snapshot): Change the format of the snapshot
9562         version to match glib
9563
9564         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
9565         from EXTRA_DIST since it doesn't seem to exist
9566
9567 2000-08-10  Tor Lillqvist  <tml@iki.fi>
9568
9569         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
9570         version of the directory name (not the UTF-8 one) when building
9571         the path name to stat().
9572
9573 2000-08-03  Elliot Lee  <sopwith@redhat.com>
9574
9575         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
9576         PANGO_ATTR_SHAPE set.
9577
9578 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
9579
9580         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
9581         Peter Osterlund to simplify the code while keeping the
9582         functionality the same.
9583
9584 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
9585
9586         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
9587         is_viewable() test further inside the function, since removing the 
9588         window from the redraw list without clearing ->update_area
9589         was also very broken.
9590
9591 2000-08-02  Tor Lillqvist  <tml@iki.fi>
9592
9593         * configure.in: Check for <unistd.h>.
9594
9595 2000-08-01  Martin Baulig  <baulig@suse.de>
9596
9597         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
9598         to display the message that this is a development version of GTK+.
9599
9600 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
9601
9602         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
9603         was depending on widget->allocation instead of the width of text_area,
9604         which was incorrect for subclasses like GtkSpinButton.
9605
9606         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
9607         with width == 1 tests that should be width == -1.
9608
9609 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
9610
9611         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
9612         (broken, Elliot, every single window blank on X) custom code with call
9613         to gdk_window_is_viewable() which a) prevents code duplicate and
9614         b) works. 
9615
9616 2000-07-31  Elliot Lee  <sopwith@redhat.com>
9617
9618         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
9619         to get the GDK_PARENT_ROOT() macro to work.
9620         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
9621         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
9622         of, windows that aren't shown.
9623         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
9624         pointer grab stuff.
9625
9626 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
9627
9628         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
9629           s/gtk_main_iteration/g_main_iteration/
9630
9631           Did this already in change:
9632                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
9633           don't know how it got reverted.
9634
9635 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
9636
9637         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
9638         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
9639
9640         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
9641         not gdk_pixbuf.
9642
9643 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
9644
9645         * configure.in,po/{sp,sr}.po: Added Serbian files
9646
9647 2000-07-30  Tor Lillqvist  <tml@iki.fi>
9648
9649         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
9650
9651         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
9652         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
9653         GIOChannel implementation.
9654
9655         * gdk/win32/gdkinput.c
9656         * gdk/win32/gdkpango-win32.c: Update license name here, too.
9657
9658         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
9659         definition to match prototype.
9660
9661         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
9662
9663 2000-07-27  Elliot Lee  <sopwith@redhat.com>
9664
9665         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
9666         function, to allow handling image formats that cannot be detected
9667         by looking at content alone.
9668
9669 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
9670
9671         * docs/tutorial/*.gif *.jpg *.eps
9672           Update these to the same look-n-feel.
9673           Why does including images in DocBook suck so badly?
9674
9675 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
9676
9677         * gtk/gtktable.c: applied patch from Phil Thompson
9678         <phil@river-bank.demon.co.uk> that enables space settings for
9679         the last row/columns as well.
9680
9681 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
9682
9683         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
9684         updates the license headers to the GNU Lesser General Public License,
9685         as well as updating the copyright year to 2000.
9686
9687 2000-07-26  Robert Brady  <rwb197@zepler.org>
9688
9689         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
9690           and po/Makefile, was installing and looking for them under gtk20
9691           and gtk2 respectively.
9692
9693 2000-07-25  Havoc Pennington  <hp@redhat.com>
9694
9695         * gtk/testtext.c: Comment out some stuff that depends on the rest
9696         of my patches.
9697
9698 2000-07-25  Havoc Pennington  <hp@redhat.com>
9699
9700         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
9701         buffer
9702
9703 2000-07-25  Havoc Pennington  <hp@redhat.com>
9704
9705         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
9706         widget changes.
9707
9708         * gtk/gtktextview.h: To be consistent with usage of "line"
9709         throughout the API to mean "newline-terminated thingy", change
9710         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
9711         to MOVEMENT_LINE.
9712
9713         (GtkTextView): Add flags for default editability, and whether to
9714         show the cursor. Add functions to get/set that. Add 
9715
9716         (gtk_text_view_get_iter_location): new function
9717
9718         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
9719         gtktextlayout.h
9720         (g_convert): Add g_convert temporarily, will go in glib in a bit
9721         
9722         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
9723         GtkTextTagTableForeach instead of brokenly using GHFunc.
9724         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
9725
9726         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
9727         moved to public header.
9728
9729         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
9730         "invisible", since "elide" was a bad name.
9731         (gtk_text_tag_get_priority): Added
9732
9733         (GtkTextStyleValues): put this in public header, along with
9734         functions to use it.
9735
9736         * gtk/gtktextmarkprivate.h: Include more headers, since we no
9737         longer include gtktextbtree.h.
9738
9739         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
9740         gtk_text_mark_deleted
9741
9742         * gtk/gtktextlayout.h: Don't include the "really private" headers,
9743         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
9744         to make this possible. Now we only need to install
9745         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
9746         (However the Makefile.am isn't changed yet because of the
9747         logistics of merging gtk-hp-patches piecemeal)
9748
9749         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
9750         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
9751         gtk_text_iter_get_line is now used in the public API for a
9752         different purpose.
9753
9754         * gtk/gtktextiter.h: Clean up function names to be more
9755         consistent. Always call char offset "offset" and byte index
9756         "index". A "line" is always a line number. 
9757
9758         (gtk_text_iter_is_last): new function, more efficient than 
9759         the existing way to check
9760         (gtk_text_iter_is_first): new function, also more efficient
9761
9762         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
9763
9764         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
9765         gtk_text_iter_forward_char, etc.
9766
9767         (gtk_text_iter_forward_to_tag_toggle): Renamed from
9768         forward_find_tag_toggle, since this isn't a linear search
9769
9770         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
9771
9772         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
9773         New functions, search for a buffer substring.
9774
9775         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
9776         interactive and default editable (since we need to store that info
9777         until we receive the selection data).
9778
9779         Remove all the _at_char and at_line etc. versions of functions;
9780         only have iterator versions.
9781
9782         Add _interactive() versions of functions, that consider the
9783         editability of text. (FIXME add interactive flag to the 
9784         insert/delete signals per Darin's suggestion)
9785
9786         (gtk_text_buffer_get_tag_table): new function, demand-creates the
9787         tag table if necessary
9788
9789         Remove declaration of gtk_text_buffer_get_iter_from_string
9790
9791         (_gtk_text_buffer_get_btree): private/internal function, added.
9792         
9793
9794         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
9795         (gtk_text_line_is_last): new function
9796
9797 2000-07-25  Havoc Pennington  <hp@redhat.com>
9798
9799         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
9800         using GtkProgressBar. See Changes-2.0.txt for details.
9801
9802         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
9803         "pulse_step" which are the equivalent of
9804         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
9805         Implement new API.
9806         
9807         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
9808         (use_text_format) to mark whether text set on the progress bar is
9809         a format string. Deprecate entire GtkProgress interface.
9810
9811         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
9812         (gtk_progress_build_string): make this a no-op if use_text_format
9813         is FALSE
9814
9815         * docs/Changes-2.0.txt: Describe progress bar changes.
9816
9817 2000-07-25  Tor Lillqvist  <tml@iki.fi>
9818
9819         * Makefile.am: Include the build directory.
9820
9821         * configure.in: Generate build/Makefile, build/win32/Makefile,
9822         gdk/, gdk/win32/, and gtk/makefile.mingw.
9823
9824         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
9825         Add GETTEXT_PACKAGE.
9826         
9827         * gdk/gdk.def
9828         * gtk/gtk.def: Updates.
9829
9830         * gdk/gdkfont.h
9831         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
9832         need them any longer.
9833
9834         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
9835
9836         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
9837         PANGOWIN32_LIBS and gdk_pixbuf.
9838
9839         * gdk/win32: Compiles, but no doubt doesn't work at all.
9840
9841         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
9842
9843         * gdk/win32/gdkinput.c: New file, temporarily.
9844         
9845         * gdk/win32/gdkinput-win32.h: New file
9846
9847         * gdk/win32/gdkinputprivate.h: Remove.
9848
9849         * gdk/win32/gdkpango-win32.c: New file.
9850
9851         * gtk/makefile.mingw.in: New file
9852
9853         * gtk/makefile.cygwin: Removed
9854         
9855         * gtk/Makefile.am: Update accordingly.
9856
9857         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
9858         made externally visible.
9859
9860         * gtk/gtkmain.c: Use it.
9861         
9862         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
9863         is enough.
9864
9865         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
9866
9867 2000-07-24 Elliot Lee <sopwith@redhat.com>
9868         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
9869         individual backends already.
9870         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
9871         again. Yes, there really is a good reason for this, if you are using the gdkregion
9872         internals, and if you're not, why do you care?
9873         * gdk/gdkwindow.c: Fix inverted condition
9874         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
9875         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
9876         * gtk/gtkrange.c: Redraw trough when moving.
9877         * gtk/gtktypeutils.c: Fix warning by adding const cast.
9878         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
9879
9880 2000-07-23  Tor Lillqvist  <tml@iki.fi>
9881
9882         * configure.in: Check for mkstemp and sigsetjmp. Output
9883         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
9884
9885         More work on GDK for Win32. Still in an intermediate state.
9886
9887         * gdk/makefile.cygwin
9888         * gdk/win32/makefile.cygwin: Removed.
9889         
9890         * gdk/makefile.mingw.in
9891         * gdk/win32/makefile.mingw.in: New files.
9892
9893         * gdk/Makefile.am
9894         * gdk/win32/Makefile.am: Generate and distribute them.
9895
9896         * gdk/win32/gdkwindow-win32.h
9897         * gdk/win32/gdkdrawable-win32.h
9898         * gdk/win32/gdkpixmap-win32.h: New files.
9899
9900         * gdk/win32/gdkcolor-win32.c
9901         * gdk/win32/gdkcursor-win32.c
9902         * gdk/win32/gdkdrawable-win32.c
9903         * gdk/win32/gdkgc-win32.c
9904         * gdk/win32/gdkimage-win32.c
9905         * gdk/win32/gdkprivate-win32.h
9906         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
9907         Rename fields and variables called xcursor, xid, etc (these names
9908         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
9909
9910 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
9911
9912         * gtk/gtkentry.[ch]: Fix some problems with vertical
9913         alignment.
9914
9915         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
9916         char/byte confusion.
9917
9918 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
9919
9920         * gtk/gtktextview.c (changed_handler): Fix bug where
9921         redraw wasn't being done properly when height of
9922         dirty region changed.
9923
9924         * demos/Makefile.am: Remove various references to
9925         -lgmodule
9926
9927 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
9928
9929         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
9930         PangoAttrShape to reserve space for pixmaps, add 
9931         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
9932         in the display functions.
9933         
9934         * gtk/testgtk.c (create_layout): Set some more exotic
9935         scrolled window options
9936
9937         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
9938         Add function to set the shadow type of a window, to allow
9939         putting a shadow around widgets such as GtkLayout or GnomeCanvas
9940         which don't draw their own frame.
9941
9942 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
9943
9944         * docs/tutorial/package-db-tutorial.sh: New file for
9945           packaging DocBook format tutorial
9946
9947 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
9948
9949         * docs/tutorial/gtk-tut.sgml: Minor updates
9950
9951         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
9952
9953 2000-07-19  Tor Lillqvist  <tml@iki.fi>
9954
9955         * gtk/gtksignal.c: Fix C++ comment.
9956
9957         * gtk/gtkimmulticontext.c
9958         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
9959         don't return value from void functions.
9960
9961         * gtk/gtk.def: Add gtk_rc_style_unref.
9962
9963 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
9964
9965         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
9966         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
9967         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
9968         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
9969         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
9970         gtk/gtktypeutils.h: Include files outside of the extern "C"
9971         block. Makes some C++ compiler happy. Reported by Denis Vakatov
9972         <vakatov@peony.nlm.nih.gov>.
9973
9974 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
9975
9976         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
9977           Completes first pass. Hurrah!
9978
9979 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
9980
9981         * docs/tutorial/gtk-tut.sgml: More clean ups.
9982
9983 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
9984
9985         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
9986         paint the background of the text area which was accidentally
9987         removed at some point.
9988
9989         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
9990           
9991          - Move most of the functionality from the theme vtable
9992            into GtkRcStyleClass and GtkStyleClass. The moved
9993            vtable functions were changed a bit in the move to
9994            work better in their new home.
9995
9996          - Get rid of the engine and engine_data fields from
9997            GtkRcStyle and GtkStyle; instead the theme
9998            engine derives theme-specific subclasses of GtkRcStyle
9999            and GtkStyle
10000
10001          - Add extra dlsym() found entry point to themes,
10002            theme_create_rc_style().
10003
10004         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
10005         in gtk_style_real_copy.
10006
10007         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
10008         to register a type associated with an engine. (The engine
10009         won't be unloaded as there is an instance of the type.)
10010
10011
10012 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
10013
10014         * docs/tutorial/gtk-tut.sgml: Clean ups.
10015
10016 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
10017
10018         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
10019           of cleaning up to do.
10020
10021 2000-07-15  Tor Lillqvist  <tml@iki.fi>
10022
10023         * gdk/testgdk.c: New file, quick hack to test backends for
10024         pixel-by-pixel correctness of the most simple graphic operations.
10025
10026 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
10027
10028         * Really release 1.3.1
10029         
10030         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
10031         include structure.
10032
10033 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
10034
10035         * Released 1.3.1
10036
10037 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
10038
10039         * gtk/gtktextlayout.c: use FALSE for size_only most
10040         of the time when calling gtk_text_layout_get_line_display()
10041         to avoid causing double reshapes when a redraw follows
10042         immediately after.
10043
10044 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
10045
10046         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
10047         appropriate region and gdk_window_process_updates() so trough
10048         updating doesn't lag behind the window being scrolled.
10049
10050         * gdk/gdkgc.c: Make parent_class pointer static.
10051          
10052 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
10053
10054         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
10055         include <string.h>.
10056          
10057         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
10058         cut-and-paste error in computing memory offset for 4 channels.
10059
10060 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
10061
10062         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
10063         gtk_rc_append_default_pixmap_path(), since it wasn't
10064         adding an interesting path and we don't have a meaningful
10065         default for this value.
10066
10067 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
10068
10069         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
10070         gtk-config to gtk-config-2.0 move gtk_.m4 to
10071         gtk-2.0.m4
10072
10073         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
10074         gdk/Makefile.am demos/Makefile.am: Change 
10075         library names to libgtk-1.3.la, etc, so that we
10076         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
10077
10078         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
10079         gdk/Makefile.am gdk/x11/Makfile.am
10080         Move include files into /usr/include/gtk-2.0, 
10081         /usr/lib/gtk-2.0/include/
10082          
10083         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
10084         gtk/gtkintl.h: Change package for gettext from 
10085         gtk+ to gtk20. Put hack in autogen.sh to modify
10086         po/Makefile.in.in after gettextize to make this
10087         possible.
10088
10089         * gtk+.spec: Some updates, not tested.
10090
10091         * gdk-pixbuf/Makefile.am: Move loaders into
10092         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
10093
10094         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
10095         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
10096         to THEMENAME/gtk-2.0/. Move engine directory  to
10097         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
10098         
10099 2000-07-12  Tor Lillqvist  <tml@iki.fi>
10100
10101         Win32 changes, still doesn't build though.
10102
10103         * gdk/makefile.cygwin
10104         * gdk/win32/makefile.cygwin
10105         * gtk/makefile.cygwin: Updates.
10106
10107         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
10108         default values for fg and bg pixel as X11 does (0 and 1), not
10109         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
10110         Use 0 for pen width by default (treated as 1 anyway later, but for
10111         apps that might check the value in the GdkGC).
10112         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
10113         interface to gdk_gc_predraw and _postdraw.
10114
10115         * gdk/win32/gdkwin32.h
10116         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
10117
10118         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
10119         extraneous semicolon.
10120
10121         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
10122
10123         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
10124         not the Win32 bitspixel value.
10125
10126         * gdk/win32/gdkcc-win32.c:
10127         * gdk/win32/gdkcolor-win32.c 
10128         * gdk/win32/gdkprivate-win32.h
10129         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
10130         GDK object structure.
10131
10132 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
10133
10134         * docs/tutorial/gtk_tut_12.es.sgml (name): 
10135         * docs/tutorial/gtk_tut_it.sgml (name): 
10136         * docs/tutorial/gtk_tut_fr.sgml (name): 
10137         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
10138         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
10139
10140 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
10141
10142         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
10143           small changes.
10144
10145 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
10146
10147         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
10148         a bug here, never been here and never fixed anything ;(
10149         (don't segfault if tree->root_tree is NULL, which happens prior
10150         to widget realization, but puke instead).
10151
10152 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
10153
10154         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
10155         add the necessary tokens.
10156
10157         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
10158         (gtk_rc_style_to_style): copy thicknesses.
10159         (gtk_rc_init_style): apply thicknesses.
10160         (gtk_rc_parse_style): parse xthickness and ythickness.
10161
10162         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
10163
10164         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
10165         (gdk_window_new): 
10166         (_gdk_windowing_window_init): 
10167         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
10168         (gdk_pixmap_create_from_data): 
10169         (gdk_bitmap_create_from_data): 
10170         (gdk_pixmap_new): 
10171         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
10172         (gdk_image_new): 
10173         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
10174         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
10175         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
10176         (gdk_colormap_get_system): 
10177         (gdk_colormap_new): 
10178         * gdk/gdkwindow.c (gdk_window_init): 
10179         * gtk/gtkstyle.c (gtk_style_new):
10180         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
10181         * gdk/gdkpixmap.c (gdk_pixmap_init): 
10182         * gtk/gtkrc.c (gtk_rc_style_new):
10183         use g_object_new() instead of g_type_create_instance() which
10184         is a private function for fundamental type implementations.
10185
10186 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
10187
10188         * configure.in: Add check for db2html
10189
10190 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
10191
10192         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
10193         hack to set glib_debug_objects based on gtk_debug_flags.
10194
10195 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
10196
10197         * INSTALL.in: Update the Prerequisites section.
10198
10199         * Makefile.am demos/Makefile.am docs/Makefile.am
10200         docs/tutorial/Makefile.am gdk/x11/Makefile.am
10201         gdk/linux-fb/Makefile.am: Dist fixes
10202
10203 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
10204
10205         * NEWS: 10,000 foot view of 1.3.1 changes.
10206
10207 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
10208
10209         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
10210         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
10211         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
10212         gdk/x11/gdkmain-x11.c: 
10213
10214         Patch from George Lebl to add a GdkGrabStatus enumeration to use
10215         as a return value of gdk_*_grab(). Previously, we just
10216         returned the X11 values directly.
10217
10218 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
10219
10220         * gdk/x11/Makefile.am: Patch from George Lebl to 
10221         install all the headers in the right place.
10222
10223 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
10224
10225         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
10226           initial conversion to DocBook.
10227
10228 2000-07-04  Tor Lillqvist  <tml@iki.fi>
10229
10230         * README.win32: Improve a bit.
10231
10232         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
10233         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
10234         Alt+0nnn on the numpad (used to enter characters by numeric code
10235         from current DOS or ANSI codepage) working correctly, as in other
10236         Windows apps.
10237
10238         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
10239         same argument validity tests as in X11 version.
10240         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
10241
10242         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
10243         definitions in case missing from headers.
10244
10245         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
10246         destroy the window-specific cursor.
10247         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
10248         calling GetModuleHandle(NULL).
10249         (gdk_window_set_cursor): Reworked to always copy the passed cursor
10250         with CopyCursor before setting it as the window-specific
10251         cursor. It is OK for the caller to destroy the GdkCursor (and thus
10252         also its Windows cursor) after calling this function. Destroy any
10253         previous window-specific cursor.
10254
10255 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
10256
10257         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
10258         font charset is iso8859-1, not iso-8859-1.
10259
10260 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
10261
10262         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
10263         Use g_get_charset() instead of g_get_codeset().
10264
10265         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
10266         Comment out some strdup'ing functions to keep timj
10267         happy until we finish fighting this out.
10268
10269 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
10270
10271         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
10272         <= width or height.
10273
10274         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
10275         from 1.2 for parent/child states.
10276
10277         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
10278         of typos.
10279
10280         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
10281         event structures, replace with a generic axes field. Replace 
10282         deviceid/sourec with GdkDevice *device.
10283
10284         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
10285         to extract particular axis use value from event. (Also
10286         can be used for normal X/Y.)
10287
10288         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
10289         allow for arbitrary number of axes, namespace everything
10290         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
10291         everywhere.
10292
10293         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
10294         Get rid of the gdk_input_vtable setup if favor of simply
10295         defining the functions in gdkinput-none/gxi/xfree.c in
10296         a similar fashion to the way that the port structure is 
10297         done.
10298
10299         * gtk/gtkdnd.c: Fix fields of synthesized button press event
10300         for new event structures. 
10301
10302         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
10303         new device interfaces.
10304
10305 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
10306
10307         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
10308         set the initial text.
10309
10310         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
10311         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
10312         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
10313         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
10314
10315         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
10316         pango_layout_set_font_description to simplify.
10317
10318 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
10319
10320         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
10321         pango_layout_set_font_description to simplify.
10322
10323 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
10324
10325         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
10326         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
10327         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
10328
10329         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
10330         PANGO_PIXELS() macro.
10331
10332 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
10333
10334         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
10335         that returns a PangoContext owned by the widget and updated to
10336         match future changes in the widget. Also, make 
10337         gtk_widget_create_pango_layout() use this context. If we ever
10338         add a ::changed signal to PangoContext, this will make things
10339         much more convenient. 
10340
10341         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
10342         in the appropriate places instead of destroying the layouts and
10343         creating new ones.
10344
10345         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
10346         in a few strategic places.
10347
10348 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
10349
10350         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
10351         gtk_widget_size_request() on reparented child, if one. Otherwise,
10352         queue_resize() on the child never results in it getting size-requested
10353         at all.
10354
10355         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
10356         in option menus, so that (with luck) people won't copy it into
10357         their apps in the future.
10358
10359         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
10360         to gtk_option_menu_calc_size. This isn't perfect, but should fix
10361         a lot of problems with changing the size of the menu's menu
10362         items after adding it to the option menu.
10363
10364         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
10365
10366         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
10367         the text direction for a widget changes.
10368
10369         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
10370         ::direction_changed to get rid of various hacks.
10371
10372 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
10373
10374         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
10375         name.
10376
10377 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
10378
10379         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
10380         flag to the structure. Do not call XFreePixmap on pixmaps created
10381         by gdk_pixmap_foreign_new().
10382
10383 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
10384
10385         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
10386         value using GdkRGB functionality given GdkColormap and GdkColor.
10387         (name not final, waiting for inspiration.)
10388         
10389         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
10390         set the foreground/background of a GC using the GC's colormap
10391         and GdkRGB. (name not final, waiting for inspiration.)
10392
10393         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
10394         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
10395
10396         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
10397         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
10398         purely a function of the corresponding colormap. Make
10399         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
10400
10401         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
10402         gdk_pixbuf_*create_from_xpm_* in terms of
10403         gdk_pixbuf_new_from_xpm_data(), move into platform independent
10404         code.
10405
10406         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
10407         advantage of the new draw_rgb_32_image_dithalign.
10408
10409         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
10410
10411         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
10412         on each created GC.
10413
10414         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
10415
10416         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
10417         which we initialize from the drawable when the GC is created,
10418         if the drawable has a colormap.
10419
10420         * gdk/x11/gdkgc-x11.c: include string.h for memset.
10421
10422         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
10423
10424         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
10425
10426 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
10427
10428         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
10429         actually returning expose events, make sure to set
10430         the count field properly.
10431
10432         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
10433         accidentally reintroced bug which always cleared
10434         the graphics_exposures value. 
10435
10436 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
10437
10438         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
10439
10440 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
10441
10442         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
10443
10444 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
10445
10446         * docs/faq/gtk-faq.sgml: Start of Section 6.
10447
10448 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
10449
10450         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
10451         
10452         (Fixes problem with drawing childless frames. Pointed out
10453         by and a first patch from Anders)
10454         
10455         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
10456         compute a child_allocation, even if we don't have a child.
10457
10458         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
10459         Always chain to the parent's impl, even if we don't have a child.
10460
10461 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
10462
10463         * gdk/gdkrgb.c: If possible, create only a single shm segment and
10464         use multiple parts of it instead of creating a bunch of separate
10465         segments, since the maximum number of segments per system is not
10466         large. (This might be worth backporting to GTK+-1.2.x if we make a
10467         new release )
10468
10469         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
10470         structure in preparation for per-colormap GdkRGB.
10471
10472         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
10473         to False when we get EINVAL from shmget so that the caller of
10474         gdk_image_new can retry with a smaller segment size.
10475
10476 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
10477
10478         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
10479
10480 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
10481
10482         * configure.in: make the current version number 1.3.1 (binary age 0,
10483         interface age 0).
10484         
10485         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
10486         gtkcompat.h is all we want.
10487
10488         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
10489         GLib primitive types. fixed g_type_register_fundamental() argument
10490         ordering.
10491
10492         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
10493         compiles.
10494
10495         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
10496         object code cleanup, comment trigraph fixes, etc...
10497
10498 2000-06-23  Havoc Pennington  <hp@redhat.com>
10499
10500         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
10501         instead of making up a bogus name for first_para_mark
10502
10503         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
10504         0 as a context ID
10505
10506 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
10507
10508         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
10509
10510 2000-06-21  Havoc Pennington  <hp@pobox.com>
10511
10512         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
10513         we didn't check window->bg_pixmap != GDK_NO_BG.
10514
10515         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
10516         gdk-pixbuf
10517
10518 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
10519
10520         * docs/faq/gtk-faq.sgm: Move file to here.
10521           TODO: Update Makfile.am 
10522
10523 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
10524
10525         * docs/gtk-faq.sgm: Add Section 2
10526
10527 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
10528
10529         * docs/gtk-faq.sgm: New file. Start of DocBook
10530           version of the FAQ.
10531
10532 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
10533
10534         * configure.in (GDK_PIXBUF_MAJOR): Define version
10535         numbers for GDK_PIXBUF_*, as they get substituted
10536         into a header file. Need to consider versioning
10537         for gdk-pixbuf more carefully later.
10538
10539 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
10540
10541         Work with srcdir != builddir.   
10542         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
10543         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
10544         * demos/testpixbuf.c: Likewise.
10545         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
10546         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
10547         <gdk/x11/gdkx.h>.
10548         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
10549         "gdk-pixbuf.h".
10550         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
10551
10552 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
10553
10554         * TODO.xml: Change 1.4 version numbers to 2.0.
10555
10556 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
10557
10558         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
10559         fixups to GTK+ standard.
10560
10561 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
10562
10563         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
10564         gdk-pixbuf.
10565
10566         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
10567         fixups for GObject.
10568
10569         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
10570         gdk-pixbuf with GDK dependencies moved into GDK.
10571         
10572         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
10573         move gdk-pixbuf-loader here until GObject has signals.
10574
10575         * demos/: New directory of demos. Move demos from
10576         gdk-pixbuf here.
10577
10578         * demos/pixbuf-init.c: Small bit of code to check for
10579         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
10580         set GDK_PIXBUF_MODULEDIR appropriately.
10581
10582         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
10583         define which no longer makes sense.
10584
10585 2000-06-21  Havoc Pennington  <hp@redhat.com>
10586
10587         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
10588         gtk_get_default_language
10589
10590         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
10591         new function to get the default language
10592
10593         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
10594         s/gtk_text_view_style_values/gtk_text_style_values/
10595
10596         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
10597         Add a "language" field to tags.
10598
10599         (gtk_text_tag_set_arg): Fix bug in setting
10600         "bg_full_height_set" tag.
10601
10602 2000-06-21  Havoc Pennington  <hp@redhat.com>
10603
10604         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
10605         in the interfaces
10606
10607         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
10608         stuff instead when possible.
10609
10610         * gtk/gtktexttypes.h: Delete some unused constants
10611
10612         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
10613         testtextbuffer.c: use glib instead of custom unicode routines
10614
10615 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
10616
10617         * docs/es/: Removed mistakenly added generated sgml
10618
10619         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
10620         Remove outdated info files.
10621
10622         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
10623         Moved tutorial files into subdir
10624
10625         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
10626         subdir.
10627
10628         * docs/man/gtk_button.pod: Remove. (contents will be
10629         integrated into gtk-reference button page.)
10630
10631         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
10632         docs/faq/Makefile.am: Adjust for new organization
10633
10634 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
10635
10636         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
10637         not $(MKINSTALLDIRS)
10638
10639 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
10640
10641         * gtk/testgtk.c (create_text): Finish the job Elliot started
10642         of removing font setting test for text widget. (Since text widget
10643         and GdkFont are not deprecated, and cause portability problems.)
10644
10645 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
10646
10647         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
10648         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
10649         Remove use of libunicode in favor of new GLib functions.
10650
10651         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
10652         nano-x, framebuffer. The X11 include is just a hack until we get
10653         the necessary functions in gdkcolor.h, so there is no reason to
10654         add other includes of platforms.
10655
10656         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
10657         window bigger than the screen change.
10658
10659         * gtk/testgtk.c: Revert some random changes from Elliot
10660         that had no particular point and were causing testgtkrc
10661         not to function correctly.
10662         
10663         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
10664         because GdkSegment and GdkRegionBox have the same fields,
10665         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
10666         results in clearer code.
10667
10668         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
10669         gdk_input_translate_coordinates): Fix missed GdkObjectification
10670
10671 2000-06-18  Elliot Lee  <sopwith@redhat.com>
10672
10673         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
10674         * gtk/gtk{plug,socket}.h: Missed commits from previous.
10675
10676 2000-06-20  Havoc Pennington  <hp@redhat.com>
10677
10678         * modules/linux-fb/Makefile.am: Make this compile
10679         without framebuffer enabled
10680
10681         * gdk/linux-fb/Makefile.am: Add conditional to not build
10682         framebuffer unless specified in configure
10683
10684         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
10685         the size of the target instead of source if -1 was passed for
10686         width/height
10687
10688         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
10689         width/height confusion.
10690
10691 2000-06-19  Havoc Pennington  <hp@redhat.com>
10692
10693         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
10694         GDK_DRAWABLE_XID. In the future, we probably want to make it
10695         faster with G_DISABLE_CHECKS turned on.
10696
10697 2000-06-14  Havoc Pennington  <hp@redhat.com>
10698
10699         * gdk/Makefile.am: add gdkpixmap.c
10700
10701         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
10702         s/gdk_image_init/_gdk_windowing_image_init
10703
10704         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
10705         ref/unref
10706
10707         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
10708
10709         * gdk/gdkcompat.h: remove GdkWindowType compat, since
10710         GdkWindowType is now non-deprecated; 
10711         change gdk_window_get_type() compat to be
10712         gdk_window_get_window_type().
10713
10714         * gdk/gdkdnd.h: make GdkDragContext a GObject.
10715
10716         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
10717         virtual GObject. Make all functions call into the vtable.
10718         Move gdk_image_put() guts in here. Remove GdkDrawableType
10719         and gdk_drawable_get_type(), these are now GdkWindow-specific.
10720         draw_image, get_depth, get_size, set_colormap, get_colormap,
10721         get_visual added to the vtable.
10722         
10723         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
10724         GObject. Virtualize everything. 
10725         (gdk_gc_new_with_values): remove check for destroyed window,
10726         because now GdkWindow::create_gc will check this.
10727         (gdk_gc_set_values): New function to set GC values, this 
10728         was already implemented but wasn't in the header
10729
10730         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
10731
10732         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
10733         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
10734         remove _gdk_window_class; add _gdk_window_impl_get_type() and
10735         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
10736         _gdk_windowing_window_init, rename gdk_image_init to
10737         _gdk_windowing_image_init.
10738         
10739         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
10740         (gdk_draw_layout): Remove check for destroyed window, 
10741         because all the drawable methods already check it.
10742         
10743         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
10744         Add gdkpixmap.c which contains implementation of GdkDrawable
10745         virtual table (by chaining to a platform-specific implementation
10746         object).
10747         
10748         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
10749         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
10750         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
10751         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
10752         GdkColormapPrivate. 
10753
10754         * gdk/gdktypes.h: #include <glib-object.h>
10755
10756         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
10757         Move most functionality to platform-specific implementation
10758         object. GdkWindow itself now handles the backing store, then
10759         chains to the platform-specific implementation.
10760         (gdk_window_get_window_type): return GdkWindowType of the window.
10761         (gdk_window_peek_children): New routine, returns the children of 
10762         a GdkWindow
10763         (gdk_window_get_children): Was in X11-specific code and did 
10764         XQueryTree. Changed to simply return a copy of window->children; 
10765         so it can go in cross-platform code.
10766         
10767         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
10768
10769         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
10770         GdkColormap; just changed to use the new private data instead
10771         of casting to GdkColormapPrivate.
10772
10773         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
10774         gdk_cursor_new().
10775
10776         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
10777         (private data member in the GObject). 
10778         (xdnd_manager_source_filter): Function had broken 
10779         error handling, fix it (use gdk_error_trap_push).
10780
10781         * gdk/x11/gdkdrawable-x11.c: This file now implements
10782         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
10783         base class is purely for the convenience of the X port,
10784         and not part of the interface to cross-platform GDK.
10785
10786         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
10787         
10788         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
10789         specific to X, and returned by the create_gc virtual method
10790         of GdkDrawableImplX11. 
10791         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
10792         rather than gchar, this was also changed in the GdkGC vtable.
10793         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
10794         mask is 0, return immediately, instead of checking every flag.
10795         This is faster, and keeps us from segfaulting if values is NULL
10796         and the mask contains some nonzero flags.
10797
10798         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
10799         GdkWindow.
10800
10801         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
10802         GdkWindowPrivate is gone.
10803
10804         * gdk/x11/gdkim-x11.c: rename things that got renamed.
10805
10806         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
10807         remove the image_put stuff that got transferred to GdkDrawable.
10808         
10809         * gdk/x11/gdkinput.c: renamings
10810
10811         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
10812
10813         * gdk/x11/gdkpixmap-x11.c: GObject conversion
10814
10815         * gdk/x11/gdkprivate-x11.h: indentation fixes
10816
10817         * gdk/x11/gdkproperty-x11.c: renamings
10818
10819         * gdk/x11/gdkselection-x11.c: renamings
10820
10821         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
10822         implements the platform-specific "impl" object.
10823         Moved gdk_window_get_children to gdk/gdkwindow.c
10824
10825         * gdk/x11/gdkx.h: Remove all the private structs and private datas
10826         that no longer exist. Add declaration of GdkGCX11 object here.
10827         Fix all the macros to still work. 
10828
10829         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
10830         GdkDragContext from the boxed types since they are now GObjects.
10831
10832         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
10833         moved xthickness/ythickness into the instance. GtkStyleClass
10834         functions are now in the standard vtable for GtkStyle, so you have
10835         to create a GObject subclass to write a theme engine.
10836         (gtk_style_copy): fixed a leaked PangoFontDescription
10837         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
10838         can be the standard GObject function.
10839         
10840         * Throughout GTK:
10841         s/style->klass->[xy]thickness/style->[xy]thickness
10842         s/pango_layout_unref/g_object_unref/
10843
10844         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
10845         
10846         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
10847         accessing GDK internals.
10848
10849         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
10850         accessing GDK internals.
10851
10852 2000-06-18  Elliot Lee  <sopwith@redhat.com>
10853
10854         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
10855
10856         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
10857         problem by calculating event position relative to the trough
10858         rather than the slider.
10859         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
10860
10861         * gdk/gdkgc.h: Add GDK_NOR.
10862
10863         * configure.in, Makefile.am: Add modules top level dir
10864         * configure.in: Only use pangox library if building x11 target.
10865         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
10866
10867 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
10868
10869         * gtk/gtkcolorsel.c: Change private class member to be named
10870         private_data throughout the file.
10871
10872         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
10873         private_data to avoid clashing with keyword.
10874
10875 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
10876
10877         * gdk/gdkdnd.h: Add comment to remove warning.
10878
10879 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
10880
10881         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
10882         Byelorussian language; changed the Makefile and file names 
10883         to reflect that.
10884
10885 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
10886
10887         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
10888         rather than gdk_window_hide; this makes things work
10889         correctly if the window is programmatically hidden while
10890         iconified.
10891
10892 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
10893
10894         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
10895         cut and paste typo where wrong pixmap was being
10896         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
10897
10898 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
10899
10900         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
10901         Add helper function to compute format / bytes 
10902         relationship. Use in a couple places to fix up
10903         errors which assume 8 * format.
10904
10905         * gtk/gtkselection.c (gtk_selection_request): Use 32
10906         rather than 8 * sizeof (GdkAtom), to work correctly
10907         on Alpha.
10908
10909 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
10910
10911         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
10912         libgtk.la
10913         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
10914         versions
10915
10916         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
10917         checking macros return NULL since the function has a return value.
10918
10919 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
10920
10921         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
10922         GTK+ from building at all.
10923
10924         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
10925
10926 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
10927
10928         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
10929         gtk/Makefile.am: make it possible to configure gtk for different
10930         targets on the same platform. The library name is now 
10931         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
10932         flag. Only the x11 target compiles right now.
10933         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
10934         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
10935         * gdk/nanox/gdk*generic*: delete generic region code.
10936         * gdk/linux-fb/gdk*generic*: delete generic region code.
10937         * README.nanox: update information.
10938         
10939 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
10940
10941         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
10942         prepend not append. (Pointed out by Brett Hall.)
10943
10944 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
10945
10946         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
10947
10948 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
10949
10950         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
10951         need this later, and this makes sure that the atexit for
10952         glib gets called after that for GDK, so atexits are
10953         properly ordered for object leak checking.
10954
10955         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
10956
10957         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
10958         pango_x_shutdown_display()
10959
10960         * gtk/simple.c (main): Close window on destroy.
10961
10962 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
10963
10964         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
10965         to treat initial creation different from setting with 
10966         regards to the graphics-exposures parameter, so add a parameter
10967         indicating whether this is initial or not.
10968
10969 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
10970
10971         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
10972         to sort of work by adding an extra return_exposes arg
10973         to gdk_event_translate() - it might be better to simply
10974         deprecate the function altogether and force people to rewrite
10975         without it. gdk_window_scroll() handles most of it, and where
10976         gdk_window_scroll() doesn't work, simply redrawing more does.
10977
10978         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
10979         assertion.
10980
10981         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
10982
10983         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
10984         bunch of pretty much useless /* Print debugging info */ comments 
10985         which had drifted away from the code they were commenting.
10986
10987 2000-06-02  Havoc Pennington  <hp@pobox.com>
10988
10989         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
10990         is in working order.
10991         
10992         * gtk/testtext.c: Change to reflect anonymous mark API
10993
10994         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
10995
10996         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
10997         field, which was unused.
10998
10999         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
11000         saves some typing.
11001
11002         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
11003
11004         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
11005         flag on the insertion point and selection bound
11006
11007         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
11008         make mark-manipulation functions take a GtkTextMark* instead of a
11009         mark name.
11010         
11011         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
11012         GtkTextMarkBody; will be used to detect attempts to delete
11013         the permanent marks (insert and selection bound)
11014
11015         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
11016
11017 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
11018
11019         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
11020         flag to on.
11021
11022         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
11023         Honor DOUBLE_BUFFRED_FLAG
11024
11025         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
11026         function to set the DOUBLE_BUFFERED flag.
11027
11028         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
11029         or not exposes done on the widget should be double-buffered.
11030
11031         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
11032         to be what would be expected. (Fixes problem with a
11033         g_return_if_fail() validating a TextDirection enumeration)
11034
11035 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
11036
11037         * gtk/gtkwidget.c: Remove all references to 
11038         offscreen flag which was no longer used.
11039
11040         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
11041
11042         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
11043         for non-null label_widget->parent.
11044
11045         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
11046         which no longer was used.
11047
11048         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
11049
11050         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
11051         for null arguments.
11052
11053         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
11054         check for destroyed windows.
11055
11056 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
11057
11058         * gtk/gtkimmulticontext.c: Add a finalize method and unref
11059         the slave context there.
11060
11061         * gtk/gtkinvisible.[ch]: Make reference counting behavior
11062         identical to GtkWindow.
11063
11064 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
11065
11066         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
11067         pangox to here, so we can write them independent of rendering
11068         system, using GDK primitives.
11069
11070         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
11071         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
11072         since we have a rendering-system independent implementation in
11073         terms of draw_glyphs().
11074         
11075         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
11076         function to render a single line.
11077
11078         * gdk/x11/gdkpango.c: Move the guts of this file mostly
11079         into ../gdkpango.c, which simplifies things, since we
11080         don't have to deal with raw X gc's.
11081
11082 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
11083
11084         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
11085         get the logical attributes for a given GtkTextLine.
11086
11087 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
11088
11089         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
11090         g_locale_get_codeset() to g_get_codeset() change.
11091
11092 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
11093
11094         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
11095         descriptions.
11096
11097         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
11098         the entry.
11099
11100         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
11101         redoing (vastly simplifying) for Pango. Still needs quite
11102         a bit of work. (Size selection is currently poor. List of 
11103         predefined sizes is not a good idea, since all of these
11104         sizes won't necessarily be distinct.)
11105
11106 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
11107
11108         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
11109         CODESET results for LANG=C.
11110
11111 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
11112
11113         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
11114         which takes a stringized pango font description;
11115         ignore the older 'font' and 'fontset' declarations.
11116
11117         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
11118         field with a GdkFont derived via gdk_font_from_description(),
11119         for compatibility. (Should we just remove it entirely?
11120         Probably too much compatibility breakage, but people
11121         should be migrating to the new Pango stuff as quickly
11122         as possible.)
11123
11124 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
11125
11126         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
11127
11128 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
11129
11130         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
11131         redoing; there are some bugs in size allocation right
11132         now, the semi-existant distinction between header / day
11133         fonts was removed, but, with Pango, could actually
11134         be made functional in a nice way.
11135         
11136         * gtk/testcalender: Move calender from examples into this
11137         directory as a test program. (We really need to restrcture
11138         testgtk into a whole directory full of tests for every
11139         widget or functionality group, separated into multiple .c
11140         files.)
11141
11142 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
11143
11144         * gtk/testgtk.c (file_exists): Fix stupid typo that
11145         was keeping RC file from being loaded.
11146
11147         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
11148         RC file font code.
11149
11150 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
11151
11152         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
11153         Add function to load a GdkFont from a PangoFontDescription.
11154
11155 2000-05-29  Tor Lillqvist  <tml@iki.fi>
11156
11157         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
11158         variable should be of type GdkEventPrivate.
11159
11160 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
11161
11162         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
11163         to have any widget for the label, use a GtkLabel widget
11164         to display the text. (Based partially on a patch from
11165         Anders Carlson.)
11166
11167         (Quite a bit of code reorganization - strip 90% of the
11168         guts out of gtkaspectframe and add a single virtual
11169         func to GtkFrameClass - compute_child_allocation.)
11170
11171 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
11172
11173         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
11174         (Removed clist->row_center_offset field because caching
11175         it wasn't saving time or code, added private function
11176         _gtk_clist_create_cell_layout()).
11177
11178 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
11179
11180         * gtk/gtkaccellabel.c: Pangoized.
11181
11182         * gtk/[hv]ruler.c: Pangoized
11183
11184 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
11185
11186         * gtk/gtkfilesel.c (gtk_file_selection_init):
11187         Use gtk_clist_set_column_auto_resize() to remove need
11188         need for manual column width computations.
11189
11190 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
11191
11192         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
11193         ensuring Pango correctness, and considerably simplifying the
11194         code.
11195         
11196         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
11197
11198         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
11199         getting of numbers of lines.
11200
11201         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
11202         to the actual requested width of the lable, not to the wrap
11203         width we set.
11204
11205         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
11206
11207         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
11208           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
11209
11210         * gtk/gtktextview.c: Fix structure inheritance.
11211
11212         * gtk/gtkprogressbar.c: Pangoize.
11213
11214 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
11215
11216         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
11217         in a function.
11218
11219         * gtk/gtktextlayout.c (find_display_line_above): Fixed
11220         bug with computing line tops.
11221
11222         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
11223
11224 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
11225
11226         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
11227         and y_offset coordinates to do what we need now. (The offset between
11228         buffer and layout coordinates has been reintroduced, but is a 
11229         bit different than before.)
11230
11231         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
11232         handle the adjustments ourselves, and scroll as necessary using
11233         the new gdk_window_scroll().
11234         
11235         The advantage of this is that when we are incrementally revalidating,
11236         we are essentially rearranging things around the visible portion
11237         of the screen. With the old setup, the visible portion of the
11238         screen was moved around in the layout, so scrolling and redrawing
11239         to track that caused jumping of the display. Since we now
11240         control the scrolling ourselves, we can suppress this and
11241         only redraw when things actually change.
11242
11243 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
11244
11245         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
11246         the region not just redisplay it after-all, since we store the
11247         cursors in the LineDisplay. (Ugly interactions here between
11248         GtkLayout and GtkTextBTree here.)
11249         
11250         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
11251
11252 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
11253
11254         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
11255         Added function to scroll contents of a window while keeping the
11256         window constant. Works by XCopyArea or guffaw-scrolling depending
11257         on the details of how the window is set up. (guffaw-scrolling
11258         still needs to be filled in.)
11259
11260 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
11261
11262         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
11263         move the debugging that was tied to a global variable
11264         to that.
11265
11266         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
11267
11268         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
11269         validated flag, in line data instead of setting height/width to
11270         -1. This allows us to perform operations with partially invalid
11271         buffer (using the old size for invalid lines) and thus to do
11272         incremental vaidation. Keep height/width aggregates up to date
11273         when deleting text and rebalancing the tree.
11274
11275         * gtk/gtktextbtree.[ch]: Add functions validate a line
11276         (gtk_text_btree_validate_line), and to validate up
11277         to a number of pixels (gtk_text_btree_validate).
11278
11279         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
11280         that indicates that something is changed and a revalidation
11281         pass is needed. Change ::need_repaint to ::changed, and
11282         make it take old and new yranges instead of a rectangle.
11283
11284         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
11285         the line_data_destroy() function from 
11286         gtk_text_btree_add_view() to a virtual function in 
11287         GtkTextLayout
11288
11289         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
11290         since we are handling partial repaints in a different fashion
11291         now.
11292
11293         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
11294         of the selection instead of queueing a repaint on the
11295         entire widget.
11296
11297         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
11298         get_selection_bounds() down to btree, make the function
11299         in buffer a wrapper around the btree function.
11300
11301         * gtk/gtktextlayout.[ch]: Add functions to check if the
11302         layout is valid and to recompute either a range of pixels
11303         aroudn a line or a certain total number of pixels.
11304
11305         * gtk/gtktextlayout.[ch]: Cache a single line display;
11306         now that we only redraw the needed portions, the hit rate
11307         for this cache is quite high.
11308         
11309         * gtk/gtktextview.[ch]: Keep track of the first paragraph
11310         on the screen so that when re-laying-out the buffer, we can
11311         keep the same place. This requires connecting to ::value_changed
11312         on the adjustments
11313
11314         * gtk/gtktextview.[ch]: Add idle functions to revalidate
11315         the buffer after we receive an ::invalidated signal.
11316         
11317 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
11318
11319         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
11320         to max of allocation and layout size, not just to the
11321         layout size.
11322
11323         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
11324         Invalidate window so it gets redrawn properly.
11325
11326         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
11327         to mean the entire window.
11328
11329         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
11330         into public header.
11331
11332 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
11333
11334         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
11335         to get the name of a mark.
11336
11337         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
11338         to find the paragraph from a y position.
11339
11340 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
11341
11342         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
11343         nodes have width/height >= 0, not > 0.
11344
11345 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
11346
11347         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
11348         Add a size_only flag, so when we only need the size, we don't create
11349         useless appearance attributes.
11350
11351         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
11352         duplicate setting of font description.
11353
11354         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
11355
11356 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
11357
11358         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
11359         EXTRA_DIST. It does not work well when the file that
11360         everything depends on is not in the tarball.
11361
11362 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
11363
11364         * gtk/testgtk.c: Some hacks and fixes so that it basically
11365         works when not sitting in the GTK+ build tree.
11366
11367 2000-05-03  Havoc Pennington  <hp@redhat.com>
11368
11369         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
11370         Properly determine the ordering of the tag root and the current
11371         line within the tree. Previous algorithm only worked if the tag
11372         root's immediate parent was the common root of both the current
11373         line and the tag root.
11374
11375 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
11376
11377         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
11378         alignment.
11379
11380         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
11381         the widget text directional dynamically.
11382
11383         * gtk/gtktextview.[ch]: Added functions to get and set default
11384         wrap mode.
11385
11386 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
11387
11388         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
11389         in cursor location computation.
11390
11391 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
11392
11393         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
11394         vadjusment values properly when layout gets smaller.
11395
11396         * gtk/gtktextview.c (need_repaint_handler): Areas being
11397         passed in are far completely inaccurate, and sometimes
11398         too small, so, for now, just queue a redraw on the
11399         whole visible region.
11400
11401 2000-04-25  Havoc Pennington  <hp@redhat.com>
11402
11403         * gtk/gtktextbtree.c (summary_destroy): new function to 
11404         destroy tag summary nodes
11405         (gtk_text_line_next_could_contain_tag): this function was 
11406         totally broken if the line passed in wasn't below the tag
11407         root. Fix it.
11408         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
11409         "wildcard" case, we have to do a linear scan. Blah.
11410         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
11411         we have to do the linear scan
11412         (tag_removed_cb): When a tag is removed from the tag table, 
11413         remove the GtkTextTagInfo node from the btree.
11414         (gtk_text_btree_spew): Implement the spew function, for 
11415         our debugging pleasure.
11416
11417 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
11418
11419         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
11420         a problem with referring to the wrong buffer.
11421
11422         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
11423
11424         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
11425         font description to gtk_style_new() - otherwise things
11426         don't work without a .gtkrc file.
11427
11428         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
11429         tags table if we create it ourself, too.
11430
11431         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
11432         it was conflicting with XKB modifiers.
11433
11434         * gtk/gtktextview.[ch]: Add simple support for 
11435         GtkIMContext.
11436
11437 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
11438
11439         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
11440         with deletion from last commit.
11441
11442 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
11443
11444         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
11445         in the context from the current locale.
11446         
11447         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
11448         context, not hardcoded value.
11449
11450         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
11451         not logical.
11452
11453 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
11454
11455         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
11456         attributes - that doesn't handle partial-glyph selection
11457         properly. Instead use new pango_layout_line_get_x_ranges()
11458         functionality to draw the selection.
11459
11460         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
11461         now properly handles out-of-range coordinates.
11462
11463         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
11464
11465         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
11466         public.
11467
11468         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
11469         for paragraphs opposite to the base direction of the widget.
11470
11471         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
11472
11473         * gtk/gtktextlayout.c: Don't split segments on marks, since that
11474         causes Arabic words to reshape as you cursor through.
11475
11476         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
11477         cursor position when moving vertically with the arrow keys and
11478         scrolling with page-up/page-down. (Arrow keys save only the X,
11479         scrolling saves both X and Y.)
11480
11481         This means you can line-up / line-down or page-up / page-down
11482         without losing your place, and also that moving vertically
11483         with the cursor keys keeps the same X position, not the same
11484         character count:
11485
11486         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
11487         arrow keys move by display lines, not paragraphs.
11488
11489 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
11490
11491         * gtk/gtklayout.c: Make sure that the bin window is at least
11492         as big as the allocation. (Should we also make sure that the
11493         bin window is big enough to completely cover widget->window?)
11494
11495         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
11496         function to get the onscreen rectangle.
11497
11498         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
11499         for offsets in window coordinates.
11500
11501 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
11502
11503         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
11504         confusion.
11505
11506         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
11507         from the widget direction.
11508
11509         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
11510         Add a "direction" attribute.
11511
11512         * gtk/gtktextview.c: global s/tkxt/text_view/.
11513
11514         * gtk/testtext.c: Added long block of text in Arabic, to test out
11515         the direction attributes. (Some problems with the shaping system
11516         for arabic become obvious - like the fact the cursor splits words
11517         into unjoined pieces.)
11518
11519 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
11520
11521         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
11522
11523         * gtk/gtktextlayout.c: Fix up alignment.
11524
11525         * gtk/testtext.c: Add some tests for centering, wrapping.
11526
11527 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
11528
11529         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
11530         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
11531         If we wrote GTK+-specific layout-render function this could just replace
11532         the draw_layout() operation in the vtable.
11533
11534         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
11535         pango_layout_get_cursor_pos() and use that function.
11536
11537         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
11538         is a non-static symbol.
11539
11540         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
11541         with gtk_text_btree_find_line_by_y()
11542
11543         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
11544         renderer that handles GtkTextAppearance attributes.
11545
11546         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
11547
11548           - Move the values in the style that don't affect geometry into a
11549             GtkTextAppearance structure.
11550           - Change underline to take a PangoUnderline and "font" a string
11551             representation of a font description
11552           - Add a "font_desc" attribute which takes a FontDescription structure.
11553
11554         * gtk/gtktextlayout.[ch]:
11555
11556           - Get rid of the display-line list per each line. Instead, we
11557             generate, on demand, a GtkTextLineDisplay structure which]
11558             contains a PangoLayout * and other necesary information
11559             (offsets, cursor locations) for displaying a paragraph.
11560           - Get rid of the code to wrap lines, create display chunks,
11561             etc. Instead, we just go through a paragraph and convert
11562             it into the necessary inputs to a PangoLayout.
11563           - Implement a new attribute type, GtkTextAttrAppearance. This
11564             holds a GtkTextAppearance, and is used to pass colors, 
11565             stipple, etc, through from the layout to the display without
11566             having to use lots and lots of individual attributes.
11567           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
11568             in terms of PangoLayout functions.
11569         
11570         * gtk/gtktextview.c: 
11571          
11572           - Handle passing the necessary PangoContext to the layout
11573           - Some fixups in painting to deal with the automatic backing store
11574             and offsetting of GTK+-1.4
11575           - Add a style_set handler so that the default style reacts
11576             properly to theme changes.
11577         
11578         * gtk/gtktext?*.[ch]: Random code-style fixes.
11579
11580         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
11581
11582 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
11583
11584         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
11585         in original form preparatory to Pango-ization and gdkimcontext-ization.
11586
11587 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
11588
11589         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
11590         so that we can derive from gtkimcontext in language bindings properly.
11591
11592 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
11593
11594         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
11595         Add a compose table including (almost) all the compose combinations
11596         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
11597         data in the XIM implementation.
11598
11599         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
11600         Moved functions to convert keyvalues from and to unicode here from
11601         the win32 port and made them public.
11602
11603 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
11604
11605         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
11606
11607 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
11608
11609         * gtk/gtkimcontext.[ch]: Base class for new input context system
11610
11611         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
11612         the real input context implementation to be loaded from modules
11613         and switched on the fly.
11614
11615         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
11616         context that just does direct keysymbol => unicode translation.
11617
11618         * gtk/gtkentry.[ch]: Start switching editing over to using
11619         GtkInputContext. (No handling of preedit yet.)
11620
11621 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
11622
11623         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
11624         many substitutions. (klass should not be subsituted.)
11625
11626 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
11627
11628         * configure.in: Add checks for Pango
11629
11630         * configure.in docs/Makefile.am: Add test for sgml2html
11631         and allow 'make dist' without building html, but print out
11632         warnings in that case. (For making snapshots)
11633
11634         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
11635         Add Pango libraries and C flags
11636
11637         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
11638         Add function (gdk_draw_layout) to draw a pango layout.
11639
11640         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
11641         for getting Pango contexts for GDK.
11642
11643         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
11644
11645         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
11646         editing.
11647
11648         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
11649         keysym => unicode translations. More languages can be added
11650         here, but real input-method support is needed.
11651
11652         * docs/Changes-1.4.txt: Added note about entry behavior.
11653         
11654         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
11655         to set the reading direction for a widget and the global direction.
11656         Add test which allows toggling the global direction. Two private
11657         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
11658
11659         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
11660           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
11661
11662         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
11663
11664         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
11665         underlining now handled by Pango.
11666
11667         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
11668         to RCStyle and Style. (Having both this and the old font name and GdkFont 
11669         is temporary.)
11670
11671         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
11672         convenience functions for creating contexts and layouts for widgets.
11673
11674         * gtk/testgtk.c: Enhance label tests with multilingual labels.
11675
11676 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
11677
11678         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
11679         titles to be active, even if they aren't visible.
11680         (gtk_clist_column_titles_passive):  Ditto.
11681
11682 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
11683
11684         * gtkmenu.c:
11685         * gtkmenu.h:
11686         * gtktypeutils.h: Spelling/grammar fixes in comments.
11687
11688 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
11689
11690         * gdk/nanox/*.h: add missing header files.
11691
11692 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
11693
11694         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
11695         send_event to TRUE.
11696         (gtk_drawing_area_size): queue a resize.
11697
11698 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
11699
11700         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
11701         the handlers, also invalidate them. bug nailed down by Karl Nelson
11702         <kenelson@ece.ucdavis.edu>.
11703
11704 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
11705
11706         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
11707         "(nil)" foundries, patch from Grigorios Magklis.
11708
11709         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
11710         on non-available fonts, based on a patch by Grigorios Magklis
11711         <maglis@cs.rochester.edu>.
11712
11713 2000-05-18  Elliot Lee  <sopwith@redhat.com>
11714
11715         * gdk/x11/gdkregion-generic.c: If a region does not have any
11716         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
11717         instead of GDK_OVERLAP_RECTANGLE_IN.
11718
11719 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
11720
11721         * gtk/gtklayout.c (gtk_layout_map): Remove references to
11722         OFFSCREEN, as it is no longer necessary.
11723
11724 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
11725
11726         * gtk/gtkcolorsel.c: Patch from David Santiago
11727         <mrcooger@cyberverse.com> to change things so that the 
11728         indicator of the active palette entry is done independently,
11729         not via the focus, since it should always be visible.
11730
11731 2000-05-17  Tor Lillqvist  <tml@iki.fi>
11732
11733         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
11734         refcount leaks as in the X11 backend.
11735
11736         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
11737         cosmetics.
11738
11739         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
11740         backend. Add _gdk_windowing_window_destroy().
11741
11742         * gtk/gtkcolorsel.c: Include correct backend-specific header.
11743         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
11744         either, but these probably do exist on nanox?)
11745         
11746         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
11747         which isn't necessarily defined by <math.h>.
11748
11749         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
11750         ancestry past GtkObject.
11751
11752         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
11753         from DLL on Win32.
11754
11755         * gtk/gtk.def: Update corresponding to recent changes.
11756
11757         * gtk/makefile.{cygwin,msc}: Updates.
11758
11759 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
11760
11761         * docs/Changes-1.4.txt: A bit of editing.
11762
11763         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
11764         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
11765         to clear the update area for the window, and clear it
11766         when hiding a window.
11767
11768         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
11769         if window destroyed.
11770
11771         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
11772
11773         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
11774         gdk_window_destroy() to the generic code, since there was a lot of 
11775         window-system-independent logic it in. Add a function:
11776         
11777          _gdk_window_destroy() 
11778
11779         to the internal API to destroy a window without unreferencing it.
11780         Add a function:
11781
11782          _gdk_windowing_window_destroy()
11783
11784         That does the windowing-system-dependent part of destroying 
11785         the window.
11786
11787 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
11788
11789         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
11790
11791 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
11792
11793         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
11794         Make gtk_widget_shape_combine_mask() keep a reference count on
11795         the pixmap since it keeps it around.
11796
11797 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
11798
11799         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
11800         leak.
11801
11802         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
11803         leak with event filters.
11804
11805 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
11806
11807         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
11808         signal handlers with the right data arguments. (Fixes
11809         some warnings when a widget was repeatedly set as a drag
11810         destination.)
11811
11812         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
11813         window so we can avoid avoid setting the DND properties on the
11814         toplevel window repeatedly.
11815
11816 2000-05-13  Tor Lillqvist  <tml@iki.fi>
11817
11818         * gdk/win32/gdkwin32.h: Define more message types missing from
11819         mingw headers.
11820
11821         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
11822         call gdk_window_destroy_notify(). It was never called. This
11823         probably meant that the GdkWindow was never freed. Thanks Owen for
11824         noticing (!).
11825
11826         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
11827         window as destroyed before calling DestroyWindow(). DestroyWindow()
11828         causes a call to the window procedure (gdk_WindowProc), which
11829         calls gdk_event_translate(), which calls
11830         gdk_window_destroy_notify(), which gets confused unless the window
11831         is set as destroyed.
11832
11833         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
11834         this function to indicate it's win32 only. Put inside #ifdef
11835         G_ENABLE_DEBUG.
11836
11837         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
11838         debugging function. (gdk_event_translate:) Add a default branch
11839         that uses the above function to print debug messages with all
11840         Windows messages symbolically.
11841
11842         * gdk/win32/gdkprivate-win32.h: Declare it, and
11843         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
11844
11845 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
11846
11847         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
11848         public header file.
11849
11850 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
11851
11852         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
11853
11854         * gtk/gtktext.c: made the adjustments no-construct args, simply
11855         provide default adjustments.
11856         (gtk_text_destroy): release adjustments.
11857
11858         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
11859         adjustment argument non-construct.
11860
11861         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
11862         instead of in finalize.
11863         (gtk_progress_get_text_from_value): 
11864         (gtk_progress_get_current_text): 
11865         (gtk_progress_set_value): 
11866         (gtk_progress_get_percentage_from_value): 
11867         (gtk_progress_get_current_percentage): 
11868         (gtk_progress_set_percentage): 
11869         (gtk_progress_configure): ensure an adjustment is present.
11870
11871 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
11872
11873         * gtk/gtkcolorsel.[hc]:
11874         * gtk/gtkcolorseldialog.[hc]:
11875         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
11876         their parent implementation, use bit fields for boolean values, don't
11877         create unused widgets, usage of glib types, braces go on their own
11878         lines, function argument alignment, #include directives etc. etc. etc..
11879
11880         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
11881
11882 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
11883
11884         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
11885
11886         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
11887         of NULL.
11888
11889         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
11890         to freed data.
11891         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
11892
11893         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
11894         to NULL when the toplevel is getting destroyed.
11895         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
11896         (gtk_menu_destroy): 
11897         (gtk_menu_init): store the information of whether we have to
11898         readd the initial child ref_count during destruction in a new
11899         GtkMenu field needs_destruction_ref_count.
11900
11901         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
11902         here, those reading: learn from my mistake! ;)
11903         in order for set_?adjustment to support a default adjustemnt if
11904         invoked with an adjustment pointer of NULL, the code read (pseudo):
11905         if (v->adjustment) unref (v->adjustment);
11906         if (!adjustment) adjustment = adjustment_new ();
11907         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
11908         now imagine the first unref to actually free the old adjustment and
11909         adjustment_new() creating a new adjustment from the very same memory
11910         portion. here, the latter comparision will unintendedly fail, and
11911         all hell breaks loose.
11912         (gtk_viewport_set_hadjustment):
11913         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
11914         after unreferencing it.
11915
11916         * gtk/gtkcontainer.[hc]: removed toplevel registration
11917         functions: gtk_container_register_toplevel(),
11918         gtk_container_unregister_toplevel() and
11919         gtk_container_get_toplevels() which had wrong semantics
11920         anyways: it didn't reference and copy the list.
11921
11922         * gtk/gtkwindow.c: we take over the container toplevel registration
11923         bussiness now. windows are registered across multiple destructions,
11924         untill they are finalized. the initial implicit reference count
11925         users are holding on windows is removed with the first destruction
11926         though.
11927         (gtk_window_init): ref & sink and set has_user_ref_count, got
11928         rid of gtk_container_register_toplevel() call. add window to
11929         toplevel_list.
11930         (gtk_window_destroy): unref the window if has_user_ref_count
11931         is still set, got rid of call to
11932         gtk_container_unregister_toplevel().
11933         (gtk_window_finalize): remove window from toplevel list.
11934         (gtk_window_list_toplevels): new function to return a newly
11935         created list with referenced toplevels.
11936         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
11937
11938         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
11939         adjustment a non-construct arg.
11940         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
11941         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
11942         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
11943
11944         * gtk/gtkrange.c: added some realized checks.
11945         (gtk_range_destroy): get rid of the h/v adjustments in the
11946         destroy handler instead of finalize. remove timer.
11947         (gtk_range_get_adjustment): demand create adjustment.
11948
11949         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
11950         we simply create them on demand now and get rid of them in
11951         the destroy handler.
11952         (gtk_viewport_destroy): get rid of the h/v adjustments in the
11953         destroy handler instead of finalize.
11954         (gtk_viewport_get_hadjustment): 
11955         (gtk_viewport_get_vadjustment): 
11956         (gtk_viewport_size_allocate): demand create h/v adjustment
11957         if required.
11958
11959         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
11960         gtk_widget_real_destroy () functionality.
11961         (gtk_widget_real_destroy): reinitialize with a new style, instead
11962         of setting widget->style to NULL.
11963
11964 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
11965
11966         * gtk/gtkcalendar.c:
11967         * gtk/gtkbutton.c: ported _get_type() implementation over to
11968         GType, either to preserve memchunks allocation facilities,
11969         or because Gtk+ 1.0 GtkTypeInfo was still being used.
11970
11971         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
11972         over. prepare for ::destroy to be emitted multiple times.
11973         removed reference tracer magic. chain into GObjectClass.shutdown()
11974         to emit ::destroy signal.
11975
11976         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
11977         fundamental.
11978
11979         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
11980         cludge.
11981
11982         * gtk/gtksocket.c:
11983         * gtk/gtkplug.c:
11984         * gtk/gtklayout.c:
11985         * gtk/gtklabel.c:
11986         * gtk/gtkargcollector.c:
11987         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
11988         not being a fundamental anymore, and to work with the new
11989         type system (nuked fundamental type varargs clutter).
11990
11991         * gtk/*.c: install finalize handlers in the GObjectClass
11992         part of the class structure.
11993         changed direct GTK_OBJECT()->klass accesses to
11994         GTK_*_GET_CLASS().
11995         changed direct object_class->type accesses to GTK_CLASS_TYPE().
11996
11997         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
11998         GType. made most of the GTK_*() type macros and Gtk* typedefs
11999         simple wrappers around macros and types provided by GType.
12000         most notably, a significant portion of the old API vanished:
12001         GTK_TYPE_MAKE(),
12002         GTK_TYPE_SEQNO(),
12003         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
12004         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
12005         GTK_TYPE_ARGS,
12006         GTK_TYPE_CALLBACK,
12007         GTK_TYPE_C_CALLBACK,
12008         GTK_TYPE_FOREIGN,
12009         GtkTypeQuery,
12010         gtk_type_query(),
12011         gtk_type_set_varargs_type(),
12012         gtk_type_get_varargs_type(),
12013         gtk_type_check_object_cast(),
12014         gtk_type_check_class_cast(),
12015         gtk_type_describe_tree(),
12016         gtk_type_describe_heritage(),
12017         gtk_type_free(),
12018         gtk_type_children_types(),
12019         gtk_type_set_chunk_alloc(),
12020         gtk_type_register_enum(),
12021         gtk_type_register_flags(),
12022         gtk_type_parent_class().
12023         replacements, where available are described in ../docs/Changes-1.4.txt.
12024         implemented compatibility functions for the remaining API.
12025
12026         * configure.in: depend on glib 1.3.1, use gobject module.
12027
12028 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
12029
12030         * TODO.xml: Various updates to current status.
12031
12032 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
12033
12034         * gtk.m4: Print out version when test succeeds.
12035
12036 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
12037
12038         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
12039         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
12040         
12041         (Original triangle color selector from Simon Budig
12042         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
12043         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
12044         Santiago <mrcooger@cyberverse.com>)
12045
12046         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
12047         out into a separate widget.
12048
12049         * gtk/testgtk.c: Add some checkbuttons for toggling palette
12050         and opacity controls.
12051
12052 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
12053
12054         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
12055         snuck in prematurely.
12056
12057 2000-05-07  Tor Lillqvist  <tml@iki.fi>
12058
12059         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
12060         had deleted a ! operator by mistake, which caused
12061         GDK_SELECTION_CLEAR events never to be generated, which caused
12062         only the first copy to the clipboard from an gtkeditable to
12063         actually cause a copy to the Windows clipboard.
12064
12065 2000-05-06  Tor Lillqvist  <tml@iki.fi>
12066
12067         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
12068         compilation, too. Current mingw gcc distributions include the
12069         necessary headers. Also the necessary IIDs are now in mingw
12070         headers/libraries, and own definitions unnecessary.
12071
12072         More hacking on OLE2 DND, still doesn't work though, and thus
12073         ifdeffed out.
12074
12075         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
12076         here, too.
12077
12078 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
12079
12080         * gdk/nanox/*: nano-X port work in progress.
12081         * gdk/simple.c: simple test for Gdk.
12082         * README.nanox: notes about the port: read this first!
12083         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
12084         with nano-X.
12085
12086 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
12087
12088         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
12089         gdk_window_clear() into common code, implement in terms of
12090         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
12091         not redirected to the backing rectangle.
12092
12093 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
12094
12095         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
12096         EXTRA_DIST. It does not work well when the file that
12097         everything depends on is not in the tarball.
12098
12099 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
12100
12101         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
12102         with recursion where process_updates() is called from
12103         an expose handler. (GtkTextView is highly broken in
12104         doing this, but it should work, so it is a nice test
12105         case.)
12106
12107 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
12108
12109         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
12110         handle the case where updates are queued during processing of
12111         updates.
12112
12113 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
12114
12115         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
12116         window is on gdk_display - use that instead of segfaulting.
12117
12118 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
12119
12120         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
12121         broken and require an empty arg, give it to them.
12122
12123 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
12124
12125         * gtk/gtklabel.h: indentation fixes.
12126
12127 2000-05-02  Tor Lillqvist  <tml@iki.fi>
12128
12129         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
12130         draw too narrow or too low arcs, they seem to fail, at least with
12131         some display drivers.
12132
12133         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
12134
12135         Large changes to the Win32 backend, partially made necessary by
12136         the changes to the backend-independent internal
12137         structures. Attempts to implement similar backing store stuff as
12138         on X11. The current (CVS) version of the Win32 backend is *not* as
12139         stable as it was before the no-flicker branch was merged. A
12140         zipfile with that version is available from
12141         http://www.gimp.org/win32/. That should be use by "production"
12142         code until this CVS version is usable. (But note, the Win32
12143         backend has never been claimed to be "production quality".)
12144
12145         * README.win32: Add the above comment about versions.
12146
12147         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
12148
12149         * gdk/gdk.def: Update.
12150
12151         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
12152         presumably be replaced by some more better mechanism as 1.4 gets
12153         closer to release shape.
12154
12155         * gdk/makefile.{cygwin,msc}: Update.
12156
12157         * gdk/win32/*.c: Correct inclusions of the backend-specific and
12158         internal headers. Change code according to changes in these. Use
12159         gdk_drawable_*, not gdk_window_* where necessary.
12160
12161         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
12162         our old DND.
12163
12164         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
12165         to interpret single characters as UTF-8. Thanks to Hans Breuer.
12166         Use correct function name in warning messages.
12167
12168         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
12169         GSourceFuncs gdk_event_prepare and gdk_event_check.
12170         (gdk_event_get_graphics_expose): Do implement, use
12171         PeekMessage. Thanks to Hans Breuer.
12172         (event_mask_string): Debugging function to print an GdkEventMask.
12173         (gdk_pointer_grab): Use it.
12174
12175         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
12176         (old) book I used claimed was Hangul actually is CJK Unified
12177         Ideographs Extension A. Also, Hangul Syllables were missing.
12178         Improve logging.
12179
12180         * gdk/win32/gdkgc-win32.c: Largish changes.
12181
12182         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
12183         g_win32_getlocale() from GLib, and not setlocale() to get current
12184         locale name.
12185
12186         * gdk/win32/gdkprivate-win32.h
12187         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
12188         gdkwin32.h, similarily as in the X11 backend.
12189
12190         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
12191         assignment was used instead of equals in if test. Thanks to Hans
12192         Breuer.
12193
12194         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
12195         the X11 version.
12196
12197         * gdk/win32/makefile.{cygwin,msc}
12198         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
12199         path to the Win32 headers that works also with the mingw compiler.
12200
12201         * gtk/gtkstyle.c: Include <string.h>.
12202
12203 2000-04-26  Havoc Pennington  <hp@redhat.com>
12204
12205         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
12206         replacing the broken gtk_label_get ()
12207
12208 2000-04-15  Havoc Pennington  <hp@pobox.com>
12209
12210         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
12211         this keeps scanner scripts from getting confused.
12212
12213         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
12214         data, rather than void
12215
12216 2000-04-15  Tor Lillqvist  <tml@iki.fi>
12217
12218         * gtk/gtkclist.c (gtk_clist_motion)
12219         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
12220         with is_hint FALSE, get x and y from the event. They used to be
12221         used uninitialised. The Win32 backend never sends motion events
12222         marked as hints. This for instance fixes the annoying file and
12223         font selector behaviour in the Win32 version.
12224
12225 2000-04-14  Tor Lillqvist  <tml@iki.fi>
12226
12227         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
12228         gtk_private_n_signals variables, they are used by some software,
12229         sigh.
12230
12231         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
12232         installation directory from the Registry, where the installer
12233         should have put it.
12234
12235 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
12236
12237         * gdk/x11/Makefile.am: Fix problem with installation directory for
12238         gdkx.h
12239
12240         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
12241         <mrcooger@cyberverse.com> so that when selecting menus with the
12242         mouse, the first item will not be selected, but when selecting
12243         with an accelerator, or navigating left-right on a menubar with
12244         the menus popped up, the first item will be selected.
12245
12246 2000-04-05  Dan Damian  <dand@dnttm.ro>
12247
12248         * configure.in: Added "ro" to ALL_LINGUAS.
12249
12250 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
12251
12252         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
12253         indentation.
12254
12255         * Makefile.am (EXTRA_DIST): Fix typo.
12256
12257         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
12258         to catch gdkconfig.h
12259
12260         * gtk/gtkitemfactory.c: Added FIXME.
12261
12262 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
12263
12264         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
12265         s/return_if_fail/return_val_if_fail/g and add a return value.
12266
12267 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
12268
12269         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
12270         merge slipup.
12271
12272         * gdk/gdkinput.h: Fix missing line from merge.
12273
12274 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
12275
12276         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
12277         instead of gdkprivate.h.
12278
12279 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
12280
12281         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
12282         parent class to correctly be GtkDialogClass.
12283
12284 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
12285
12286         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
12287         toplevel windows and their immediate children by their parents,
12288         since the size of toplevel windows is out of our immediate
12289         control and we don't get any real benefit from trying to track
12290         this size for clipping.
12291
12292         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
12293         for input_only windows.
12294
12295         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
12296         to fix some hacks and make sure that we don't try to set the
12297         background of input only windows.
12298
12299 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
12300
12301         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
12302         the _really_ internal stuff, and leave gdkprivate.h for the fake private
12303         stuff that we've traditionally exposed.
12304
12305         * gdk/**.c: Use gdkinternals.h where appropriate.
12306
12307         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
12308         not include gdkprivate-x11.h, move all stuff of conceivable public
12309         interest into gdkx.h; keep all really private stuff in
12310         uninstalled header gdkprivate-x11.h.
12311
12312         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
12313         image->image_put on windows through a new function _gdk_window_draw_image()
12314         to allow us to do backing store for images. (Sort of ugly)
12315
12316         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
12317         contexts locally so that we can offset them properly when drawing 
12318         onto backing pixmaps.
12319
12320         * gdk/gdkinput.h: Reindented
12321
12322         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
12323         pixmap or color for the window, so we can properly initialize
12324         our double-buffer pixmaps, and also so that we temporarily set
12325         a background of None while scrolling.
12326
12327         * gdk/gdkregion.h: Revise region boolean operators to have an
12328         interface that is actually convenient - switch from creating new
12329         regions on every op, to "methods" that modify existing regions
12330         (A = A OP B). 3 argument forms which allow dest == src, would also
12331         be possible, but the current interfaces seem to map nicely
12332         onto what needs to be done. (There is quite a lot of region
12333         code in GDK now.)
12334
12335         * gdk/gdkregion.h: Add constructor from rectangle and a copy
12336         operator.
12337
12338         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
12339         gdkpoly-generic.h: Copy region code from Xlib, switch it over
12340         to 32 bit coordinates, modify it to be mostly GTK+ style
12341         and to have interfaces that match gdkregion.h.
12342
12343         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
12344         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
12345         create a backing pixmap and redirect all drawing to
12346         that backing pixmap until a matching gdk_window_end_paint().
12347
12348         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
12349         Create a special drawable class for GtkWindow's that 
12350         redirects the drawing to the backing pixmap as necessary
12351         and then calls the real operations in _gdk_windowing_window_class.
12352
12353         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
12354         Store invalid region for each window. Generate expose events for invalid
12355         region in an idle. This replaces both the expose compression
12356         and the redrawing queuing in GTK+. It is both more efficient and
12357         simpler than either one individually and far more so then the
12358         combination.
12359
12360         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
12361         Emulate 32 bit coordinates for windows with 16 bit coordinates
12362         by offsetting drawing, guffaw scrolling techniques and
12363         mapping/unmapping child windows as necessary.
12364
12365         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
12366         where, when invalid regions are processed, the region is stored,
12367         and if expose events come in that are detectably duplicate
12368         the processed exposes (by comparison of event serial numbers),
12369         the stored region is subtracted out of those exposes.
12370
12371         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
12372         regions newly exposed when scrolling or resizing windows.
12373         This, combined with forcing processesing of queued invalidated
12374         regions, gives nice flicker-free scrolling.
12375
12376         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
12377         invalidated regions after every scroll.
12378
12379         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
12380         emulation in GDK. Its, for all practical purposes just a
12381         GtkViewport/GtkFixed hybrid now.
12382
12383         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
12384         (16-bit) structures as necessary instead of just casting.
12385
12386         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
12387         in terms of the structures from gdkregion-generic.c, using appropriate
12388         offsets from GDK to X11 coordinates. Cache clip mask and
12389         origin and ts origin locally and only flush to the server
12390         when drawing, to avoid constantly setting and resetting these
12391         values when offsetting GC's for scrolling and backing pixmaps.
12392
12393         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
12394
12395         * gtk/gtkcontainer.c: Call process_all_updates at end
12396         of resizing to reduce flicker. (Avoids having redraw
12397         lag arbitrarily behind resize under some circumstances)
12398
12399         * gtk/gtkentry.c: Remove old backing store code, and simply take
12400         advantage of the new backing store capabilities of GDK.
12401
12402         * gtk/gtkmain.c: Simple implementation of widget backing
12403         store - simply push a paint while handling each expose.
12404         (Should really be configurable widget for widget.)
12405         
12406         * gtk/gtkwidget.c: Remove all the old complicated redraw
12407         code, and simply invalidate the GDK windows from
12408         gdk_window_queue_clear(), etc. (Sigh, so much carefully
12409         debugged complexity ... gone to the winds.)
12410
12411         Remove all the code for suppressing expose events while
12412         resizes are pending; this isn't needed since the invalid
12413         areas won't be processed until after the resizes are
12414         processed, since they are in a lower priority idle.
12415
12416 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
12417
12418         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
12419         and height of dest rectangle for non-intersecting rectangles.
12420
12421 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
12422
12423         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
12424         for GdkRectangle.
12425
12426 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
12427
12428         * gdk/gdk{events,image,private,types,window}.h
12429          gdk/x11/gdkinputprivate.h: Change all coordinates
12430          from int16 to int. Also, Change width and height from
12431          unsigned to signed to avoid all the stupid C 
12432          signedness bugs.
12433
12434 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
12435
12436         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
12437         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
12438         Add some more detailed checking.
12439
12440         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
12441         New function to retrieve the depth of a drawable.
12442
12443         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
12444         field, reorder fields to save memory. 
12445
12446 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
12447
12448         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
12449         of the background image instead of scaling the background down to
12450         a line.
12451
12452         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
12453         which temporarily set slider to wrong size.
12454
12455         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
12456         queue_clear().
12457
12458 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
12459
12460 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
12461
12462         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
12463
12464 2000-03-17  Tor Lillqvist  <tml@iki.fi>
12465
12466         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
12467         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
12468
12469         * gdk/win32/gdkfont-win32.c
12470         * gdk/win32/gdkproperty-win32.c
12471         * gdk/win32/gdkselection-win32.c
12472         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
12473         now declared such.
12474
12475 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
12476
12477         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
12478
12479 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
12480
12481         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
12482         is called without trapping X errors.
12483
12484 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
12485
12486         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
12487         way into the fontset lists.
12488
12489 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
12490
12491         * gtk/gtkthemes.h: add extern "C" scope.
12492
12493 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
12494
12495         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
12496         to make appends to the list constant. (gtk-guy-990901-0.patch)
12497
12498 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
12499
12500         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
12501         for the typename hash table.
12502
12503 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
12504
12505         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
12506         to make sure we never divide by zero. 
12507         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
12508
12509 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
12510
12511         * gtk/gtkfontsel.c: Apply patch from
12512         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
12513         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
12514
12515         Also, some cleanups in atom handling.
12516
12517 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
12518
12519         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
12520         not GtkWidget.
12521
12522 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
12523
12524         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
12525         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
12526         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
12527         more guint wrap-around bugs before going to bed.
12528
12529 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
12530
12531         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
12532         guint wrap arounds in allocation.width.
12533
12534         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
12535         process untill we fit the allocation given.
12536
12537 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
12538
12539         * gtk/gtkwidget.c:
12540         (gtk_widget_unrealize): guard widget access with ref/unref
12541         around signal emission.
12542         (gtk_widget_hide): same here, but also check its destroyed
12543         state before queueing a resize.
12544
12545 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
12546
12547         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
12548         of gtk_default_insensitive_bg as insensitive base color.
12549
12550         * gtk/gtktext.c (gtk_text_style_set): set the background color according
12551         to the widget's state.
12552         (gtk_text_realize): same here.
12553         (gtk_text_state_changed): same here.
12554         (draw_bg_rect): compare background color against base[] from
12555         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
12556
12557 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
12558
12559         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
12560         grabs are active, unless a delete event is send to the toplevel
12561         of the currently grab holding widget.
12562
12563 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
12564
12565         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
12566         debugging g_print's.
12567
12568 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
12569
12570         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
12571         ever make the scrolled-window requisition ever depend on the 
12572         visibility state of the scrollbars for the AUTOMATIC policy. 
12573         This breaks the GTK+ requisition model, and causes loops.
12574
12575 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
12576
12577         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
12578         the default font to avoid problems with XFree86-4.0 where the
12579         default charset is iso10646-1, not iso8859-1.
12580
12581 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
12582
12583         * acinclude.m4
12584         * config.guess
12585         * config.sub
12586         * ltconfig
12587         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
12588
12589         * gtk/Makefile.am: minor cosmetic consistency tweak
12590
12591 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
12592
12593         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
12594         the activate_time to 0, so that we handle a quick
12595         press/release press/release properly and don't suppress
12596         the second release. (Red Hat bug #7545)
12597
12598 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
12599
12600         * gtk/gtkctree.c (row_delete):
12601         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
12602         bugs with destruction notifier, *always* update internal
12603         structures *before* calling user code.
12604
12605 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
12606
12607         A few more fixes for bug #5487, #2051, #2677.
12608         * gtk/gtkclist.c : 
12609         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
12610         not GDK_BUTTON_PRESS.
12611         (resync_selection): resync only if selection_mode is
12612         GTK_SELECTION_EXTENDED
12613         * gtk/gtkctree.c (resync_selection): same here
12614
12615 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
12616
12617         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
12618         gdk_drag_get_selection() and gtk_menu_detach().
12619
12620         [ From Jeroen Ruigrok/Asmodai ]
12621
12622 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
12623
12624         * gtk/gtknotebook.c (gtk_notebook_size_request): 
12625         page->tab_label can be NULL.
12626
12627 2000-01-25  Havoc Pennington  <hp@pobox.com>
12628         
12629         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
12630         arg is boolean
12631
12632         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
12633
12634         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
12635
12636         * gdk/gdkproperty.c (gdk_property_get): return boolean
12637
12638         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
12639
12640         * gdk/gdkim.c (gdk_im_ready): return boolean
12641
12642         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
12643
12644         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
12645         glib clash, should fix glib)
12646
12647         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
12648         (gdk_get_show_events): return gboolean, and canonicalize 
12649         to TRUE/FALSE
12650
12651         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
12652         colormap is private
12653         (gdk_colors_alloc): gboolean whether to be contiguous
12654         (gdk_color_equal): return gboolean since we are a predicate
12655         and not a qsort() (this looks semi-wrong due to glib breakage,
12656         IMO glib should be fixed)
12657         
12658         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
12659         (gdk_get_use_xshm): return gboolean
12660         (gdk_pointer_is_grabbed): return gboolean
12661
12662         * gdk/gdk.h: Change prototypes to match all the above changes,
12663         and re-run egtk-format-protos as required.
12664
12665 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
12666
12667         * gtk/gtkctree.c (resync_selection): 
12668         * gtk/gtkclist.c (resync_selection):
12669
12670         Return immediately if clist->drag_pos < 0. This is a workaround
12671         for the corrupt state that the clist gets into when a
12672         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
12673
12674         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
12675         
12676         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
12677         variable from recent commit.
12678
12679 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
12680
12681         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
12682
12683 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
12684
12685         * gtk/Makefile.am: prefix all autogenerated source that get build in
12686         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
12687         in builddir. since we subsequently cd into srcdir for autogeneration,
12688         the paths have to be stripped from the target file names, thusly we
12689         use $(@F) as target names now.
12690         put a comment about configure.in's --disable-rebuilds option,
12691         which can be used for non-writable source directories, for development
12692         setups though, srcdir has to be *writable*.
12693
12694 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
12695
12696         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
12697           Finish the job of allowing event to be NULL.
12698           (Fixes bug #4283, reported by Chris Blizzard)
12699
12700         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
12701           things so that the cursor appears on screen, properly
12702           take into account INNER_BORDER.
12703           (Fixes bug #4754, reported by Antonio Campos)
12704
12705 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
12706
12707         * gtk/gtknotebook.c (gtk_notebook_map): Don't
12708           show the tab_label unless it itself is visible.
12709
12710           gtk/gtknotebook.c (gtk_notebook_size_request):
12711           Do a better job of making sure that the visibility
12712           of the tab label corresponds to whether it should
12713           be mapped or not.
12714
12715 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
12716
12717         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
12718           Use the requisition, not the allocation, since the
12719           allocation has not necessarily been computed yet.
12720           (Pointed out by Eugene Osintsev)
12721
12722 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
12723
12724         * gtk/gtkstyle.c (gtk_style_new): Dont' set
12725           style/base[GTK_STATE_INSENSITIVE] both to
12726           gtk_default_insensitive_bg!
12727           (Bug #2187, reported by Jonathan Blandford)
12728
12729         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
12730           Add Alt_L, Alt_R to list of invalid accelerators.
12731           (Bug #3736, reported by Vlad Harchev)
12732
12733 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
12734
12735         * gtk/gtkfilesel.c (open_ref_dir): Fix several
12736         bugs which occured after an attempt to open 
12737         invalid home directory left cmpl_state->reference_dir == NULL.
12738
12739          - completion on files in home directory didn't work
12740          - completion on an empty string caused  segfault
12741
12742          (Bug #3678, reported by Steve Ratcliffe)
12743
12744         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
12745         cut and paste error that was causing scales to
12746         be incorrectly positioned.
12747         (Bug #2956,
12748          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
12749
12750 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
12751
12752         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
12753         when checking for dcgettext, if we've found we needed
12754         it for dgettext.
12755 +
12756 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
12757
12758         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
12759         queue_clear on NO_WINDOW widgets during a reparent,
12760         since at that point the window and widget heirarchies
12761         are out of sync. This stops crashing in some cases
12762         (the scrolled window reparent test, for instance), and
12763         _probably_ won't cause drawing errors.
12764
12765         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
12766         test do what it was supposed to do and be robust against
12767         window closings, etc. (Bug #2443)
12768
12769 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
12770
12771         * gtk/gtkentry.c: Fix return values on mouse events.
12772         (Bug #2686, Sky <seb_sky@yahoo.com>)
12773
12774         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
12775         (pointed out by George Lebl)
12776
12777         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
12778         (From Ettore Perazzoli  <ettore@helixcode.com>)
12779  
12780 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
12781
12782         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
12783         clicks between rows or outside calender area correctly.
12784         (Patch from Damon Chaplin)
12785
12786         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
12787         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
12788           Call destroy function when overwriting existing data. 
12789           (Pointed out by Damon Chaplin)
12790
12791 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
12792
12793         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
12794           which was causing problems on various systems with Xmu.
12795           This hasn't been needed for a very long time.
12796           (Fixes #1185 3167)
12797
12798 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
12799
12800         * gdk/gdki18n.h: Include <ctype.h> when defining
12801           gdk_isw* in terms of is* as a fallback.
12802           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
12803
12804 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
12805
12806         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
12807           realize the widget when it is size allocated!
12808           (old, old bug)
12809
12810         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
12811           Removed unused call to gdk_window_get_size() that
12812           showed up when the above was fixed.
12813
12814 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
12815
12816         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
12817           fix up widget->window when the widget is a
12818           NO_WINDOW container widget.
12819
12820 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
12821
12822         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
12823           to account for the fact that feof() does _not_ 
12824           return TRUE on errors, and thus avoid infinite loops
12825           when trying to use gdk_pixmap_create_from_xpm()
12826           on unreadable values.
12827
12828 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
12829
12830         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
12831
12832 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
12833
12834         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
12835           gdk_gc_set_dashes to take gint8 instead of gchar to
12836           make it clearer that it is _not_ a NULL terminated string.
12837
12838         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
12839           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
12840           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
12841           arguments.
12842
12843 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
12844
12845         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
12846         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
12847         background size relative to our allocation, guard against small
12848         allocations, we may have not yet been size allocated.
12849
12850 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
12851
12852         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
12853         not just version == 3. We implement all 3 + most of 4 - 
12854         (we don't support matching text/plain;charset=iso-8859-1
12855         to a dest that expects text/plain). We'll still advertise
12856         3 to be safe, but any client implementing version >= 3
12857         must interoperate with 3.
12858         
12859 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
12860
12861         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
12862         background and gc members, add a warning in gtk_tooltips_set_color()
12863         indicating that this function is deprecated.
12864
12865 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
12866
12867         * docs/gtkfaq.sgml: FAQ Update:
12868           - Minor cleanups (Emmanuel, me)
12869           - New questions:
12870                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
12871                 How can I retrieve the text from a GtkMenuItem? (timj)
12872                 How do I validate/limit/filter the input to a GtkEntry? (me)
12873                 Memory does not seem to be released when I free the list
12874                         nodes I've allocated (timj)
12875
12876 2000-03-07  Tor Lillqvist  <tml@iki.fi>
12877
12878         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
12879         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
12880         for which it is no use to call GetLastError onWin9x.
12881         (gdk_other_api_failed) New function, for general error
12882         reporting without calling GetLastError.
12883         (gdk_win32_api_failed) OTOH, this function always calls
12884         GetLastError. (gdk_win32_last_error_string) Remove this function,
12885         GLib has the equivalent now.
12886
12887         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
12888         call them with function name, file name and line number in the
12889         arguments.
12890
12891         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
12892         functions.
12893         
12894         * gtk/gtk.def: Add some missing entry points.
12895
12896         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
12897         gtk_paned_set_gutter_size, which don't exist any longer, as void.
12898         
12899         Fixes by Hans Breuer:
12900
12901         * gdk/makefile.msc: Update for debugging.
12902
12903         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
12904         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
12905         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
12906         in the dash_list.
12907
12908         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
12909         the x11 backend.
12910
12911         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
12912
12913         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
12914
12915 2000-03-04  Tor Lillqvist  <tml@iki.fi>
12916
12917         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
12918         just pixel value of background colour.
12919
12920         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
12921         containing code snippet previously duplicated in a couple of
12922         places.
12923         
12924         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
12925         gdk_colormap_color.
12926
12927         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
12928         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
12929         events for autorepeated Shift, Control and Alt keys. Use
12930         gdk_colormap_color.
12931
12932         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
12933         pointer is inside the window the cursor of which we are setting,
12934         call SetCursor immediately.
12935
12936         * gdk/win32/makefile.cygwin
12937         * gtk/makefile.cygwin: If we don't have the build number stamp
12938         file, use zero.
12939
12940         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
12941         gtk_paned_set_gutter_size as empty.
12942
12943         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
12944         
12945 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
12946
12947         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
12948           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
12949           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
12950           docs/gtk_tut.sgml docs/gtk.texi TODO:
12951
12952           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
12953
12954 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
12955
12956         * gtk/gtkcalendar.c: Implement num_marked_dates,
12957           and don't emit mutiple day_selected signals on
12958           month_prev.
12959
12960 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
12961
12962         * docs/make-todo (lineno): let title and logo be configurable so
12963         that GNOME can use this script too.
12964
12965         * TODO.xml: added logourl and a title
12966
12967 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
12968
12969         * TODO.xml: Added some UI items, and an explanatory
12970         comment at the top of the file.
12971
12972 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
12973
12974         * TODO.xml: some updates, added abunch of new entries.
12975         a note for those fiddeling with this file, when done
12976         with it, invoke:
12977         $ ./docs/make-todo TODO.xml >/dev/null
12978         and correct output errors before comitting changes.
12979
12980 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
12981
12982         * TODO.xml: Added XML-structured TODO file.
12983         * docs/make-todo: python script to turn TODO.xml into
12984           pretty XML output. 
12985
12986 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
12987
12988         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
12989         the function to let it draw the seven dots, instead of the old,
12990         much maligned, method.
12991         (draw_dot): New function to draw a dot.
12992
12993         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
12994         to draw the handle inside the border width as opposed to outside.
12995         Use paint function instead of gdk_draw_point.
12996
12997         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
12998         to draw the handle inside the border width as opposed to outside.
12999         Use paint function instead of gdk_draw_point.
13000
13001         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
13002         Change indenting to be more GTK like.
13003
13004 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
13005
13006         * docs/gtk_tut.sgml: New section on GtkCalendar
13007         * examples/calendar: Update example code
13008
13009 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
13010
13011         * docs/gtkfaq.sgml: FAQ Update
13012
13013 2000-02-19  Anders Carlsson  <andersca@gnu.org>
13014
13015         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
13016         to prevent the scroll event to be propagated upwards.
13017
13018 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
13019
13020         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
13021         OwnerGrabButtonMask from button entries for
13022         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
13023
13024         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
13025         to the event mask (which will result in button/press release
13026         being added to the event mask on Unix) so scrolling works
13027         for layouts in scroll windows.
13028
13029         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
13030
13031         Patch from Anders Carlsson  <andersca@gnu.org> to add
13032         a scroll event.
13033
13034         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
13035         scrolling to the "Test Scrolling" part of testgtk.
13036  
13037         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
13038  
13039         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
13040         it against GDK_SCROLL.
13041  
13042         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
13043         way of mouse wheel scrolling.
13044  
13045         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
13046  
13047         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
13048  
13049         * gtk/gtkmain.c: Removed previous mouse wheel hack.
13050  
13051         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
13052         gdk_event_mask_table.
13053  
13054         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
13055         GdkEventScroll handler.
13056  
13057         * gdk/gdkevents.h: Added GdkEventScroll structure.
13058  
13059 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
13060
13061         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
13062         and Anders Carlsson to change the Paned widgets so that they
13063         can be dragged from anywhere along the length. Also change
13064         the way that this is drawn to make this apparent.
13065
13066         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
13067         from George Lebl to check that option_menu->menu is present
13068         before getting history.
13069
13070 2000-02-14  Tor Lillqvist  <tml@iki.fi>
13071
13072         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
13073         before the assertion for non-NULL segment list.
13074
13075         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
13076         Seems that pattern brushes *must* be 8x8 pixels! At least on my
13077         machine, but it might be display driver dependent. Sigh, so make
13078         sure the stipple is that size. Does Windows suck or what?
13079
13080         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
13081         places.
13082
13083 2000-02-13  Havoc Pennington  <hp@pobox.com>
13084
13085         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
13086         refcount to 1
13087         (gdk_cursor_new): init refcount to 1
13088
13089         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
13090
13091 2000-02-13  Tor Lillqvist  <tml@iki.fi>
13092
13093         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
13094         so that we don't have to do unnecessary settings to the HDC.
13095
13096         * gdk/win32/gdkdrawable-win32.c
13097         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
13098         gdk_gc_predraw.
13099
13100         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
13101         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
13102         GDI paths, call WidenPath to get the outline of the stroken path,
13103         and then fill the outline (with the brush that was built from the
13104         stipple).
13105
13106         * gdk/win32/gdkgc-win32.c: Factor out common code from
13107         _gdk_win32_gc_new and gdk_win32_gc_set_values into
13108         gdk_win32_gc_values_to_win32values. Use correct colour for
13109         SetBkColor() (Until now the code actually used a random colour in
13110         the call to SetBkColor()... but that didn't show up as not many
13111         GDI APIs use the background colour. Pattern (opaque stippled)
13112         brushes do.)
13113
13114         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
13115         gdk_win32_api_failed): New functions for error logging.
13116
13117         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
13118         WIN32_API_FAILED to call them, passing function or file name and
13119         line number.
13120
13121         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
13122
13123         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
13124         GdkColor for foreground and background in GdkGCWin32Data.
13125
13126         * gdk/makefile.cygwin: Link in the resource object separately.
13127
13128         * gdk/win32/rc/gdk.rc
13129         * gtk/gtk.rc (New file)
13130         * gdk/win32/makefile.cygwin
13131         * gtk/makefile.cygwin: Update build number in DLLs automatically,
13132         as in GLib.
13133
13134 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
13135
13136         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
13137         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
13138         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
13139         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
13140         parameters given and cursor->ref_count. coding style fixups.
13141
13142         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
13143         not GtkWidget.
13144         
13145         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
13146         fix up widget macros and add _GET_CLASS() variant.
13147         
13148         * gtk/*.c: some GtkType fixups.
13149
13150 2000-02-09  Tor Lillqvist  <tml@iki.fi>
13151
13152         * gdk/win32/gdkproperty-win32.c
13153         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
13154         were reversed.
13155
13156 2000-02-04  Tor Lillqvist  <tml@iki.fi>
13157
13158         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
13159         g_filename_to_utf8 to convert the font names Windows gives us from
13160         whatever is the default codepage to UTF-8.
13161         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
13162         in the other direction.
13163
13164         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
13165         error in debugging output.
13166
13167 2000-02-02  Tor Lillqvist  <tml@iki.fi>
13168
13169         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
13170         and height parameters to gdk_window_clear_area(). Not minus one.
13171
13172 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
13173
13174         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
13175         checks if the widget passed to gtk_drag_get_data() was not the
13176         dest widget.
13177
13178 2000-02-01  Tor Lillqvist  <tml@iki.fi>
13179
13180         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
13181         g_filename_from_utf8 functions (which were added a moment ago to
13182         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
13183         size buffers.
13184
13185         gtk_file_selection_get_filename returns the filename in the C
13186         runtime encoding. It calls g_filename_from_utf8, but copies the
13187         returned string to a static buffer, which is returned. I think
13188         this is better than returning the result from g_filename_from_utf8
13189         directly, which would mean all apps that use it would have to free
13190         the return value. Or should this function care about this issue at
13191         all? Maybe a new function with clearly defined semantics.
13192
13193         * gtk/gtkfilesel.h: Add comment about
13194         gtk_file_selection_get_filename returning the filename in the C
13195         runtime's encoding.
13196
13197         * README.win32
13198         * gdk/gdk.def
13199         * gdk/makefile.{cygwin,msc}
13200         * gtk/gtk.def: Updates.
13201
13202         * gdk/gdkcursor-win32.c: Initialise refcount.
13203
13204 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
13205
13206         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
13207
13208 2000-01-30  Havoc Pennington  <hp@pobox.com>
13209
13210         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
13211         destroy
13212
13213         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
13214
13215         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
13216         implemented in platform-specific code
13217
13218         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
13219
13220         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
13221         underscore in front
13222
13223         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
13224         put an underscore in front
13225
13226         * gdk/gdkcursor.c: new file, implements
13227         gdk_cursor_ref/gdk_cursor_unref
13228
13229         * gdk/gdkcursor.h: Refcount GdkCursor
13230
13231         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
13232
13233 2000-01-29  Tor Lillqvist  <tml@iki.fi>
13234
13235         * gdk/gdkwindow.h
13236         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
13237
13238 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
13239
13240         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
13241         structures to properly inherit from GtkWidget not GtkBin.
13242
13243 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
13244
13245         * gtk+.spec.in: Added lib/gtk+/include/* to %files
13246         (bug #5178 - Peter Wainright)
13247         
13248         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
13249         so that it will be installed.
13250         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
13251
13252 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
13253
13254         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
13255         for the GtkStyleClass vtable const.
13256
13257         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
13258         take a const string argument like GtkTranslateFunc. This will
13259         require changes in use code.
13260
13261 2000-01-19  Tor Lillqvist  <tml@iki.fi>
13262
13263         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
13264         semantics (to mimic the X11 backend, which just calls XClearArea)
13265         is to check for zero width (and height), and in that case use the
13266         window's width minus x (height minus y). This fixes for instance
13267         some redraw problems with gtkclist, which were easily noticeable
13268         in the gtk file selection widget.
13269
13270         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
13271         windows.
13272
13273 2000-01-13  Tor Lillqvist  <tml@iki.fi>
13274
13275         * configure.in
13276         * gdk/Makefile.am
13277         * gdk/x11/Makefile.am
13278         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
13279         (bug #5177).
13280         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
13281         out later.
13282
13283 2000-01-09  Tor Lillqvist  <tml@iki.fi>
13284
13285         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
13286         WM_MOVE for iconified or invisible windows. This fixes various
13287         problems when minimising windows. Thanks to Bernd Herd.
13288
13289 2000-01-05  Tor Lillqvist  <tml@iki.fi>
13290
13291         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
13292         backend's draw_lines method, not draw_points.
13293
13294 2000-01-02  Tor Lillqvist  <tml@iki.fi>
13295
13296         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
13297         before Owen's reorganisation: Don't have queued_events and
13298         queued_tail statics in this file, but use gdk_queued_events and
13299         gdk_queued_tail. This makes exposure event compression work again.
13300
13301         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
13302         seem to be needed?
13303
13304 1999-12-30  Tor Lillqvist  <tml@iki.fi>
13305
13306         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
13307         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
13308         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
13309         doesn't do anything.
13310
13311         * gdk/gdk.def: Add gdk_xid_table_insert.
13312
13313         * gdk/win32/gdkprivate-win32.h
13314         * gdk/win32/gdkevents-win32.c
13315         * gdk/win32/gdkinput-win32.c
13316         
13317         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
13318         extension_events field in the GdkWindowWin32Data struct. Use only
13319         the extension_events field in GdkWindowPrivate. Previously one was
13320         set, and the other one tested, which broke tablet
13321         functionality. Thanks to Keishi Suenaga for pointing this out.
13322
13323 1999-12-18  Tor Lillqvist  <tml@iki.fi>
13324
13325         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
13326         When handling a single character (text length == 1), don't handle
13327         it as if it was UTF-8.
13328
13329 1999-12-11  Tor Lillqvist  <tml@iki.fi>
13330
13331         * Makefile.am: Distribute README.win32.
13332         
13333         * gdk/Makefile.am
13334         * gdk/win32/Makefile.am: Distribute Win32 files.
13335
13336         * gdk/makefile.msc: New file.
13337
13338         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
13339         after label).
13340
13341         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
13342         gdk_error_code as GDKVAR, as they are referred outside GDK.
13343
13344         * gdk/win32/makefile.msc: Update.
13345
13346         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
13347         tweaks. Check only if at least one of those Unicode subrange bits
13348         we care for is set. If no code page bits are set, guess (wildly)
13349         based on the charset.
13350
13351         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
13352
13353         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
13354         non-NULL.
13355
13356         * gtk/gtkdnd.c
13357         * gtk/gtklayout.c
13358         * gtk/gtkplug.c
13359         * gtk/gtkselection.c
13360         * gtk/gtksocket.c
13361         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
13362         appropriate. There must be a cleaner way to handle this?
13363
13364         * gtk/gtkrc.c: Must include windows.h on Win32.
13365
13366         * gtk/testgtk.c: No need to include gdkx.h.
13367
13368         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
13369
13370 1999-12-07  Tor Lillqvist  <tml@iki.fi>
13371
13372         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
13373         the rbearing is set to the same as the width, but this should be
13374         fixed.
13375
13376 1999-12-06  Tor Lillqvist  <tml@iki.fi>
13377
13378         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
13379         function. If Windows doesn't tell us what Unicode subranges a font
13380         covers, guesstimate based on the codepages it covers. This will
13381         hopefully help those Windows versions or fonts that don't give us
13382         any useful Unicode subrange information with GetTextCharsetInfo.
13383         Call this function in gdk_font_load_internal.
13384
13385         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
13386         minor changes.
13387
13388 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
13389
13390         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
13391         New function, long needed.
13392
13393 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
13394
13395         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
13396         only_if_exists argument of gdk_atom_intern to
13397         bool.
13398
13399 1999-11-25  Tor Lillqvist  <tml@iki.fi>
13400
13401         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
13402         Fix two copy&paste errors.
13403
13404         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
13405         win32 has changed.
13406
13407         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
13408         GdkWin32SingleFont struct.
13409
13410         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
13411         subranges of loaded fonts. Clear font signature first, in case
13412         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
13413         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
13414
13415         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
13416         Unoffset clip region.
13417
13418 1999-11-23  Tor Lillqvist  <tml@iki.fi>
13419
13420         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
13421         event->any.window before calling filter functions.
13422
13423 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
13424
13425         * gtk/gtkgamma.h: Adapt cast macros to standard.
13426
13427 [ Merges from 1.2 ]
13428
13429 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
13430
13431         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
13432         If translation does not include a '/', use entire
13433         translation instead of crashing.
13434
13435 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
13436
13437         * docs/gtk_tut.sgml:
13438         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
13439
13440 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
13441
13442         * gtk/gtkselection.c (gtk_target_list_remove): Use
13443         g_list_remove_link, not g_list_remove.
13444
13445         [ From Geert Bevin <gbevin@thunderstorms.org> ]
13446         
13447 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
13448
13449         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
13450         statement upon unselection (how the heck did that slip in?).
13451
13452 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
13453
13454         * gtk/gtktext.c (gtk_text_freeze): 
13455         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
13456         in frozen state (and aparently crashes). patch provided by Anders
13457         Melchiorsen <and@kampsax.dtu.dk>.
13458
13459 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
13460
13461         * fix insensitive default/focus widget activation,
13462         reported by Matt Goodall <mgg@isotek.co.uk>.
13463
13464         * gtk/gtkwindow.c (gtk_window_key_press_event): 
13465         (gtk_window_activate_default):
13466         (gtk_window_activate_focus):
13467         return handled=FALSE for actiavtion of insensitive default
13468         widgets. return handled=TRUE for activation of insensitive
13469         focus widgets. don't activate in either case.
13470
13471 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
13472
13473         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
13474         and $glib_cflags to match library order and in the
13475         theory that an old version of GLib is more likely to
13476         be in the include directory for X then vice-versa.
13477         (Bug #2776)
13478
13479 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
13480
13481         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
13482         to determine the locale for fontsets, not LC_MESSAGES;
13483         the user may want English messages with a handling
13484         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
13485         will still be broken) (Bug #2891)
13486
13487 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
13488
13489         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
13490
13491 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
13492
13493         * gtk/gtkrc.ko: Changed the Korean default fontset.
13494
13495 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
13496
13497         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
13498         where when scrolling to the left or top double exposes
13499         were done, causing major slowdowns.
13500
13501 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
13502
13503         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
13504         names to lowercase and alphanumeric, before looking
13505         them up.
13506
13507         * gtk/Makefile.am: Install codeset variant gtkrc files
13508         with normalized names.
13509
13510 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
13511
13512         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
13513         popup menus when the menu is already visible, but its parent
13514         is still hidden, (happens after tornoff window got hidden).
13515
13516 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
13517
13518         * gtk/Makefile.am (install-data-local): Fix
13519         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
13520         deleted, causing error messages on install.
13521
13522 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
13523
13524         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
13525         the handle as well, since we now sometimes ignore
13526         exposes on the handle while resizing.
13527
13528 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
13529
13530         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
13531         extra g_free introduced in one of the last one or two 
13532         commits.
13533
13534 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
13535
13536         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
13537         consistent, put each style that a gtkrc.* file creates
13538         in a unique namespace, remove old files before installing.
13539
13540 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
13541
13542         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
13543         gtk_rc_init is called multiple times. (Yes, people who
13544         do that have bugs in their code.)
13545
13546 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
13547
13548         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
13549         Remove it since it's generated by the Makefile anyway
13550
13551 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
13552
13553         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
13554         device->info.axes for core pointer.
13555
13556 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
13557
13558         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
13559         idle_id, to deal with obsolete, broken C libraries.
13560
13561 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
13562
13563         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
13564         allocation->x/y twice!
13565
13566         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
13567         consistent with gtk_vscale_pos_trough().
13568
13569 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
13570
13571         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
13572         be queueing a resize on a toplevel container between
13573         the time we show it and when we map it. So, we need
13574         to test GTK_WIDGET_VISIBLE() for toplevels, and only
13575         use GTK_WIDGET_DRAWABLE() for child windows.
13576
13577 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
13578
13579         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
13580         (fixes bug #2144)
13581
13582 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
13583
13584         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
13585         container DRAWABLE (instead of VISIBLE), so we don't queue
13586         resizes on non-toplevel containers.
13587
13588 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
13589
13590         * gtk/gtkselection.[ch]: Make the data argument
13591         const guchar *.
13592
13593 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
13594
13595         * gtk/gtkwindow.c: Try to behave sensibly if 
13596         the focus widget is the window itself. (Should
13597         we allow this at all?)
13598
13599 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
13600
13601         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
13602         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
13603         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
13604         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
13605         in prototypes and implementations consistent (Tomas Ogren).
13606
13607         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
13608         before the widget is unparented (reported by damon).
13609
13610         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
13611         since we provide unsigned data anyways.
13612
13613 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
13614
13615         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
13616         the call to gtk_tooltips_layout_text() until later.
13617
13618         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
13619         Call gtk_widget_ensure_style() before using the style.
13620
13621 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
13622
13623         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
13624         for old widgets that don't propagate draws to all
13625         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
13626
13627 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
13628
13629         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
13630         for a redraw but just the widget that requested the resize.
13631
13632 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
13633
13634         * gtk/gtkcontainer.c: added new widget level method
13635         gtk_container_set_reallocate_redraws() and a GtkContainer flag
13636         reallocate_redraws : 1 to reflect the setting, exported this through
13637         the argument system as a boolean ::reallocate_redraws.
13638
13639         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
13640         on the widget because the allocation changes, do so as well for
13641         widget->parent if the parent has reallocate_redraws set to TRUE.
13642         with that containers requesting reallocation redraws get automatically
13643         redrawn if their children changed allocation (this unfortunately
13644         affects also other children that didn't change allocation, but we
13645         cannot work around that before 1.3).
13646
13647 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
13648
13649         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
13650         _and_ height are >0 (not _or_).
13651
13652         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
13653         instead of gtk_container_queue_resize(), which is a core gtk internal
13654         function (must have been on crack when i queued that).
13655
13656         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
13657         we can check more reliably if we want to discard expose events.
13658         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
13659         flag.
13660         
13661         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
13662         we simply trust these events. for deciding whether to discard exposes,
13663         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
13664         
13665 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
13666
13667         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
13668         queues of areas that are completely off screen.
13669
13670         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
13671         logic for handleboxes.
13672
13673         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
13674         check on width/height.
13675
13676 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
13677
13678         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
13679         we are fine with using $@ the way we do (if we actually encounter
13680         brokeness with $@ in VPATH builds because of additional path prefixes,
13681         we need to use $(@F) actually).
13682
13683 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
13684
13685         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
13686         short lived bugs, that would allow language bindings to do surgeries
13687         to our guts.
13688
13689 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
13690
13691         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
13692         where comparison was being done against an uninitialized
13693         value causing intermittant results depending on
13694         compiler flags. Also make it clearer that we aren't
13695         ever initializing the child as 0x0 (though this will
13696         be caught in gtk_widget_size_allocate())
13697
13698 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
13699
13700         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
13701         gtk_window_unset_transient_for() call after we do checks
13702         involving the old transient parent.
13703         [ From Lance Capser <lmc@cyberhighway.net> ]
13704
13705 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
13706
13707         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
13708         an empty file.
13709
13710 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
13711
13712         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
13713         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
13714
13715 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
13716
13717         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
13718         `$@' is valid only in the build dir, not after we've done 
13719         `cd $srcdir'.  Also use `test -f' instead of less portable
13720         `test -e'.
13721
13722 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
13723
13724         * gtk/gtktext.c (correct_cache_insert): Rewrite
13725          for simplicity, and hopefully correctness.
13726          (Fixes bug #1322, which was a segfault when
13727           on some insertions with the properties around
13728           the insertion set up just wrong.)
13729
13730         * gtk/gtktext.c (gtk_text_adjustment): When we receive
13731          a "changed" signal, clamp the new value to the adjustment
13732          bounds to avoid segfaulting if someone tries to change
13733          the adjustment to a bogus value. (Bug #1795)
13734
13735 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
13736
13737         * gtk/gtkmain.c: Ignore unexpected destroy notifies
13738         for children, for toplevel windows handle them
13739         like delete_event.
13740
13741         * gtk/gtkplug.c: Add an unrealize handler so that
13742         we unref plug->socket_window when we are done
13743         with it.
13744
13745 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
13746
13747         * gtk/gtktext.c (clear_area): Fix stupid signedness
13748          problem that was causing background to sometimes
13749          be misaligned.
13750
13751 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
13752
13753         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
13754         
13755         * gtk/gtkmenu.c (gtk_menu_position): Make
13756          sure we never position menus with negative x, y,
13757          since gtk_widget_set_uposition() can't handle that.
13758
13759         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
13760          Modify the positioning code a bit so that we always
13761          put the top-left corner onscreen. (This is for
13762          UI reasons, gtk_menu_position() now takes care of
13763          gtk_widet_set_uposition() brokeness.)
13764
13765 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
13766
13767         * gtk/Makefile.am: fixed up things for -jx, x > 1.
13768
13769 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
13770
13771         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
13772           RC style that is passed in. The lack of the ref
13773           before was a bug. If people worked around this
13774           bug, this will introduce a slight memory leak
13775           in their code. The code should typically look like:
13776
13777             rc_style = gtk_rc_style_new ();
13778             [...]
13779             gtk_widget_modify_style (widget, rc_style);
13780             gtk_rc_style_unref (rc_style);
13781
13782         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
13783           the style if it was already set.
13784
13785         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
13786           style if it was set before.
13787
13788 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
13789
13790         * gtk/testgtk.c (main): Add a check to see if we
13791           are being run from the correct directory and
13792           to quit nicely if we are not.
13793
13794         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
13795           static.
13796
13797 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
13798
13799         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
13800
13801         * gtk/gtkwindow.c:
13802         queue resizes unconditionally (gtk_widget_queue_resize will figure
13803         what to do if the window is not realized).
13804         (gtk_window_move_resize): only recenter the window
13805         for GTK_WIN_POS_CENTER_ALWAYS.
13806         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
13807         the same way as GTK_WIN_POS_CENTER.
13808
13809 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
13810
13811         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
13812         with (!(info->last_flags & GDK_HINT_POS)) instead of
13813         (!info->last_flags & GDK_HINT_POS).
13814
13815         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
13816         new_height unconditionally, because we use these values even if
13817         !default_size_changed && !hints_changed.
13818         comented the (default_size_changed || hints_changed) case with
13819         respect to resize rejects from the window manager.
13820
13821         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
13822         in the zvt condition hack, since this includes the window hints, set
13823         the hints after the handling_resize case.
13824
13825         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
13826         window is initially shown with to the geometry.
13827
13828 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
13829
13830         * gtk/gtkwindow.c (gtk_window_move_resize):
13831         s/size_changed/default_size_changed/g so i know what's
13832         really going on (frying brain on smaller flame now).
13833
13834 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
13835
13836         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
13837         we have size_changed upon handling_resize. this is a gross
13838         workaround for the broken zvt widget and should be removed in
13839         1.3 again (search for FIXME).
13840         Owen provided an accurate comment for this:
13841
13842         /* We could be here for two reasons
13843          *  1) We coincidentally got a resize while handling
13844          *     another resize.
13845          *  2) Our computation of size_changed was completely
13846          *     screwed up, probably because one of our children
13847          *     is broken. It's probably a zvt widget.
13848          *
13849          * For 1), we could just go ahead and ask for the
13850          * new size right now, but doing that for 2)
13851          * might well be fighting the user (and can even
13852          * trigger a loop). Since we really don't want to
13853          * do that, we requeue a resize in hopes that
13854          * by the time it gets handled, the child has seen
13855          * the light and is willing to go along with the
13856          * new size. (this happens for the zvt widget, since
13857          * the size_allocate() above will have stored the
13858          * requisition corresponding to the new size in the
13859          * zvt widget)
13860          *
13861          * This doesn't buy us anything for 1), but it shouldn't
13862          * hurt us too badly, since it is what would have
13863          * happened if we had gotten the configure event before
13864          * the new size had been set.
13865          */
13866
13867 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
13868
13869         * gtk/gtkrc.c: deal properly with the fact that RC
13870           style lists may include rc styles more than once.
13871
13872         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
13873           unused static function.
13874
13875         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
13876           stack of directories of RC files currently being
13877           parsed and implicitely add them to pixmap path.
13878           
13879           This fixes a bug where the directory would get
13880           appended then overwritten by pixmap_path declarations.
13881
13882           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
13883
13884         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
13885           theme's exit function. (Patch from Peter Wainwright,
13886           bug #1454)
13887
13888         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
13889           Add a destroy() handler to take care of removing
13890           group for menu item. (Fixes bug #1197)
13891
13892         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
13893           in warning message.
13894
13895 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
13896
13897         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
13898         roundtrip to figure window's width and height, since we know that
13899         anyways from widget->allocation.
13900
13901 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
13902
13903         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
13904           the hints after we request the new size.
13905
13906 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
13907
13908         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
13909           GTK_WIDGET_REALIZED() assertion - we can compute the
13910           hints before we are realized.
13911
13912         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
13913           hint changing so that we have a value of hints_changed
13914           when we decide whether to constrain the window size.
13915
13916         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
13917
13918         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
13919         change back to G_MAXINT.
13920
13921 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
13922
13923         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
13924         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
13925         contain uncluttered values.
13926         (gtk_window_compute_hints): simply assert that window is realized
13927         and that geometry_info is valid, since we rely on this anyways.
13928         (gtk_window_constrain_size): major cleanups to the code.
13929         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
13930         for the base size, instead of the minimums. use 32767 as max width
13931         and height (like in gtkwindow.c) instead of G_MAXINT.
13932
13933 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
13934
13935         * cleaned up the GtkContainer.need_resize flag handling mess, we
13936         only need to force resize requests when we were prematurely
13937         realized, or our widget tree was modified when we were temporarily
13938         hidden. handling these cases directly upon showing the window (i.e.
13939         while the GdkWindow is still unmapped) avoids the need to wait for
13940         a configure event response and therefore makes the GUI more snappier
13941         and avoids blank windows during the roundtrip.
13942
13943         * gtk/gtkwidget.c:
13944         (gtk_widget_hide): 
13945         (gtk_widget_show): don't queue resizes on toplevels, they know how
13946         to deal with matters.
13947
13948         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
13949         flag directly for not visible resize containers and spare us unecessary
13950         signal emissions.
13951
13952         * gtk/gtkwindow.c:
13953         (gtk_window_realize): if we need to enforce premature size allocation,
13954         queue a container resize so we are correctly resized later on.
13955         (gtk_window_init):
13956         (gtk_window_size_request):
13957         don't freak around with the ->need_resize flag,
13958         gtk_container_queue_resize() will care about that.
13959         (gtk_window_show):
13960         handle initial resizing issues here, we can handle matters better in
13961         this place, especially since we know that our GdkWindow is still
13962         unmapped.
13963         (gtk_window_move_resize):
13964         don't care about ->need_resize at all.
13965         handle size changes properly that occoured while we waited for a
13966         configure event.
13967
13968 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
13969
13970         * gtk/gtkwidget.c (gtk_widget_set_uposition):
13971         * gtk/gtkwindow.[hc] (gtk_window_reposition):
13972         Move the hint setting code from gtk_widget_set_uposition
13973         to here; set the hints so that we respect any previously
13974         set geometry hints.
13975
13976         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
13977         change the window hints here or move the window here,
13978         let that happen in gtk_window_move_resize().
13979
13980 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
13981
13982         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
13983         to already queued resizes (and therefore redraws) on a widget, check
13984         its anchestry as well.
13985
13986         * gtk/gtkcontainer.c:
13987         (gtk_container_queue_resize): clear resize widgets for resize
13988         containers before aborting prematurely. this is especially important
13989         for toplevels which may need imemdiate processing or their resize
13990         handler to be queued.
13991         (gtk_container_dequeue_resize_handler): added new internal function for
13992         gtkwindow.c.
13993
13994         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
13995         configure event, take possible changes in window position into account
13996         as well.
13997         if we request a new window size, queue up a resize handler that will
13998         last until the configure event response arrives.
13999         combined the ->need_resize case (initial show) with the general size
14000         (hints) changed case and added even more comments.
14001         if !auto_shrink, only revert to the old allocation if the new size
14002         is smaller than the current allocation.
14003
14004 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
14005
14006         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
14007                            gtk_window_set_geometry_hints
14008                            gtk_window_set_default_size):
14009         When hints are set, queue a resize so that the hints will
14010         be eventually reset on the toplevel.
14011
14012         * gtk/gtkwindow.c (gtk_window_show): Use
14013         gtk_window_compute_default_size(). Clear the need_resize flag
14014         on the initail map so that we don't unnecessarily trigger the
14015         resize code.
14016
14017         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
14018         into separate functions. Compare the hints we are setting
14019         with what we set last time so that we can accurately
14020         tell when we need to reset the hints.
14021
14022         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
14023         function to figure out the size from requisition
14024         and default_size.
14025
14026         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
14027         from fvwm to constrain a size to the geometry hints.
14028
14029         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
14030         to compare two sets of geometry hints.
14031
14032         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
14033         from gtk_window_set_hints(), just compute the hints,
14034         don't set them.
14035
14036         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
14037         code from gtk_window_move_resize() to separate function,
14038         rationalize a bit.
14039
14040 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
14041
14042         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
14043         structure into a new private structure.
14044
14045         * gtkrc.c: Split GtkRcStyle into public/private.
14046         In the private part, add a list of pointers to the
14047         RcStyle lists this RcStyle participates in.
14048
14049         * gtkrc.c: When a RcStyle is free, remove all
14050         lists referencing it from the 
14051         realized_style_ht hash, and free those lists.
14052         
14053         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
14054         gtk_rc_init(), since that adds the default styles
14055         to the list of parsed RC files again.
14056
14057         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
14058         
14059 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
14060
14061         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
14062         checks that ensure that a widget's allocation is at least 1 in width
14063         and height. (GNOME note: this doesn't affect old panel code anymore,
14064         because GtkSocket will request width and height of at least 1 since
14065         Fri Jul 23).
14066
14067         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
14068         allocated yet (happens if the user realizes the window prematurely),
14069         size request and allocate it.
14070         (gtk_window_size_allocate): guard against guint underflows.
14071
14072 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
14073
14074         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
14075         in gtk_built_sources, so gtk.defs gets built prior to all other
14076         sources.
14077
14078 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
14079
14080         * gtk/Makefile.am:
14081         invoke indent on gtkmarshal.*. 
14082         rewrote source generation rules, use COPYING as oldest source tag for
14083         a piggyback rule to generate all sources from (don't touch it ;).
14084         major cleanups, strip spaces on build rules for GNU Make.
14085
14086         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
14087         source and target files from commandline arguments. don't invoke indent.
14088
14089 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
14090
14091         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
14092         notebook after switch to avoid drawing problems.
14093         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
14094         
14095         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
14096         show them instead. 
14097         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
14098
14099 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
14100
14101         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
14102         notebook after switch to avoid drawing problems.
14103         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
14104         
14105         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
14106         show them instead. 
14107         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
14108
14109 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
14110
14111         * gtk/gtkwindow.c:
14112         we use window->need_resize from configure_event now, to indicate that
14113         the gtkwindow should keep its allocation (e.g. because the user resized
14114         the window through window manager handles). resize_count is now reliably
14115         used to figure whether we got the allocation we requested from the
14116         window manager.
14117         configure events get queued as resizes now, the real stuff (size
14118         computation and allocation) now only goes on in gtk_window_move_resize().
14119         GtkWindow's requisition now contains its *real* requisition (like all
14120         other widgets), *not* taking usize into account.
14121         geometry_info->last_{width|height} is now updated from set_hints() only
14122         so it always contains the last hints we set for the window manager.
14123         made some event handlers return TRUE instead of FALSE.
14124         the overall code should be much more straight forward now, and the
14125         significant code portions are accompanied by comments now.
14126         (gtk_window_set_hints):
14127         removed requisition argument and made it
14128         fetch the requisition through gtk_widget_get_child_requisition.
14129         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
14130         does that now.
14131         (gtk_window_show):
14132         ensure that the widget is realized before calling 
14133         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
14134         ensure that we got properly size requested and allocated before
14135         realization.
14136         (gtk_window_configure_event):
14137         ignore plain window moves, or reallocate the widget tree through the
14138         resize queue otherwise.
14139         (gtk_window_move_resize):
14140         mostly rewrote this function to figure window manager hints more
14141         reliably, coalesce window moves and resizes to reduce configure events
14142         and do actuall size allocations.
14143
14144 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
14145
14146         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
14147         that have a resize pending, because a redraw is already queued for them.
14148
14149         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
14150         hack to clear resize_widgets.
14151
14152         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
14153         for resize containers prior to size allocation. (this is also a bit
14154         ugly, but avoids side effects for stopped emissions and is thus more
14155         reliable).
14156         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
14157
14158         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
14159         function from gtk_tooltips_expose, as we connect to ::expose_event
14160         *and* ::draw now.
14161
14162 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
14163
14164         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
14165         checks.
14166         (gtk_target_list_unref): Likewise.
14167
14168         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
14169
14170 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
14171
14172         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
14173         guard against division by zero. (Fixes bug #1339)
14174
14175 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
14176
14177         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
14178         Prevent the trivial leak of information of allowing
14179         word motion when the entry is not visible.
14180
14181 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
14182
14183         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
14184         modality to error dialog as well as confirmation dialogs.
14185         (Bug #1803, reported by Rosanna Wing Sze Yuen)
14186
14187 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
14188
14189         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
14190         tree->view_lines.
14191         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
14192
14193         * gtk/Makefile.am (install-data-local): Solaris apparently
14194         has various troubles with ln -f; use rm first instead.
14195         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
14196
14197 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
14198
14199         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
14200         use `cp' followed by `rm' (the `rm' was already there).
14201
14202 July 30, 1999 Elliot Lee <sopwith@redhat.com>
14203         
14204         * configure.in: Fix autoconf warnings about cross compilation by
14205         trying to provide sane defaults for AC_TRY_RUN.
14206         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
14207         put them into $(srcdir) when generated. Also add a dependency of
14208         gtksignal.h on gtkmarshal.h for -j builds. 
14209         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
14210
14211 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
14212
14213         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
14214         GDK_THREADS_{LEAVE,ENTER} pair.
14215         (From Paul Fisher <pnfisher@redhat.com>)
14216
14217 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
14218
14219         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
14220         width and height are always >0 (owen).
14221
14222 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
14223
14224         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
14225         change that assured that a widget's allocated with and height are
14226         always >1, since this breaks *buggy* panel code. unfortunately this
14227         back-breaks the gimp's color selector.
14228
14229         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
14230         allocation is always >0 in width and height, before sending the
14231         configure event; this is a *gross* hack to get the gimp back to work.
14232         
14233         * marked both cases with TODO-1.3
14234
14235 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
14236
14237         * gtk/gtktext.c: Don't display wrap indicators when
14238         text is not editable and word wrap is on.
14239
14240 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
14241
14242         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
14243         option menus here as they are not derived from menu shell, assure that
14244         the option menu has a menu we can add items to.
14245
14246 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
14247
14248         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
14249         width/height to (gint) before calculations and check against < 0 to
14250         avoid guint wraparounds.
14251
14252 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
14253
14254         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
14255         width and height is never zero. sanity check both dimensions against
14256         32767 and issue a warning if the allocation is greater than that.
14257
14258 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
14259
14260         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
14261         to g_main_pending() as well.
14262
14263 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
14264
14265         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
14266         call to g_main_iteration() - since that will regrab
14267         GTK+ lock to process events.
14268
14269 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
14270
14271         * gtk/gtkwindow.c
14272         - Regularize with the rest of GTK+ by making widget->requisition
14273           not reflect the set_usize()
14274         - Always recompute geometry hints, then check if they
14275           changed before sending them to the X server. The
14276           previous checks for changes would fail in a number
14277           of circumstances. 
14278
14279 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
14280
14281         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
14282
14283 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
14284
14285         * gtk/gtkdnd.c:
14286         - Code cleanups
14287         - Instantaneously update on modifier key presses
14288         - Allow cancellation of the drag with Escape.
14289
14290 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
14291
14292         * gtk/testgtk.c (create_handle_box): Set the policy
14293         to auto_shrink - otherwise the appearance is rather
14294         strange when flipping between horizontal and vertical.
14295
14296 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
14297
14298         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
14299         (gtk_window_set_default_size): don't change a value if it's < 0.
14300         queue a resize.
14301
14302 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
14303
14304         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
14305
14306 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
14307
14308         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
14309         add an extra "/" when concating "/" + filename.
14310         (From Matt Grossman <mattg@oz.net>)
14311
14312 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
14313
14314         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
14315         for fg_gc if we set it for drawing pixmap.
14316
14317 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
14318
14319         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
14320         
14321         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
14322         already set, call old engine's destroy function and
14323         unref the old engine.
14324
14325 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
14326
14327         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
14328
14329 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
14330
14331         * gtk/gtkaccelgroup.h: mark certain functions as internal.
14332
14333 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
14334
14335         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
14336         expand behaviour changed.
14337
14338         * gtk/gtklabel.c (gtk_label_set_pattern):
14339         (gtk_label_set_justify):
14340         (gtk_label_set_line_wrap):
14341         don't bother invoking queue_clear, the reallocation does
14342         that for us, always free_words so the upcoming resize will
14343         relayout the label's contents.
14344
14345 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
14346
14347         * applied argument implementation patches from Elena Devdariani
14348         <elena@cogent.ca>.
14349
14350         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
14351         ::space_style, ::relief
14352         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
14353         * gtk/gtkpreview.c: ::expand
14354         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
14355         * gtk/gtknotebook.c: ::homogeneous
14356         * gtk/gtklabel.c: ::wrap
14357         * gtk/gtklist.c: ::selection_mode
14358         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
14359         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
14360         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
14361         * gtk/gtkclist.c: ::sort_type
14362         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
14363         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
14364
14365 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
14366
14367         * gtk/gtkstyle.c: Removed ill-thought-out part of last
14368         comment.
14369
14370 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
14371
14372         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
14373         counting right when we have to attach a new style
14374         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
14375
14376         * gtk/gtkstyle.c: Documented the refcounting
14377         peculularities of gtk_style_attach.
14378
14379 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
14380
14381         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
14382         window types.
14383
14384         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
14385         of GTK_TOPLEVEL for creating the window.
14386
14387 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
14388
14389         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
14390         the last argument (reported by Per Winkvist).
14391         
14392 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
14393
14394         Fixes for invisible XOR lines (Frank Loemker
14395         <floemker@TechFak.Uni-Bielefeld.DE>)
14396         
14397         * gtk/gtkclist.c (gtk_clist_realize): Always use
14398         a non-zero pixel for GDK_XOR.
14399
14400         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
14401         Use GDK_INVERT instead of GDK_XOR.
14402
14403 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
14404
14405         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
14406         signals if h/voffsets differ from adjustment values.
14407         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
14408
14409 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
14410
14411         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
14412         ::selection-done emissions up to the topmost menu shell.
14413
14414 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
14415
14416         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
14417         the user data on the window before destroying it.
14418
14419         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
14420         unrealize handler to take care of destroying 
14421         notebook->panel properly. 
14422         (Bug #1198 - Morten Welinder <terra@diku.dk>)
14423
14424         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
14425         of g_new and g_realloc to stop memory leak. (Actually,
14426         we could just use g_realloc(), but I'm not 100% sure
14427         that is portable).
14428         (Bug #1196 - Morten Welinder <terra@diku.dk>)
14429
14430 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
14431
14432         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
14433
14434         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
14435         for fontsets.
14436
14437         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
14438         with bin/button confusion.
14439
14440 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
14441
14442         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
14443         and show how preselection of radio items is done.
14444
14445 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
14446
14447         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
14448         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
14449         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
14450         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
14451         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
14452         * gtk/gtktable.c (gtk_table_attach): 
14453         * gtk/gtklist.c (gtk_list_insert_items): 
14454         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
14455         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
14456         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
14457         * gtk/gtkbin.c (gtk_bin_add): 
14458         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
14459         * gtk/gtkfixed.c (gtk_fixed_put): 
14460         * gtk/gtklayout.c (gtk_layout_put):
14461         general fixups to container_add logic. always realize child if
14462         child->parent is realized, only map the child and queue a resize
14463         if child and child->parent are both visible.
14464
14465 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
14466
14467         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
14468         instead of gtk_container_foreach to walk and unrealize children, so
14469         composite children get also unrealized.
14470         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
14471         (gtk_widget_map): assert that the widget is visible (basic constrain).
14472         (gtk_widget_real_map): assert that the widget is realized (basic
14473         constrain).
14474
14475 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
14476
14477         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
14478
14479 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
14480
14481         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
14482         file for iso-8859-2 locales.
14483
14484         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
14485
14486 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
14487
14488         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
14489          (Pointed out by andy@rz.uni-karlsruhe.de and others).
14490          Remove some suspicious and useless lines. 
14491
14492 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
14493
14494         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
14495         width,height = 0, 0 to mean - here to edge of window,
14496         instead of -1, -1, since the former is all we support.
14497
14498 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
14499
14500         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
14501         when removing from quit_functions list.
14502
14503 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
14504
14505         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
14506
14507 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
14508
14509         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
14510          When redrawing characters on non-visible entry, use appropriate
14511          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
14512
14513 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
14514
14515         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
14516         from drag coordinates.
14517         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
14518         use drag_dest_cell.
14519
14520         * gtk/gtktree (drag_dest_cell)
14521         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
14522         (Bug #1129)
14523
14524 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
14525
14526         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
14527         translate_* fields.
14528         (gtk_item_factory_finalize): invoke translate_notify independant from
14529         translate_data.
14530         (gtk_item_factory_set_translate_func): likewise.
14531         (gtk_item_factory_destroy): only remove ifactory pointer from those
14532         widgets that belong to us (stupid me).
14533
14534 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
14535
14536         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
14537         rc_style list when lookup succeeeds.
14538
14539 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
14540
14541         * gtk/gtkctree.c (resync_selection): 
14542         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
14543         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
14544         bug.
14545
14546 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
14547
14548         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
14549         Add some missing GDK_THREADS_ENTER()/LEAVE around
14550         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
14551
14552 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
14553
14554         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
14555         rather than emit_by_name.
14556
14557         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
14558         on the widget across multiple signal emissions.
14559         (gtk_editable_delete_text): same here.
14560         (gtk_editable_class_init): set widget_class->activate_signal after
14561         editable_signals[ACTIVATE] has been created.
14562
14563 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
14564
14565         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
14566         position here prematurely -- we might not have the
14567         right ->min_position and ->max_position yet.
14568
14569 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
14570
14571         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
14572         Add error traps so if the other end of the connection
14573         dies, we survive.
14574
14575         * gtk/gtkselection.c (gtk_selection_notify): Clean
14576         up properly when selection property retrieval fails.
14577         
14578         * gtk/gtkselection.c (gtk_selection_request): Correctly
14579         reject SelectionRequest notifies where the handler
14580         returns no data.
14581
14582 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
14583
14584         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
14585         when we've previously highlighted.
14586
14587         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
14588         emit two "drag_leave" signals for Motif drops.
14589
14590         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
14591         back the correct status messages when dropping from
14592         Motif onto a proxy window that is rejecting the
14593         drop.
14594
14595 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
14596
14597         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
14598         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
14599         to compare two argument values. added gtk_arg_to_valueloc() to set a
14600         variable from an arg through its location (pointer).
14601
14602         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
14603         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
14604         as gfloat*, uchars are collected as guchar*, ints are collected as
14605         gint*, etc...
14606
14607 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
14608
14609         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
14610         Include <string.h> instead of <strings.h>.
14611
14612         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
14613         (actually, a lot more duplicate includes occur if
14614          you trace through the sequence of #include's)
14615         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
14616         
14617 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
14618
14619         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
14620         gtk-a-higuti-990322-[0-3]
14621
14622         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
14623         that was causing -DX_LOCALE not to work.
14624
14625         * gtk/gtkrc.c (gtk_rc_init):
14626         X_LOCALE will never have LC_MESSAGES defined
14627
14628 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
14629
14630         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
14631         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
14632
14633         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
14634         left/right as well (gtk-michael-980726-0.patch.gz).
14635
14636         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
14637         for pointer values, use gchar instead of char. fixed uline allocation
14638         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
14639         chunks instead of G_ALLOC_ONLY.
14640         (gtk_label_size_request): always alter requisition as passed and leave
14641         widget->requisition alone.
14642         (gtk_label_set_text): allow NULL strings.
14643         (gtk_label_new): likewise.
14644
14645 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
14646
14647         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
14648
14649 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
14650
14651         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
14652         *and* mapped (i.e. drawable).
14653         (gtk_bin_expose): only send exposes to drawable children.
14654
14655         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
14656         (gtk_box_expose): only send exposes to drawable children.
14657
14658         * gtk/gtkhscale.c (gtk_hscale_draw): 
14659         * gtk/gtkvscale.c (gtk_vscale_draw):
14660         hm, this is an ugly one. we first compute the size of our trough area
14661         here (window relative) and then check intersection with the draw_area
14662         which is parent relative because we're a NO_WINDOW widget, so we need
14663         to offset the trough area by allocation.x and allocation.y before the
14664         check. (this must not be done for the background area though, since
14665         that's already computed parent relative).
14666
14667 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
14668
14669         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
14670         unrealize title buttons.
14671
14672 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
14673
14674         * gtk/gtkclist.c (gtk_clist_column_title_passive)
14675         (gtk_clist_column_title_active): 
14676         only connect/disconnect to GtkWidgetClass::event to block mouse events.
14677
14678         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
14679         zero initialize event, removed superfluous gdk_window_get_pointer call
14680
14681         * gtk/gtklist.c (gtk_list_vertical_timeout)
14682         (gtk_list_horizontal_timeout): removed superfluous
14683         gdk_window_get_pointer call
14684
14685 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
14686
14687         * plugging problems reported by "Bruce Mitchener, Jr."
14688         <bruce@puremagic.com> due to a purify session.
14689
14690         * gtk/gtkstyle.c:
14691         (gtk_style_ref): 
14692         (gtk_style_unref): assert ref_count to be > 0.
14693
14694         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
14695         the requisition.
14696         (gtk_clist_set_shift): likewise.
14697
14698         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
14699         adjustments.
14700
14701         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
14702         event before sending it and set send_event to TRUE (which needs to
14703         be done for *all* synthesized events).
14704         (gtk_list_vertical_timeout): likewise.
14705
14706         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
14707         leaks.
14708
14709         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
14710         to TRUE when synthesizing events.
14711
14712 [ *** end of merges from 1.2 *** ]      
14713         
14714 1999-11-21  Tor Lillqvist  <tml@iki.fi>
14715
14716         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
14717         (or copied from gdkconfig.h.win32 on Win32, sigh).
14718
14719         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
14720
14721         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
14722
14723         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
14724
14725         * gdk/gdkconfig.h.win32: New file.
14726
14727         * gdk/win32/makefile.cygwin: Build just a static archive here.
14728
14729         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
14730         for the DLL from the static archive built above.
14731
14732         * gdk/gdk.def: Moved here from the win32 subdirectory.
14733
14734         * gdk/win32/*: Adapt for the changed private struct organisation.
14735
14736         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
14737
14738 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
14739
14740         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
14741         for wheel mice (buttons 4 and 5).
14742
14743 1999-11-18  Tor Lillqvist  <tml@iki.fi>
14744
14745         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
14746         drawables use just the pixel field in the foreground and
14747         background GdkColor of the GdkGC.
14748
14749         gdk_gc_set_{fore,back}ground() are called in the GIMP with
14750         GdkColors containing uninitialized (red,green,blue) fields, and
14751         just the pixel field filled in, and furthermore in the
14752         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
14753         It thus turns out that we really don't need to have the full
14754         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
14755         it later to have just the pixel values.
14756
14757 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
14758
14759         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
14760
14761 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
14762
14763         * docs/gtkfaq.sgml: threads example from Erik Mouw.
14764         New question on GtkLabel background colors.
14765
14766         * docs/gtk_tut.sgml:
14767           - Correct the example code callback
14768             function definitions.
14769           - Update the gtkdial example code, from Frans van Schaik.
14770           - Update setselection.c to current API.
14771
14772         * examples/Makefile examples/*/*.c: Update to code
14773         listed in tutorial.
14774
14775 1999-11-10  Tor Lillqvist  <tml@iki.fi>
14776
14777         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
14778         subrange table (from the "Developing International Software for
14779         WIndows 95 and Windows NT" book) was missing the Hangul syllable
14780         block... Get the loaded font's charset correctly.
14781
14782         (Note that this, and the other *-win32.c files, still really are
14783         the old ones, the win32 subdirectory is not ready for compilation
14784         yet after the reorg.)
14785
14786 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
14787
14788         * gtk/gtkclist.c: Fix off-by-one bug in parameter
14789         check.
14790
14791 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
14792
14793         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
14794         on results of XQueryDeviceState().
14795
14796 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
14797
14798         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
14799         we need to accesss only ->children. We need an accessor
14800         for the children.
14801
14802         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
14803         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
14804         to get rid of gdkx.h include.
14805         
14806         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
14807         and random references to 'None'.
14808
14809         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
14810         Get rid of unused #include <gdk/gdkx.h>
14811
14812         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
14813         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
14814         gdkconfig.h.
14815
14816 1999-11-08  Tor Lillqvist  <tml@iki.fi>
14817
14818         * gdk/win32/gdkdraw.c
14819         * gdk/win32/gdkfont.c
14820         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
14821         following yesterday's changes. (Unrelated to Owen's reorg.)
14822
14823 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
14824
14825         * gdk/x11/gdkinput-gxi.c: Add missing include,
14826           fix GdkWindowPrivate => GdkDrawablePrivate.
14827
14828         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
14829
14830         * gdk/x11/Makefile.am (xinput_sources): Add missing
14831         backslash to fix building with --with-xinput=none
14832
14833 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
14834
14835         Move all X specific code into the x11/ directory.
14836         Aside from shuffling things around, did the following:
14837
14838        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
14839          gdk_arg_context_* - a simple argument parsing system
14840          in the style of popt.
14841
14842        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
14843          gdk/x11/gdkprivate-x11.h:
14844          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
14845          add ->klass and ->klass_data fields. The klass_data
14846          field points to an auxilliary structure that is
14847          windowing system dependent.
14848
14849        * gdk/gdkfont.c: Make most of the measurement functions
14850          simply wrappers around gdk_text_extents().
14851
14852        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
14853          _gdk_font_strlen() function that hides the weird
14854          behavior in gtk+-1.[02] where a string is interpreted
14855          differently for 8-bit and 16-bit fonts.
14856
14857        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
14858          to store common code for synthesizing double/triple
14859          press events.
14860         
14861        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
14862          Make all the function that modify an existing GC
14863          simply wrappers around gdk_gc_set_values().
14864          
14865        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
14866          for throwing out later.
14867
14868        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
14869          GdkImagePrivate and GdkColormapPrivate to have a
14870          windowing system dependent part (GdkFontPrivateX etc.)
14871          that "derives" from the system-independent part.
14872
14873        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
14874          Got rid of the included-source-files for XInput in
14875          favor of automake conditionals. (Which didn't exist
14876          when XInput support was originally added.)
14877
14878        * gdk/gdkrgb.c: Remove the visual id from the debugging
14879          statements since that is X11 specific; print out
14880          type/depth info instead.
14881          
14882
14883 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
14884
14885         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
14886         loading duplicates of hashed fonts.
14887
14888         * gdk/gdk.c (gdk_keysym_convert_case): rename
14889         gdk_XConvertCase to gdk_keysym_convert_case, allow
14890         results to be NULL in the GTK+ style.
14891
14892         * gdk/gdkcompat.h: Started compatibility header
14893         for renames.
14894
14895 1999-11-07  Tor Lillqvist  <tml@iki.fi>
14896
14897         * gdk/win32/gdkprivate.h: New font private structures, related to
14898         fontsets.
14899
14900         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
14901         gdk_font_list_free(). On X11, will just be wrappers to
14902         XListFonts() and XFreeFontNames(). On Win32, the code previously
14903         in gtkfontsel.c is now here.
14904
14905         New function gdk_font_xlfd_create(). On X11 will get the FONT
14906         property of the font (for GDK_FONT_FONTs), or call
14907         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
14908         builds a XLFD style name from the font information in the LOGFONT
14909         struct(s).
14910
14911         New function gdk_font_xlfd_free(), which correspondingly frees the
14912         string returned by gdk_font_xlfd_create().
14913
14914         Implement fontsets on Win32. Add a function that iterates over a
14915         wide char string and calls a callback function for each substring
14916         of wide chars from the same Unicode subrange (and thus probably
14917         available in the same real font).
14918
14919         Improve the XLFD emulation a bit.
14920
14921         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
14922
14923         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
14924         Beta3, WM_IME_CHAR messages don't seem to contain the composed
14925         multi-byte char as with the Active IMM on Win9x. Oh well, handle
14926         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
14927         ImmGetCompositionStringW() to get the composed Unicode chars.
14928
14929         * gdk/win32/gdkgc.c
14930         * gdk/win32/gdkdraw.c: Changes needed because of the font private
14931         struct changes.
14932
14933         * gdk/win32/gdk.def: Add the new functions.
14934
14935 1999-11-04  Tor Lillqvist  <tml@iki.fi>
14936
14937         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
14938         get the Platform SDK to get <dimm.h>.
14939
14940         * gdk/win32/gdkevents.c: More event handling fixes and
14941         simplification. Never generate motion events with is_hint true. We
14942         used to do that on bogus grounds earlier. Windows sends
14943         WM_MOUSEMOVE messages on button events even if the mouse hasn't
14944         moved, ignore these.
14945
14946         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
14947
14948         * gdk/win32/gdkglobals.c
14949         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
14950         the TrackMouseEvent function, and use it.
14951
14952         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
14953         char before calling WideCharToMultiByte in order to get a string
14954         for the window title.
14955
14956         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
14957
14958         * gdk/win32/gdk.def: Remove obsolete functions.
14959
14960         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
14961         /nodefaultlib and /defaultlib switches.
14962
14963         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
14964
14965 1999-10-31  Tor Lillqvist  <tml@iki.fi>
14966
14967         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
14968         EuroSign).
14969
14970         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
14971         same type as GdkWChar, especially on Win32.
14972
14973         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
14974
14975         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
14976         before passing to Windows GDI for drawing etc. Convert to the
14977         system default codepage before passing to Windows as window
14978         titles.
14979
14980         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
14981         support changing input locale on the fly.
14982
14983         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
14984         on-the-fly changes. Convert incoming characters from the current
14985         codepage to Unicode (and then to a UTF-8 multi-byte string) based
14986         on the current input language. Use keysym<->Unicode mapping tables
14987         and functions borrowed from xterm sources.
14988
14989         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
14990         editions of Win9x, use the ActiveX-based Active IMM (Input Method
14991         Manager) if available. IMEs and the Active IMM are available under
14992         the disguise of Chinese, Korean and Japanese support for IE and
14993         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
14994         support is present in all editions (as long as you install it).
14995
14996         Call DispatchMessage from gdk_events_queue() (and thus
14997         gdk_WindowProc()), instead of duplicating the code in
14998         gdk_WindowProc().
14999
15000         Reworked the grab handling and propagation code, factored out
15001         duplicated code snippets into separate functions. Other cleanups,
15002         too.
15003
15004         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
15005         the <dimm.h> header describing the Active IMM.
15006
15007         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
15008         just do the same as for "single" fonts.
15009
15010         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
15011         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
15012         the new keysyms from gdkkeysyms.h.
15013
15014         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
15015         fontset, so that gtkentry uses wide characters.
15016
15017         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
15018         GTk+'s system directory "gtk+", not "gtk".
15019
15020 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
15021
15022         * docs/gtkfaq.sgml: FAQ update
15023
15024 1999-10-21  Tor Lillqvist  <tml@iki.fi>
15025
15026         * gdk/win32/gdkprivate.h: Add more font private data.
15027
15028         * gdk/win32/gdkfont.c
15029         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
15030         fonts and strings. Now works much better. You still have to
15031         have a correct font selected, though. No fontset emulation yet.
15032
15033 1999-10-19  Tor Lillqvist  <tml@iki.fi>
15034
15035         * gtk/maketypes.awk: Use G_OS_WIN32.
15036
15037         * gtk/gtk.def: Add some missing entry points. Also some non-public
15038         ones, but PyGTK porter claims to need them.
15039
15040         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
15041         built-in type generation.
15042
15043 1999-10-14  Tor Lillqvist  <tml@iki.fi>
15044
15045         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
15046         GDK_FONT_FONT fonts (which is all we have for now, we don't
15047         emulate fontsets). The X11 version uses plain XDrawString in that
15048         case, too. The string passed to gdk_draw_text_wc seems to be in
15049         fact (at least, when used by gtkentry and gtktext) either in a
15050         single-byte charset, or a DBCS. Not Unicode.
15051
15052         This fixes the problem in gtkfontsel, where even if you had
15053         selected a font with a non-Latin1 charset (windows-greek, for
15054         instance), the preview still used Latin-1 glyphs.
15055
15056         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
15057         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
15058         (gdk_font_load): Recognize the demibold etc weights, even if we
15059         don't have the corresponding constants in the headers.
15060         (gdk_font_hash_insert): Use same hash mechanism as in the X11
15061         version. Should save font resources a bit, when we don't have
15062         multiple HFONTs for the same font.
15063
15064         * gdk/win32/gdkprivate.h: Add the names field as in the X11
15065         version.
15066
15067 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
15068
15069         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
15070         X values
15071
15072 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
15073
15074         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
15075         layout support (as mentioned on
15076         http://www.jcinteractive.com/gnome-ui/software/widgets/)
15077
15078 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
15079
15080         * gtk/fnmatch.c
15081         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
15082
15083 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
15084
15085         * configure.in (ALL_LINGUAS): Added Galician (gl)
15086
15087 1999-10-05  Tor Lillqvist  <tml@iki.fi>
15088
15089         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
15090
15091         * gdk/win32/gdkcompat.c: New file, actually provide an
15092         implementation for the deprecated functions. (Just temporarily.)
15093
15094         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
15095
15096         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
15097
15098         * gdk/win32/gdk.def gtk/gtk.def: Updates.
15099
15100 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
15101
15102         * configure.in: Added "uk" to ALL_LINGUAS.
15103         
15104 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
15105
15106         * configure.in: correct checking for BeOS check
15107
15108         * gdk/gdktypes.h
15109         * gtk/fnmatch.c
15110         * gtk/gtkfilesel.c
15111         * gtk/gtkitemfactory.c
15112         * gtk/gtkmain.[ch]
15113         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
15114
15115 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
15116
15117         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
15118         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
15119         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
15120         by Bulgarian). 
15121
15122 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
15123
15124         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
15125         Fix a reference to window_private->destroyed.   
15126
15127         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
15128         (ugly) setting of an internal GdkWindow member to use
15129         a _slightly_ cleaner macro.
15130
15131         * gdk/gdkprivate.h: Split GdkWindowPrivate into
15132         GdkDrawablePrivate and GdkWindowPrivate.
15133         Add extra macros for accessing GDK_DRAWABLE_ components.
15134
15135         * *.[ch]: Massive adjustments for the above, use the
15136         new macros in a lot of places.
15137
15138 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
15139
15140         * gdk/gdktypes.h: Make GdkDrawable the base type,
15141         not GdkWindow.
15142
15143 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
15144
15145         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
15146
15147 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
15148
15149         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
15150
15151 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
15152
15153         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
15154         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
15155
15156         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
15157
15158         * docs/gtk-config.1: Now autogenerated.
15159         * docs/Changes-1.4.txt: started
15160         
15161 1999-10-03  Tor Lillqvist  <tml@iki.fi>
15162
15163         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
15164         to #ifdef also here.
15165
15166         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
15167         Owen did to the X11 backend.
15168
15169         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
15170         ScrollWindowEx when blitting inside a window, it can't be correct
15171         in the general case.
15172
15173         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
15174         WM_GETMINMAXINFO is easier.
15175
15176         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
15177         depth equal to the bitspixel value, not the visual's depth.
15178
15179         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
15180         to 24 even if the bitspixel value is 32.
15181
15182         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
15183         need to check for depth==32 when bpp==32, depth will always be 24.
15184
15185 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
15186
15187         * docs/Changes-1.4.txt: Started
15188         
15189         * gtk/Makefile.am (gdk_headers): Include all the new headers.
15190
15191         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
15192         
15193         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
15194         into C file.
15195         
15196         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
15197         header to gdkinputprivate.h.
15198
15199         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
15200         unused since before 1.2.
15201
15202 1999-09-30  Tor Lillqvist  <tml@iki.fi>
15203
15204         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
15205         expand possible hex escapes in the font family (put there by
15206         logfont_to_xlfd if the font name isn't a legal XLFD font family,
15207         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
15208         On Win32, add hex escapes here, too.
15209
15210 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
15211
15212         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
15213         to #ifdef GDK_WINDOWING_X11.
15214
15215 [ Merges from gtk-1-2 ]
15216
15217 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
15218
15219         * configure.in: fixed "GNU Make" check to pass with new make version
15220         3.77.95.
15221
15222 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
15223
15224         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
15225         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
15226         AM_PATH_GTK() macros don't get confused by the -pre1.
15227
15228 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
15229
15230         * configure.in (REBUILD): Change check for perl5
15231           to check explicitely for v >= 5.002. (5.001
15232           does not work with our scripts.)
15233
15234 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
15235
15236         * configure.in: evaluate $PERL for the perl version check. added
15237         --disable-rebuilds to give the user an option to completely disable
15238         any source autogeneration rules.
15239
15240 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
15241
15242         * configure.in: evaluate $ac_make when checking for GNU Make.
15243
15244 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
15245
15246         * docs/Makefile.am: added generation.txt.
15247
15248         * Makefile.am: require automake 1.4, build README from README.in and
15249         INSTALL from INSTALL.in in dist-hook.
15250         
15251         * README.in:
15252         * INSTALL.in: new files to autogenerate README and INSTALL from.
15253
15254         * configure.in: figure whether we have GNU Make
15255
15256         * docs/generation.txt: minor additions/corrections.
15257
15258 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
15259
15260         * docs/gtkfaq.sgml: FAQ Update
15261
15262 July 30, 1999 Elliot Lee <sopwith@redhat.com>
15263         
15264         * configure.in: Fix autoconf warnings about cross compilation by
15265         trying to provide sane defaults for AC_TRY_RUN.
15266
15267 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
15268
15269         * ltconfig
15270         * ltmain.sh: upgrade to libtool 1.3.3
15271
15272 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
15273
15274         * INSTALL: Indicate that the --with-glib= configure
15275         time flag is unsupported.
15276
15277 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
15278
15279         * docs/generation.txt: Added a file that gives
15280         documenation about the autogeneration process for
15281         various autogenerated files.
15282         
15283 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
15284
15285         * configure.in (LIBS): Look for libgmodule in the
15286         right location.
15287
15288 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
15289
15290         * docs/gtk_tut.sgml: Removed references to
15291         code examples in my directory on gtk.org as
15292         they should all be in the tutorial now.
15293
15294         * docs/gtk_tut.sgml: Added sources for dial-test
15295         and scribble-xinput programs that were previously
15296         missing.
15297
15298 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
15299
15300         * TODO: Added entry about menu keyboard navigation, removed
15301         some finished items.
15302
15303 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
15304
15305         * acinclude.m4: Standardize on func_dgettext
15306         not func_gettext, so that the checks for dgettext
15307         actually are paid attention to.
15308
15309 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
15310
15311         * configure.in (LIBS): Add $INTLLIBS into $LIBS
15312         directly, rather than repeating the checks for
15313         gettext.
15314
15315         * INSTALL: Added information about gettext and
15316         NLS support.
15317
15318         * acinclude.m4 (LIBM): Check for dgettext, not
15319         just gettext. This should hopefully fix things wrt
15320         systems with old versions of GNU gettext installed.
15321
15322 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
15323
15324         * configure.in (LIBS): Look for libgmodule in the
15325         right location.
15326
15327 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
15328
15329         * autogen.sh: add --enable-maintainer-mode
15330
15331         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
15332
15333 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
15334
15335         * docs/gtk-config.1.in:
15336           docs/Makefile.am:
15337           configure.in: gtk-config is now generated.
15338
15339         * docs/gtk-config.1: Removed, now generated.
15340
15341 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
15342
15343         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
15344         handle CreateNotify itself, still put out a debuging message for
15345         --gdk-debug=events. made the ReparentNotify debugging message more
15346         verbose.
15347         wrap xcoords translation for ConfigureEvents into an error trap,
15348         a destroy event may already be pending, and in that case, the
15349         actuall coordinate values are not at all critical.
15350
15351 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
15352
15353         * gdk/gdkcc.c: Stop leaking the color_hash all over
15354         the place. Simplify and improve the logic.
15355
15356 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
15357
15358         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
15359         for prototypes and function implementations consistent (reported
15360         by Tomas Ogren).
15361
15362 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
15363
15364         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
15365         send_event set in debugging output.
15366         (gdk_compress_exposures): default initialize the event so we don't
15367         operate on bogus values (namely send_event).
15368
15369 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
15370
15371         * gdk/gdkwindow.c: When we receive an unexpected
15372         destroy notify on one of our windows, don't just
15373         warn about it, also mark our windows as destroyed.
15374
15375 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
15376
15377         * gdk/gdkfont.c (gdk_font_hash_insert): Add
15378           name => font and name => fontset hashes. The 
15379           name => fontset hash is a _big_ win since we
15380           weren't previously caching fontsets at all and loading
15381           fontsets is expensive. The name => font hash
15382           is less of a win, but it does save us from doing
15383           repeated XQueryFont calls on the same font.
15384
15385         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
15386           list so we can remove font/fontset from hash.
15387
15388 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
15389
15390         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
15391           and slightly confusing test. [ XInternAtom (,,TRUE)
15392           will never return None ].
15393
15394 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
15395
15396         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
15397           gdk/gdkwindow.c (gdk_window_set_hints):
15398
15399         Don't omit setting the properties if flags == 0 -
15400         there may be an existing set of properties there
15401         already. (Very old bug. Would it be better to
15402         delete the property instead?)
15403
15404         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
15405           spelling error in comment.
15406
15407 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
15408
15409         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
15410           to avoid stomping over gdk_error_warnings.
15411
15412         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
15413           as (bits_per_pixel + 7) / 8. This gives the same
15414           result as before for multiples of 8, but actually
15415           a "reasonable" value for 1bit or 4bit displays.
15416
15417 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
15418
15419         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
15420         GNU Make.
15421
15422 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
15423
15424         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
15425         discarding configure events.
15426
15427 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
15428
15429         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
15430         refcount is greater than zero.
15431
15432         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
15433
15434         * gdk/gdkfont.c (gdk_font_unref): Likewise.
15435
15436         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
15437
15438         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
15439
15440 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
15441
15442         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
15443         that format 32 => sizeof(item) == 4. It really is
15444         sizeof(long).
15445
15446 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
15447
15448         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
15449         core dump at all on X IO errors, only core dump
15450         if --enable-debug for X errors.
15451
15452 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
15453
15454         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
15455         unknown window:" message. disabled ConfigureNotify discarding code,
15456         because it led to events being processed out of order.
15457
15458 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
15459
15460         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
15461
15462         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
15463         we export this function, supress error warnings and don't reset the
15464         error code in the first half of this function.
15465
15466         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
15467         code (instead of just -1) so gdk_error_trap_pop() reveals something
15468         actually informative about the error that happened.
15469
15470         * gdk/*.c:
15471         don't rely on gdk_error_code being -1 if an error occoured, but just
15472         gdk_error_code != 0.
15473
15474 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
15475
15476         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
15477         pointer *before* invoking the filter function, so we at least don't
15478         crash if a filter is removed that is currently executed. window filters
15479         *really* need to be made truely reentrant at some point.
15480
15481 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
15482
15483         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
15484         PropertyNotify debug messages.
15485
15486 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
15487         
15488         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
15489         
15490         * gdk/gdkim.c: Fix cut-and-paste errors for 
15491         x/y and PreeditAttributes/StatusAttributes.
15492
15493 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
15494
15495         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
15496         G_MAXINT to 2^16 to alleviate overflow problems in
15497         various window managers.
15498
15499 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
15500
15501         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
15502         for fontsets.
15503
15504 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
15505
15506         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
15507         Initialize size_hints.x and size_hints.y because kwm
15508         brokenly pays attention to them.
15509         (Bug #1181 -  Lars Heete <hel@admin.de>)
15510
15511 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
15512
15513         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
15514         return value of gdk_list_visuals(). 
15515         (Bug #1193 - Morten Welinder <terra@diku.dk>)
15516
15517 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
15518
15519         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
15520         XSetIMValues to (void *) when comparing to NULL, to workaround
15521         the problem of some compilers barfing since older X headers don't
15522         have the prototype for it.
15523
15524 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
15525
15526         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
15527         for pseudocolor where colormap->colors was double
15528         allocated.
15529
15530         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
15531         color value in the hash table with the pixel filled
15532         in so when we do later hash table lookups, the color
15533         value is correct.
15534         
15535 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
15536
15537         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
15538         making the call
15539
15540 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
15541
15542         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
15543         pointed out by Morten Welinder <terra@diku.dk>.
15544
15545 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
15546
15547         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
15548           default filter from the list
15549
15550 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
15551
15552         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
15553           default filter from the list
15554
15555 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
15556
15557         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
15558
15559         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
15560         g_strdup_printf instead of calcing the length separately
15561
15562 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
15563
15564         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
15565         that we don't do in many other places. (Fixing duplicate 
15566         #include of config.h)
15567
15568         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
15569         Otherwise, #ifndef XINPUT_NONE check in the latter
15570         doesn't work. (Bug #546)
15571
15572 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
15573
15574         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
15575         "None" case insensitive.
15576
15577 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
15578
15579         * gdk/gdkselection.c: 
15580         Add error traps so if the other end of the connection
15581         dies, we survive.
15582
15583 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
15584
15585         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
15586         dest_xid field into two fields - one for the window
15587         to send in messages, one to indicate the last looked
15588         up window for caching purposes. This is needed, so
15589         that Leave messages get the correct window.
15590
15591 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
15592
15593         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
15594         Fix warning created by people mucking around
15595         with the gsource API.
15596
15597         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
15598         Change mapping between GIOCondition and GdkInputCondition
15599         to match the way the Linux kernel does it. This should
15600         fix problems where closed pipes were no longer signalling
15601         GDK_INPUT_READ on systems with a native poll().
15602
15603 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
15604
15605         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
15606         explicitly for the string "None" - it is in the XPM
15607         spec and some servers treat unknown colors in odd ways
15608         (like asking the user!)
15609
15610 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
15611
15612         * gdk/gdkevents.c: made "->" into a "." of previous change so
15613         it compiles
15614
15615 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
15616
15617         * gdk/gdkevents.c (gdk_compress_exposures): Set the
15618         window field of the event structure before calling
15619         user filters.
15620
15621 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
15622
15623         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
15624         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
15625
15626 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
15627
15628         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
15629         intermediate text property - prevents major memory
15630         leak when gdk_use_mb.
15631         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
15632
15633 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
15634
15635         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
15636         gtk-a-higuti-990322-[0-3]
15637
15638         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
15639         sizeof(wchar_t) != sizeof (GdkWChar)
15640
15641         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
15642         that was causing -DX_LOCALE not to work.
15643
15644         * gtk/gtkrc.c (gtk_rc_init):
15645         X_LOCALE will never have LC_MESSAGES defined
15646
15647         * gdk/gdk.c (gdk_init_check):
15648         Remove --xim-preedit and --xim-status from argv properly.
15649
15650         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
15651         that the client window is present on the X server
15652         before we pass it to the input method.
15653
15654 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
15655
15656         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
15657         if --display is specified on the command line, than
15658         the drag window will not be created on that display.
15659         
15660 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
15661
15662         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
15663         lookups with only_if_exists == TRUE were inserting
15664         bogus values into the atom cache.
15665
15666 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
15667
15668         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
15669         then reset it to NULL.
15670
15671         * gdk/gdkcolor.c:
15672         (gdk_colors_free): 
15673         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
15674         key for g_hash_table_remove() in both functions, this prevents us
15675         from accessing possibly uninitialized portions of a GdkColor structure
15676         where we are only interested in its pixel value.
15677
15678 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
15679
15680         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
15681         font hash table, if we have a GdkFontPrivate entry for this font
15682         already, simply increment its reference count, provided by Olaf Dietsche
15683         <olaf.dietsche+list.gtk@netcologne.de>.
15684
15685 1999-09-21  Tor Lillqvist  <tml@iki.fi>
15686
15687         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
15688         just to be sure.
15689
15690         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
15691         unused variables, leftovers from the X11 version.
15692
15693         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
15694
15695         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
15696         downcase fields on X11.
15697
15698 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
15699         
15700         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
15701         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
15702
15703 1999-09-17  Tor Lillqvist  <tml@iki.fi>
15704
15705         * gdk/win32/gdk.def: Add gdk_threads_mutex.
15706
15707         * gtk/makefile.msc: Correct path to libintl.
15708
15709         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
15710         use of gint vs. int, and gint vs. gboolean in headers and
15711         definitions. Use GtkType for the *_get_type functions. Note that
15712         these changes preserve binary compatibility.
15713
15714         * gdk/gdk.c
15715         * gdk/win32/gdk.c
15716         * gdk/gdk.h: Fix inconsistencies: gint vs int.
15717
15718         * gtk/gtkmain.c
15719         * gtk/gtkclist.c
15720         * gtk/gtkmenufactory.c
15721         * gtk/gtknotebook.c
15722         * gtk/gtkwidget.c: Fix inconsistencies, also gint
15723         vs. gboolean.
15724
15725         * gtk/gtkcolorsel.[ch]
15726         * gtk/gtkcombo.[ch]
15727         * gtk/gtkdrawingarea.[ch]
15728         * gtk/gtkgamma.[ch]
15729         * gtk/gtkhandlebox.[ch]
15730         * gtk/gtkhpaned.[ch]
15731         * gtk/gtkhruler.[ch]
15732         * gtk/gtkplug.[ch]
15733         * gtk/gtkpreview.[ch]
15734         * gtk/gtkruler.[ch]
15735         * gtk/gtksocket.[ch]
15736         * gtk/gtkstatusbar.[ch]
15737         * gtk/gtktoolbar.[ch]
15738         * gtk/gtkvbbox.[ch]
15739         * gtk/gtkvpaned.[ch]
15740         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
15741         functions.
15742
15743         * gtk/gtkgamma.h: Fix bug, missing () in call of
15744         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
15745
15746 1999-09-14  Tor Lillqvist  <tml@iki.fi>
15747
15748         * gdk/gdkcolor.c (gdk_colormap_new)
15749         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
15750         colormap->colors was allocated twice.
15751
15752         * gdk/win32/gdk.c: Remove some unused stuff.
15753
15754         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
15755         colormap.
15756
15757         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
15758         * gtk/gtklabel.h (gtk_label_get_type)
15759         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
15760         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
15761         in a couple of places, not guint.
15762
15763 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
15764
15765         * configure.in,po/et.po: added Estonian language file
15766
15767 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
15768
15769         * configure.in,po/da.po: added Danish file
15770
15771 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
15772
15773         * docs/gtkfaq.sgml: Minor FAQ Update
15774
15775 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
15776
15777         * docs/gtkfaq.sgml: FAQ update
15778
15779 1999-08-27  Tor Lillqvist  <tml@iki.fi>
15780
15781         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
15782         way to get window contents continually refreshed while resizing. I
15783         didn't like the effects myself, so it's not on by default.
15784
15785         * gdk/win32/gdkprivate.h: New flag variable
15786         gdk_event_func_from_window_proc, FALSE by default.
15787
15788         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
15789         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
15790         are passed --gdk-event-func-from-window-proc.
15791
15792         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
15793         and we have am event_func, call it instead of enqueing the event.
15794
15795 1999-08-23  Tor Lillqvist  <tml@iki.fi>
15796
15797         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
15798         Kelley: Set expose_count in GdkEventExposes correctly.
15799
15800         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
15801         MULTIPLE_WINDOW_CLASSES).
15802
15803         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
15804         for bug in NT, apparently NT *does* draw the end pixel, too, in
15805         LineTo with a one-pixel pen, so we don't have to do it ourselves.
15806
15807 1999-08-21  Tor Lillqvist  <tml@iki.fi>
15808
15809         Improvements by Hans Breuer: 
15810
15811         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
15812
15813         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
15814         CS_?REDRAW flags as they cause lots of (late) redraws when "show
15815         window contents while dragging" is turned on. Allocate at least
15816         one unique class for every GdkWindowType. If support for single
15817         window-specific icons is ever needed (eg. Dialog specific), every
15818         such window should get its own class.
15819
15820 1999-08-19  Tor Lillqvist  <tml@iki.fi>
15821
15822         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
15823         error that caused crashes.
15824
15825 1999-08-17  Tor Lillqvist  <tml@iki.fi>
15826
15827         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
15828         window, use ScrollWindowEx, and call UpdateWindow. This prevents
15829         bugs when for instance part of the window was outside the
15830         display. Thanks to Philippe Colantoni for finding and fixing this.
15831
15832 1999-08-16  Tor Lillqvist  <tml@iki.fi>
15833
15834         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
15835         endpoint calculations which were totally wrong. (A little RTFMing
15836         helps a lot ;-)
15837
15838         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
15839         from a separate directory, not from gettext, because of licensing
15840         issues (we want to use the LGPL version).
15841
15842         * README.win32: Mention the intl from glibc vs from gettext issue.
15843
15844 1999-08-13  Tor Lillqvist  <tml@iki.fi>
15845
15846         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
15847         in the key event handling: Now AltGr chars work again. Also,
15848         now Alt-digits are passed up as well as Control-digits.
15849         Pass keypad plus and minus as normal plus and minus.
15850
15851 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
15852
15853         * docs/gtkfaq.sgml: FAQ Update
15854
15855 1999-07-25  Tor Lillqvist  <tml@iki.fi>
15856
15857         * README.win32
15858         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
15859         the Wintab SDK.
15860
15861         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
15862         OK, but getting closer. Guard against bogus tilt data from Wacom
15863         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
15864         enable easier building without Wintab.
15865
15866         * gdk/win32/gdkinput.h
15867         * gdk/win32/gdkevents.c 
15868         * gdk/win32/gdkwindow.c: Minor changes related related to above.
15869         
15870         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
15871         code. As we have just one visual on Win32, no sense to have it in a
15872         table, and no need for the hash table.
15873
15874         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
15875         better on white background.
15876
15877 1999-07-21  Tor Lillqvist  <tml@iki.fi>
15878
15879         * README.win32: Update gcc build instructions. Mention gettext is
15880         GPL.
15881
15882         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
15883         supported cursor size with GetSystemMetrics.
15884
15885         * gdk/win32/gdkfont.c
15886         * gtk/gtkfontsel.c: Guard against some font weight and charset
15887         symbols being undefined (in mingw32 headers).
15888
15889         * gdk/win32/makefile.cygwin
15890         * gtk/makefile.cygwin
15891         * gtk/gtkthemes.c: No longer need to have differently named
15892         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
15893
15894 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
15895
15896         * docs/gtkfaq.sgml: Long awaited FAQ update.
15897
15898 1999-07-15  Tor Lillqvist  <tml@iki.fi>
15899
15900         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
15901         it. Obscure bit manipulation needed.
15902
15903         * gdk/win32/gdkevents.c: Logging.
15904         
15905         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
15906         style (file name include compiler name) for theme engines.
15907
15908 1999-07-13  Tor Lillqvist  <tml@iki.fi>
15909
15910         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
15911
15912         * gdk/win32/gdkevents.c: Fix long-standing bug in key
15913         events. The key.string wasn't zero-terminated, still we strdup'ed
15914         it in gdk_event_copy(). Synthesize crossing events for button
15915         events before possible propagation.
15916
15917         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
15918
15919         * gdk/win32/makefile.cygwin
15920         * gtk/makefile.cygwin: Use new DLL naming style for the
15921         GCC-compiled ones.
15922
15923         * gdk/win32/makefile.msc
15924         * gtk/makefile.msc: Cosmetics mostly.
15925
15926         * gtk/gtk.def: Add missing entry points.
15927
15928         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
15929
15930 1999-07-09  Tor Lillqvist  <tml@iki.fi>
15931
15932         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
15933         or height is zero. Don't print a warning if Pie or Arc fails, they
15934         always fail (?) for very narrow ellipses.
15935
15936         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
15937         the part or the destination window corresponding to source area
15938         outside of the source drawable's boundary.
15939
15940         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
15941         anything if less than two points.
15942
15943         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
15944         return NULL. Gtk cut-and-paste inside a single program works
15945         better this way. (It always gets the clipboard contents from
15946         Windows, not from its own copy, which is cleared anyway. I can't
15947         say I fully understand what happens... Emulating the X selection
15948         and property stuff is a bit of a mess.)
15949
15950         * gdk/win32/gdkevents.c
15951         * gdk/win32/gdkproperty.c: A bit more verbose logging.
15952
15953         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
15954         that never got deleted). Revamp gdk_region_shrink.
15955
15956         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
15957         after use.
15958
15959         * gtk/gtk.def: Add some missing entry points.
15960
15961         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
15962         component.
15963
15964 1999-07-04  Tor Lillqvist  <tml@iki.fi>
15965
15966         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
15967         Control-digits specially.
15968
15969 1999-07-03  Tor Lillqvist  <tml@iki.fi>
15970
15971         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
15972
15973 1999-06-28  Tor Lillqvist  <tml@iki.fi>
15974
15975         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
15976         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
15977         finding this.)
15978
15979 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
15980
15981         * gtk+.spec.in: Corrected some typos in files section.
15982         
15983 1999-06-15  Tor Lillqvist  <tml@iki.fi>
15984
15985         * README.win32: Mention using GNU gettext.
15986         * config.h.win32: Enable NLS stuff.
15987         * gtk/makefile.msc: Use GNU gettext.
15988         * gdk/win32/gdkdnd.c: Minor header reorg.
15989         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
15990         cosmetics.
15991         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
15992         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
15993
15994 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
15995
15996         * acinclude.m4
15997         * config.guess
15998         * config.status
15999         * ltconfig
16000         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
16001
16002 1999-05-30  Tor Lillqvist  <tml@iki.fi>
16003
16004         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
16005         SafeAdjustWindowRectEx. Don't override all calls to
16006         AdjustWindowRectEx by it, but use it only in two places: When
16007         creating a new top-level window and when moving a top-level
16008         window.
16009
16010         Use screen coordinate rectangle, not client rectangle, in
16011         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
16012         when we try to place a window so that the decoration (mainly,
16013         title bar) isn't visible.
16014
16015         These changes fix the bug that showed up for instance as the
16016         GIMP's saved top-level windows moving right and down (by an amount
16017         equal to the window decoration) for each session. This bug showed
16018         up also in testgtk's "Saved Position".
16019
16020         gdk_window_resize also redone a bit.
16021
16022 1999-05-25  Tor Lillqvist  <tml@iki.fi>
16023
16024         * gtk/testgtkrc: Add (commented out) Windows-style theme
16025         include line.
16026
16027         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
16028
16029 1999-05-18  Tor Lillqvist  <tml@iki.fi>
16030
16031         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
16032         gdkx.h to a gdk subdirectory, so that applications can include
16033         these with <gdk/*.h> without trouble.
16034
16035         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
16036         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
16037         have their bitmap destroyed.
16038
16039         * gdk/win32/gdk.def: Add gdk_root_parent.
16040
16041 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
16042
16043         * configure.in
16044           gtk-config.in
16045           ltconfig
16046           ltmain.sh     
16047           gtk/Makefile.am: changes to compile nicely (with xlib) 
16048           on BeOS
16049
16050 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
16051
16052         * acinclude.m4
16053         * config.guess
16054         * config.sub
16055         * ltconfig
16056         * ltmain.sh: upgrade to libtool 1.3
16057
16058 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
16059
16060         * gtk/gtkclist.c:
16061         * gtk/gtkctree.c: merges from gtk-1-2
16062
16063 1999-04-25  Tor Lillqvist  <tml@iki.fi>
16064
16065         Support added for building using a GNU toolchain on Win32,
16066         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
16067
16068         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
16069         * config.h.win32: Changes for gcc.
16070         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
16071         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
16072         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
16073         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
16074         Protect shl stuff unavaiilable with mingw32 headers.
16075         * gdk/win32/gdkevents.c: Fix typo.
16076         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
16077         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
16078         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
16079         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
16080         the mingw32 headers.
16081         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
16082         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
16083         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
16084         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
16085         Test for NATIVE_WIN32, not _MSC_VER.
16086         * gtk/gtkmain.c: No use warning about developer version on Win32,
16087         there aren't any non-developer versions anyhow.
16088         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
16089         * gtk/makefile.msc: Use pthread from another directory. Minor other
16090         changes. 
16091
16092 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
16093
16094         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
16095           default filter from the list
16096
16097 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
16098
16099         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
16100          when gtk_widget_grab_default() is called for a widget that
16101          is not within a GtkWindow.
16102
16103 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
16104
16105         * docs/gtk_tut.sgml, examples/clist.c: use a
16106           scrolled window in the clist example. Minor
16107           tutorial fixes.
16108
16109 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
16110
16111         * docs/gtk_tut.sgml: Style check from David King
16112           <dking@youvegotmail.net>
16113
16114 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
16115
16116         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
16117         compile with unknown value of GDK_WINDOWING
16118
16119 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
16120
16121         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
16122         after the rule is fired.
16123         (install-exec-local): Install gdkconfig.h only if the contents are
16124         different from the currently installed gdkconfig.h.
16125
16126 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
16127
16128         * gdk/Makefile.am (configexecincludedir): Rename from 
16129         configincludedir so that gdkconfig.h will be installed 
16130         as part of `make install-exec'. 
16131
16132 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
16133
16134         * acinclude.m4
16135         * config.guess
16136         * config.sub
16137         * ltconfig
16138         * ltmain.sh: upgrade to libtool 1.2f
16139
16140         * autogen.sh: libtool is not required to autogen gtk+
16141
16142         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
16143         needed)
16144
16145 1999-03-18  Tor Lillqvist  <tml@iki.fi>
16146
16147         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
16148         declaring gdk variables exported/imported from the DLL. New image
16149         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
16150         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
16151         GDK_DRAG_PROTO_OLE2.
16152
16153         * gdk/gdk.h: Merge in Win32 version: Two new functions,
16154         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
16155         declared only for the Win32 version, but could be in the X11
16156         version as well. (Needed for a Xlib-less gdk_imlib.)
16157         gdk_color_hash should have only one parameter. Declare
16158         gdk_threads_mutex with GDKVAR.
16159         
16160         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
16161         just one parameter.
16162
16163         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
16164         per pixel, not bits.
16165
16166         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
16167         Fetch bpp (which means bits-per-pixel here) from another place on
16168         Win32. Accept also depth==32 (which we might get on Win32) with
16169         bpp==32.
16170
16171         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
16172         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
16173         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
16174         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
16175         in the backend-dependent directory, not in the common gdk
16176         directory.
16177
16178         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
16179         headers.
16180
16181 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
16182
16183         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
16184         want to use the Gtk+ devel version (which is true, and yes - even i am
16185         currently working with the 1.2.x branch). so everyone reading this, you
16186         probably want to issue
16187         cvs checkout -r glib-1-2 glib
16188         and
16189         cvs checkout -r gtk-1-2 gtk+
16190         as your next two comands.
16191
16192 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
16193
16194         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
16195         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
16196
16197         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
16198         file. strongly deprecated the GTK_HAVE_* macros, we provide
16199         GTK_CHECK_VERSION() for people that need to check for certain
16200         Gtk+ versions.
16201
16202         * gtk/gtkcompat.h: removed this from CVS.
16203         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
16204         idea right from the start, it just didn't seem like that back then.
16205
16206 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
16207
16208         * merges from gtk-1-2:
16209
16210 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
16211
16212         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
16213         item factory class has been created.
16214         (gtk_item_factory_parse_rc): likewise.
16215
16216         * gtk/gtkmenu.c:
16217         keep proper references for old_active_menu_item.
16218         (gtk_menu_reparent): unset the usize of the new parent,
16219         so the menu can sanely be size requested and we don't get nasty screen
16220         artefacts upon next reparentation.
16221         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
16222         enter notify. only synthesize enter notifies if the pointer really is
16223         inside the event window.
16224         (gtk_menu_popdown): use gtk_menu_shell_deselect().
16225         (gtk_menu_popup): move the background setting stuff into
16226         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
16227
16228         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
16229         gtk_menu_shell_select_item() to select the new item.
16230         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
16231         do the right thing for deselection as well.
16232
16233 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
16234
16235         * gtk/gtkwidget.[hc]:
16236         (gtk_widget_accelerators_locked): return whether a widget's accelerators
16237         are locked.
16238
16239         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
16240         existing accelerators if the widget's accelerators are locked.
16241
16242 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
16243
16244         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
16245
16246         * gtk/gtkmenu.c: truely forward key press and key release events to
16247         the menu widget from the toplevel or tearoff window. we can't simply
16248         connect to that, we need to stop further processing of the events as
16249         well.
16250
16251 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
16252
16253         * gtk/gtkmenu.c:
16254         (gtk_menu_key_press): pass event->keyval, event->state to
16255         gtk_accelerator_valid, instead of event->keyval twice.
16256         refuse to install single letter accelerators for menus that use
16257         single letter shortcuts.
16258
16259         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
16260         gtk_menu_ensure_uline_accel_group().
16261
16262         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
16263         which will always return an uline accel group, made
16264         gtk_menu_get_uline_accel_group() return NULL if the group isn't
16265         yet created.
16266
16267 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
16268
16269         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
16270
16271         * gtk/gtkclist.c (gtk_clist_column_title_passive):
16272         Leave button sensitive, trap  button_press, button_release,
16273         motion_notify, enter_notify and leave_notify events instead.
16274         (gtk_clist_column_title_active): disconnect event handler.
16275         (gtk_clist_drag_data_get): fixed memory leak. Reported by
16276         Guillaume Laurent <glaurent@worldnet.fr>
16277
16278 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
16279
16280         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
16281         width/height mixups.
16282
16283         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
16284         if needed.
16285
16286 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
16287
16288         * gtk/testgtk.c (create_item_factory): unref the item factory after
16289         window's destruction.
16290
16291         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
16292         count on the menu shell around the menu item's activation, since the
16293         signal emission may cause menu shell destruction.
16294
16295         * gtk/gtkitemfactory.c:
16296         the previous code leaked one accel group per menu. we use
16297         gtk_menu_get_uline_accel_group() now to fix that, and with that
16298         also create the underline accelerator group of the menus only if
16299         required (i.e. an underline accelerator has been specified).
16300         (gtk_item_factory_construct):
16301         (gtk_item_factory_create_item): removed code that would create an
16302         extra accel group for the menu (and leak references).
16303         (gtk_item_factory_create_item): adapted the underline accelerator
16304         installation code to properly feature gtk_menu_get_uline_accel_group().
16305
16306         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
16307         menu->accel_group, this may return NULL if the accelerator group
16308         hasn't been set yet.
16309         added gtk_menu_get_uline_accel_group() to retrive the underline
16310         accelerator group of the menu, this will be created on demand
16311         and proper care is taken about its reference count.
16312
16313         * gtk/gtkitemfactory.h:
16314         * gtk/gtkitemfactory.c:
16315         dumped the approach of keeping a widgets by action list on the
16316         factory since the factory<->widget destroy negotiation didn't work
16317         and would be hard to get going at all. instead we keep a list of
16318         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
16319         persistant throughout a program's life time).
16320         also, i removed the static const gchar *key_* variables, and made
16321         them inline strings (they weren't actually used anyways).
16322         (gtk_item_factory_add_item): update ifactory->items.
16323         (gtk_item_factory_destroy): destroy ifactory->items (and remove
16324         the item factory pointer from the remaining ifactory widgets).
16325         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
16326         list to find the widget.
16327         (gtk_item_factory_get_item): new function that works around
16328         gtk_item_factory_get_widget() limitations, this function will only
16329         return menu items, even for <Branch> entries.
16330
16331 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
16332
16333         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
16334         font hash table, if we have a GdkFontPrivate entry for this font
16335         already, simply increment its reference count, provided by Olaf Dietsche
16336         <olaf.dietsche+list.gtk@netcologne.de>.
16337
16338         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
16339         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
16340
16341 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
16342
16343         * gtk/gtkcontainer.c:
16344         (gtk_container_add_with_args):
16345         (gtk_container_addv):
16346         (gtk_container_add): before adding a child to a conatiner, make sure
16347         it is (default) constructed, this is neccessary because under certain
16348         circumstances the child will get relized and mapped immediatedly, in
16349         which case it has to be constructed already.
16350
16351 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
16352
16353         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
16354         values > 1 as TRUE also.
16355
16356 1999-03-16  Tor Lillqvist  <tml@iki.fi>
16357
16358         * README.win32: New file.
16359                 
16360         * configure.in: Check for lstat.
16361
16362         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
16363         completeness.
16364
16365         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
16366
16367         * gtk/gtk.def: Removed CRs.
16368
16369         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
16370         ..\gdk\win32).
16371
16372         * gdk/win32/makefile.msc: Correct upwards relative paths.
16373         
16374 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
16375
16376         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
16377           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
16378           it was connecting a void function to expose_event and the int
16379           returning function to the draw signal
16380
16381 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
16382
16383         * configure.in:
16384         Use correct path to libgmodule.la when ref'ing uninstalled copy
16385         of glib.  (Already in stable branch, Bug #417)
16386
16387 1999-03-15  Tor Lillqvist  <tml@iki.fi>
16388
16389         Win32 merge and general portability stuff:
16390                 
16391         * acconfig.h,configure.in: Check for <sys/time.h>.
16392
16393         * gdk/win32: New directory (actually, been there for a while).
16394         
16395         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
16396         NATIVE_WIN32, and use these. Always case fold on Win32. No
16397         backslashed escapes on native Win32.
16398
16399         * gtk/{gtk.def,makefile.msc}: New files.
16400
16401         * gtk/Makefile.am: Add above new files.
16402         
16403         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
16404         instead of <strings.h>.
16405
16406         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
16407         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
16408         <unistd.h> appropriately.
16409
16410         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
16411         Use ABS() (from <glib.h>) instead of abs().
16412         
16413         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
16414         of gtk (and thus glib) headers, so that WIN32 will be
16415         defined. With MS C, include <direct.h> for mkdir prototype.
16416
16417         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
16418         some casts, needed by MS C.
16419
16420         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
16421         implemented).
16422
16423         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
16424         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
16425         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
16426
16427         * gtk/gtkmain.h: Mark variables for export/import on Win32.
16428                 
16429         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
16430         the event is not a hint, or its window is not the slider. Needed
16431         on Win32, at least.
16432
16433         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
16434         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
16435         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
16436         a subdirectory of the Windows directory as gtk system
16437         configuration directory.
16438
16439         * gtk/gtkselection.c: No chunks on Win32.
16440
16441         * gtk/gtksocket.c: Not implemented on Win32.
16442
16443         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
16444
16445         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
16446
16447         * gtk/maketypes.awk: Declare variables with a macro that expands to
16448         necessary export/import magic in the case of Win32.
16449                 
16450         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
16451
16452 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
16453
16454         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
16455         since those were meant only for gdki18n.h.  
16456         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
16457         for widechar tests.
16458         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
16459
16460 1999-03-13  Tor Lillqvist  <tml@iki.fi>
16461
16462         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
16463         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
16464
16465         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
16466         installed) to CFLAGS.
16467
16468         * gdk/Makefile.am: Add rules for gdkconfig.h.
16469
16470         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
16471         APIs.
16472
16473         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
16474         gdkx.h anyway when compiling for X11.
16475         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
16476         general): Merge in Win32 version.
16477         
16478         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
16479         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
16480         expansion (if we don't have HAVE_PWD_H), allow for drive
16481         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
16482         included code from Craig Setera's port to Win32 (the one that uses
16483         X11, and the cygwin dll), even if it probably will be abandoned.
16484
16485         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
16486         the user entered one herself.  This way one can complete *.h and
16487         don't get matches on any .help files, for instance.
16488         
16489 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
16490
16491         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
16492         font hash table, if we have a GdkFontPrivate entry for this font
16493         already, simply increment its reference count, provided by Olaf Dietsche
16494         <olaf.dietsche+list.gtk@netcologne.de>.
16495
16496         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
16497         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
16498
16499 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
16500
16501         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
16502         the number of calls to gdk_draw_point() (and thus to X) by
16503         clipping the points by hand.
16504
16505         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
16506         the clip parameter.
16507         (gtk_handle_box_paint): Only paint the handle if the expose area
16508         intersects it.
16509
16510 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
16511
16512         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
16513
16514 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
16515
16516         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
16517         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
16518
16519 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
16520
16521         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
16522          textmode (O_TEXT) for OS/2 version.
16523
16524 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
16525
16526         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
16527         GtkSpinButton, "input" and "output", to make the output more flexible.
16528         The user has to provide a mapping between adjustment->value and the
16529         output string (and vice versa, if the spin button is editable). 
16530         See testgtk for examples.
16531
16532 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
16533
16534         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
16535         new one.
16536         
16537         * configure.in: set gtk+ version to 1.3.0.