]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-4
Convert GdkVisual to a GObject.
[~andy/gtk] / ChangeLog.pre-2-4
1 2001-06-29  Alex Larsson  <alexl@redhat.com>
2
3         * gdk/gdkvisual.h:
4         * gdk/gdkcolor.c:
5         * gdk/x11/gdkx.h:
6         * gdk/x11/gdkvisual-x11.c:
7         Convert GdkVisual to a GObject.
8
9         * gdk/gdkinput.h:
10         * gdk/gdkevents.c:
11         * gdk/x11/gdkinputprivate.h:
12         * gdk/x11/gdkinput-gxi.c:
13         * gdk/x11/gdkinput-none.c:
14         * gdk/x11/gdkinput-x11.c:
15         * gdk/x11/gdkinput-xfree.c:
16         * gdk/x11/gdkinput.c:
17         Convert GdkDevice to a GObject.
18
19 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
20
21         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
22         to just plain new, fixing the number of columns, and column types
23         at creation time.
24
25         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
26
27         * gtk/gtkcellrenderertext.c
28         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
29         height to a specific font.
30
31         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
32
33         * tests/*c: change to work with new store models.
34
35 2001-06-29  Havoc Pennington  <hp@redhat.com>
36
37        * Throughout: fixes to compile with G_DISABLE_COMPAT
38         (s/g_signal_connectc/g_signal_connect/,
39         s/g_signal_newc/g_signal_new/,
40         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
41
42 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@webwynk.net>
43
44         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
45         add path argument to selection callbacks.
46
47 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
48
49         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
50         walk through a model in a depth first manner, with the option to
51         break out.
52
53 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
54
55         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
56         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
57         column and follow it when draged, rather than a location in the
58         view. "expander_column" property and drawing functions changed
59         accordingly.  Fixes bug #55942.
60
61         (gtk_tree_view_{set,get}_expander_column): Now works with a
62         GtkTreeViewColumn* instead of int.
63
64 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
65
66         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
67
68 2001-06-28  Havoc Pennington  <hp@pobox.com>
69
70         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
71         image data to the screen, using a server grab to avoid race
72         conditions.
73
74         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
75         check for NULL return from gtk_image_new_from_stock(), it never
76         returns NULL.
77         (gtk_item_factory_create_item): fix bug where we parsed the stock
78         ID as an inline pixbuf
79
80         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
81
82         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
83         support (should be using binding set here)
84
85         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
86         support (should be using binding set here)
87
88         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
89         support
90
91         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
92
93         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
94
95         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
96
97         * gtk/gtkimcontextsimple.c
98         (gtk_im_context_simple_filter_keypress): keypad
99
100         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
101
102         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
103
104         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
105
106         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
107         should be binding-setted)
108
109         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
110
111         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
112
113         * gtk/gtkcalendar.c: numeric keypad fixes
114
115         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
116         support
117
118         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
119         screwup
120
121         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
122         clip the render area to the drawable's clip region in advance,
123         so we don't get data from the server that we don't need.
124
125         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
126         check return value of gdk_pixbuf_get_from_drawable(), fall back 
127         to bilevel alpha if we can't get the pixbuf to composite against.
128
129         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
130
131         * gdk/gdkimage.c (gdk_image_get_colormap): add
132         gdk_image_set_colormap, gdk_image_get_colormap
133
134         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
135         take a region of the image, instead of converting the entire
136         image.
137
138         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
139         keybinding signal. Add default bindings for it. Add default
140         handler for show_help that shows the tooltip for the widget.
141
142         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
143         "close" keybinding signal, remove key press handler.
144
145         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
146         it's not our usual practice to leave a deprecated function around
147         with a runtime warning, plus we don't want it to appear in docs,
148         plus if we make them yellow no one will want to change them
149         anyhow.
150
151 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
152
153         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
154         GTK_WIDGET_REALIZE() for resize queueing.
155
156         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
157         GTK_WIDGET_REALIZE() for post event delivery destruction upon
158         GDK_DESTROY.
159         
160         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
161         sompensate for former (pre-2.0) connect_after() facility.
162         (gtk_widget_send_expose): 
163         (gtk_widget_event): assert the widget is realized, since event delivery
164         to non-realized widgets is essentially a bug. event handlers should
165         be able to unconditionally rely on widget->window (unless they
166         emit events on their own which can trigger widget destruction).
167         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
168         logic. event delivery happens as follows:
169         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
170         b) if !was_handled in (a) and the widget is still realized, emit event-
171            specific signal (RUN_LAST handler). returns was_handled.
172         c) emission of GtkWidget::event-after for notification if the widget is
173            still realized (regardless of was_handled from previous stages, no
174            class handler). no return value.
175         d) was_handled gets passed on to caller, to determine further
176            propagation. if the widget got unrealized meanwhile, was_handled
177            is returned as TRUE.
178
179         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
180         gdk_event_get_coords().
181
182 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
183
184         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
185         age 0, binary age 0. depend on glib 1.3.7.
186
187         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
188
189         * gtk/gtkmenubar.c: same here.
190         
191         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
192
193         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
194
195         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
196         
197         * gtk/gtkmenubar.c (add_to_window): likewise.
198         
199         * gtk/gtktextbtree.c: and here...
200         
201         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
202         
203         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
204         
205         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
206         
207         * gtk/gtktreeviewcolumn.c:
208         (_gtk_tree_view_column_set_tree_view): yet again.
209
210         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
211         signal connections without g_signal_connect_data().
212         
213         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
214         demo of the matter.
215         
216         * demos/testpixbuf.c (main): running out of equality phrases for the
217         ChangeLog, but had to adapt connections here as well.
218         
219         * demos/testanimation.c (progressive_timeout): and for the fun of it,
220         tackled this the same way.
221         
222         * tests/testtext.c (create_view): ok, it's becoming a pain at this
223         point, but had enough enery for one more fix.
224
225         * tests/testtreecolumns.c (main): stand up man, do your work!
226
227         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
228         fix, either that's been all of it or CVS gtk is broken yet again.
229         
230 2001-06-29  James Henstridge  <james@daa.com.au>
231
232         The following changes correspond to bug #56812
233
234         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
235         code for GdkDevice.
236
237         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
238         GdkCursor.
239
240 2001-06-19  Havoc Pennington  <hp@pobox.com>
241
242         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
243         for mapping a window without fooling with stacking order, but
244         updating the "withdrawn" flag
245
246         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
247         filtering as soon as possible, moving move resize and wmspec_check
248         handling after the event filter.  Make default filter apply to all
249         events, not just those with no GdkWindow wrapped around the X
250         window. Fix a FIXME about how the window could be a pixmap using 
251         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
252
253         Also, be robust against events not on a known GdkWindow.
254
255         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
256         gdk_x11_ungrab_server): export reference-counted server grabs, so
257         other people can grab server over a GDK function that also does
258         so.
259
260 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
261
262         * gtk/gtktreeviewcolumn.c
263         (gtk_tree_view_column_pack_start_cell_renderer): New function to
264         reflect that you can (hypothetically) pack cell renderers into a
265         column.
266         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
267         (gtk_tree_view_column_cell_is_visible): Move more functionality to
268         the column.
269         (gtk_tree_view_column_cell_can_focus): Move more functionality to
270         the column.
271
272         * gtk/gtktreeview.c: Move to use new column-packing code.
273         (gtk_tree_view_real_expand_row): remove totally braindead code.
274         (gtk_tree_view_real_collapse_row): ditto.
275
276 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
277
278         * gtk/gtktreeviewcolumn.c: Fix a typo.
279         
280 2001-06-26  Joel Becker  <jlbec@evilplan.org>
281
282         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
283           at the end of the file
284
285 2001-06-26  Havoc Pennington  <hp@redhat.com>
286
287         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
288
289 2001-06-26  Havoc Pennington  <hp@redhat.com>
290
291         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
292         property
293
294 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
295
296         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
297         stupid missing statement
298
299         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
300         private function for ATK.  It notifies you of how many _visible_
301         children are deleted when a node is deleted.  Should be used by
302         atk only.
303
304 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
305
306         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
307         Use new pango_context_get_metrics() to fix problems
308         with font lists in descriptions. (#56184, reported by
309         Jonas Borgström)
310
311 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
312
313         * gtk/gtkiconfactory.c:
314         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
315         item factory so inlined pixbufs actually work.
316
317 2001-06-25  Havoc Pennington  <hp@redhat.com>
318
319         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
320         s/RESIZEABLE/RESIZABLE/
321
322         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
323
324 2001-06-25  Alexander Larsson  <alexl@redhat.com>
325
326         * configure.in:
327         Added --enable-fbmanager. This is some experimental code
328         that lets several GtkFB apps coordinate their access to the
329         framebuffer.
330         
331         * acconfig.h:
332         Added ENABLE_FB_MANAGER.
333
334         * gdk/linux-fb/Makefile.am:
335         Added gdkfbmanager and gdkfbswitch.
336
337         * gdk/linux-fb/gdkkeyboard-fb.c:
338         * gdk/linux-fb/gdkmouse-fb.c:
339         * gdk/linux-fb/gdkprivate-fb.h:
340         Split device init and open so that
341         they can be opened and closed while switched
342         away.
343
344         * gdk/linux-fb/gdkmain-fb.c:
345         Add the basic manager communication.
346
347         * gdk/linux-fb/gdkrender-fb.c:
348         Don't update to the shadow fb if we're
349         blocked by the fb manager.
350
351 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
352
353         * docs/Changes-2.0.txt: Add note about child property
354         changes.
355
356 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
357
358         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
359         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
360
361         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
362         with un'reffing wrong list reported by Jeff Franks.
363
364         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
365
366         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
367         for the default icon. Remove inline XPM.
368
369         * gtk/gtkstock.h gtk/gtkiconfactory.c:
370         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
371         is used for GTK_STOCK_DND, but it is a bit too small.)
372
373         * gtk/stock-icons/stock_dnd_multiple.png
374         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
375
376         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
377         TRUE when starting a drag. In other cases, we are
378         just observing. (#52995)
379
380         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
381         function to set the icon for a drag from a GdkPixbuf
382         or stock ID.
383
384         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
385         Likewise, for drag sources.
386
387         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
388         (Now should be done using the stock system.)
389
390 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
391
392         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
393         Removed - didn't work and not particularly useful anyways
394         if it did. 
395
396 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
397
398         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
399         introduced last night that was making things decidedly not work.
400
401         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
402         so that we have getter/setter pairing everywhere it makes
403         sense. (#55767)
404
405         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
406         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
407         deprecated compat macro. (#55516)
408
409         * gtk/gtklabel.[ch]: Add functions
410         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
411         gtk_label_set_label(), which mirror the property API for GtkLabel.
412         Make gtk_label_get_attributes() only reflect the attributes
413         set by gtk_label_set_attributes.
414
415         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
416         from gtk_notebook_set_page().
417
418 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
419
420         * configure.in: Fix tests for XShm.h.
421
422         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
423         gdk_image_new() by use of goto, properly use g_object_unref().
424
425 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
426
427         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
428         calls, as GdkImage is an object. these should be g_obejct_unref()
429         instead but that won't work because of the g_error() statement
430         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
431         to spot these places.
432
433 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
434
435         * modules/input/gtkimcontextxim.c: Fixup some problems with 
436         text length handling in error cases.
437
438         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
439         a bit to make test actually warn on attempt to allocation
440         a negative size. (#56101, Matthias Clasen)
441
442 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
443
444         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
445         noticed by Brian Cameron.
446         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
447         Cameron.
448
449 2001-06-22  Hans Breuer  <hans@breuer.org>
450
451         * gdk/gdk.def : updated externals
452
453         * gdk/win32/gdkdrawable-win32.c : corrected some casts
454         in GDK_NOTEs
455
456         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
457         to translate coordinates to the internal > 16 bit system
458         Try to handle WM_WINDOWPOSCHANGED to get better performance for
459         when moving/resizing
460
461         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
462         and gdk_keymap_get_direction (). The latter is untested for
463         the RTL case
464
465         * gtk/gtk.def : updated externals
466
467         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
468         from pango_language_from_string (), not an already freed pointer
469
470         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
471         binary (-kb) to be useable on windoze
472  
473 2001-06-21  Alexander Larsson  <alexl@redhat.com>
474
475         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
476         Update to new PangoLanguage changes.
477         
478         * gtk/gtkwindow-decorate.c:
479         * gtk/gtkwindow.[ch]:
480         Added setting argument to gtk_window_set_has_frame ()
481         
482 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
483
484         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
485         the case without XKB properly.
486
487         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
488         unused gtk_rc_auto_parse variable.
489
490         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
491         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
492         longer needed with GdkPixbuf.
493
494         * gtk/gtkrc.c (_gtk_rc_init): Make private.
495
496 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
497
498         * gtk/gtkentry.h: Mark deprecated functions with
499         GTK_DISABLE_DEPRECATED.
500
501 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
502
503         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
504
505         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
506
507         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
508           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
509           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
510           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
511           to recent changes in Pango.
512
513         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
514           to test whether the basic engine honors them.
515
516 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
517
518         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
519         gtk_container_child_get_property().
520
521 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
522
523         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
524         (gtk_tree_view_move_cursor_page_up_down): implement.
525
526 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
527
528         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
529         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
530         don't use automatic fixed size buffer for printf-ing floats, doubles
531         can expand to really _huge_ strings, use g_strdup_printf() instead.
532
533 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
534
535         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
536         construct property in 1.2 and still needs to be.
537
538         * gtk/gtkwidget.c: "composite_child" is not a settable property.
539
540 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
541
542         * gtk/gtkliststore.c (gtk_list_store_clear): 
543         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
544         clear a model.
545
546 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
547
548         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
549
550         * gtk/Makefile.am:
551         * gtk/gtk.h: disabled GtkPacker compilation.
552
553         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
554
555         * gtk/gtknotebook.c:
556         * gtk/gtktable.c:
557         * gtk/gtkbox.c: ported this over to child properties.
558
559         * gtk/gtksettings.c: fetch class properties via
560         g_object_class_list_properties().
561
562         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
563         child arg interface. use gobjectnotifyqueue.c for child property
564         notification.
565
566         * gtk/gtkwidget.[hc]: provide necessary means for container child
567         properties, i.e. ::child_notify signal,
568         gtk_widget_freeze_child_notify(),
569         gtk_widget_child_notify(),
570         gtk_widget_thaw_child_notify().
571
572         * tests/testgtk.c: removed inferior property handling code, for
573         property editing, a generic module should be used, and GLE
574         coincidentally fullfills that purpose.
575
576         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
577         needs to be adapted to g_object_class_list_properties() before this
578         builds again.
579
580 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
581
582         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
583         test if a node is expanded.
584
585 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
586
587         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
588         where collapsing a selected row would result in the cursor/anchor
589         getting screwed up.
590
591 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
592
593         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
594         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
595         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
596         Now I can really reorder/sort all Store widgets.  treesorttest
597         seems to just work now.
598         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
599         testtreesort worked through a big coincidence all this time.
600         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
601         code.
602         * tests/testtreecolumns.c: Big 'ol warning at the top letting
603         people know that this code should never ever ever be copied.
604
605 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
606
607         * gtk/gtkwindow.h: Fixed a small typo, it should be
608         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
609         on line 134.
610
611 2001-06-14  Havoc Pennington  <hp@redhat.com>
612
613         Docs fixups, and:
614         
615         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
616         GTK_DISABLE_DEPRECATED
617
618 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
619
620         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
621         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
622         finish it off tonight, though it basically works now when it's a
623         list.  Also, I have a sinking feeling neither GtkTreeStore or
624         GtkListStore actually resort when adding a new item.  I'll look
625         into it.
626
627 2001-06-14  Havoc Pennington  <hp@redhat.com>
628
629         * demos/gtk-demo/main.c (load_file): fix bug identified by
630         warnings I just added to gtktextbuffer
631
632 2001-06-14  Havoc Pennington  <hp@redhat.com>
633
634         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
635
636         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
637
638         * gtk/gtktextbtree.c: don't leak node data all over the place.
639
640         * demos/gtk-demo/main.c (main): create fontify tags for the right
641         buffer
642
643         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
644         to mention tags in the same table can't have the same name,
645         suggested by Skip Montanaro
646
647 2001-06-11  Havoc Pennington  <hp@redhat.com>
648
649         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
650         for trying to add two tags with same name to the tag table
651
652         * demos/gtk-demo/main.c (main): fix colors ;-)
653
654 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
655
656         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
657         that allows grouping together multiple windows so that grabs
658         within that set of windows only affect those windows.
659
660         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
661         signal for notification when a widget becomes shadowed
662         by a grab or is no longer shadowed by a grab.
663
664         * gtk/gtkwidget.c (gtk_widget_propagate_state)
665           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
666         insenstive widgets to maintain a grab.
667
668 2001-06-14  Alexander Larsson  <alexl@redhat.com>
669
670         * docs/README.linux-fb:
671         Add some example config files that can be used with the URW fonts.
672         
673         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
674         Set up the color ramps for DirectColor mode.
675
676 2001-06-11  Havoc Pennington  <hp@redhat.com>
677
678         * Release 1.3.6
679          
680 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
681
682         * gdk/linux-fb/gdkwindow-fb.c:
683         Unify shaped window code and make it repaint the area that used
684         to be part of the shape, but isn't anymore.
685
686 2001-06-11  Havoc Pennington  <hp@redhat.com>
687
688         * NEWS: Updates
689
690         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
691
692         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
693         
694 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
695
696         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
697         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
698         passes zero instead, so do we.
699         
700 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
701
702         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
703         Deep copy dash_list too.
704         (_gdk_fb_gc_new): Set default cap_style before
705         setting values.
706
707 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
708
709         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
710         gdk_keymap_get_direction): New functions.
711
712 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
713
714         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
715         gtk_tree_model_get_flags by adding a second flag for atk.
716
717         * gtk/gtktreemodel.c: make cursor behavior interact better with
718         mouse presses.
719
720 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
721
722         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
723         expand_row/collapse_row to be 2 signals each -- test_expand_row
724         and row_expanded as well as test_collapse_row and row_collapsed.
725
726 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
727
728         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
729         signal name to be changed instead of selection_changed.
730
731 2001-06-08  Havoc Pennington  <hp@redhat.com>
732
733         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
734         "scroll_offset" property for notification when the layout offsets
735         may have changed
736         (gtk_entry_adjust_scroll): add notify for scroll_offset
737         (gtk_entry_layout_index_to_text_index): function to compensate for
738         preedit string when doing coordinate stuff on the entry's layout
739         (gtk_entry_text_index_to_layout_index): inverse function
740         (gtk_entry_get_layout_offsets): hook to get current position of
741         the layout      
742         (gtk_entry_get_layout): hook to get the layout itself.
743
744         * gtk/gtklabel.c (gtk_label_get_layout): new function
745
746 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
747
748         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
749         keybinding.
750         (gtk_tree_view_focus): Fix merge conflict.
751
752 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
753
754         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
755         clean up cursor handling.
756
757 2001-06-08  Havoc Pennington  <hp@redhat.com>
758
759         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
760         function
761
762         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
763         this function
764
765 2001-06-08  Alex Larsson  <alexl@redhat.com>
766
767         * gtk/gtkcompat.h.in:
768         Added compat macros for all old GTK_TYPE_GDK_xxx types.
769         Fixes bug #52892
770
771 2001-06-08  Havoc Pennington  <hp@redhat.com>
772         
773         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
774         parent still
775
776 2001-06-08  Havoc Pennington  <hp@redhat.com>
777
778         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
779         don't call g_list funcs on GSList
780
781         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
782         gtk_container_focus(), since some widgets have focusable locations
783         which are not other widgets. These widgets should not have to be 
784         containers just to manage the focus. For example, GtkHSV is
785         currently a container for no good reason. Also, this cleans
786         up the "if (is_container && is_sensitive && is_drawable)
787         container_focus ()" mess in widget implementations.
788
789         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
790         function, and have it just call gtk_widget_child_focus().
791
792         * gtk/gtkhsv.c: derive from widget not container
793         
794         Throughout: fix to reflect GtkContainer::focus change
795         
796 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
797
798         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
799         range.  Fix bug #55921
800
801         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
802         (#55920).
803
804 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
805
806         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
807         and gdk_keymap_get_current_direction().
808
809         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
810           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
811         the current locked group, use it to set the keymap
812         direction.
813
814         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
815         to determine whether we draw a split cursor or use
816         a jumping cursor based on the current direction.
817
818         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
819         Obey the split cursor setting. 
820
821 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
822
823         * gtk/gtkimmulticontext.c (activate_cb): Only activate
824         when toggling on, not when toggling off... (#55906)
825
826 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
827
828         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
829         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
830         in docs. (#55812, Vitaly Tishkov)
831
832 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
833
834         * demos/gtk-demo/main.c (create_tree): Changed signal name from
835         selection_changed to changed in signal connection to GtkTreeSelection,
836         also used g_signal_connectc since GtkTreeSelection is now a GObject.
837
838 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
839
840         * gtk/gtktreeselection.c: Now it's a GObject instead of a
841         GtkObject.  The GtkTreeSelection::selection_changed signal is now
842         the GtkTreeSelection::changed signal.
843
844         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
845         object.
846
847         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
848         object.
849
850 2001-06-07  Havoc Pennington  <hp@redhat.com>
851
852         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
853
854 2001-06-07  Havoc Pennington  <hp@redhat.com>
855         
856         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
857         (not tested yet because with absolute path to srcdir I can't build
858         atk, but it was broken anyway so this may help) 
859
860 2001-06-07  Havoc Pennington  <hp@redhat.com>
861
862         * configure.in: output m4macros/Makefile
863         
864 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
865
866         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
867         buttons.  Fixes #55460 reported by matthiasc@poet.de.
868
869 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
870
871         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
872         expansion/collapsing so it only happens in one place.
873         (gtk_tree_view_real_expand_row): ditto.
874
875 2001-06-07  Havoc Pennington  <hp@redhat.com>
876
877         * tests/Makefile.am: add missing -I flag
878
879         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
880
881         * configure.in: use pkg-config to see if GModule is
882         supported; fix to properly turn on included loaders 
883         when GModule isn't supported; don't use AC_CHECK_LIB 
884         when libs are not installed yet
885
886         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
887
888         * Makefile.am (SUBDIRS): add m4macros subdir
889
890         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
891         dependencies also.
892
893 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
894
895         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
896         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
897
898 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
899
900         * gtk/gtktreeview.c
901         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
902         bindings to expand and collapse rows.
903         (gtk_tree_view_real_select_cursor_parent): New key binding.
904         (gtk_tree_view_real_toggle_cursor_row): New key binding.
905
906         * gtk/gtkmarshal.list: new
907         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
908
909 2001-06-06  Havoc Pennington  <hp@redhat.com>
910
911         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
912
913         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
914         Down to move visually rather than logically, since it confuses 
915         people. Add -/+ and Ctrl--/+ bindings for logical movement.
916
917 2001-06-06  Alex Larsson  <alexl@redhat.com>
918
919         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
920         Fix up error messages.
921
922 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
923
924         * gtk/gtktooltips.h: Include gtkwidget.h 
925         (#55798, Karl Nelson)
926
927         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
928         a valid latin-1 character. (Marc Lehmann, #35467)
929
930         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
931         (Marc Lehmann, #35467)
932         
933 2001-06-05  Alex Larsson  <alexl@redhat.com>
934
935         * demos/gtk-demo/appwindow.c (do_appwindow):
936         Don't swap the order of the args to gtk_widget_destroyed.
937
938         * tests/testgtk.c (destroy_properties):
939         Don't crash when the properties window is destroyed.
940
941         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
942         Use with_mnemonics to handle the case of stock items with
943         underscores in them.
944
945 2001-06-05  Havoc Pennington  <hp@redhat.com>
946
947         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
948         gtk_text_iter_reorder
949
950 2001-06-05  Havoc Pennington  <hp@redhat.com>
951
952         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
953
954 2001-06-05  Havoc Pennington  <hp@redhat.com>
955
956         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
957         to the range that was set
958
959         * gtk/gtkrange.c: add value_changed signal, primarily 
960         intended for use with GtkScale
961         (gtk_range_set_increments): new function
962         (gtk_range_set_range): new function with weird name
963         (gtk_range_set_value): new function
964         (gtk_range_get_value): new function
965
966         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
967         from gtk_spin_button_get_value_as_float(). Compat #define
968         added for get_value_as_float.
969
970         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
971
972         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
973
974 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
975
976         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
977
978 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
979
980         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
981
982         * tests/testgtk.c (create_tooltips): Remove usage of
983         gtk_widget_set().
984
985 2001-06-05  Havoc Pennington  <hp@redhat.com>
986
987         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
988
989         Applying patch from Jeff Franks, with function docs added.
990         
991         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
992         remove call to set_mnemonic_widget, change docs a bit.  
993
994         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
995         new function
996
997         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
998         new function
999
1000         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
1001
1002         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
1003         function
1004         (gtk_radio_button_new_with_mnemonic_from_widget): new function
1005
1006         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
1007         new function
1008
1009         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
1010         function        
1011
1012         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
1013         auto-selection of mnemonic widget.
1014
1015 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
1016
1017         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
1018         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
1019         (gtk_tree_view_column_set_min_width): ditto.
1020
1021 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
1022
1023         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
1024         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
1025
1026 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
1027
1028         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
1029         gtk_clist_thaw().
1030
1031 2001-06-04  Havoc Pennington  <hp@pobox.com>
1032
1033         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
1034         releases for buttons 6, 7
1035
1036 2001-06-04  Havoc Pennington  <hp@redhat.com>
1037
1038         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
1039         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
1040         #55562
1041
1042 2001-06-04  Havoc Pennington  <hp@redhat.com>
1043
1044         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
1045         where text_view->layout == NULL by assuming its size is 0, 
1046         i.e. same as if we haven't done any reflow. Reported by 
1047         Hidetoshi Tajima #55448 
1048
1049 2001-06-04  Havoc Pennington  <hp@redhat.com>
1050
1051         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
1052         and 7 for scroll left/right, from Thomas Broyer
1053
1054 2001-05-10  Havoc Pennington  <hp@redhat.com>
1055
1056         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
1057         we need to parse the xsetting as if it were an RC file string.
1058
1059         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
1060         value of palette from settings, not from static variable
1061
1062         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
1063         xsettings translation table
1064
1065         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
1066         hardcoding the toolbar style conflicts with new customizable 
1067         toolbar style philosophy
1068         (gtk_toolbar_class_init): add settings for default toolbar style;
1069         these are used unless the app specifically forces a toolbar style
1070
1071         * gtk/gtksettings.c (settings_install_property_parser): only
1072         return at the start if we warn and parser == NULL
1073
1074         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
1075         palette changed handler so we don't notify dead color selections
1076
1077         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
1078         xthickness/ythickness of 0 or 1 properly 
1079         (gtk_default_draw_resize_grip): clear the background behind the
1080         resize grips, and align to bottom right if we square the 
1081         area to be drawn.
1082
1083         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
1084         statusbar label to 1, so it doesn't make toplevels resize oddly
1085         (gtk_statusbar_size_request): add grip size to request
1086         (gtk_statusbar_size_allocate): hack so the hbox still works with 
1087         the grip size in the request
1088
1089         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
1090         bug where showing all on a toplevel makes the toolbar 
1091         button text appear despite the toolbar mode
1092
1093         * gtk/gtkmenubar.c: add internal padding style property
1094
1095         * gtk/gtktoolbar.c: Add internal padding style property; add
1096         shadow type style property
1097
1098         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
1099         state; and put Container::border_width outside the frame
1100
1101         * gtk/gtktextview.c: don't draw focus rectangle if we're in
1102         interior focus mode, we just use blinking cursor
1103
1104 2001-06-04  Havoc Pennington  <hp@redhat.com>
1105
1106         * configure.in: Make gdk-pixbuf have same version number as GTK
1107
1108 2001-06-04  Havoc Pennington  <hp@redhat.com>
1109
1110         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
1111         digits greater than 6. If there actually are limits (which there
1112         likely aren't), should clamp to them not warn.
1113         (gtk_spin_button_new_with_range): don't take log of 0
1114         (gtk_spin_button_size_request): use digits to compute size
1115         request, rather than step increment.
1116
1117         * tests/testgtk.c (create_spins): test larger values of digits
1118         
1119         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
1120         font on map not expose, so we don't get weirdness during scrolling
1121
1122 2001-06-04  Havoc Pennington  <hp@redhat.com>
1123
1124         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
1125         Sam Solon, bug #54577, update value even if not drawable.
1126
1127 2001-06-04  Havoc Pennington  <hp@redhat.com>
1128
1129         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
1130         SCROLL_LEFT, reported by Thomas Broyer.
1131
1132 2001-06-04  Havoc Pennington  <hp@redhat.com>
1133
1134         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
1135         Process updates immediately, to prevent funny lag effect
1136         when scrolling, at some mild potential efficiency cost.
1137
1138 2001-06-04  Havoc Pennington  <hp@redhat.com>
1139
1140         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
1141         slider on the click.
1142
1143 2001-06-03  Havoc Pennington  <hp@pobox.com>
1144
1145         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
1146         hscale/vscale details, so we can use it for scrollbar as well.
1147
1148         * tests/testgtk.c (reformat_value): honor digits from GtkScale
1149
1150         * gtk/gtkenums.h (GtkTroughType): Remove this enum
1151         (GtkScrollType): add START and END from GtkTroughType
1152
1153         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
1154         its x/y arguments
1155
1156         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
1157         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
1158         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
1159         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
1160         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
1161
1162         Notable changes in the process:
1163          
1164         - stepper_size style property is the height for vertical 
1165           ranges, width for horizontal; the other dimension matches
1166           the trough size
1167         - add ability to do NeXT-style steppers (and several other styles
1168           that don't make any sense)
1169         - added min_slider_length, fixed_slider_length properties to
1170           GtkScrollbar
1171         - cleaned some private (or at least useless) functions out of
1172           gtkscale.h    
1173         - moved bindings to GtkScale from subclasses, even arrow keys,
1174           since blind users don't know scale orientation.
1175         - change move_slider action signal to use new GtkScrollType,
1176           remove GtkTroughType argument
1177         - digits rounds the values a range will input to the given 
1178           number of decimals, but will not try to force adjustment 
1179           values set by other controllers. That is, we no longer
1180           modify adjustment->value inside a value_changed handler.
1181         - added getters for GtkScale setters
1182         - middle-click begins a slider drag
1183         
1184 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
1185
1186         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
1187         getting the focus code to work.
1188         (gtk_tree_view_class_init): Add a bunch of keybindings.
1189
1190         * gtk/gtktreeviewcolumn.c
1191         (gtk_tree_view_column_set_cell_data_func):
1192         s/GtkCellDataFunc/GtkTreeCellDataFunc.
1193         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
1194         of "properties_changed" to help justify the death of the latter
1195         signal. (-:
1196
1197         * tests/testtreefocus.c (main): Let some columns be focussable to
1198         test focus better.
1199
1200 2001-06-01  Havoc Pennington  <hp@redhat.com>
1201
1202         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
1203         
1204         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
1205         overwrite in overwrite mode if we already deleted the selection
1206         and replaced it with new text.  
1207
1208         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
1209         selection to an empty range, clear the clipboard if we owned it.
1210         (gtk_label_set_selectable): give up selection if we become
1211         unselectable.
1212         (gtk_label_state_changed): override state changed to unselect text
1213         when insensitive
1214         (get_text_callback): add paranoia check that indexes aren't
1215         outside of label->text
1216         (gtk_label_select_region): make -1 for start_offset mean "end of
1217         label," for consistency with GtkEditable
1218
1219         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
1220         GTK_DIALOG_NO_SEPARATOR flag
1221
1222 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
1223
1224         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
1225         notifications on non-existant "enable_arrow_keys".
1226         (#53753, Skip Montanaro)
1227
1228 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
1229
1230         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
1231         GDK_TYPE_RECTANGLE.
1232
1233         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
1234         of allocation argument be GDK_TYPE_RECTANGLE.
1235
1236 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
1237
1238         * gtk/gtkoptionmenu.c: Account for the fact that the border
1239         width is _outside_ the window. (Fixes #54585, bug found
1240         by Bastien Nocera.)
1241
1242 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
1243
1244         * gtk/gtksettings.c (gtk_settings_get_property): Validate
1245         value from GDK settings against parameter spec.
1246
1247         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
1248         to temporary values and use g_value_transform(), since
1249         thinking that GValue was going to be easy or efficient
1250         to use was, of course, a mistake.
1251
1252         * gtk/gtksettings.c: Add cursor blink setting.
1253         
1254         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
1255
1256         * gtk/gtkentry.c: Add cursor blinking.
1257
1258         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
1259         cursor blink global settings.
1260
1261         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
1262         for :text_position in places where it is missing.
1263
1264 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
1265
1266         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
1267
1268 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
1269
1270         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
1271         not pkg-config. (#51032)
1272
1273         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
1274         (fixes #51952, James Henstridge)
1275         
1276 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
1277
1278         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
1279         Rename to the more correct gtk-go-up.
1280
1281         * gtk/stock-icons/stock_menu_sort_ascending.png:
1282         Added new file.
1283         
1284         * gtk/stock-icons/stock_menu_sort_descending.png:
1285         Changed to show descending instead of ascending.
1286
1287         * gtk/gtkiconfactory.c:
1288         Added menu size icon to sort ascending.
1289
1290         * gtk/stock-icons/Makefile.am:
1291         Added stock_menu_sort_ascending.png.
1292         
1293         * gtk/gtkseparatormenuitem.c:
1294         Use correct typenames.
1295
1296 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
1297
1298         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
1299         gulong as in GSignal.
1300
1301 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
1302
1303         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
1304         instances of GtkCellRenderer in code (all but dnd icon code).
1305         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
1306         there, and I can do multiple Cells per column.
1307
1308         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
1309
1310         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
1311         when model was unreffed prior to removing the row reference.
1312
1313 2001-05-25  Havoc Pennington  <hp@redhat.com>
1314
1315         * gtk/gtkiconfactory.c: fix so that default icons are created if 
1316         you call gtk_stock_list_ids()
1317
1318         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
1319         in list
1320
1321 2001-05-25  Havoc Pennington  <hp@redhat.com>
1322
1323         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
1324         set can render without falling back to missing image icon
1325
1326         * gtk/gtktextview.c (gtk_text_view_size_request): request full
1327         size of text, instead of random values
1328
1329         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
1330         size of tree view, instead of random values
1331
1332         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
1333         image in an appropriate size
1334
1335         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
1336         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
1337
1338         Throughout: fix GTK_STOCK_BUTTON_ instances
1339         
1340         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
1341         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
1342         Add a bunch of new stock items/icons
1343
1344         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
1345         new function, convenience for inserting columns with a data func
1346
1347         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
1348         (_gtk_icon_factory_list_ids): use list of all factories to
1349         generate a list of all known IDs
1350
1351         * gtk/gtkstock.c (gtk_stock_list_ids): replace
1352         gtk_stock_list_items() with a function that returns all IDs known
1353         including those for GtkIconFactory.
1354
1355 2001-05-25  Hans Breuer  <hans@breuer.org>
1356
1357         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
1358         work -> check boxes and radio buttons are drawn now, even on win9x.
1359         Improved line settings a bit, still no clue how to get really dotted
1360         lines on win9x, on NT it's PS_ALTERNATE.
1361
1362         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
1363         GDK_HINT_MIN_SIZE as well
1364
1365         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
1366
1367         * gtk/gtk.def : updated
1368
1369         * gtk/gtktreeprivate.h : change column_drop_func to be a function
1370         pointer not a function pointer pointer
1371
1372         * tests/testdnd.c : include <stdlib.h> for putenv prototype
1373
1374         * tests/testsocket.c : made it compile on win32 again
1375
1376         * tests/makefile.msc : one more test-app uses prop-editor.obj
1377
1378 2001-05-22  Havoc Pennington  <hp@pobox.com>
1379
1380         * gtk/gtkbin.c (gtk_bin_get_child): New function
1381
1382 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
1383
1384         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
1385         to ignore when doing compose processing.
1386
1387 2001-05-22  Joe Shaw  <joe@ximian.com>
1388
1389         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
1390         Simplify as suggested by Havoc. Just get the last iter and work
1391         backward to the tag instead of getting a line and working back from
1392         there. Fixes passing in an invalid offset to
1393         iter_init_from_byte_offset().
1394
1395 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
1396
1397         * gtk/gtktreeview*.h: 
1398         * gtk/gtkcell*.h:
1399         * gtk/gtk*store.h:
1400         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
1401         macros to all objects.
1402
1403 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
1404
1405         * gtk/gtkcellrenderertext.c
1406         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
1407         with very large (TM) amounts of text.  May be moved to
1408         GtkCellRenderer in the future, though I'm not sure it wants to be
1409         this accessible.
1410
1411         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
1412         More sanity brought to this class.  I like it.
1413
1414         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
1415         case.  Kids, don't try this at home.
1416
1417         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
1418         convenience function.
1419
1420         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
1421
1422 2001-05-21  Alexander Larsson  <alexl@redhat.com>
1423
1424         * gtk/gtkfontsel.c:
1425         Added properties. Based on patch by Lee Mallabone.
1426
1427         * gtk/gtkruler.c:
1428         * gtk/gtkhruler.c:
1429         * gtk/gtkvruler.c:
1430         * gtk/gtktext.c:
1431         * gtk/gtktextview.c:
1432         Converted GtkArg to GParam. Based on patches by John Margaglione.
1433
1434         * tests/Makefile.am:
1435         * tests/testtext.c:
1436         Add a property editor to testtext.
1437         
1438 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
1439
1440         * gtk/gtk{h,v,}paned.c: Only show the separator if 
1441
1442         * configure.in: Fixed reversed conditional causing all image
1443         libraries to be linked in.
1444
1445 2001-05-21  Joe Shaw  <joe@ximian.com>
1446
1447         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
1448         that top_y needs to be >= 0.
1449
1450 2001-05-11  Havoc Pennington  <hp@pobox.com>
1451         
1452         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
1453         losing connection to the X server.
1454
1455 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
1456
1457         * configure.in: Start checks for X from pangox/pangoxft
1458         CFLAGS to avoid duplicate libraries.
1459
1460         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
1461
1462         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
1463         to include gobject.
1464         
1465 2001-05-18  Alexander Larsson  <alexl@redhat.com>
1466
1467         * gtk/gtkspinbutton.c:
1468         Convert GtkArgs to GParams. Based on patch by John Margaglione.
1469         Also do size request reasonable for MAXDOUBLE. Previously it printed
1470         the limits to a buffer and overran it. Instead do it using log10() and
1471         limit the width to 10 digits.
1472         
1473         * gtk/gtkwidget.c (gtk_widget_get_property):
1474         Correctly handle setting the parent property to NULL.
1475
1476 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
1477
1478         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
1479         style attributes even if the widget isn't realized.
1480
1481         * demos/gtk-demo/main.c: Use a slightly smaller font.
1482
1483 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
1484
1485         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
1486         This is something that only a widget writer would ever want
1487         to change.
1488
1489         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
1490         gtk_signal_emit_by_name().
1491
1492         * gtk/gtkviewport.c: Fix some warnings.
1493
1494         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
1495         allowing the requisitions of multiple widgets to be grouped
1496         together.
1497
1498         * tests/testgtk.c: Add GtkSizeGroup test
1499
1500         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
1501
1502         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
1503         warnings.
1504
1505         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
1506
1507 2001-04-28  Martin Baulig  <baulig@suse.de>
1508
1509         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
1510         to gtk_image_menu_item_set_icon() and made it work if there's already
1511         an image.
1512         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
1513         (gtk_image_menu_item_new_with_label): New function.
1514
1515 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
1516
1517         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
1518         highlighting code!!!!  The result is okay so long as you don't try
1519         to stress it.  It also highlights a bug in the TextView so it's in
1520         an unproportional font right now until it's fixed.
1521
1522         *demos/gtk-demo/*.c: Clean up code a bit to make it
1523         ugly-parser(TM) friendly. (-:
1524
1525 2001-05-17  Joe Shaw  <joe@ximian.com>
1526
1527         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
1528         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
1529         if it is only partially onscreen.
1530
1531 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
1532
1533         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
1534         not by characters.
1535
1536         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
1537         are not zero or one; that is, when graphemes of multiple characters
1538         are involved.
1539
1540         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
1541         FIXME.
1542
1543 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
1544         
1545         * gtk/gtkbbox.c:
1546         Add properties, based on patch by Lee Mallabone.
1547
1548         * gtk/gtknotebook.c:
1549         * gtk/gtktoolbar.c:
1550         Convert from GtkArg to GParam, based on patch by John Margaglione.
1551         
1552         * gtk/gtkhscale.c:
1553         * gtk/gtkvscale.c:
1554         * gtk/gtkhscrollbar.c:
1555         * gtk/gtkvscrollbar.c:
1556         * gtk/gtkrange.c:
1557         Move adjustment property to GtkRange.
1558
1559         * gtk/gtklabel.c:
1560         Setup mnemonics on property changes
1561
1562         * gtk/gtkwidget.c (gtk_widget_get_property):
1563         GdkExtensionMode is an enum, not a flag. Set it with
1564         g_value_set_enum ().
1565
1566         * tests/prop-editor.c:
1567         Better propery editor.
1568
1569         * tests/testgtk.c:
1570         Add new property test. Pass zero to the property editor to
1571         get properties from all derived types.
1572         
1573 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
1574
1575         * autogen.sh (have_automake): Require libtool-1.4,
1576         automake-1.4p1.
1577
1578         * acinclude.m4: Remove libtool macros.
1579
1580         * gdk-pixbuf/Makefile.am: Add dependencies to loade
1581         modules.
1582
1583         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
1584         for libgdk.
1585
1586         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
1587         libgdk.la for libgtk.
1588
1589         * modules/input/Makefile.am: Make modules have full
1590         dependencies.
1591
1592 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
1593
1594         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
1595         #54699 where paths weren't being checked for correctness.
1596
1597 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
1598
1599         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
1600         in any order you wan, whether or not the column is added to the
1601         tree, or the tree is realized.  Yay!
1602
1603         * gtk/gtktreeviewcolumn.c
1604         (gtk_tree_view_column_setup_sort_column_id_callback): handle
1605         sorting columns a lot saner
1606
1607         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
1608         new function to actually set wether or not a column is
1609         reorderable.
1610
1611         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
1612         if we have 'em.
1613
1614         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
1615         Fix nasty bug where we were showing the button just before
1616         realizing it.  As a result, the parent window was
1617         tree_view->window instead of tree_view->priv->header_window.
1618
1619         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
1620         to let you easily reorder a list or tree.
1621
1622 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
1623
1624         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
1625         from args to properties.
1626
1627 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
1628
1629         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
1630         from args to properties. (#51957)
1631
1632         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
1633         calls to after ->set_property call.
1634
1635 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
1636
1637         * tests/prop-editor.c: Block against redundant changes.
1638
1639         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
1640         properties.
1641
1642 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
1643
1644         * gdk/gdkpixmap.h: Remove creative formatting.
1645
1646 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
1647
1648         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
1649         property API. (#51669)
1650
1651         * gtk/gtkscale.c: Patch from John Margaglione converting to
1652         property API. (#51891)
1653
1654         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
1655         to property API. (#50985)
1656
1657 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
1658
1659         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
1660         buffering state across expose event, so we still call end_paint().
1661
1662 2001-05-11  Alexander Larsson  <alexl@redhat.com>
1663
1664         * gtk/gtkhsv.c (paint_triangle):
1665         Expose the ring in the triangle at the correct place when
1666         exposing just a part of the triangle.
1667
1668         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
1669         Return FALSE, or window focusing will not work.
1670
1671 2001-05-11  Havoc Pennington  <hp@pobox.com>
1672
1673         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
1674         #54144
1675
1676         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
1677         bug #54330
1678
1679 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
1680
1681         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
1682         propagate exposes to NULL child.
1683
1684         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
1685         against not having one of the scrollbars.
1686
1687         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
1688         we don't keep a mnemonic window if we have no mnemonic installed.
1689
1690 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
1691
1692         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
1693         it has the _important_ side effect of initializing a class.
1694
1695 2001-05-10  Alexander Larsson  <alexl@redhat.com>
1696
1697         * gdk/linux-fb/gdkprivate-fb.h:
1698         Make sure you can compile out the implementation/wrapper assert
1699         macros.
1700
1701         * gdk/linux-fb/gdkdrawable-fb2.c:
1702         Check implementation/wrappers, initialize type for pixmap dummys.
1703
1704         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
1705         Hide the cursor if reading from the screen.
1706
1707         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
1708         Fix sign bug in tiling code.
1709
1710         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
1711         Handle background pixmaps.
1712
1713 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
1714
1715         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
1716         function to let user control where columns are dragged.
1717
1718         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
1719         Escape is pressed.
1720
1721 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
1722
1723         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
1724         "columns_changed" signal.
1725         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
1726         motion code to draw arrows to the side if indicator is outside the
1727         widget.
1728         (gtk_tree_view_map_expanded_rows): Implement.
1729
1730 2001-05-07  Alexander Larsson  <alexl@redhat.com>
1731
1732         * demos/testpixbuf-save.c: 
1733         * demos/testpixbuf-drawable.c:
1734         Include gdkfb.h on linux-fb.
1735
1736 2001-05-07  Alexander Larsson  <alexl@redhat.com>
1737
1738         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
1739         New function for getting toplevel window at position.
1740         (gdk_drag_find_window): Use get_toplevel_window () instead
1741         of gdk_window_get_pointer(). (gdk_drag_status): Use
1742         correct context for getting window.
1743
1744         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
1745         g_strdup the atom name.
1746
1747         * gdk/linux-fb/gdkwindow-fb.c:
1748         Costmetic fix.
1749
1750         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
1751         Add code for changing cursor on linux-fb backend (same as
1752         win32).
1753
1754 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
1755
1756         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
1757         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
1758         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
1759         report was not for the development branch of GTK+, but it applies
1760         anyways).
1761
1762 2001-05-04  Havoc Pennington  <hp@redhat.com>
1763
1764         * configure.in: fix some shell typos
1765
1766         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
1767
1768         * gtk/gtkimage.c: handle animations
1769
1770         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
1771         border_width * 2, not just border_width
1772
1773         * gtk/gtkscale.c: add "format_value" signal to allow people
1774         to override the way values are drawn.
1775         (gtk_scale_get_value_size): fix width/height mistake,
1776         and compute size from actual displayed text, not 
1777         from made-up text.
1778
1779         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
1780         signal registration
1781
1782         * tests/testtext.c: Add "Remove all tags" menu item for testing
1783
1784         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
1785
1786         * demos/gtk-demo/main.c (main): add hack so we can find modules
1787         without installing gtk
1788
1789         * demos/gtk-demo/textview.c (insert_text): demo font scaling
1790
1791         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
1792         factor)
1793         (gtk_cell_renderer_text_set_property): remove some bogus
1794         g_object_notify
1795
1796         * gtk/gtktexttag.c: add "scale" property which is a font scaling
1797         factor
1798
1799         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
1800         to layout
1801
1802         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
1803         gtk_text_iter_is_first
1804
1805 2001-01-06  Hans Breuer  <hans@breuer.org>
1806
1807         * gdk/gdk.def : updated exports
1808
1809         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
1810         gdk won't compile anymore
1811  
1812         * gdk/win32/gdkevents-win32.c : initialize ret_val when
1813         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
1814         Improved gdk_flush () to not only do pending drawing operations
1815         but also process all currently pending events. This should make
1816         the behaviour more similar to the X11 version.  
1817
1818         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
1819         option needs to be set even if there is no GDK_GC_BACKGROUND.
1820         (gdk_win32_hdc_get) : use predraw_set_background () independent
1821         of value_mask. This allows to draw dashed lines leaving the original
1822         background intact.
1823
1824         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
1825         after processing, because we can't reuse it as the X11 version does.
1826
1827         * gtk/gtk.def : updated exports
1828
1829         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
1830         would like to get rid of this file again, and use straight
1831         makefile.msc again, as the other Gtk+ subdirs do)
1832
1833         * test/makefile.msc (new file) : build the test apps here
1834
1835 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
1836
1837         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
1838         strike-through setting
1839         (gdk_draw_layout_line_with_colors): Render strike-through
1840
1841 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
1842
1843         * Release 1.3.5
1844
1845         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
1846
1847         * NEWS: Updated
1848
1849         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
1850         Makefile breakage.
1851
1852 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
1853
1854         * demos/gtk-demo/images.c (progressive_timeout): Fix
1855         typo in filename.
1856
1857         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
1858         out FIXME warning; just too annoying.
1859
1860 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
1861
1862         * gdk/linux-fb/gdkcolor-fb.c:
1863         Better error messages.
1864
1865         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
1866         Initialize abs_x and abs_y.
1867         
1868         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
1869         Correct handling of stipple offset.
1870
1871         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
1872         Treat directcolor framebuffers as truecolor.
1873         
1874 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
1875
1876         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
1877         dependency on Atk for accessibility support.
1878
1879         * configure.in **/Makefile.am: Major reworking of substituted
1880         variables for CFLAGS/LIBS to make a lot more sane and 
1881         keep the the compile/link lines a bit shorter.
1882
1883         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
1884
1885 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
1886
1887         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
1888         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
1889         use _gtk_boolean_handled_accumulator.
1890
1891 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
1892
1893         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
1894         to fix things so clicking inside selection leaves cursor
1895         at point where clicked. (#50324)
1896
1897         * gtk/gtksettings.c (gtk_settings_class_init): Restore
1898         sane value for default double click time.
1899
1900         * tests/testtext.c (test_init): Really path to input modules.
1901
1902 2001-05-03  Sven Neumann  <sven@convergence.de>
1903
1904         * demos/testpixbuf-save.c: include target-specific headers as
1905         done in testpixbuf-drawable.c
1906
1907 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
1908
1909         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
1910         new_text_length appropriately when we run into the 
1911         size limit for the entry. (#53445, reported by Jeff Franks)
1912
1913         * tests/testgtk.c (create_entry): Remove most of the
1914         property toggle buttons. Replace with a "Props" button
1915         that brings up a property editor.
1916
1917         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
1918         Split the property editor code out for reuse, improve.
1919
1920 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
1921
1922         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
1923         trap errors around calls to XSetInputFocus since we have
1924         no way of knowing reliably whether we are viewable or
1925         not. (#53947)
1926
1927 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
1928
1929         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
1930         fix bug in dropping columns.  Moving columns now basically works
1931         modula some fine tuning.
1932
1933 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
1934
1935         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
1936         autoscroll support.  It mostly works, but could use some fine
1937         tuning.
1938         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
1939         Actually move the column.
1940
1941 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
1942
1943         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
1944           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
1945           New default theme! A slighly improved version of the 2.0 Raleigh
1946           theme, with Windows-esque focus/drawing default. 
1947           (GtkWidget::interior_focus defaults to TRUE.)
1948
1949         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
1950
1951 2001-04-30  Havoc Pennington  <hp@pobox.com>
1952
1953         * tests/testtext.c (line_numbers_expose): fix to work with
1954         gtk_paint_layout change
1955
1956 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
1957
1958         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
1959           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
1960           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
1961           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
1962
1963         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
1964           with GtkWidget::interior_focus = TRUE better.
1965
1966         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
1967         ::default_outside_border for more flexibility.
1968
1969         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
1970         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
1971         change that had to be made with g_object_get.
1972
1973 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
1974
1975         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
1976         (gtk_tree_view_move_column_after): Clean up interface. 
1977
1978 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
1979
1980         * gtk/gtkpacker.h:
1981         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
1982          to gtkenum.h.
1983
1984         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
1985         handled in switch).
1986
1987         * gtk/Makefile.am:
1988         (gtk.defs): generate enum portions with  glib-mkenums.
1989         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
1990         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
1991         
1992         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
1993         addition.
1994
1995         * docs/Changes-2.0.txt: keep a note on signal handlers now
1996         not getting emitted during the emission they were connected within.
1997
1998 2001-04-28  Havoc Pennington  <hp@pobox.com>
1999
2000         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
2001
2002 2001-04-24  Havoc Pennington  <hp@redhat.com>
2003
2004         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
2005         (gtk_text_layout_move_iter_to_next_line): fix these two for
2006         invisible text, lots of other stuff still hosed.
2007
2008         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
2009         new function, replaces the get/set palette stuff. This function 
2010         is intended for use by libgnomeui which should set the hook to a
2011         thing which sets the palette in GConf, and we need the
2012         GConf-to-xsettings proxy which will result in the change being
2013         propagated back to the GTK app.
2014
2015         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
2016         about unusable signals that it may be because the signal has 
2017         parameters.
2018
2019         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
2020         style, otherwise gtkrc.c won't know to create a new GtkStyle for
2021         it.
2022         (gtk_widget_modify_color_component): call
2023         gtk_widget_modify_style() so the rc style will get copied.
2024         (gtk_widget_modify_font): ditto
2025
2026         * gtk/gtkrc.c: make a couple variables static
2027
2028         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
2029         help button by default, since it does nothing
2030
2031         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
2032         around with UI
2033
2034         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
2035         so we can have tooltips
2036
2037         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
2038         can have tooltips
2039
2040         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
2041         GDK_ENABLE_BROKEN, because its memory behavior is completely
2042         hosed.
2043
2044         * gtk/gtknotebook.c: remove key press handler, replace with
2045         binding set, add numeric keypad support
2046
2047         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
2048
2049         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
2050
2051         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
2052         addition to plain Delete
2053
2054         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
2055         GDK_KP_Enter in addition to GDK_Return
2056
2057         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
2058         activate on entry instead of key press
2059         (gtk_font_selection_on_clist_key_press): get
2060         rid of this signal handler, not needed with new font sel.
2061
2062         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
2063         no-longer-needed emit_stop_by_name(), just return TRUE
2064
2065         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
2066         cruft, this widget is no longer focusable.
2067
2068         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
2069         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
2070         move_slider action signal, add binding set for vscale/hscale, in
2071         the process support numeric keypad
2072
2073         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
2074         make GDK_Return and GDK_KP_Enter activate the entry via 
2075         binding set, instead of hardcoded.
2076
2077 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
2078
2079         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
2080         code.  Some documentation added.
2081
2082 2001-04-27  Havoc Pennington  <hp@redhat.com>
2083
2084         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
2085
2086         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
2087
2088         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
2089         line/para separators
2090         (gtk_entry_create_layout): set single paragraph mode on the layout
2091
2092         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
2093         spacing between the image and label; instead, inside a button box 
2094         the button will get extra space that will go there, but if people 
2095         configure button box for 0 chubbiness, then there's no spacing.
2096
2097         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
2098         and min/max size style properties, so people can tune their
2099         chubbiness.
2100
2101         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
2102         functions
2103
2104         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
2105         space_style, and button_relief into style properties, remove
2106         functions for setting them
2107         
2108         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
2109         it back down
2110
2111         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
2112         types from gtk_widget_style_get
2113
2114         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
2115         with a style property.
2116
2117         * gdk/x11/gdkevents-x11.c: namespace the settings
2118
2119         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
2120
2121         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
2122         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
2123         be used. Also, translate doc strings for settings. Also, namespace
2124         the double-click-time property. Also, remove bell properties crap.
2125
2126 2001-04-27  Sven Neumann  <sven@gimp.org>
2127
2128         * Makefile.am: before creating links, check if pkg-config files
2129         exist for the default target. Otherwise link to the pkg-config files
2130         that got installed with this build.
2131
2132 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
2133
2134         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
2135         dragging code.  Revealed some (potential) GdkWindow bugs.
2136
2137         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
2138         _gdk_window_init_position to the end of reparent to fix the case
2139         of reparenting when new_x != old_x and new_y != old_y.
2140
2141 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
2142
2143         * gtk/gtkentry.c (strstr_len): Fix optimization that
2144         was correct for the use here, but completely incorrect
2145         in general.
2146
2147 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
2148
2149         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
2150         until patch adding gtk_window_set_size() is recommitted. 
2151
2152         * **Makefile.am configure.in gdk/x11/gdkim-11.c
2153           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
2154           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
2155           (#10784)
2156
2157 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
2158
2159         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
2160         window == NULL in a number of cases.
2161
2162         * tests/testdnd.c: Set module path for gdk-pixbuf.
2163
2164 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
2165
2166         * gtk/Makefile.am xembed.h: File containing #defines
2167         for XEMBED protocol.
2168
2169         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
2170
2171         - Change protocol from old plug/socket specific protocol
2172           to XEMBED draft
2173         - Various fixes to work with GTK+-2.0
2174
2175         Still quite a bit of work to do here to handle initiation
2176         from the socket side (as specified by XEMBED), to handle
2177         the more advanced features of XEMBED, and to figure out
2178         a good way to handle same-app embedding with less overhead
2179         than using full XEMBED.
2180
2181 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
2182
2183         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
2184         track of whether the toplevel has the focus; only send
2185         focus-in events to the focus widget when the window
2186         actually has the focus.
2187
2188 2001-04-25  Havoc Pennington  <hp@pobox.com>
2189
2190         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
2191         were still in the header
2192
2193 2001-04-24  Alexander Larsson  <alexl@redhat.com>
2194
2195         * gtk/gtkclist.[ch]:
2196         * gtk/gtkctree.c:
2197         When there is a row highlighted for D'n'D it must alse
2198         be painted hightlighted on exposes. Otherwise exposes from
2199         the icon being dragged will mess up the hightlight.
2200
2201         * gtk/gtkfontsel.c:
2202         Don't recenter selected font when exposing the font family
2203         clist. This means you can now actually scroll the font family
2204         list.
2205
2206         * gtk/gtknotebook.c:
2207         Fix focus movement on scrolling tabs that are placed on the left
2208         and right.
2209
2210 2001-04-21  Havoc Pennington  <hp@pobox.com>
2211
2212         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
2213         empty/invisible lines.
2214
2215         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
2216         (gtk_text_iter_set_visible_line_index): new functions to set
2217         indexes excluding invisible text
2218
2219         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
2220         index
2221
2222         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
2223         (gtk_text_iter_get_visible_line_offset): new functions to 
2224         get indexes excluding invisible text
2225
2226         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
2227         bunch of extra padding that served no purpose
2228
2229         * gtk/gtkdialog.c: Make all the spacings configurable via style
2230         properties, for chubbiness configuration in themes
2231
2232         * tests/testtext.c: fix path to the immodules.
2233         
2234 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
2235
2236         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
2237         got munched by #endif.
2238
2239         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
2240
2241         * gtk/gtktreeview.c: Refactored code to clean up a number of
2242         events.
2243
2244         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
2245         values to make consistent with other functions.  Spotted by Jeff
2246         Franks <jcf@tpg.com.au>.
2247
2248         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
2249         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
2250
2251 2001-04-23  Sven Neumann  <sven@gimp.org>
2252
2253         * gtk/Makefile.am
2254         * gtk/gtkplug.c
2255         * gtk/gtksocket.c: on request of Owen, reverted my last change 
2256         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
2257
2258 2001-04-23  Sven Neumann  <sven@gimp.org>
2259
2260         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
2261         compile for non-X11 targets again
2262
2263 2001-04-20  Alexander Larsson  <alexl@redhat.com>
2264
2265         * gtk/gtkcolorsel.[ch]:
2266         API Change. Take GdkColor arguments instead of gdouble *.
2267         Leave the old gtk_color_selection_set_color for compatibility,
2268         but marked deprecated.
2269         Do correct rounding when converting RGB <-> HSV.
2270         
2271         * gtk/gtkcolorseldialog.c:
2272         * tests/testgtk.c:
2273         Use new GtkColorSelection API.
2274
2275         * gtk/gtkhsv.c:
2276         Fix problem selecting colors in triangle when Hue is 330.
2277         Fix some black dots around the HSB triangle.
2278         
2279         * gtk/gtkfilesel.c:
2280         return FALSE from the focus_in_event handler to fix focus problems.
2281
2282 2001-04-18  Havoc Pennington  <hp@redhat.com>
2283
2284         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
2285         set, so keybindings are configurable    
2286         (gtk_window_activate_default): Change to activate the focus widget
2287         instead if there's a focus widget, to be consistent with the
2288         behavior that previously existed in key_press_event
2289
2290 2001-04-18  Havoc Pennington  <hp@redhat.com>
2291
2292         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
2293
2294 2001-04-18  Havoc Pennington  <hp@redhat.com>
2295
2296         Close bug #50615:
2297         
2298         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
2299         the layout
2300
2301         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
2302
2303         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
2304
2305         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
2306         
2307         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
2308         to blue for base, in addition to bg
2309         
2310 2001-04-18  Havoc Pennington  <hp@redhat.com>
2311
2312         * tests/testgtk.c (create_image): allow shrinking the image window
2313         to test that we clip to allocation.
2314
2315         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
2316         #9845
2317
2318         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
2319
2320 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
2321
2322         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
2323         mode on shm segments to 0600. We'll see who complains.
2324
2325         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
2326         _gdk_windowing_window_destroy() AFTER recursing through
2327         children.
2328
2329         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
2330         testsocket_child on X.
2331
2332         * tests/testsocket[_child].c: Fix uses of
2333         gtk_window_get_default_accel_group().
2334
2335         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
2336
2337         * gdk/gdkimage.c: (gdk_image_get):
2338         Deal with the possibility that XGetImage() might return NULL.
2339         Allocate the GdkImagePrivate structure only after XGetImage()
2340         succeeds in order not to dereference a NULL ximage pointer.  This
2341         prevents a core dump when XGetImage() fails - which is unlikely,
2342         but can happen due to race conditions accessing the geometries of
2343         drawables.  An x error will still be triggered, but the gdk image
2344         wrapper at least wont seg fault.
2345         
2346 2001-04-18  Havoc Pennington  <hp@redhat.com>
2347
2348         * gtk/gtkimage.c: fix to properly queue resizes when the image is
2349         set
2350
2351         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
2352         if the insertion point isn't editable
2353
2354         * demos/gtk-demo/images.c: Added a GtkImage demo
2355
2356         * demos/gtk-demo/drawingarea.c: drawing area demo
2357         
2358         * demos/gtk-demo/menus.c (create_menu): cleanups
2359
2360 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
2361
2362         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
2363           gdk/x11/gdkevents-x11.c: Introduce an extra child
2364         of toplevel windows that serves to hold the focus to
2365         avoid events being delivered to embedded windows.
2366
2367         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
2368         some extra variables to clean up code and reduce the
2369         number of casts.
2370
2371         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
2372         guint for 1 bit bit fields, not gboolean.
2373
2374 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
2375
2376         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
2377         not TRUE. (Fixes #52925)
2378
2379 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
2380
2381         * Released 1.3.4
2382
2383         * NEWS: Updated
2384
2385         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
2386         use GTK_TYPE_ENUM.
2387
2388 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
2389
2390         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
2391
2392         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
2393         names to compatibility #defines so docs work.
2394
2395         * gtk/gtkenums.h: Remove GtkMenuFactoryType
2396
2397         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
2398
2399         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
2400
2401         * tests/testgtkrc: No magenta cursors, please.
2402
2403         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
2404
2405         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
2406         
2407 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
2408
2409         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
2410         grabs, since they are no longer necessary.
2411
2412         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
2413         by signal_connect() and call gtk_button_pressed() rather
2414         than signal_connect_after().
2415
2416         * tests/testgtk.c: Restore radio menu items to combos 
2417         since they'll look OK with Raleigh, and it is easier
2418         than finishing the process of removing them that was
2419         started earlier.
2420
2421 2001-04-16  Hans Breuer  <hans@breuer.org>
2422
2423         * gdk/gdk.def :
2424         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
2425
2426         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
2427         we are interested in the functions return value not the function address
2428         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
2429
2430         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
2431
2432 2001-04-14  Hans Breuer  <hans@breuer.org>
2433
2434         * gdk/gdk.def :
2435         * gdk/makefile.msc : updated
2436
2437         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
2438         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
2439         (the testgtk::text backgound pixmap is drawn again)
2440         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
2441         Win32 Pango change
2442         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
2443
2444         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
2445         Not sure if the returned settings have the right unit, because I couldn't
2446         find any docs for the X version ...
2447
2448         * gtk/gtk.def :
2449         * gtk/makefile.msc.in : updated
2450
2451 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
2452
2453         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
2454         wording problems. (Compared to version from Johannes Stezenbach to
2455         check correctness.)
2456
2457 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
2458
2459         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
2460         this to compile.
2461
2462 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
2463
2464         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
2465         not pixbufpos.
2466
2467         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
2468
2469         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
2470         are unsigned insts, therefore use g_value_set_uint.
2471         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
2472
2473 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
2474
2475         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
2476
2477         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
2478         GTK_TYPE_STRING.
2479
2480         * gtk/gtktreeview.c: New functions to allow initial column
2481         dragging work.
2482
2483         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
2484
2485         * tests/testtreefocus.c: give dave some love.
2486
2487         * tests/testtreesort.c: Modify test to check really long samples.
2488
2489 2001-04-11  Alexander Larsson  <alexl@redhat.com>
2490
2491         * gtk-2.0.m4: Pass pkg-config options
2492         before the other args so it works even if
2493         POSIXLY_CORRECT is set.
2494
2495 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
2496
2497         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
2498         0, interface 0).
2499
2500 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
2501
2502         * gtk/gtkcalendar.c (gtk_calendar_button_press):
2503         check for action_func != NULL
2504
2505 2001-04-04  Sven Neumann  <sven@gimp.org>
2506
2507         * tests/testgtk.c (test_init): corrected path to gtk.immodules
2508
2509 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
2510
2511         * Released Gtk+-1.3.3.
2512
2513 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
2514
2515         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
2516
2517 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
2518
2519         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
2520         files to/from source dir. (if we don't stay in builddir, we
2521         can't reach make-inline-pixbuf.
2522
2523         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
2524         deps.
2525
2526         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
2527         ages 0).
2528
2529 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
2530
2531         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
2532         moved to the GtkTreeSortable interface.
2533
2534         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
2535         Make more efficient (fixes #50262).
2536
2537 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
2538
2539         * NEWS: Updated.
2540
2541         * configure.in: Remove support for uninstalled glib.
2542
2543         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
2544         so as not to stop emission.
2545
2546         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
2547         is no longer supported.
2548
2549         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
2550         into tests, change build order to build modules before
2551         gtk/.
2552
2553         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
2554         to here.
2555
2556 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
2557
2558         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
2559         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
2560         GPatternSpec. this is actually unlikely to cause breakage in
2561         third-party apps since except for gle, pretty much ever caller
2562         passes NULL here.
2563
2564         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
2565
2566         * *.c: use g_pattern_*() API.
2567
2568         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
2569
2570         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
2571         directions aren't passed in.
2572
2573         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
2574         functionality to be usable from gtkstyle.c as well, give precedence
2575         for conversion to user-supplied parsers.
2576         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
2577
2578         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
2579         _gtk_settings_parse_convert() for rcporperty value conversion.
2580
2581 2001-04-03  Alexander Larsson  <alexl@redhat.com>
2582
2583         * gdk/linux-fb/gdkevents-fb.c:
2584         Add empty gdk_setting_get().
2585
2586 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
2587
2588         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
2589         variable names.
2590         
2591         * gtk/makeenums.pl: touch this so enum files get remade.
2592
2593 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
2594
2595         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
2596         work again when not sorted.
2597
2598         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
2599         and "expand_row" signal, closing bug 52578.
2600
2601         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
2602         support.
2603
2604         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
2605         support.
2606
2607 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
2608
2609         * gdk/gdkevents.h: Add GdkEventSetting event for notification
2610         of changes to system settings, gdk_setting_get() to retrieve
2611         a single system setting.
2612
2613         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
2614         to the draft XSETTINGS mechanism.
2615
2616         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
2617         XSETTINGS.
2618
2619         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
2620         of GDK settings changes to the GtkSettings object.
2621
2622         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
2623         double-click-timeout property to GDK.
2624
2625         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
2626         Define GDK boxed types here.
2627
2628         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
2629         gdk/gdkenumtypes.[ch] for enum definitions.
2630
2631         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
2632         * gtk/gtk-boxed.defs: Comment out GDK types
2633         * gtk/gtktypeutils.h: Remove GDK types
2634         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
2635
2636 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
2637
2638         * Applied patch from Ron Steinke to add signal accumulators
2639         so that signals with the convention 'TRUE return means
2640         handled' stop emission on a TRUE return.
2641
2642         * gtk/gtkmain.[ch]: Add private accumulator 
2643         _gtk_boolean_handled_accumulator, used throughout GTK+.
2644         
2645         * gtk/gtkspinbutton.c: Add accumulator for ::output.
2646
2647         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
2648         
2649         * gtk/gtkwidget.c: Add accumulators for event signals,
2650         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
2651         for ::mnemonic-activate.
2652
2653         * gtk/gtkwindow.c: Add accumulator for ::frame_event
2654
2655 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
2656
2657         * gtk/gtkwidget.c: Add missing include.
2658
2659 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
2660
2661         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
2662         marshaller.
2663
2664         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
2665         "changed" signal to "range_changed".
2666
2667         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
2668         removing a tree from one model would remove all trees from that
2669         model.
2670         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
2671         changed signal instead.
2672
2673 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
2674
2675         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
2676         chaining up to parent impl, since we have a INPUT_ONLY
2677         window.
2678
2679         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
2680         foreground color for the cursor.
2681
2682 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
2683
2684         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
2685         param spec when caching property values, since we unref it
2686         later when we free the style.
2687
2688         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
2689         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
2690
2691 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
2692
2693         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
2694         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
2695         stupidity.
2696
2697 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
2698
2699         [ First pass at adding style properties. Still needs some definite
2700         fine-tuning. ]
2701
2702         * gtk/gtkbutton.c: Add ::default_spacing style property.
2703          
2704         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
2705         ::indicator_spacing style properties.
2706
2707         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
2708         style properties.
2709
2710         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
2711         rather than a normal property.
2712
2713         * gtk/gtkwidget.c: Add an ::interior_focus style property to
2714         draw focus inside buttons, in the Windows/Java Metal/etc. style.
2715
2716         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
2717         Honor ::interior_focus.
2718         
2719         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
2720         TRUE.
2721
2722         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
2723         Add ::slider_width, ::trough_border, ::stepper_size,
2724         ::stepper_spacing style properties.
2725
2726         * gtk/gtkscale.[ch] Add ::slider-length style property.
2727
2728 2001-04-02 Alexander Larsson   <alexl@redhat.com>
2729
2730         * gdk/linux-fb/gdkwindow-fb.c:
2731         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
2732         warnings that were spewed on startup.
2733
2734         * gtk/gtkwindow-decorate.c:
2735         gtk_window_reposition -> _gtk_window_reposition
2736
2737 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
2738
2739         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
2740         Add boxed type for GtkRequistion. Use it for ::size-request.
2741
2742         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
2743         Add a new GtkBorder structure useful for geometry properties
2744         for widgets. Add corresponding GTK_TYPE_BORDER.
2745         
2746         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
2747         Support automatic parser selection like
2748         gtk_settings_install_property_parser().
2749
2750         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
2751         functionality for use by gtk_widget_class_install_style_property.
2752         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
2753
2754 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
2755
2756         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
2757         g_param_spec_unichar(). 
2758
2759 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
2760
2761         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
2762         _NET window managers.
2763
2764         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
2765
2766 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
2767
2768         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
2769         bad needs to be nuked, not just deprecated.
2770
2771         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
2772         gtk_widget_popup().
2773
2774         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
2775         
2776         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
2777         widget.
2778         
2779         * docs/Changes-2.0.txt: updates.
2780         
2781 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
2782
2783         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
2784         for (i = 0; i < 100; i ++)
2785           g_print ("I will confirm it compile before committing\n");
2786
2787 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
2788
2789         * gtk/gtktreestore.c: Initial work on implementing the
2790         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
2791
2792 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
2793
2794         * gtk/gtkwidget.c: fixed a bunch of notifications, added
2795         reference counts around emissions where the widget is used afterwards.
2796         added freeze/thaws around multiple properties being notified.
2797         (_gtk_widget_get_aux_info): cleanups.
2798         
2799         * gtk/gtksettings.c (gtk_settings_install_property): provide
2800         default parsing functions for gdkcolor, enums and flags.
2801
2802         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
2803         applied by owen.
2804         backed out gtk_window_get_location(), gtk_window_set_location(),
2805         gtk_window_get_size() and gtk_window_set_size(), these
2806         have to be sorted out wrg x/y/width/height/default_with/default_height
2807         properties.
2808         kept a flag in GtkWindowGeometryInfo to handle user
2809         resetting default sizes.
2810         cleaned up ZVT comments.
2811         bunch of assorted bug fixes, notification fixes.
2812         (_gtk_window_reposition): make this a really internal function.
2813         
2814         * gtk/testgtk.c: fixups.
2815         
2816 2001-03-31  Hans Breuer  <hans@breuer.org>
2817
2818         * config.h.win32.in : disable USE_MMX for msvc build cause
2819         the assembler doesn't fit and is out of my scope. Disable
2820         USE_GMODULE for msvc build as wel. The right way to share
2821         binaries on win32 would be to use libtiff.dll etc. To reduce
2822         installation hassles IMO it's better to include all fileformats
2823         builtin to gdk-pixbuf
2824
2825         * gdk-pixbuf/makefile.msc : new file
2826
2827         * gdk/gdk.def : updated
2828
2829         * gdk/win32/gdkevents-win32.c : don't erase the background if
2830         .no_bg is set. It improves the scrolling (e.g. of testgtk main
2831         buttons
2832         * gdk/win32/gdkgeometry-win32.c : added comment about the above
2833
2834         * gdk/win32/gdkwindow-win32.c : added three new functions like
2835         the X version. Only one is implemented, because the other two
2836         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
2837         be default behaviour on win32 anyway ...
2838
2839         * gtk/gtk.def : updated
2840
2841         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
2842         from where it was built and add an additional rule to automagically
2843         build gtkmarshal.[hc]
2844
2845         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
2846         before array access for the current entry isn't finished
2847
2848         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
2849         use g_return_val_if_fail
2850
2851         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
2852         for the static array, but let the compiler calculate it. It
2853         makes me wonder if gcc isn't capable to catch bugs like this ...
2854
2855 2001-03-31  James Henstridge  <james@daa.com.au>
2856
2857         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
2858         constant "-1" in the aux info structure.
2859
2860 2001-03-30  Alexander Larsson  <alexl@redhat.com>
2861
2862         * gtk/gtkbutton.c (gtk_button_get_property):
2863         * gtk/gtklabel.c:
2864         Remove leaks.
2865         
2866         * gtk/gtkcontainer.c:
2867         * gtk/gtkhscale.c:
2868         * gtk/gtkhscrollbar.c:
2869         * gtk/gtklayout.c:
2870         * gtk/gtkmisc.c:
2871         * gtk/gtkprogress.c:
2872         * gtk/gtkprogressbar.c:
2873         * gtk/gtkrange.c:
2874         * gtk/gtktable.c:
2875         * gtk/gtkviewport.c:
2876         * gtk/gtkvscale.c:
2877         * gtk/gtkvscrollbar.c:
2878         * gtk/gtkwidget.c:
2879         Property patches, based on patches from John Margaglione and Lee Mallabone.
2880
2881 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
2882
2883         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
2884         adjustment. Cleaned redundant preconditions (spin != NULL). Added
2885         inline API function docs.
2886         (gtk_spin_button_new_with_range): New convenience constructor.
2887         (gtk_spin_button_set_increments): New adjustment helper.
2888         (gtk_spin_button_set_range): New adjustment helper.
2889
2890         * gtk/testgtk.c : added test of the new convenince constructor and
2891         value_changed signals.
2892
2893 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
2894
2895         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
2896         listen to the reorder signal.
2897
2898 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
2899
2900         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
2901         to get the aux info structure fo the widget.
2902
2903         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
2904         above function.
2905
2906         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
2907
2908         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
2909         to get the size of the window manager frame, basically the same
2910         code that gdk_window_get_root_origin() had
2911         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
2912
2913         * gtk/gtkwindow.c (gtk_window_set_default_size): use
2914         gdk_window_resize() if the window is realized and resizeable
2915
2916         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
2917         typo so that setting gravity works
2918
2919         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
2920         allocation if auto_shrink is on, even if the default size
2921         has not changed.
2922
2923         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
2924         g_return_if_fail
2925
2926 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
2927
2928         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
2929         reordering/sorting work.  Now pretty much works.
2930
2931         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
2932         reorder mostly work.  Still need to get the parity correct.
2933
2934         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
2935         signal, so I can listen for the sort_column_changed signal so I
2936         can change my "sort_indicator" property.  Cool.
2937
2938 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
2939
2940         [ Patch from Havoc Pennington, hp@redhat.com ]
2941
2942         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
2943         Add functions gdk_window_begin_resize_drag/begin_move_drag
2944         to start resizing or moving a toplevel window. This
2945         is done either using the _NET_WM_MOVERESIZE protocol,
2946         or, if that isn't present, by emulation.
2947
2948         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
2949         to export the above to GTK+-land.
2950
2951         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
2952         
2953         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
2954         Move this function into gdkwindow, since we need it
2955         when implementing fallback resizing.
2956
2957         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
2958         Fix typo when setting gravity.
2959
2960         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
2961         Add an optional (but on by default) resize grip for resizing 
2962         the parent window.
2963
2964 01-03-29  Alexander Larsson  <alexl@redhat.com>
2965
2966         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
2967         Don't return TRUE from the event handler, that blocks all
2968         event signals on the tooltip widget. Now you can press buttons
2969         in toolbars again.
2970
2971 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
2972
2973         * gtk/testtext.c (create_buffer): Add missing NULL on
2974         valist.
2975
2976         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
2977         c-n-p problem with INCONSISTENT property.
2978
2979         [ Patch from Havoc Pennington  <hp@redhat.com> ]
2980
2981         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
2982         hook.
2983
2984         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
2985         signal as a hook for extending the default popup menu
2986
2987         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
2988         use radio menu items for the input method menuitems
2989
2990         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
2991         inserted unicode from Ctrl-Shift-hex input method
2992
2993         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
2994         validatation here, already done at GtkTextBuffer level.
2995
2996         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
2997         popup_menu run action signal and Shift+F10 and Menu keybindings.
2998
2999         * gtk/gtkentry.c: implement a default handler for popup_menu
3000
3001         * gtk/gtktextview.c: implement a default handler for popup_menu
3002
3003         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
3004         from a key event
3005         
3006         * gtk/gtklabel.c: remove "trailer" cruft
3007
3008 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
3009
3010         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
3011         handle reordering of trees.  Seems to mostly work w/ the exception
3012         of the parity flag.
3013
3014         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
3015         signal.
3016
3017 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
3018
3019         * gtk/gtkwidget.h: c++ fixes.
3020
3021 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
3022
3023         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
3024         memory.
3025
3026 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
3027
3028         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
3029         Nils Barth fixing event return values. (#51041)
3030
3031         * gtk/gtkwidget.c: Fix some return values for default
3032         functions.
3033
3034         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
3035         return values for trough_keys functions.
3036
3037         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
3038         value for add_accelerator (shoudl have been a void
3039         return.)
3040
3041         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
3042         Fix return type of EVENT.
3043
3044         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
3045         signal return a boolean.
3046
3047 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
3048
3049         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
3050         reordered signal.
3051
3052         * tests/testtreesort.c (main): fix spelling.
3053
3054 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
3055
3056         * gtk/gtkliststore.c: More work on implementing sortable
3057         interface.
3058
3059 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
3060
3061         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
3062         reference the widgets in the resulting list. (#11821)
3063         This makes this consistent with gtk_container_children.
3064
3065         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
3066         uses of gtk_window_list_toplevels.
3067
3068 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
3069
3070         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
3071         a virtual function to set whether the IM context should use 
3072         the preedit string. (#51922)
3073         
3074 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
3075
3076         * gdk/gdkpango.h: Remove stale FIXME comment.
3077
3078 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
3079
3080         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
3081         Fixed bug that returned NULL if a filename was selected.
3082
3083 2001-03-24  Havoc Pennington  <hp@pobox.com>
3084
3085         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
3086         to contain the word "theme"
3087
3088 2001-03-24  Havoc Pennington  <hp@pobox.com>
3089
3090         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
3091         slower but finer-grained
3092         (gtk_hsv_focus): get initial focus on the ring or triangle 
3093         according to tab direction
3094
3095         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
3096
3097 2001-03-23  Havoc Pennington  <hp@pobox.com>
3098
3099         * gtk/gtkhsv.c: make this somewhat key-navigable
3100
3101         * gtk/gtkfontsel.c: mnemonics
3102
3103         * gtk/gtkgamma.c: mnemonics
3104
3105         * gtk/gtkcolorsel.c: add mnemonics to labels
3106
3107 2001-03-22  Havoc Pennington  <hp@pobox.com>
3108
3109         Applied big patch from Seth Lytle to fix event handler return
3110         values, slightly modified.
3111
3112         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
3113         handled.
3114         (gtk_calendar_key_press): return TRUE for GDK_space triggers
3115         select_day
3116
3117         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
3118         (gtk_clist_button_release): return TRUE if handled
3119
3120         * gtk/gtkcolorsel.c (mouse_release):
3121         (palette_activate): 
3122         (palette_press): 
3123         (palette_new): 
3124         (mouse_press): 
3125         (get_screen_color): 
3126         fixed return type (void to gboolean), return TRUE,
3127         added GTK_SIGNAL_FUNC cast
3128
3129         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
3130         (void to gboolean), and return TRUE
3131         (gtk_combo_button_release): changed return value to TRUE after
3132         gtk_grab_add on combo->popwin
3133
3134         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
3135         collapse or expand
3136
3137         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
3138         button/motion
3139
3140         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
3141         press/release and motion that trigger act
3142
3143         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
3144
3145         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
3146         for GDK_Return
3147         
3148         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
3149         (gtk_list_button_release): return TRUE if selection
3150
3151         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
3152         press
3153
3154         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
3155         (gtk_menu_shell_button_release): chain parent_menu_shell retval
3156
3157         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
3158         nothing triggered
3159         (gtk_notebook_button_release): return TRUE if we do anything
3160
3161         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
3162         (gtk_spin_button_button_release): return TRUE or chained retval
3163
3164         * gtk/gtktext.c (gtk_text_button_press): 
3165         (gtk_text_button_release): return TRUE
3166         (gtk_text_key_press): remove redundant retval code
3167         
3168         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
3169         and sensitive
3170         (gtk_tree_item_subtree_button_click): changed type to gint, and return
3171         TRUE if sensitive
3172
3173         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
3174         return TRUE
3175
3176 2001-03-23  Havoc Pennington  <hp@redhat.com>
3177
3178         * gtk/testgtk.c: fix warnings
3179
3180         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
3181
3182         * gtk/gtktextview.c: fix warnings
3183
3184         * gtk/gtktext.c (find_cursor_at_line): fix warning
3185
3186         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
3187
3188         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
3189         of this function
3190
3191         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
3192         fix warning
3193
3194         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
3195
3196         * gtk/gtkfontsel.c: fix warning
3197
3198         * gtk/gtkcolorsel.c: fix warnings
3199
3200 2001-03-23  Havoc Pennington  <hp@redhat.com>
3201
3202         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
3203
3204         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
3205
3206         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
3207         and deprecated gtk_check_menu_item_set_show_toggle().
3208         
3209         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
3210
3211         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
3212
3213         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
3214
3215 2001-03-23  Havoc Pennington  <hp@redhat.com>
3216
3217         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
3218         some docs
3219
3220 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
3221
3222         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
3223         this.
3224
3225         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
3226         set_cell to set_value
3227
3228         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
3229         set_cell to set_value
3230
3231 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
3232
3233         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
3234         fix braino.
3235         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
3236         support.
3237
3238         * gtk/gtktreeview.c: Addition of initial sortable support.
3239
3240         * gtk/gtktreestore.c: Addition of initial sortable support.
3241
3242         * gtk/gtkliststore.c: Addition of initial sortable support.
3243
3244         * gtk/gtkmarshal.list: yet another marshaller.
3245
3246         * gtk/gtktreedatallist.[ch]: shared code between the store models
3247         for handling sorting headers.
3248
3249 2001-03-22  Havoc Pennington  <hp@redhat.com>
3250
3251         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
3252         (gtk_container_unset_focus_chain): Add ability to override the 
3253         focus chain for a container explicitly
3254
3255 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
3256
3257         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
3258         added PROP_MNEMONIC_WIDGET.
3259
3260         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
3261         (gtk_window_remove_mnemonic): 
3262         (gtk_window_add_mnemonic): fixed assertions.
3263         (gtk_window_activate_mnemonic): constrain modifier checks to those
3264         permitted by gtk_accelerator_get_default_mod_mask().
3265         got rid of gtk_window_get_default_accel_group().
3266
3267         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
3268         activatable widgets either by focussing or a warning.
3269         added a signal accumulator to ::activate_mnemonic which stops the
3270         emission once a handler returned TRUE.
3271
3272 2001-03-22  Havoc Pennington  <hp@pobox.com>
3273
3274         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
3275         the stock item label
3276
3277         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
3278
3279         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
3280
3281         * demos/gtk-demo/*.c: Add mnemonics all over the place
3282
3283         * gtk/gtklabel.h: mark parse_uline deprecated
3284
3285 2001-03-21  Alexander Larsson  <alexl@redhat.com>
3286
3287         * gtk/gtkitemfactory.[ch]:
3288         Add support for stock and normal imagemenuitems.
3289         
3290         * gtk/testgtk.c:
3291         Add some tests for mnemonics, stock toolbars, stock
3292         and image menuitems in itemfactory and gdk_window_scroll.
3293
3294 2001-03-21  Alexander Larsson  <alexl@redhat.com>
3295
3296         * gtk/gtkbutton.[ch]:
3297         * gtk/gtkdialog.c:
3298         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
3299         removed accel_group argument. Renamed gtk_button_new_accel() to
3300         gtk_button_new_with_mnemonic() and removed accel_group argument.
3301
3302         * gtk/gtkcheckbutton.[ch]:
3303         New function gtk_check_button_new_with_mnemonic().
3304
3305         * gtk/gtkentry.c:
3306         Override activate_mnemonic and just grab focus.
3307
3308         * gtk/gtkitemfactory.c:
3309         Don't add menu uline accel group, instead use mnemonics support.
3310
3311         * gtk/gtklabel.[ch]:
3312         New support for mnemonics.
3313
3314         * gtk/gtkmarshal.list:
3315         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
3316
3317         * gtk/gtkmenu.[c]:
3318         * gtkmenushell.c:
3319         Use mnemonics instead of accel groups for uline
3320         support in menu items.
3321         Removed gtk_menu_get_uline_accel_group() and
3322         gtk_menu_ensure_uline_accel_group().
3323
3324         * gtk/gtkmenuitem.c:
3325         Override activate_mnemonic to handle switching between
3326         menu items if there are collisions.
3327         
3328         * gtk/gtknotebook.c:
3329         Connect to activate_mnemonic on the tab_label, so that
3330         activating it switches to that notebook page.
3331
3332         * gtk/gtkwidget.[ch]:
3333         Add activate_mnemonic signal. New function
3334         gtk_widget_activate_mnemonic() to emit it.
3335         Default implementation does activate/grab_focus.
3336
3337         * gtk/gtkwindow.[ch]:
3338         Add support for mnemonics in windows.
3339         New functions:
3340         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
3341         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
3342
3343         * gtk/testgtk.c:
3344         Update to function name changes.
3345         
3346 2001-03-21  Alexander Larsson  <alexl@redhat.com>
3347
3348         * gtk/gtkimagemenuitem.[c]:
3349         Add gtk_image_menu_item_new_from_stock()
3350
3351 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
3352
3353         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
3354         Fix buglet in meeting.
3355
3356 2001-03-19  Havoc Pennington  <hp@redhat.com>
3357
3358         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
3359         add a bunch of accessor functions. This is because we have
3360         reasonable expectations of extending what fields it contains in
3361         the future.
3362
3363         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
3364         changes
3365
3366         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
3367         GtkIconSource   
3368
3369 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
3370
3371         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
3372         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
3373
3374         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
3375           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
3376           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
3377           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
3378         Change float to double everywhere with the exception of 0<->1.0 alignment
3379         and GtkCurve.
3380
3381 2001-03-19  Tor Lillqvist  <tml@iki.fi>
3382
3383         * gdk/win32/gdkdrawable-win32.c
3384         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
3385         output.
3386
3387         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
3388         gdkwin32.h.
3389
3390 2001-03-18  Tor Lillqvist  <tml@iki.fi>
3391
3392         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
3393         print_event_state, print_event): Use preprocessor macro to make
3394         code more compact. Print also GDK_WINDOW_STATE events.
3395         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
3396         
3397         * gtk/gtk.def
3398         * gtk/makefile.mingw.in: Update.
3399
3400         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
3401         to catch also Cygwin.
3402
3403 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
3404
3405         * gtk/gtkspinbutton.[hc]: added rc-style argument
3406         GtkSpinButton::shadow_type.
3407         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
3408         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
3409         rc-style settings.
3410
3411         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
3412
3413         * gtk/gtkwidget.c: quark cleanups.
3414
3415         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
3416         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
3417         to create_rc_style() (we don't do cloning in standard OO sense).
3418         added per rc style properties.
3419         
3420         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
3421         property values and for caching those. some cleanups.
3422         
3423         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
3424         
3425         * gtk/gtksettings.[hc]: new file for global rc-file properties
3426         (at least currently, should get extended to support X properties
3427         and other communication mechanisms).
3428         
3429         * gtk/gtkwidget.[hc]: added style property support:
3430         (gtk_widget_class_install_style_property_parser): install style
3431         property pspec with parser function for rc-file values other
3432         than LONG, DOUBLE or STRING.
3433         (gtk_widget_class_install_style_property): same as above without
3434         parser (parsers are going to be needed quite infrequently).
3435         (gtk_widget_style_get_property): retrive style property value.
3436         (gtk_widget_style_get_valist): same as above with varargs support,
3437         has NOCOPY semantics.
3438         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
3439
3440 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
3441
3442         * demos/gtk-demo/main.c (row_activated_cb): modified to use
3443         "row_activated" signal.
3444
3445         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
3446         stupidity.  Lets actually pass in the row with this signal...
3447
3448 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
3449
3450         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
3451
3452         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
3453
3454         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
3455         everything into the ::destroy function, and freed a lot more.
3456
3457 2001-03-16  Havoc Pennington  <hp@redhat.com>
3458
3459         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
3460         instead of gint16, to avoid overflow issues, since sizes > 16-bit
3461         are now allowed.
3462
3463 2001-03-16  Havoc Pennington  <hp@redhat.com>
3464
3465         * Applied patch from Nils Barth (bug # 51041) to 
3466         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
3467         in various places.
3468
3469 2001-03-15  Havoc Pennington  <hp@redhat.com>
3470         
3471         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
3472         for properties to set on the tag.
3473
3474         * gtk/testtext.c: fixups to reflect create_tag change
3475         
3476         * gtk/gtktexttag.c (gtk_text_tag_set_property):
3477         background/foreground stipple are objects, not boxed.
3478
3479         * demos/gtk-demo/textview.c: intellihancing
3480
3481 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
3482
3483         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
3484         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
3485
3486 2001-03-16  Alexander Larsson  <alexl@redhat.com>
3487
3488         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
3489         Fix sign error with queued region translations.
3490
3491 2001-03-15  HideToshi Tajima  <tajima@happy>
3492
3493         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
3494         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
3495         * gtk/gtkentry.c (update_im_cursor_location): 
3496         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
3497         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
3498         set_cursor_pos to set_cursor_location in GtkInputContext class
3499
3500 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
3501
3502         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
3503         the location of the cell relative to its area.
3504         * gtk/gtkcell*: modified for above change
3505         * gtk/gtktreeview.c: modified for above change.
3506
3507 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
3508
3509         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
3510          (gtk_tree_view_finalize): actually unref the model.  Thanks to
3511         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
3512
3513 2001-03-14  Havoc Pennington  <hp@redhat.com>
3514
3515         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
3516         
3517         * gtk/gtk.h: remove gtkdata.h
3518
3519         * gtk/Makefile.am: remove gtkdata
3520         
3521         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
3522         not "disconnect" on the adjustments.
3523         
3524         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
3525         GtkData
3526
3527         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
3528         not GtkData
3529
3530         * configure.in: handle case where X render exists, but Pango lacks
3531         Xft support.
3532
3533 2001-03-15 Alexander Larsson  <alexl@redhat.com>
3534
3535         * gtk/gtktoolbar.[ch]:
3536         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
3537         to add stock items to toolbars.
3538
3539         * gtk/Makefile.am:
3540         Remove ../gdk/gdkim.h from gdk_headers.
3541
3542 2001-03-15  Sven Neumann  <sven@gimp.org>
3543
3544         * gdk/gdkim.h: removed
3545         
3546         * gdk/gdkprivate.h
3547         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
3548
3549 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
3550
3551         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
3552         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
3553         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
3554         set_cursor_pos() virtual method
3555
3556         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
3557         (gtk_im_context_xim_set_cursor_pos): add implementation for
3558         set_cursor_pos() method
3559
3560         * gtk/gtkentry.c (recompute_idle_func): set current cursor
3561         position to input methods
3562
3563 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
3564
3565         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
3566         code a lot.
3567
3568         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
3569         g_mem_chunk.
3570         (_gtk_tree_data_list_alloc): use g_mem_chunk.
3571         (_gtk_tree_data_list_node_to_value): Fix to switch on
3572         G_TYPE_FUNDAMENTAL.
3573         (_gtk_tree_data_list_value_to_node): Fix to switch on
3574         G_TYPE_FUNDAMENTAL.
3575         (_gtk_tree_data_list_node_copy): Fix to switch on
3576         G_TYPE_FUNDAMENTAL.
3577
3578 2001-03-12  Havoc Pennington  <hp@redhat.com>
3579
3580         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
3581         to convert to new property API. Also, change default_width and
3582         default_height get_property to return 0 as the flag value for
3583         "unset"; -1 is not a valid value for these fields.
3584
3585 2001-03-12  Havoc Pennington  <hp@redhat.com>
3586
3587         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
3588         enum with registration for icon sizes, instead of strings.
3589
3590         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
3591         gtkwidget.c: Fix to reflect GtkIconSize
3592         
3593 2001-03-12  Alexander Larsson  <alexl@redhat.com>
3594
3595         Make GtkFB compile and link.
3596         
3597         * gdk/linux-fb/gdkdrawable-fb2.c:
3598         window->mapped to GDK_WINDOW_IS_MAPPED(). 
3599         
3600         * gdk/linux-fb/gdkwindow-fb.c:
3601         window->mapped to GDK_WINDOW_IS_MAPPED(). 
3602         Added gdk_window_shape_combine_region.
3603         Added assorted placeholders for unimplemented new GdkWindow API calls.
3604
3605 2001-03-12  Alexander Larsson  <alexl@redhat.com>
3606
3607         * gtk/gtkfilesel.c:
3608         Add more test when converting filenames from/to utf-8.
3609         Don't allow entering text in the filename entry which isn't allowed in
3610         a filename. Just beep instead.
3611
3612 2001-03-12  Alexander Larsson  <alexl@redhat.com>
3613
3614         * gtk/gtkclist.c:
3615         Scroll using gdk_window_scroll(). Don't wait for exposes.
3616         Move the column headers in an order that makes them flash less.
3617
3618 2001-03-10  Hans Breuer  <hans@breuer.org>
3619
3620         * gdk/gdk.def : updated
3621
3622         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
3623         to offseting the clip_mask at the right place
3624
3625         * gdk/win32/gdkwindow-win32.c : don't create background brushes
3626         for all the gdkClasses, especially not for the input_only case.
3627         Otherwise flickering wont be avoidable, because we don't get
3628         WM_ERASEBKGND message for these windows.
3629
3630         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
3631         and fixed massive redraw problems apparently triggered by Alexanders 
3632         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
3633         but it seems to work quite well :-)
3634
3635         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
3636         prototype
3637
3638 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
3639
3640         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
3641         (gtk_list_store_set_cell): Fix a stupid typo.
3642
3643 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
3644
3645         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
3646         select_all not work if you're in SINGLE mode (it doesn't make that
3647         much sense, anyway.)
3648
3649         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
3650         handle types more sanely.
3651         (_gtk_tree_data_list_value_to_node): handle types more sanely.
3652         (_gtk_tree_data_list_node_copy): handle types more sanely.
3653
3654         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
3655         GValue better. Converts the type as well.
3656
3657         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
3658         GValue better. Converts the type as well.
3659
3660 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
3661
3662         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
3663         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
3664         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
3665         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
3666
3667         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
3668         gdk_im/gdk_ic.
3669
3670 2001-03-09  Hans Breuer  <hans@breuer.org>
3671
3672         * gdk/gdk.def : updated
3673
3674         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
3675         for their palette
3676
3677         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
3678         removing
3679
3680         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
3681         removing and implemented Havoc's GdkWindow state functions; 
3682         stick/unstick only as no-op, cause I don't know how to emulate 
3683         on win32 ...
3684
3685         * gtk/gtk.def : updated
3686
3687         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
3688
3689         * gtk/gtktypeutils.c : #include <string.h>
3690
3691         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
3692
3693 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
3694
3695         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
3696         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
3697         not a boxed.
3698
3699 2001-03-09  Alexander Larsson  <alexl@redhat.com>
3700
3701         * docs/Changes-2.0.txt:
3702         Document expose event->region change and that gtk_widget_event
3703         doesn't allow passing expose events.
3704
3705         * gdk/gdkevents.h:
3706         Add region to expose event.
3707         
3708         * gdk/gdkevents.c:
3709         Handle event->region in gdk_event_copy() and gdk_event_free().
3710
3711         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
3712         Generate expose_event->region when creating expose events.
3713
3714         * gdk/x11/gdkevents-x11.c:
3715         Generate expose events with regions when translating X events.
3716
3717         * gtk/gtkcontainer.[ch]:
3718         Default expose handler that propagates expose events to NO_WINDOW
3719         children. New function gtk_container_propagate_expose()
3720
3721         * gtk/gtkwidget.[ch]:
3722         Moved gtk_widget_event implementation to gtk_widget_event_internal.
3723         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
3724         expose events. New function gtk_widget_send_expose() to send expose
3725         events. New function gtk_widget_region_intersect() to calculate
3726         window/region intersections.
3727         
3728         * gtk/gtkmain.c (gtk_main_do_event):
3729         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
3730         Use gtk_widget_send_expose() to send expose events.
3731         
3732         * gtk/gtkbin.c:
3733         * gtk/gtkbox.c:
3734         * gtk/gtkfixed.c:
3735         * gtk/gtkimagemenuitem.c:
3736         * gtk/gtklist.c:
3737         * gtk/gtkpacker.c:
3738         * gtk/gtktable.c:
3739         * gtk/gtktree.c:
3740         Remove expose handler, using the default container implementation
3741         instead.
3742         
3743         * gtk/gtkbutton.c:
3744         * gtk/gtkcheckbutton.c:
3745         * gtk/gtkeventbox.c:
3746         * gtk/gtkfixed.c:
3747         * gtk/gtkhandlebox.c:
3748         * gtk/gtklayout.c:
3749         * gtk/gtklistitem.c:
3750         * gtk/gtkmenu.c:
3751         * gtk/gtkmenubar.c:
3752         * gtk/gtkmenuitem.c:
3753         * gtk/gtknotebook.c:
3754         * gtk/gtkoptionmenu.c:
3755         * gtk/gtkpaned.c:
3756         * gtk/gtkscrolledwindow.c:
3757         * gtk/gtktogglebutton.c:
3758         * gtk/gtktoolbar.c:
3759         * gtk/gtktreeitem.c:
3760         * gtk/gtkviewport.c:
3761         Chain expose handler to parent class handler. Use
3762         gtk_container_propagate_expose() to propagate exposes.
3763
3764         * gtk/gtkclist.c (check_exposures):
3765         * gtk/gtktext.c (process_exposes):
3766         Use gtk_widget_send_expose instead of gtk_widget_event.
3767
3768 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
3769
3770         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
3771
3772 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
3773
3774         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
3775         unref the nodes.   Fixes bug #50058.
3776
3777         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
3778         "::ref_iter" to "::ref_node".
3779         (gtk_tree_model_unref_node): change "::unref_iter" to
3780         "::unref_node". Fixes bug #50064.
3781
3782 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
3783
3784         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
3785         support for invisible cells.
3786          (gtk_tree_view_bin_expose): ditto
3787
3788 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
3789
3790         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
3791         on gobjects.
3792
3793         * tests/testtreefocus.c (main): New test file.
3794
3795         * tests/testtreeview.c: update to latest glib changes.
3796
3797         * tests/testtreecolumns.c: update to latest glib changes.
3798
3799 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
3800
3801         * gtk/testgtk.c: re-enabled event watcher emission hooks.
3802
3803 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
3804
3805         * *.c: added accumulator data argument to g_signal_newc()
3806         functions.
3807
3808         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
3809         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
3810         * gtk/treestoretest.c (make_window):
3811         s/g_signal_connect/g_signal_connectc/.
3812
3813         * gtk/gtktextbuffer.c: completed signal arg fixups,
3814         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
3815
3816 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
3817
3818         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
3819         G_CONST_RETURN.
3820
3821         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
3822         ::hierarchy-changed signal when a widget changes
3823         from anchored to unanchored or vice versa.
3824         (anchored means 
3825          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
3826         Use a private flag to keep track of this efficiently.
3827
3828 2001-03-07  Havoc Pennington  <hp@redhat.com>
3829
3830         * gtk/testgtk.c (create_spins): uglify so that size request gets
3831         tested.
3832
3833         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
3834         request on values for upper/lower, completes #6152
3835
3836 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
3837
3838         * Makefile.am: Remove gtk-config-2.0 again.
3839         (Grrrr, pkg-config. And stops make loops.)
3840
3841 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
3842
3843         * gtk/gtksignal.[hc]: removed old emission hook API.
3844         
3845         * docs/Changes-2.0.txt: fixed sections.
3846         
3847         * gtk/gtktextbuffer.c: signal arg fixups.
3848
3849 2001-03-07  Havoc Pennington  <hp@redhat.com>
3850
3851         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
3852
3853         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
3854         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
3855         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
3856         validation and the redraw which is higher priority than the
3857         validation.
3858
3859 2001-03-07  Havoc Pennington  <hp@redhat.com>
3860
3861         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
3862         (gtk_entry_set_property): remove trailer
3863
3864         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
3865         (gtk_entry_get_width_chars): new functions, to set size request to 
3866         a given number of characters
3867
3868         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
3869
3870         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
3871         (gtk_dialog_get_has_separator): new function
3872         (run_delete_handler): fix to not emit "response" signal
3873         because we already did in the delete event handler installed
3874         at dialog creation time.
3875         
3876         * gtk/gtkdialog.h: add a has_separator property,
3877         add GTK_DIALOG_NO_SEPARATOR flag
3878
3879 2001-03-07  Havoc Pennington  <hp@redhat.com>
3880
3881         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
3882         off decorations for a window.
3883
3884         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
3885         changes
3886
3887         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
3888         to get location of PangoLayout inside the label, closes #51198
3889
3890         * gtk/testgtk.c (create_bbox): fix up button box usage
3891
3892         * gtk/testcalendar.c (create_calendar): fix up button box usage
3893
3894         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
3895
3896         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
3897
3898         * gtk/gtkhbbox.h: deprecations
3899
3900         * gtk/gtkvbbox.h: deprecations
3901
3902         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
3903         emulate deprecated gtk_button_box_get_spacing
3904
3905         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
3906         the "set global default" functions
3907         (struct _GtkButtonBox): remove "spacing" field, use the one from 
3908         GtkBox base class
3909
3910         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
3911
3912         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
3913         render the icon, return the missing image icon.
3914
3915         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
3916         image icon if the load fails.   
3917
3918         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
3919         when no image is found; should be the Netscape "missing image"
3920         icon eventually but for now is a random image
3921
3922         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
3923         role for the session manager
3924
3925         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
3926
3927         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
3928         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
3929
3930         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
3931
3932 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
3933
3934         * gtk/*.c: marshaller fixes.
3935         
3936         * gtk/gtkmarshal.list: extreme cleanup.
3937
3938         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
3939         param spec for now.
3940
3941         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
3942         where appliable.
3943
3944         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
3945         special cased autogenerated boxed types from gtktypebuiltins_ids.c
3946         which are not reference counted:
3947         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
3948         PangoFontDescription, GtkTreeIter and GtkTreePath.
3949
3950 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
3951
3952         * gtk/gtktreeselection.h: 
3953         * gtk/gtktreemodel.c:
3954         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
3955         file should be included directly, and gobject/gmarshal.h
3956         as well as gtk/gtkmarshal.h even can't be included directly.
3957
3958         * Makefile.am: grr, install gtk-config-2.0.
3959
3960         * gtk/testgtk.c:
3961         * gtk/simple.c:
3962         * gtk/gtkmenu.c:
3963         * gtk/gtkitemfactory.c: use g_object_connect() instead of
3964         passing "*signal*::*" args to gtk_widget_set().
3965         
3966         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
3967         
3968         * gtk/*.c: removed trailer arg from property setters and getters.
3969         macro fixups.
3970
3971 2001-03-07  Alexander Larsson  <alexl@redhat.com>
3972
3973         * gtk/gtklabel.c (set_markup): Removed warning
3974
3975 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
3976
3977         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
3978         field to allow you to hide cell renderers.
3979
3980         * gtk/gtkcellrenderer.c: Add support for invisible cells.
3981
3982         * gtk/gtktreeview.c: Add support for invisible cells.
3983
3984 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
3985
3986         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
3987         Add "clicked" signal back to columns.
3988
3989         * ChangeLog: remove conflict markers.
3990
3991 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
3992
3993         * gtk/gtkbutton.c: Add animation of activation by, on 
3994         activate, pressing the button, and adding a timeout that 
3995         releases the button after 250ms or on key release and
3996         emits ::clicked. (#51501)
3997
3998         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
3999         action area, we connect to ::clicked instead of ::activate
4000         so the dialog stays up through the animation.
4001
4002 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
4003
4004         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
4005         check the ignore_enter flag for the menu shell that
4006         the item is actually a child of, not for attached
4007         submenus. (#51536)
4008
4009 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
4010
4011         * gtk/gtkmain.c (gtk_propagate_event): Only do special
4012         special key-press grab handling for widgets within
4013         GtkWindows. Otherwise, fall through to normal case.
4014
4015         This prevents key events being sent twice to GtkInvisible
4016         widgets, which can cause all sorts of mischief.
4017
4018 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
4019
4020         * gtk/gtkmain.c (gtk_propagate_event): When a grab
4021         widget is in effect, give the grab widget a first
4022         crack at KEY_PRESS/RELEASE events. (#424)
4023
4024 2001-03-06  James Henstridge  <james@daa.com.au>
4025
4026         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
4027         offset for the window_state_event to point at window_state_event
4028         rather than no_expose_event.
4029
4030 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
4031
4032         * gtk/gtkimmodule.h: fix busted /* comment */
4033
4034 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
4035
4036         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
4037         object properties.
4038
4039 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
4040
4041         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
4042         add object properties.
4043
4044         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
4045         to add object properties.
4046
4047         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
4048         object properties.
4049
4050         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
4051         add object properties.
4052
4053         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
4054         object properties.
4055
4056 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
4057
4058         * gtk/gtktreemodel.c: renamed "child_toggled" to
4059         "has_child_toggled".
4060
4061         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
4062         handle new signal name.
4063
4064         * gtk/gtktreestore.c: Updated to handle new signal name.
4065         * gtk/gtklisttore.c: Updated to handle new signal name.
4066         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
4067
4068 2001-03-05  Alexander Larsson  <alexl@redhat.com>
4069
4070         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
4071         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
4072
4073 2001-03-05  Michael Natterer  <mitch@gimp.org>
4074
4075         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
4076         pixbuf-engine coincidentially also failed to make one of it's
4077         parent_class pointers static, causing overwriting of GtkLabel's
4078         parent_class pointer in pixbuf_style_class_init().
4079         (Will commit the fix to the pixbuf-engine too).
4080
4081 2001-03-05  Alexander Larsson  <alexl@redhat.com>
4082
4083         * gdk/gdkwindow.h:
4084         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
4085         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
4086         gdk_window_set_icon_list for net wmspec functionality.
4087
4088         * gdk/x11/gdkwindow-x11.c:
4089         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
4090         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
4091         gdk_window_set_icon_list.
4092         Added gdk_wmspec_change_state helper function and used it in the code.
4093         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
4094
4095         * gtk/gtkdialog.c (gtk_dialog_init):
4096         Set GDK_WINDOW_TYPE_HINT_DIALOG.
4097
4098         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
4099         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
4100
4101         * gtk/gtkwindow.c:
4102         new function gtk_window_set_type_hint.
4103         On realize, set type hint and modal hint.
4104
4105         * gtk/gtkwindow.h:
4106         Added type_hint field and gtk_window_set_type_hint.
4107
4108 2001-03-05  Alexander Larsson  <alexl@redhat.com>
4109
4110         * gtk/gtklabel.[ch]:
4111         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
4112         New function gtk_label_get_accel_keyval () to get the underline accelerator
4113         of the label. Setting the label pattern overrides other attributes.
4114
4115 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
4116
4117         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
4118         Added missing initializers to gtk_rc_style_init().
4119
4120 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
4121
4122         * gtk/gtktextview.c: fixed bug #51097 about setting 
4123         gtk_text_view_set_border_window_size() if the widget is 
4124         already realized.
4125
4126 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
4127
4128         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
4129
4130         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
4131         comment. Won't do to have duplicated doc comments between
4132         the platform subdirs.
4133
4134 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
4135
4136         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
4137           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
4138
4139         Detectable auto-repeat - make a repeating key generate
4140         press/press/press/release instead of press/release pairs.
4141
4142         If we have Xkb and XkbSetDectableAutoRepeat supports
4143         that, we do it that way. Otherwise, when we get
4144         a release event, we check ahead with XPending to see
4145         if the next key is a KeyPress with the same keycode
4146         and timestamp. (Not 100% reliable, but pretty close.)
4147           
4148 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
4149         
4150         * gtk/gtkmain.c (gtk_propagate_event): Only do special
4151         special key-press grab handling for widgets within
4152         GtkWindows. Otherwise, fall through to normal case.
4153  
4154         This prevents key events being sent twice to GtkInvisible
4155         widgets, which can cause all sorts of mischief.
4156  
4157 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
4158  
4159         * gtk/gtkmain.c (gtk_propagate_event): When a grab
4160         widget is in effect, give the grab widget a first
4161         crack at KEY_PRESS/RELEASE events. (#424)
4162  
4163 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
4164
4165         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
4166         to extend the selection. (Roughly based on patch
4167         from Jay Cox, #50939)
4168
4169         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
4170         to properly handle previous GDK_BUTTON_PRESS. 
4171         (Patch from Jay Cox, #50938)
4172
4173         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
4174         '\0' back along with the deleted text. (#51148)
4175
4176 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
4177
4178         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
4179         the group when extracting it from the X keyboard event.
4180
4181         * modules/input/Makefile.am modules/input/imipa.c: 
4182         Simple module for entering IPA. (Do we need a 
4183         gtk-stupid-input-tricks CVS module?)
4184
4185 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
4186
4187         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
4188         const.
4189
4190         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
4191
4192         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
4193         is no focus widget for the dialog currently, grab the focus as well
4194         as the default.
4195
4196         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
4197         the action area's children to iterate through, not the
4198         dialog's children.
4199
4200 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
4201
4202         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
4203         Add plug-socket tests. (Won't work worth a darn until I commit
4204         the rest of the plug-socket changes, but no reason these
4205         can't go into CVS now.)
4206
4207 2001-03-02  Havoc Pennington  <hp@redhat.com>
4208
4209         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
4210         _gdk_region_get_xrectangles()
4211
4212         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
4213
4214         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
4215
4216         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
4217         function, contributed by Ron Steinke    
4218
4219         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
4220         gdk_net_wm_supports
4221
4222         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
4223         New function, contributed by Ron Steinke
4224
4225         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
4226         used to line up the text in the entry when using the entry for
4227         editable sheet cell hacks
4228
4229         * gtk/testgtk.c (create_entry): test the activate_default setting
4230         on GtkEntry
4231
4232         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
4233         cause the entry to activate the default button for a dialog when 
4234         activated
4235         (gtk_entry_get_activates_default): new function
4236
4237 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
4238
4239         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
4240         Hwang to move call to sync_selection() up a few lines
4241         to before the row list is modified, to fix crash when
4242         removing rows in the undo_selection list.
4243
4244         (Test case provided by Daniel Elstner:
4245
4246         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
4247
4248 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
4249
4250         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
4251         of tree->root_tree in parent_set rather than _map(), 
4252         fixing #50892 in a bit better manner.
4253
4254 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
4255
4256         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
4257
4258 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
4259
4260         * gtk/gtkstyle.c : Remove duplicate fwd decl for
4261         gtk_default_draw_shadow.
4262
4263 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
4264
4265         * gdk/gdkimage.c (gdk_image_new): Remove excess 
4266         warning, make warnings more verbose, treat a error
4267         in shmat as permanent, and don't try again.
4268         (#51163, Ed Randall.)
4269
4270 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
4271
4272         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
4273         delay for the first click before starting to scroll.
4274         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
4275
4276         * gtk/gtktext.c: GtkText should have I-beam cursor. 
4277         (based on gtk-enf-990513-1.patch, Eric Fisher.)
4278
4279 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
4280
4281         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
4282         cleanup to remove some references to unused
4283         ->xoffset, ->yoffset.
4284
4285 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
4286
4287         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
4288         mask. (#51039, fix from Martin Maierhofer)
4289
4290 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
4291
4292         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
4293         for unshifted + and shifted = for non-us keyboards.
4294         Make <Control>+ and <Control>- work as well as 
4295         <Control>KP_Plus, <Control>KP_Minus for recursive
4296         open/close.  (#2682, René Seindal)
4297
4298 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
4299
4300         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
4301         the active menu item before deactivating the menu,
4302         so gtk_menu_popdown doesn't change the history. (#50964)
4303         
4304 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
4305
4306         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
4307         draw lines with text_gc rather than black_gc.
4308         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
4309
4310 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
4311
4312         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
4313         Move handling of buttons fully in gtktreeviewcolumn.  This code is
4314         less interrelated then it was, but it still requires the
4315         GtkTreeView to map it.
4316
4317         * test/testtreecolumn.c: Now I can add a column to one view,
4318         remove it, add it to the another view, remove it, then re-add it
4319         to the first.  Nifty.
4320
4321 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
4322
4323         * docs/tutorial/gtk-tut.sgml: Minor corrections
4324
4325 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
4326
4327         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
4328         GtkRowReference.
4329
4330 2001-02-28  Havoc Pennington  <hp@redhat.com>
4331
4332         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
4333         draw_default
4334         (gtk_widget_draw_focus): remove this function; we could instead
4335         make it just gtk_widget_draw(), but in most cases I think the
4336         result would be broken user code, so think it's better to have
4337         that code not compile and get fixed
4338         (gtk_widget_draw_default): ditto
4339
4340         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
4341         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
4342         
4343         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
4344         widgets lose/get the default, instead of calling draw_default
4345         
4346         * docs/Changes-2.0.txt: note about all this
4347
4348         Then fixed every widget in GTK, I won't list all the filenames.
4349
4350 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
4351
4352         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
4353         _gtk_tree_row_reference_deleted.
4354         (inserted_callback): Proxy out to
4355         _gtk_tree_row_reference_inserted.
4356         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
4357         get around signal emission ordering problem.
4358
4359         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
4360         fix to work with SINGLE 
4361         (_gtk_tree_selection_internal_select_node): Major sanitization on
4362         selections.  SINGLE now seems to work.
4363
4364         * tests/Makefile.am: add testtreecolumn.c:
4365
4366         * tests/testtreecolumn.c: New test.  Mostly points out selection
4367         bugs currently, but will test columns later.
4368
4369         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
4370         selection bug.  I hate touching this code -- it's scary.
4371
4372 2001-02-26  Havoc Pennington  <hp@redhat.com>
4373
4374         * gtk/testgtk.c: test the window state stuff
4375
4376         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
4377         window come to the user's attention as if it were just created
4378         (gtk_window_iconify): new function
4379         (gtk_window_deiconify): new function
4380         (gtk_window_stick): new function
4381         (gtk_window_unstick): new function
4382         (gtk_window_maximize): new function
4383         (gtk_window_unmaximize): new function
4384
4385         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
4386
4387         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
4388
4389         * gdk/x11/gdkevents-x11.c: create window state events when
4390         appropriate
4391         (gdk_wmspec_supported): new function
4392
4393         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
4394         iconification before showing the window
4395         (gdk_window_deiconify): new function
4396         (gdk_window_stick): new function
4397         (gdk_window_unstick): new function
4398         (gdk_window_maximize): new function
4399         (gdk_window_unmaximize): new function
4400
4401         * gdk/gdkwindow.c: store the window state in the window; 
4402         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
4403         window->mapped.
4404         (gdk_window_get_state): return the current window state
4405
4406         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
4407         (gdk_event_get_state): handle GDK_WINDOW_STATE
4408         (gdk_synthesize_window_state): function to create the window state
4409         events
4410
4411         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
4412         event, for changes to "window state" such as maximized, sticky, 
4413         etc.
4414         
4415         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
4416         focuses a window
4417
4418         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
4419         finds out if we support a given WM spec hint
4420
4421 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
4422
4423         * docs/faq/gtk-faq.sgml: New question re memory leaks.
4424
4425 2001-02-25  Hans Breuer  <hans@breuer.org>
4426
4427         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
4428         cause we want to loose those prototypes only in the latter case
4429
4430         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
4431         GdkPixmapImplWin32 because it itsn't derived from it. Use the
4432         impl member variable instead
4433
4434         * gtk/gtk.def : updated
4435
4436         * gtk/gtklist.c : 
4437         * gtk/gtkmenus.c : include <string.h> for memset ()
4438
4439         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
4440         for everthing built here, but for gtk-x.x.dll only. This solves
4441         problem of indifferent gtk type definitions
4442
4443 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
4444
4445         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
4446
4447 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
4448
4449         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
4450         column that is exposed.
4451
4452         (_gtk_tree_view_update_size): Changed name from set_size, and
4453         changed function to do more work, and not force people calling it
4454         to figure out the size.  Simplifies a lot of code elsewhere.
4455
4456 2001-02-23  Alexander Larsson  <alexl@redhat.com>
4457
4458         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
4459         return solid masks for xpms that have no transparent color.
4460         This makes the ..._create_from_xpm... API backwards
4461         compatible.
4462
4463 2001-02-23  Tor Lillqvist  <tml@iki.fi>
4464
4465         * README.win32: Update. Mention the gtk-1-3-win32-production
4466         branch.
4467
4468         * gdk/win32/bdfcursor.c: New file. A program that generates
4469         xcursors.h. Thanks to Stefan Ondrejicka.
4470
4471         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
4472         compact format.
4473
4474         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
4475
4476         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
4477         function, uses xcursors.h.
4478         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
4479         cursor from inline data instead of using LoadCursor() to generate
4480         it from a resource.
4481
4482         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
4483         event, must check the Windows message for mouse button state, as
4484         the GDK event state might not have been built if it is
4485         undelivered. Remove one goto.
4486
4487         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
4488         SetCursor() if the current cursor as returned by GetCursor() is
4489         the window's previous cursor. The ChildWindowFromPoint() test
4490         apparently didn't work correctly.
4491
4492         * gdk/win32/rc/*.cur: Remove.
4493
4494         * gdk/win32/rc/gdk.rc.in: Remove cursors.
4495
4496         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
4497
4498         * gtk/makefile.{mingw,msc}.in: Updates.
4499
4500 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
4501
4502         * gtk/gtktreemodel.h: add functions for signal emission.
4503
4504         * gtk/gtktreestore.c: move to use above functions instead of
4505         g_signal_emit.
4506
4507         * gtk/gtkliststore.c: ditto
4508
4509 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
4510
4511         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
4512         GObject instead of GtkObject.
4513
4514         * gtk/gtkliststore.c: ditto.
4515
4516         * gtk/gtktreemodelsort.c: ditto.
4517
4518         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
4519         GtkTreeModelIface, instead of in each model.
4520
4521 2001-02-21  Havoc Pennington  <hp@redhat.com>
4522
4523         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
4524         unbreak this function
4525
4526         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
4527         properties
4528
4529         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
4530         properties
4531
4532         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
4533         properties
4534
4535         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
4536         mean unset the max length
4537
4538 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
4539
4540         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
4541         Changed name to be set_cell_data_func to make it clear what
4542         the functino does.  Close bug #51069.
4543
4544 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
4545
4546         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
4547         have memory actually freed.  Keeps box running longer.
4548
4549 2001-02-21  Alexander Larsson  <alexl@redhat.com>
4550         
4551         * gtk/gtkseparatormenuitem.[ch]:
4552         Added new menu separator item. The drawing and size handling
4553         is still done in GtkMenuItem, but the API is a bit more sane.
4554         
4555         * gtk/Makefile.am:
4556         Add gtkseparatormenuitem.[ch].
4557
4558         * gtk/gtk.h:
4559         Add gtkseparatormenuitem.h.
4560         
4561         * gtk/gtkentry.c:
4562         * gtk/gtkmenufactory.c:
4563         * gtk/gtktextview.c:
4564         Use the new API for menu separators.
4565         
4566         * demos/gtk-demo/menus.c (create_menu):
4567         Add some GtkSeparatorMenuItem demo code.
4568
4569 2001-02-20  Havoc Pennington  <hp@redhat.com>
4570
4571         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
4572         Lee Mallabone
4573
4574         * gtk/gtkarrow.c: Convert to new property API, patch from 
4575         Lee Mallabone
4576
4577 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
4578
4579         * tests/testtreeview.c (toggled_callback): fix to reflect change
4580         in GtkTreeModelStore.
4581
4582 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
4583
4584         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
4585         function to create an icon set from a pixbuf.
4586
4587 2001-02-20  Alexander Larsson  <alexl@redhat.com>
4588
4589         * gtk/gtkcellrenderertext.[ch]:
4590         Add a "markup" property.
4591
4592         * gtk/treestoretest.c:
4593         Use the markup property, remove some leftover stuff from
4594         GtkTreeModelMapping.
4595
4596 2001-02-20  Alexander Larsson  <alexl@redhat.com>
4597
4598         * gtk/gtklabel.c (gtk_label_set_selectable):
4599         Queue a redraw if the selectable setting was changed.
4600
4601 2001-02-20  Alexander Larsson  <alexl@redhat.com>
4602
4603         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
4604         Actually copy the whole gc, not just the public parts.
4605         
4606         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
4607         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
4608         labels.
4609
4610 2001-02-19  Havoc Pennington  <hp@pobox.com>
4611
4612         * gdk/gdkwindow.c: docs
4613
4614         * gdk/gdkrgb.c: docs
4615
4616         * gdk/gdkregion-generic.c: docs
4617
4618         * gdk/gdkgc.c (gdk_gc_set_values): docs
4619
4620         * gdk/gdkdraw.c: docs
4621
4622         * gdk/gdkdrawable.h: deprecate drawable get/set data
4623
4624 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
4625
4626         * demos/gtk-demo/dialog.c: Add simple new demo.
4627
4628 2001-02-19  Havoc Pennington  <hp@redhat.com>
4629
4630         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
4631         insert_child_anchor signal, bug #50245
4632
4633         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
4634         from create_child_anchor, so the anchor is passed in
4635
4636         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
4637         (_gtk_widget_segment_new): have the child anchor object passed in, 
4638         instead of creating it.
4639
4640         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
4641         to gtk_text_buffer_get_modified
4642
4643 2001-02-19  Havoc Pennington  <hp@redhat.com>
4644
4645         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
4646         changed GLib without fixing GTK
4647
4648         * gtk/gtkrange.h: Rename all the stupid implementation detail 
4649         functions to have an underscore in front. Most of them should 
4650         probably just go away, but for starters don't export them.
4651         Bug #50482
4652
4653 2001-02-19  Havoc Pennington  <hp@redhat.com>
4654
4655         * gdk/gdkcolor.h: test was backward, so deprecated functions were
4656         excluded by default
4657
4658         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
4659         clean up the old code a bit
4660
4661         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
4662         inconsistent state
4663
4664         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
4665         draw inconsistent state
4666
4667         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
4668         (create_menu): add inconsistent test
4669
4670         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
4671         new function
4672         (gtk_check_menu_item_get_inconsistent): new function
4673         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
4674         state (using etched in for now)
4675
4676         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
4677         draw inconsistent state
4678
4679         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
4680         function, used when the user has selected a range of stuff in
4681         different states
4682         (gtk_toggle_button_get_inconsistent): accessor for that
4683         (gtk_toggle_button_paint): draw inconsistent state (etched in?
4684         don't know what else to do)
4685
4686 2001-02-19  Hans Breuer <hans@breuer.org>
4687
4688         * gtk/gtk.def : updated exported symbols
4689
4690         * gtk/makefile.msc.in : updated
4691
4692         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
4693         a colormap, when invoked from testgtk::entry. I'm not sure where
4694         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
4695         avoids immediate crashing ...
4696
4697         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
4698         any objections ?
4699
4700         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
4701         0 parameter. At least msvc doesn't like macros with var args. 
4702         I simply removed the extra 0, was it a feature or a typo ?
4703
4704         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
4705         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
4706         because the value assignment to the internal struct wasn't working.
4707         I'm not absolutely sure. The problem could have been resolved by
4708         changing the "func" declartion in the struct, but was the pointer
4709         to the function pointer intended ?
4710
4711         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
4712
4713         * gdk/gdk.def : updated exported symbols
4714
4715         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
4716         only use SetDIBitsToDevice if there is a palette at the drawable
4717         and the image is GDK_VISUAL_PSEUDO_COLOR
4718
4719         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
4720
4721         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
4722
4723         * gdk/*/makefile.msc : updated
4724
4725 2001-02-19  Havoc Pennington  <hp@redhat.com>
4726
4727         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
4728         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
4729
4730         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
4731         (gdk_key_repeat_restore): nuke
4732
4733         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
4734         (gdk_init_check): no atexit func
4735
4736         * gdk/gdkrgb.h: mark some stuff deprecated
4737
4738         * gdk/gdkcolor.h: mark some stuff deprecated
4739         
4740         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
4741
4742         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
4743
4744 2001-02-16  Havoc Pennington  <hp@redhat.com>
4745
4746         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
4747         scroll steps.
4748
4749         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
4750         steps, and add Ctrl-arrow shortcuts for paging visually as with
4751         HScale, since Page Up and Page Down move logically.
4752
4753         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
4754         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
4755         
4756         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
4757         steps
4758         (gtk_range_scroll): handle the visual steps
4759
4760         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
4761         scroll steps
4762
4763         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
4764         steps, not the logical ones.
4765
4766         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
4767         (scroll_vertical): handle up/down steps
4768
4769 2001-02-19 Alexander Larsson  <alexl@redhat.com>
4770
4771         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
4772         Copy data and free data with free().
4773
4774         * gdk-pixbuf/gdk-pixbuf.c:
4775         * gdk-pixbuf/io-jpeg.c:
4776         * gdk-pixbuf/io-png.c:
4777         Use g_try_malloc/g_free instead malloc/free.
4778         
4779         * gdk-pixbuf/test-gdk-pixbuf.c:
4780         Must... initialize... gobject...
4781         
4782         * gdk-pixbuf/pixops/timescale.c:
4783         * gtk/gtkcalendar.c:
4784         Use g_malloc instead of malloc.
4785         
4786 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
4787
4788         * gtk/testgtkrc:
4789         Comment out property assignments, these don't work yet.
4790
4791 2001-02-17  Havoc Pennington  <hp@pobox.com>
4792
4793         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
4794         bit.
4795
4796 2001-02-17  Havoc Pennington  <hp@pobox.com>
4797
4798         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
4799         shadowed variables that had broken size request in some cases,
4800         leading to bogus tooltips (#50996)
4801
4802 2001-02-06  Jon K Hellan  <hellan@acm.org>
4803
4804         Implement fast browsing of tooltips, bug #50619
4805         
4806         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
4807         and last_popdown
4808         
4809         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
4810         use_sticky_delay and last_popdown.
4811         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
4812         time of popdown.
4813         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
4814         is NULL.
4815         (gtk_tooltips_recently_shown): New static function.  Return true
4816         if < sticky_delay has elapsed since last popdown.
4817         (gtk_tooltips_event_handler): Display window after sticky_delay
4818         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
4819         since last popdown.
4820         
4821 2001-02-17  Havoc Pennington  <hp@pobox.com>
4822
4823         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
4824         instead of (). #6394
4825
4826         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
4827         G_CONST_RETURN, make it return by reference, #50473
4828         
4829 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
4830
4831         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
4832         generated ENTER_NOTIFY event with 0, otherwise not explicitely
4833         setup fields contain garbage (e.g. subwindow, breaking
4834         gdk_drawable_ref() upon event copy).
4835         (gtk_menu_stop_navigating_submenu_cb): same here.
4836
4837         * gtk/gtklist.c (gtk_list_vertical_timeout): 
4838         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
4839         * gtk/gtkclist.c (vertical_timeout): 
4840         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
4841         default-zero-intialization for unions to memset(,0,), as unions are
4842         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
4843         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
4844
4845         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
4846         g_closure_sink() warning.
4847
4848         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
4849         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
4850         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
4851         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
4852         
4853 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
4854
4855         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
4856         gtk_*_store_get, and moved to GtkTreeModel.
4857
4858         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
4859
4860         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
4861
4862         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
4863
4864         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
4865         set the func.
4866
4867         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
4868         freeze/thaw notify between setting all the properties for a cell.
4869
4870         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
4871
4872 2001-02-15  Havoc Pennington  <hp@redhat.com>
4873
4874         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
4875         the X coordinates so they're with respect to the line, rather than 
4876         with respect to the layout.
4877
4878         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
4879         Mallabone
4880
4881         * gtk/testgtk.c (create_range_controls): add vscale tests, 
4882         and inverted test
4883
4884         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
4885         #50806
4886
4887         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
4888
4889         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
4890         gtk_text_iter_is_end
4891
4892         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
4893         rename gtk_text_buffer_get_end_iter
4894
4895         * gtk/testgtk.c (create_labels): Add test for selectable
4896
4897         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
4898         the selection stuff. This code is kind of broken since it doesn't 
4899         use the theme engine.
4900
4901         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
4902         fix infinite loop and y offset problem
4903         (gdk_draw_layout_line_with_colors): fix foreground color handling
4904
4905         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
4906         that makes the label selectable.
4907         
4908         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
4909         layout when the style is set, since fonts etc. could have changed.      
4910
4911 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
4912
4913         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
4914
4915         * gtk/gtktreemodelsimple.[ch]: removed.
4916
4917 2001-02-16  Alexander Larsson  <alexl@redhat.com>
4918
4919         * gtk/gtktreemodelmapping.[ch]:
4920         New files. Implement GtkTreeModelMapping.
4921         
4922         * gtk/Makefile.am:
4923         Add gtktreemodelmapping.[ch].
4924         
4925         * gtk/gtk.h:
4926         Add gtktreemodelmapping.h
4927
4928         * gtk/treestoretest.c:
4929         Test the GtkTreeModelMapping
4930
4931 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
4932
4933         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
4934         have a demo, we might as well pass in real values.  Thanks to
4935         clahey for pointing this out.
4936
4937 2001-02-14  Havoc Pennington  <hp@pobox.com>
4938
4939         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
4940         "static" to a private function
4941         (gtk_image_menu_item_class_init): remove destroy handler,
4942         add "image" object property
4943
4944 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
4945
4946         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
4947         Add a shortcut if the window and the current clip_region doesn't
4948         overlap. This is needed when there are a lot of windows in a
4949         window. The layout test in testgtk is a good test.
4950
4951         * gdk/linux-fb/gdkwindow-fb.c:
4952         Whitespace fix.
4953
4954 2001-02-13  Sven Neumann  <sven@convergence.de>
4955
4956         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
4957
4958 2001-02-13  Alexander Larsson  <alexl@redhat.com>
4959
4960         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
4961         Don't reference last_cursor if it is null. Fixes crash when rotating
4962         the screen before having moved the mouse.
4963
4964         * gdk/linux-fb/gdkcc-fb.c: Zapp!
4965
4966         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
4967
4968         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
4969         when using 90 or 270 degrees rotation.
4970
4971 2001-02-12  Havoc Pennington  <hp@pobox.com>
4972
4973         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
4974         it always set the foreground, even if we were only using
4975         a stipple.
4976         (gdk_draw_layout_line_with_colors): new function, allow
4977         override colors
4978         (gdk_draw_layout_with_colors): new function, allow override
4979         colors
4980         (gdk_pango_layout_line_get_clip_region): function to get the clip
4981         region for a logical text range
4982         (gdk_pango_layout_get_clip_region): get the clip region for a
4983         logical text range
4984
4985         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
4986         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
4987         the right number of arguments.
4988
4989         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
4990         enhance the function to check that node data corresponds to a 
4991         view still belonging to the tree.
4992
4993         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
4994         GtkTreePath
4995         (gtk_tree_view_inserted): ditto
4996         (gtk_tree_view_child_toggled): ditto
4997
4998         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
4999         simplify this code.
5000
5001         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
5002         a PangoAttrList
5003
5004         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
5005
5006         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
5007
5008         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
5009         size in the size request 
5010         (gtk_menu_bar_size_allocate): consider toggle size here
5011
5012         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
5013         that displays a widget in the toggle slot
5014
5015         * gtk/testgtk.c: test GtkImageMenuItem
5016
5017         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
5018         
5019         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
5020         request and allocation
5021
5022         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
5023
5024         * gtk/gtkcheckmenuitem.c
5025         (gtk_check_menu_item_toggle_size_request): ditto
5026         
5027 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
5028
5029         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
5030         reference.
5031
5032         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
5033         and refuse to initialize GTK+ if they fail.
5034
5035 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
5036
5037         * configure.in: Add check for gtk-doc version.
5038
5039 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
5040
5041         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
5042         where the xpad/ypad was only being used on one side!
5043
5044 2001-02-11  Tor Lillqvist  <tml@iki.fi>
5045
5046         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
5047         function, copied from X11 version.
5048
5049         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
5050         DestroyCursor failures. The reason for the problem (despite the
5051         inconsistent messages from GetLastError()) was that
5052         DestroyCursor() cannot be called while a cursor is set in a
5053         window. Set the new cursor first and then destroy the old one.
5054         Thanks to jpe@archaeopteryx.com.
5055
5056         * gdk/win32/gdkcc-win32.c: Remove.
5057
5058         * gdk/win32/Makefile.am: Remove from here, too.
5059         
5060         * gdk/gdk.def
5061         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
5062
5063         * gtk/gtk.def
5064         * gtk/makefile.mingw.in: Updates.
5065
5066 2001-02-08  Havoc Pennington  <hp@redhat.com>
5067
5068         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
5069         add a widget to a bin that already has a child.
5070
5071         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
5072
5073         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
5074         
5075         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
5076
5077         * gdk/gdk.h: remove gdkcc.h
5078
5079         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
5080
5081         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
5082         GdkPixbuf, since the previous implementation was GdkColorContext
5083         dependent.
5084
5085         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
5086         
5087 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
5088
5089         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
5090         a sane value!
5091
5092 2001-02-08  Havoc Pennington  <hp@redhat.com>
5093
5094         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
5095         lighten them.
5096
5097 2001-02-08  Havoc Pennington  <hp@redhat.com>
5098
5099         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
5100         validation idle
5101
5102         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
5103         cell renderer
5104
5105         * demos/pixbuf-demo.c (timeout): remove deprecated
5106         gtk_widget_draw
5107
5108         * demos/testpixbuf-save.c (main): remove deprecated
5109         gtk_drawing_area_size
5110
5111         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
5112         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
5113         at the start of the allocation.
5114         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
5115         unsetup or NULL model.
5116
5117         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
5118         even/odd/sorted cells in the tree view.
5119
5120         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
5121         bugfixes
5122
5123         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
5124         backgrounds with draw_flat_box using different detail for even/odd
5125         rows.
5126
5127         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
5128         row, so we can draw the alternating colors thing
5129
5130         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
5131         property from a synonym property, notify for the synonym.
5132         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
5133         (gtk_text_tag_get_property): Always return the font, even if
5134         all its fields aren't set
5135
5136         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
5137         store the attr list; it leaves us with no way to change attributes
5138         in _render according to the render flags, and no way to implement
5139         get_property. Instead store all the specific text attributes. 
5140         Separate whether an attribute is enabled from its value. Sync all
5141         properties with GtkTextTag, make them all consistent, etc.
5142
5143         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
5144         renderers can highlight the sort row/column     
5145
5146         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
5147         accessor functions to get values; this has the side effect of
5148         showing up which accessor functions were missing. Added those.
5149
5150         * gtk/gtktreeviewcolumn.h: Replace set_justification with
5151         set_alignment, to be consistent with GtkLabel, GtkMisc
5152
5153         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
5154         arrow.
5155
5156         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
5157
5158         * gtk/gtktreesortable.h: updates in here
5159
5160 2001-02-07  Sven Neumann  <sven@convergence.de>
5161
5162         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
5163         pango dimensions after painting the background. We used to draw
5164         gigantic flat boxes here.
5165
5166 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
5167
5168         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
5169         error introduced with earlier commit) (pointed out by
5170         Ollie Lho)
5171
5172 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
5173
5174         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
5175         which are no longer necessary.
5176
5177 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
5178
5179         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
5180
5181 2001-02-04  Tor Lillqvist  <tml@iki.fi>
5182
5183         * gdk/gdk.def
5184         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
5185         Provide dummy implementations.
5186
5187 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
5188
5189         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
5190
5191         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
5192         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
5193         deprecated this function.
5194
5195         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
5196         argument.
5197
5198 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
5199
5200         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
5201
5202 2001-02-03  Havoc Pennington  <hp@pobox.com>
5203
5204         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
5205         Mikael Hermansson with patch from Mikael (if there was a toggle
5206         start one after the first character in the range, this function
5207         was broken). Bug #50380
5208
5209 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
5210
5211         * configure.in: Remove confusing comment about X11.
5212
5213 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
5214
5215         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
5216         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
5217         
5218 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
5219
5220         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
5221         it breaks things on BSD. If you want to compile GTK+ with
5222         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
5223         when configuring, since GTK+ simply can't be "pure ANSI" 
5224         in the header files it uses. (#8170, Greg Hudson)
5225
5226 2001-02-02  Havoc Pennington  <hp@redhat.com>
5227
5228         * gtk/gtkwindow.c: docs
5229
5230         * gtk/gtkwidget.c: docs
5231         (gtk_widget_set_colormap): add a reference to the colormap
5232         (gtk_widget_get_default_colormap): add a reference to the colormap
5233
5234         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
5235
5236         * gtk/gtktextiter.c: docs
5237
5238         * gtk/gtkmain.c (gtk_propagate_event): docs
5239
5240         * gtk/gtkpaned.c (gtk_paned_get_position): docs
5241         (gtk_paned_set_position): docs
5242
5243         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
5244         sort interface, no implementation yet.
5245
5246         * demos/testpixbuf.c (new_testrgb_window): replace
5247         gtk_drawing_area_size() with gtk_widget_set_usize()
5248
5249         * demos/testpixbuf-drawable.c (main): ditto
5250         
5251         * gtk/testgtk.c: remove use of GtkStatusbarMsg
5252
5253         * gtk/gtktextbuffer.c: docs
5254
5255         * gtk/gtkstock.c: docs
5256
5257         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
5258
5259         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
5260
5261         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
5262         
5263         * gtk/gtkimage.c: add some docs in here
5264         (gtk_image_size_request): change name of
5265         gtk_widget_render_stock_icon
5266         (gtk_image_get_icon_set): don't dup returned string
5267         (gtk_image_get_icon_set): don't dup returned string
5268
5269         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
5270         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
5271         and gtkiconfactory.h functions
5272
5273         * gtk/gtkiconfactory.c: add some docs in here
5274
5275         * gtk/gtkmain.c (gtk_get_default_language): document
5276         (gtk_get_current_event): document
5277         (gtk_get_current_event_state): document
5278         (gtk_get_event_widget): document
5279
5280         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
5281
5282         * gtk/gtkcontainer.c: Add some documentation
5283         (gtk_container_add): give a more explanatory warning on adding an
5284         already-parented widget, this is kind of a FAQ and also a common
5285         typo that's easier to debug with a nice warning 
5286
5287         * gtk/gtkcellrenderertoggle.c
5288         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
5289         adding this, it's useless
5290         (gtk_cell_renderer_toggle_set_active): remove
5291         (gtk_cell_renderer_toggle_get_radio): add
5292
5293         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
5294         the NULL cell renderer, that doesn't make any sense to me. 
5295
5296         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
5297         demo code should never use deprecated features.
5298
5299         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
5300         code should never use deprecated features.
5301
5302         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
5303         gtk_widget_queue_clear_area deprecated
5304
5305         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
5306         deprecated
5307
5308         * gtk/gtklabel.h: mark gtk_label_get() deprecated
5309
5310         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
5311         a GdkImage deprecated, replaced by new consistently-named
5312         functions       
5313
5314         * gtk/gtkmain.h: Mark gtk_exit() deprecated
5315
5316         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
5317
5318         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
5319         deprecated
5320
5321         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
5322         so it won't appear in docs and confuse people.
5323
5324         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
5325
5326         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
5327         macros deprecated. (can't mark the type itself deprecated, since
5328         GtkProgressBar is not deprecated and we need the type decl to use
5329         GtkProgressBar)
5330
5331         * gtk/gtkpixmap.h: Mark deprecated
5332
5333         * gtk/gtkoldeditable.h: Mark deprecated
5334
5335         * gtk/gtklist.h: Mark deprecated
5336
5337         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
5338         for anything anymore.
5339
5340         * gtk/gtkctree.h: Mark deprecated
5341
5342         * gtk/gtkclist.h: Mark deprecated
5343
5344         * gtk/gtkpreview.h: Mark deprecated
5345
5346         * gtk/gtkpacker.h: Mark deprecated
5347
5348         * gtk/gtktipsquery.h: Mark deprecated
5349
5350         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
5351
5352         * gtk/gtkvruler.h: Add comment that it will move out of GTK
5353
5354         * gtk/gtkhruler.h: Add comment that it will move out of GTK
5355
5356         * gtk/gtkruler.h: Add comment that it will move out of GTK
5357
5358         * gtk/gtkgamma.h: Add comment that it will move out of GTK
5359
5360         * gtk/gtkcurve.h: Add comment that it will move out of GTK
5361
5362 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
5363
5364         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
5365         gdk_colormap_sync private since it was never exported
5366         in a header file.
5367
5368         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
5369         colormap->colors[] for StaticGray, StaticColor colormaps.
5370
5371         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
5372         was being used as if it was image->bits_per_pixel.
5373
5374         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
5375         for the image in the GdkImage structure since it isn't
5376         reconstructable, and we need it to handle packed types
5377
5378         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
5379         the assumption that on Win32 image->bits_per_pixel == image->depth,
5380         always.
5381
5382         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
5383
5384         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
5385         warning message if no converter can be found. 
5386
5387 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
5388
5389         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
5390         chars to isupper() / tolower(). (#567)
5391
5392         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
5393         to clear up 64-bit warnings. (#567)
5394
5395 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
5396
5397         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
5398         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
5399
5400         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
5401         since some people set $(libdir) separately. (#1290, David Kaelbling)
5402
5403 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
5404
5405         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
5406         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
5407         MAXPATHLEN, but the code here depends on a fixed value.)
5408         (#4524)
5409
5410 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
5411
5412         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
5413         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
5414
5415 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
5416
5417         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
5418         viewable there is no way that moving the node will cause the 
5419         focus row to become not viewable, so omit check on the visibility
5420         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
5421
5422 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
5423
5424         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
5425         selection before inserting new text.
5426
5427 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
5428
5429         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
5430         Make the sensitivity of the reparented child track that of
5431         the original parent menu item. (#34218, David Hodson)
5432
5433         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
5434         the case where the current item is destroyed properly.
5435
5436         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
5437         some edge cases with child-less menuitems.
5438         
5439 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
5440
5441         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
5442         key pop down window. (#12074, Jon K Hellan)
5443
5444 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
5445
5446         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
5447         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
5448         The solution here isn't perfect - you get an extraneous
5449         emission of "toggle", which could conceivably confuse an app,
5450         but better than the current situation. LXR search seems to
5451         indicate that no apps in GNOME CVS connect to "toggle".
5452
5453 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
5454
5455         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
5456         gtk_public_h_sources to directly here to avoid warning when
5457         building srcdir != builddir. (#9656)
5458
5459 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
5460
5461         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
5462         handlers in gtkrange.c return the proper values (TRUE == handled)
5463         (#10316).
5464
5465         This is just the tip of the iceberg, but gtkrange.c is the
5466         most common place where the propagation is problematical,
5467         and also a place where it is almost certainly safe to change
5468         this in the stable branch.
5469
5470         (You don't want right click popups on a range control or anything...)
5471
5472 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
5473
5474         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
5475         area on focus out, even if a background pixmap isn't set.
5476         (#13941)
5477         
5478 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
5479
5480         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
5481         to deal with setting the shape properly when scrolling arrows are
5482         turned on, but not visible because there is sufficient space.
5483         (#13432)
5484
5485 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
5486
5487         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
5488         items with submenus, destroy the item along with the submenu.
5489         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
5490         properly.
5491
5492         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
5493         later.
5494
5495 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
5496
5497         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
5498         the focus widget sometimes wasn't drawn with the default if there
5499         was no default widget.
5500
5501         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
5502         unreference pixmaps. 
5503
5504         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
5505         for some extra safety.
5506
5507 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
5508
5509         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
5510         the text of a cell to the old pointer value better, by
5511         copying the new text before freeing the old text. Some code
5512         cleanup. (#8079, Karl Nelson)
5513
5514 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
5515
5516         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
5517         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
5518
5519 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
5520
5521         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
5522         item from a menu, check to see if it matches 
5523         menu->old_active_menu_item, and if so, unref and clear
5524         old_active_menu_item (Patch from Pavel Cisler)
5525
5526         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
5527         menu_shell->active_menu_item, if it is the child being
5528         removed. (Patch based on that of Gene Ragan, #50337)
5529
5530 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
5531
5532         * gdk/linux-fb/gdkselection-fb.c: 
5533         * gdk/linux-fb/gdkcolor-fb.c: 
5534         * gdk/linux-fb/gdkdrawable-fb2.c: 
5535         * gdk/linux-fb/gdkfont-fb.c: 
5536         * gdk/linux-fb/gdkim-fb.c: 
5537         * gdk/linux-fb/gdkinput.c: 
5538         * gdk/linux-fb/gdkkeyboard-fb.c: 
5539         * gdk/linux-fb/gdkmain-fb.c: 
5540         * gdk/linux-fb/gdkrender-fb.c: 
5541         A bunch of whitespace cleanup.
5542         
5543 2001-01-30  Havoc Pennington  <hp@pobox.com>
5544
5545         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
5546         #ifdef GTK_ENABLE_BROKEN.
5547
5548         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
5549         GTK_ENABLE_BROKEN just before including the broken headers.
5550         
5551         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
5552         deprecated types registered.
5553
5554         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
5555         we have to test the broken stuff.
5556
5557         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
5558         
5559 2001-01-30  Havoc Pennington  <hp@redhat.com>
5560
5561         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
5562         here where prev pointer was set to the wrong thing
5563
5564         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
5565         (gtk_tree_path_is_descendant): new function
5566
5567         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
5568         cached length
5569         (gtk_list_store_get_iter): don't modify iter if we can't get the
5570         path.
5571
5572         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
5573         
5574         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
5575         GtkTreeDragDest
5576
5577         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
5578         was causing segfault
5579
5580         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
5581         pointer to NULL
5582
5583         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
5584
5585         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
5586         on returning FALSE
5587         (gtk_list_store_iter_children): ditto
5588         (gtk_list_store_iter_nth_child): ditto
5589         (gtk_list_store_iter_nth_child): ditto
5590         (gtk_list_store_iter_parent): ditto
5591
5592         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
5593         on iter->user_data != NULL instead of silently accepting it.
5594         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
5595         we are returning TRUE.
5596         (gtk_tree_store_iter_children): ditto
5597         (gtk_tree_store_iter_nth_child): ditto
5598         (gtk_tree_store_iter_parent): ditto
5599         (gtk_tree_store_insert): remove handling of parent->user_data ==
5600         NULL, replace with parent == NULL       
5601
5602         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
5603         and a comment explaining things
5604
5605         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
5606         interface support to GtkTreeStore.
5607
5608         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
5609         FALSE if no prev, fix
5610
5611         * gtk/gtktreeview.c (set_source_row): use a row reference
5612         (set_dest_row): use a row reference
5613
5614 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
5615
5616         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
5617         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
5618         (gtk_tree_selection_select_iter): The same as above.
5619
5620 2001-01-26  Havoc Pennington  <hp@redhat.com>
5621
5622         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
5623         which holds a handle to a specific row (particular set of values
5624         in the model, i.e. pointer-identity row).
5625
5626         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
5627         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
5628         Still need to use it for the src/dest row saved on the drag context.
5629
5630 2001-01-26  Havoc Pennington  <hp@redhat.com>
5631
5632         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
5633
5634         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
5635         not offset by TREE_VIEW_HEADER_HEIGHT
5636         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
5637         TREE_VIEW_HEADER_HEIGHT
5638
5639         * configure.in (included_loaders): for me, --with-included-loaders
5640         generates the error "the specified loader yes does not exist",
5641         i.e. the arg defaults to "yes", so change test for value ""
5642         to test for value "yes", and include all loaders in that case.
5643
5644         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
5645
5646         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
5647         handle TREE_VIEW_VERTICAL_SEPARATOR
5648         (gtk_tree_view_bin_expose): fix to consider the row offset as
5649         pointing halfway into vertical separator.       
5650         (gtk_tree_view_draw_node_focus_rect): ditto
5651
5652         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
5653         --gtk-debug=updates, which causes gdk_window_set_debug_updates
5654         (TRUE) to be called.
5655
5656         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
5657         debug mode where the invalid region is colored in on invalidate,
5658         so you can see the flicker and know whether your redraw code is 
5659         doing a good job.
5660
5661         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
5662         tree window coordinates (clip rect is in tree window coords)
5663
5664         * gtk/Makefile.am: add gtktreednd.[hc]
5665
5666         * gtk/gtkliststore.c: implement gtktreednd interfaces.
5667
5668         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
5669         drag-and-drop data operations on a model (so we can set up tree
5670         drag-and-drop automatically)
5671
5672         * gtk/testgtk.c: Add a window to change sensitivity in the
5673         GtkLabel test; add a way to change the entry frame in GtkEntry
5674         test
5675
5676         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
5677         (gtk_entry_get_has_frame): new functions to remove the frame
5678         around an entry
5679         (gtk_entry_size_request): shrink requisition if no frame
5680         (gtk_entry_draw_focus): don't draw frame if no frame
5681
5682         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
5683         checks inside a cell renderer
5684         (gtk_default_draw_option): ditto for options
5685
5686         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
5687         children from the alignment, not the button
5688         (gtk_tree_view_column_init): ref/sink the column, to emulate
5689         GObject refcounting.
5690
5691         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
5692         
5693         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5694         Use theme functions to draw the toggles 
5695
5696         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
5697
5698         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
5699         GdkPangoAttrEmbossed to use in rendering insensitive text
5700
5701         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
5702
5703         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
5704         using new GDK features
5705         
5706 2001-01-24  Alexander Larsson  <alexl@redhat.com>
5707
5708         * gtk/gtkimage.c:
5709         Splitted gtk_image_clear into gtk_image_clear() and
5710         gtk_image_reset(). Call gtk_image_clear() in ::destroy
5711         to avoid leaks.
5712
5713         * gtk/gtklabel.c (set_markup):
5714         Don't leak text.
5715
5716         * gtk/gtktextlayout.c:
5717         Always free display->shaped_objects.
5718
5719         * gtk/testgtk.c (create_clist):
5720         Don't leak custom style.
5721
5722 2001-01-23  Alexander Larsson  <alexl@redhat.com>
5723
5724         * gtk/gtkcolorsel.c (grab_color_at_mouse):
5725         Don't leak image. Simplify using gdk_colormap_query_color().
5726         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
5727
5728         * linux-fb/gdkcolor-fb.c:
5729         Implemented gdk_colormap_query_color.
5730
5731 2001-01-23  Alexander Larsson  <alexl@redhat.com>
5732
5733         * linux-fb/gdkcursor-fb.c:
5734         Don't leak built-in cursors.
5735
5736         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
5737         Don't leak tmp_points.
5738
5739         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
5740         Don't modify desc. Don't leak font if the PangoFont
5741         isn't found.
5742         
5743         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
5744         Free dash_list.
5745
5746         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
5747         Don't leak string.
5748         
5749 2001-01-20  Havoc Pennington  <hp@pobox.com>
5750
5751         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
5752         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
5753         me, matches Pango
5754
5755 2001-01-22  Havoc Pennington  <hp@redhat.com>
5756
5757         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
5758
5759         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
5760
5761         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
5762         Remove, move back to gdk-pixbuf
5763
5764         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
5765         to all the word functions
5766
5767         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
5768         before doing anything on NULL layout or if we don't have the focus
5769
5770         * gtk/testtext.c (fill_example_buffer): "justification"
5771
5772         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
5773         to be called "justification" not "justify"
5774
5775         * demos/gtk-demo/textview.c (create_tags): "justification"
5776         
5777         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
5778
5779 2001-01-22  Alexander Larsson  <alexl@redhat.com>
5780
5781         * gdk/gdkwindow.c (gdk_window_invalidate_region):
5782         Don't leak visible_region. Use visible_region instead of region.
5783         
5784         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
5785         Don't do extra gdk_drawable_ref(). This is not X.
5786         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
5787         gdk_fb_focused_window is ref:ed.
5788         (gdk_fb_window_send_crossing_events): Watch out for destroyed
5789         windows.
5790
5791 2001-01-22  Alexander Larsson  <alexl@redhat.com>
5792
5793         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
5794         Don't leak the PangoFontDescriptor.
5795
5796 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
5797
5798         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
5799         when not realized.
5800         (gtk_tree_view_scroll_to_cell): Make work when not realized.
5801         (gtk_tree_view_realize): add scroll_to support
5802         (gtk_tree_view_finalize): add a finalize method.  Populate.
5803         (gtk_tree_view_insert_column): ref and sink the column.
5804         (gtk_tree_view_append_column): ref and sink the column.
5805         (gtk_tree_view_queue_draw_node): New function to handle redrawing
5806         individual nodes.  Should make the code much more efficient, if
5807         actually used.
5808
5809 2001-01-19  Havoc Pennington  <hp@redhat.com>
5810
5811         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
5812         byte_offset variable was being used to mean both "offset into
5813         layout" and "offset into buffer line" which was no longer true
5814         with addition of preedit string; fix
5815
5816 2001-01-19  Havoc Pennington  <hp@redhat.com>
5817
5818         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
5819
5820         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
5821         function
5822
5823         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
5824         implement
5825
5826         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
5827         scroll_to_cell, matches TextView scroll functions better
5828         (gtk_tree_view_tree_to_widget_coords): new function
5829         (gtk_tree_view_widget_to_tree_coords): new function
5830         (gtk_tree_view_get_visible_rect): new function
5831         (gtk_tree_view_get_path_at_pos): accept negative coordinates
5832         (gtk_tree_view_draw_node_focus_rect): new function moved from
5833         draw_focus, also, use width of bin_window as width of the focus
5834         rect
5835         (gtk_tree_view_expand_row): fix bug where it didn't recognize
5836         already-expanded rows
5837         (gtk_tree_view_get_cell_rect): new function
5838         (gtk_tree_view_get_path_at_pos): return the click position
5839         relative to the passed-in cell
5840         (gtk_tree_view_set_expander_column): new function
5841
5842         * configure.in: remove gtk-config-2.0 chmod
5843
5844         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
5845         and properly handle drags with targets we don't understand
5846         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
5847         scrolling anyway
5848         (gtk_text_view_drag_drop): stop scrolling here though, and set the
5849         mark invisible
5850
5851         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
5852         function
5853         (gtk_drag_dest_get_target_list): new function
5854         (gtk_drag_dest_set_target_list): new function
5855         
5856         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
5857
5858         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
5859         related to drag-and-drop
5860
5861 2001-01-19  Alexander Larsson  <alexl@redhat.com>
5862
5863         * gdk/linux-fb/gdkprivate-fb.h:
5864         Define EMULATE_GDKFONT.
5865         Add extra pango_font stuff to GfkFontPrivate.
5866         
5867         * gdk/linux-fb/gdkdrawable-fb2.c:
5868         * gdk/linux-fb/gdkfont-fb.c:
5869         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
5870         emulation using PangoFont.
5871
5872 2001-01-17  Havoc Pennington  <hp@pobox.com>
5873
5874         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
5875         all the non-deprecated set_foo functions. Added missing object
5876         properties, and added g_object_notify() to setters. 
5877         Wrote docs.
5878         
5879 2001-01-18  Tor Lillqvist  <tml@iki.fi>
5880
5881         * gtk/gtkmain.c
5882         * gtk/gtkrc.c: (Win32) Use the new
5883         g_win32_get_package_installation_(sub)directory() functions.
5884
5885         * config.h.win32.in: New file.
5886         
5887         * config.h.win32: Removed.
5888
5889         * configure.in: Output config.h.win32.
5890
5891         * Makefile.am: Add it to EXTRA_DIST.
5892
5893         * gtk/gtk.def: Update.
5894
5895 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
5896
5897         * gtk/gtklabel.c (gtk_label_size_request): Set the
5898         attributes onto the PangoLayout even if they are newly
5899         created from label->pattern.
5900
5901 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
5902
5903         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
5904
5905         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
5906         structures in functions. Fixes bug where gtk_dataset_*
5907         was accidentally still being used in one place, causing
5908         every dest side event to be treated independently.
5909
5910         * gtk/gtkdnd.c: Remove last vestages of handling
5911         ::draw (fixes warning)
5912         
5913         * gtk/gtkentry.[ch]: Add drag and drop support.
5914
5915         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
5916         new function gtk_check_drag_threshhold() for checking
5917         to check if (dx,dy) has exceeded the threshhold for starting
5918         a drag and use it everywhere.
5919
5920 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
5921
5922         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
5923         add -I{includedir}/gtk-2.0.
5924
5925         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
5926         gdk/gdk-pixbuf.h: Doc fixups.
5927         
5928         * gtk/gtkobject.h: Remove trailing , from enum
5929
5930 2001-01-17 Alexander Larsson <alexl@redhat.com> 
5931
5932         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
5933         Doh! Mixed up x and y.
5934
5935         * gdk/linux-fb/gdkglobals-fb.c:
5936         Removed gdk_fb_pointer_grab_window_events,
5937         added _gdk_fb_pointer_grab_owner_events and
5938         _gdk_fb_keyboard_grab_owner_events.
5939
5940         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
5941         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
5942         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
5943         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
5944         Send crossing events after ungrab finished.
5945         (gdk_keyboard_grab): Set ..._owner_events
5946         (type_masks): Move out of function.
5947         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
5948         gdk_fb_keyboard_event_window): New functions, return the
5949         window an event should be targeted at. Handles grabs and
5950         event propagation. Can return NULL.
5951         (gdk_event_make): Remove event_mask checking. Now always
5952         returns an event.
5953                 
5954         * gdk/linux-fb/gdkkeyboard-fb.c:
5955         * gdk/linux-fb/gdkproperty-fb.c:
5956         * gdk/linux-fb/gdkselection-fb.c:
5957         Use new event_window/gdk_event_make() behaviour.
5958         
5959         * gdk/linux-fb/gdkmouse-fb.c:
5960         Use new event_window/gdk_event_make() behaviour.
5961         Only send motion events if in the same window.
5962         If grabbed, use cursor from window if sibling of grabbed
5963         window, and cursor from grabbed window otherwise.
5964
5965         * gdk/linux-fb/gdkprivate-fb.h:
5966         Update gdk_fb_window_send_crossing_events, gdk_event_make
5967         and grab varaible declarations. Add gdk_fb_*_event_window().
5968
5969         * gdk/linux-fb/gdkwindow-fb.c:
5970         Use new event_window/gdk_event_make() behaviour.
5971         Keep correct track of focus window.
5972         (gdk_window_set_events): Set all specific button motion masks
5973         if GDK_BUTTON_MOTION_MASK set.
5974
5975         * gtk/gtkdnd.c (gtk_drag_update):
5976         Free info->last_event if gdk_drag_motion returned FALSE.
5977
5978 2001-01-16  Tor Lillqvist  <tml@iki.fi>
5979
5980         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
5981         Eliminate redraws when input-only windows are shown or
5982         hidden. Thanks to jpe@archaeopteryx.com.
5983
5984 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
5985
5986         * docs/faq/gtk-faq.sgml: FAQ update:
5987           - Update to bugzilla
5988           - Add GTK+ and security/SUID/SGID
5989           - Add DnD question
5990
5991 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
5992
5993         * gdk/linux-fb/gdkdnd-fb.c:
5994         Some cleanups.
5995         
5996 2001-01-15  Havoc Pennington  <hp@pobox.com>
5997
5998         * tests/testtreeview.c: add test stuff for CellRendererToggle
5999
6000         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
6001         accessor
6002
6003         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
6004         only toggle on button press (would do release like GtkButton, but
6005         we'd need implicit grab code for treeview cells)
6006
6007 2001-01-16  Tor Lillqvist  <tml@iki.fi>
6008
6009         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
6010
6011         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
6012         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
6013
6014         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
6015         to g_{locale,filename}_{to,from}_utf8 to match current API.
6016
6017         * gtk/makefile.msc.in (gtk_OBJECTS)
6018         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
6019
6020         * gtk/gtk.def: Update.
6021
6022 2001-01-15  Tor Lillqvist  <tml@iki.fi>
6023
6024         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
6025         implementaion that more closely mimics the events that an X server
6026         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
6027         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
6028         with nested preview widgets, for instance, more responsive when
6029         you move the mouse quickly into them.
6030         (find_window_for_pointer_event): Make it actually compile.
6031         (gdk_event_translate): Set send_event to the value of
6032         InSendMessage (). This doesn't really mean the same as X11's
6033         send_event flag, but is close enough, says jpe@archaeopteryx.com
6034
6035 2001-01-15  Alexander Larsson  <alexl@redhat.com>
6036
6037         * gdk/linux-fb/gdkdnd-fb.c:
6038         Implemented drag and drop.
6039         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
6040         when it tries to free and then copy the same event (info->last_event).
6041         I am not sure about why this happens, but will continue looking.
6042
6043 2001-01-15  Alexander Larsson  <alexl@redhat.com>
6044
6045         * gdk/linux-fb/gdkwindow-fb.c:
6046         Use gdk_window_invalidate_rect instead of
6047         gdk_window_invalidate_rect_clear to minimise flashing.
6048         When hiding windows you need to clear the root window though.
6049
6050 2001-01-15  Alexander Larsson  <alexl@redhat.com>
6051
6052         * gdk/linux-fb/gdkdrawable-fb2.c:
6053         For optization, add an full_shapes argument to gdk_fb_clip_region.
6054         If this is false, only the cliprects of the shapes are used.
6055
6056         * gdk/linux-fb/gdkprivate-fb.h:
6057         Export gdk_fb_window_peek_shape.
6058         Add full_shapes to gdk_fb_clip_region.
6059
6060         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
6061         When moving a window, don't clear everything under the it, just the
6062         root window. Makes stuff faster and flash less.
6063         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
6064         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
6065         offset of the shape.
6066         
6067
6068 2001-01-12  Havoc Pennington  <hp@redhat.com>
6069
6070         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
6071         current invalid region, fixes redraw bug while scrolling the 
6072         text widget
6073
6074         * gtk/gtktextview.c, gtk/gtktextview.h:
6075         Rearrange the scrolling/validation/etc. code in a major way, 
6076         so it seems to make sense to me. Probably isn't genuinely that
6077         much better, but...
6078
6079         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
6080         notifies
6081
6082         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
6083
6084 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
6085
6086         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
6087         Hide mouse pointer while rotation. Show it afterwards.
6088
6089 2001-01-12  Alexander Larsson  <alexl@redhat.com>
6090
6091         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
6092         windows in consideration when generating clip region.
6093
6094         * gdk/linux-fb/gdkfb.h:
6095         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
6096
6097         * gdk/linux-fb/gdkprivate-fb.h:
6098         Add shape to GdkWindowFBDatat.
6099         exported gdk_fb_window_get_abs_shape().
6100         removed gdk_fb_draw_lines declaration.
6101
6102         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
6103         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
6104         send focus changes when there is a grabbed window.
6105         (gdk_window_get_pointer): Handle shaped windows.
6106         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
6107         (gdk_fb_window_peek_shape): Returns the shape for a window,
6108         handles GDK_FB_USE_CHILD_SHAPE.
6109         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
6110         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
6111         (gdk_window_shape_combine_mask): Implement.
6112
6113         * gtk/gtkwindow-decorate.c:
6114         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
6115         setting the shape of a window makes the window transparent.
6116
6117 2001-01-11  Havoc Pennington  <hp@redhat.com>
6118
6119         * gtk/gtktreemodelsimple.h: Oops, broke some macros
6120
6121 2001-01-10  Havoc Pennington  <hp@redhat.com>
6122
6123         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
6124         add this function, bug 40251
6125
6126         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
6127         of type macro   
6128
6129 2001-01-11  Alexander Larsson  <alexl@redhat.com>
6130
6131         * acconfig.h:
6132         Added ENABLE_SHADOW_FB
6133
6134         * configure.in:
6135         Added --disable-shadowfb
6136
6137         * gdk/linux-fb/gdkcursor-fb.c:
6138         Update shadowfb when updating cursor
6139
6140         * gdk/linux-fb/gdkdrawable-fb2.c:
6141         Added wrappers for shadowfb that calls  the normal drawable
6142         methods, but calls gdk_shadow_fb_update(bounding box) when
6143         GdkWindows are drawed to.
6144         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
6145         which also returns the bounding box.
6146
6147         * gdk/linux-fb/gdkfb.h:
6148         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
6149
6150         * gdk/linux-fb/gdkgeometry-fb.c:
6151         Update shadowfb when scrolling window.
6152
6153         * gdk/linux-fb/gdkglobals-fb.c:
6154         Add _gdk_fb_screen_angle.
6155         
6156         * gdk/linux-fb/gdkkeyboard-fb.c:
6157         Test code for screen rotation. Shift-F2 in the xlate driver
6158         rotates the screen.
6159
6160         * gdk/linux-fb/gdkmain-fb.c:
6161         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
6162
6163         * gdk/linux-fb/gdkmouse-fb.c:
6164         Use fb_width/height instead of modeinfo.xres/yres.
6165
6166         * gdk/linux-fb/gdkprivate-fb.h:
6167         Added fb_men, fb_width, fb_height & fb_stride. When using
6168         shadow fb these can differ from the framebuffer stuff.
6169         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
6170         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
6171         _gdk_fb_screen_angle. Removed CM, RP.
6172
6173         * gdk/linux-fb/gdkrender-fb.c:
6174         Added code for shadowfb handling and screen rotation using
6175         shadowfb.
6176
6177         * gdk/linux-fb/gdkwindow-fb.c:
6178         Use fb_mem, fb_stride, fb_width, fb_height.
6179         Added recompute_rowstride to reset the rowstride of all windows.
6180         Added gdk_fb_recompute_all() which recomputes rootwindow size,
6181         window abs positions and window rowstrides. Usefull when the
6182         rotation has changed.
6183
6184 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
6185
6186         * docs/faq/gtk-faq.sgml: update to make web site updating easier
6187
6188 2001-01-10  Havoc Pennington  <hp@redhat.com>
6189
6190         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
6191         where sibling == iter
6192         (gtk_tree_store_insert_after): handle sibling == iter
6193         (gtk_tree_store_prepend): remove stamp checks
6194         (gtk_tree_store_insert_before): ditto
6195         (gtk_tree_store_append): ditto
6196         (gtk_tree_store_get_path): ditto
6197         (gtk_tree_store_get_value): ditto
6198         (gtk_tree_store_iter_has_child): ditto
6199         (gtk_tree_store_iter_n_children): ditto
6200         (gtk_tree_store_iter_nth_child): ditto
6201         (gtk_tree_store_insert_after): ditto
6202         (gtk_tree_store_is_ancestor): ditto
6203         (gtk_tree_store_iter_depth): ditto
6204         (gtk_tree_store_insert_before): assert that sibling's parent is
6205         the same as the passed-in parent
6206         (gtk_tree_store_insert_after): assert that sibling's parent is
6207         the same as the passed-in parent
6208
6209         
6210         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
6211         function to get the first iterator in a model
6212         
6213         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
6214         conventionally the "root" in this sense is just NULL afaict.
6215
6216         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
6217         where sibling == iter
6218         (gtk_list_store_insert_after): handle case where sibling == iter
6219
6220         * tests/testtreeview.c (run_automated_tests): fairly lame basic
6221         automated tests for ListStore, TreeStore
6222
6223         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
6224         (gtk_list_store_insert): update tail pointer, and fix it to work
6225         (gtk_list_store_insert_before): update tail pointer, and fix it to work
6226         (gtk_list_store_append): use tail to be faster
6227         (gtk_list_store_prepend): fix it, update tail pointer
6228         (gtk_list_store_insert_after): fix it, update tail pointer
6229
6230         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
6231         the list
6232
6233 2001-01-09  Havoc Pennington  <hp@redhat.com>
6234
6235         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
6236         is NULL due to a pending resize
6237
6238         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
6239         column width to values less than 1
6240
6241         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
6242         width to be between min/max width, and still set the width 
6243         even if autosize is turned on, so the tree view can use this 
6244         function in order to autosize.
6245         (gtk_tree_view_column_init): set initial width to 1 not 0
6246
6247         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
6248         setter function to modify column width, so we get notification
6249         (gtk_tree_view_insert_iter_height): ditto
6250         (gtk_tree_view_calc_size): ditto
6251         (gtk_tree_view_check_dirty): ditto
6252
6253         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
6254         properties to change all the interesting attributes of the tree
6255         view column.
6256         (gtk_tree_view_column_set_header_clickable): rename set_clickable
6257         (gtk_tree_view_column_get_clickable): add
6258         (gtk_tree_view_column_set_cell_renderer): don't unset the current
6259         attributes; assume a cell renderer with equivalent object
6260         properties has been swapped in. Do g_object_notify().
6261         (gtk_tree_view_column_set_visible): g_object_notify
6262         (gtk_tree_view_column_get_sizing): rename from get_col_type
6263         (gtk_tree_view_column_set_sizing): g_object_notify
6264         (gtk_tree_view_column_set_width): add g_object_notify
6265         (gtk_tree_view_column_set_min_width): ditto
6266         (gtk_tree_view_column_set_max_width): ditto
6267         (gtk_tree_view_column_set_title): ditto
6268         (gtk_tree_view_column_set_clickable): ditto
6269         (gtk_tree_view_column_set_widget): ditto
6270         (gtk_tree_view_column_set_justification): ditto
6271
6272 2001-01-09  Havoc Pennington  <hp@redhat.com>
6273
6274         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
6275         there are no rows in the model
6276
6277         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
6278         NULL, then return the start of the list
6279
6280         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
6281         if we can't get any rows from an empty model 
6282
6283         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
6284         extraneous * after function pointer typedef usage
6285
6286         * Makefile.am: don't specify full path to cp and rm
6287
6288         * gtk/gtkcellrenderertextpixbuf.c
6289         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
6290         NULL before dereferencing, fixes a segfault that happened from
6291         time to time
6292
6293         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
6294         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
6295         and reindent the function
6296         (gtk_cell_renderer_pixbuf_get_size): indentation
6297
6298         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
6299         we quit it
6300         (gtk_dialog_add_buttons_valist): add g_return_if_fail
6301         (gtk_dialog_set_default_response): New function, to set default
6302         button
6303         (gtk_dialog_set_response_sensitive): New function, to set 
6304         sensitivity of buttons
6305
6306         * gtk/gtkcellrendererpixbuf.c
6307         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
6308         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
6309
6310         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
6311         handle any G_TYPE_OBJECT subclass, not just the base class, and 
6312         also boxed types.
6313         (_gtk_tree_data_list_value_to_node): ditto
6314
6315         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
6316         --gtk-debug=tree
6317
6318         * gtk/gtkmain.c: add GTK_DEBUG_TREE
6319
6320         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
6321
6322 2001-01-09  Tor Lillqvist  <tml@iki.fi>
6323
6324         * gdk/win32/gdkevents-win32.c: Implement better mouse
6325         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
6326         (find_window_for_pointer_event): New function.
6327         (gdk_event_translate): Use it when handling mouse events.
6328
6329 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
6330
6331         * configure.in:
6332         Added --with-included-loaders option
6333
6334         * gdk-pixbuf/Makefile.am:
6335         * gdk-pixbuf/gdk-pixbuf-io.c:
6336         Add support for including selected gdk-pixbuf loaders only.
6337
6338         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
6339         gtk_window_set_has_frame):
6340         Added inline documentation.
6341
6342         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
6343         * docs/reference/gdk/tmpl/windows.sgml:
6344         Added inline documentation.
6345
6346 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
6347
6348         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
6349         realizing buttons that have already been realized.
6350
6351 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
6352
6353         * tests/testtreeview.c (main): Show menu items before adding to
6354         option menu.
6355
6356         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
6357         around if we kill them.
6358
6359         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
6360         Return if we pass in a NULL model.
6361
6362 2001-01-08  Havoc Pennington  <hp@redhat.com>
6363
6364         * tests/testtreeview.c: hack on this some
6365
6366         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
6367         gtk_tree_store_set_valist, v is for arrays, valist for varargs
6368         list
6369         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
6370
6371         * gtk/gtkliststore.h: Add varargs set() and get() convenience
6372         functions
6373
6374 2001-01-08  Alexander Larsson  <alexl@redhat.com>
6375
6376         * gtk/gtkwindow-decorate.[hc]:
6377         * gtk/Makefile.am:
6378         New files. Contains an implementation of a minimal WM for
6379         linux-fb.
6380
6381         * gtk/gtkwindow.h:
6382         Add the possibility for GtkWindows to specify a frame. This
6383         is used for the window decoration code, but could concievably
6384         be used for X programs too (xmms style windows).
6385         GtkWindow->frame is the toplevel window if the window is framed.
6386         The signal frame_event gets all events that are targeted to
6387         GtkWindow->frame.
6388         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
6389         
6390         * gtk/gtkwindow.c:
6391         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
6392         Call out to gtkwindow-decorate.c for WM support in linx-fb.
6393
6394 2001-01-08  Alexander Larsson  <alexl@redhat.com>
6395
6396         * docs/README.linux-fb:
6397         Correct filename ~/.pangoft2_aliases
6398
6399         * gdk/gdkwindow.h:
6400         Added new function gdk_window_get_decorations.
6401
6402         * gdk/linux-fb/gdkfb.h:
6403         Removed _gdk_window_get_decorations declaration.
6404         Renamed _gdk_window_set_child_handler to
6405         gdk_fb_window_set_child_handler.
6406
6407         * gdk/linux-fb/gdkwindow-fb.c:
6408         Renamed _gdk_window_set_child_handler to
6409         gdk_fb_window_set_child_handler.
6410
6411         * gdk/x11/gdkwindow-x11.c:
6412         New function gdk_window_get_mwm_hints().
6413         Implemented gdk_window_get_decorations.
6414
6415         * docs/reference/gdk/tmpl/windows.sgml:
6416         * docs/reference/gdk/gdk-sections.txt:
6417         Added gdk_window_get_decorations docs.
6418         
6419 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
6420
6421         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
6422         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
6423         gdk_fb_window_send_crossing_events):
6424         Possibly send focus events when the mouse moves from one
6425         window to another.
6426
6427 2001-01-07  Tor Lillqvist  <tml@iki.fi>
6428
6429         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
6430         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
6431         to match current API.
6432
6433         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
6434         environment variable is set, don't call g_error when on a
6435         palettized (PseudoColor) display. Some people want to use GTK+ 
6436         in 256-colour mode even though works only partially.
6437
6438         * gdk/gdk.def
6439         * gtk/gtk.def
6440         * gtk/makefile.mingw.in: Update.
6441
6442 2001-01-05  Havoc Pennington  <hp@redhat.com>
6443
6444         * tests/testtreeview.c: hack on this a bit
6445
6446         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
6447         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
6448
6449         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
6450         was spelled incorrectly
6451         (GTK_IS_TREE_MODEL_SIMPLE): ditto
6452
6453         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
6454         from gtk_tree_view_set_headers_active   
6455
6456         * gtk/gtktexttag.c:
6457         (gtk_text_tag_get_property): handle PROP_DIRECTION
6458         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
6459         properties, bug 40235
6460
6461         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
6462         forward_to_line_end
6463
6464 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
6465
6466         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
6467         modules/input/gtkimcontextxim.c: Adapt to new prototypes
6468         for unicode,locale,filename conversion functions.
6469
6470 2001-01-05  Havoc Pennington  <hp@redhat.com>
6471
6472         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
6473         broken if called on the first position in the buffer.
6474
6475         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
6476         forward_to_delimiters to be called only if we aren't already at
6477         the delimiters.
6478
6479 2001-01-05  Havoc Pennington  <hp@redhat.com>
6480
6481         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
6482
6483 2001-01-05  Alexander Larsson  <alexl@redhat.com>
6484
6485         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
6486         colormap in here. Sync from X port.
6487         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
6488         Sync from X port.
6489         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
6490         This happens now and then, and i don't think it is a bug.
6491         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
6492         != endpoint.
6493         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
6494         GDK_LINE_SOLID.
6495
6496         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
6497         some of the fields filled in at least.
6498
6499         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
6500         miLineArcD is no more, remove it from the function definition.
6501
6502 2001-01-04  Havoc Pennington  <hp@redhat.com>
6503
6504         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
6505         this
6506
6507         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
6508         user_data instead of tree_node
6509
6510         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
6511         TREE_VIEW_COLUMN_SIZE
6512
6513         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
6514         "size" field to "width" finishes bug 40061
6515
6516         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
6517         for bitfields, bug 40268
6518
6519 2001-01-04  Havoc Pennington  <hp@redhat.com>
6520
6521         Rename some stuff:
6522         
6523         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
6524
6525         s/GtkModelSimple/GtkTreeModelSimple/g;
6526         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
6527         s/gtk_model_simple/gtk_tree_model_simple/g;
6528         s/gtkmodelsimple/gtktreemodelsimple/g;
6529
6530         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
6531
6532         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
6533         s/column_set_col_type/column_set_sizing/g;
6534
6535         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
6536         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
6537
6538         s/GtkCellRendererType/GtkCellRendererState/g;
6539         
6540         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
6541         (gtk_cell_renderer_toggle_class_init): change "state" property to
6542         "active", to match GtkToggleButton
6543         (gtk_cell_renderer_toggle_get_active): new function, bug
6544         40269
6545         (gtk_cell_renderer_toggle_set_active): new function
6546         (gtk_cell_renderer_toggle_set_property): route changes to toggle
6547         state through gtk_cell_renderer_set_active
6548
6549 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
6550
6551         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
6552         temporarily until they work again.  Brought up to date with
6553         changes in the model.
6554         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
6555         model.
6556
6557 2001-01-04  Havoc Pennington  <hp@redhat.com>
6558
6559         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
6560         equal to the line length, then position iterator before paragraph 
6561         separators. Fixes crash reported by Mikael Hermansson when
6562         pressing left arrow from the start of a line.   
6563
6564         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
6565         about byte indexes off the end
6566         (iter_set_from_char_offset): add g_error about char offsets
6567         off the end
6568
6569 2001-01-03  Havoc Pennington  <hp@redhat.com>
6570
6571         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
6572
6573         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
6574         of private functions; remove inclusion of private headers.
6575
6576         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
6577         function, so we don't need private functions in gtktextdisplay.c
6578
6579         * gtk/gtktextiterprivate.h: underscore-ification
6580
6581         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
6582         to instead say "only useful to implement widgets"
6583
6584         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
6585         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
6586         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
6587
6588         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
6589         This function was completely broken
6590
6591         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
6592
6593         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
6594
6595         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
6596
6597         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
6598
6599         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
6600
6601         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
6602
6603         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
6604         gtk_paint_layout
6605
6606         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
6607         gtk_paint_layout
6608
6609         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
6610         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
6611         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
6612         which were not implemented.     
6613
6614         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
6615         insert_pixbuf signal. Rename delete_text to delete_range since it
6616         also deletes pixbufs and child anchors. This almost closes bug
6617         40245 (still need to deal with child anchors)
6618
6619         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
6620         insert_pixbuf, change signal names as appropriate, change types of
6621         signals taking marks/tags to have the specific type, not just
6622         G_TYPE_OBJECT
6623         
6624         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
6625         closes bug 40051
6626
6627         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
6628         unnecessary remove_contents() call
6629         (gtk_option_menu_class_init): add a "changed" signal, closes
6630         bug 40039
6631         (gtk_option_menu_update_contents): emit "changed" if the 
6632         active menu item changes
6633
6634         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
6635         cast to GtkObject, reported by Jonas Borgstrom
6636         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
6637         we can't do stuff with side effects in finalize. Instead, spew a
6638         warning if the loader isn't closed.
6639
6640         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
6641         colormap in here, non-X ports probably need to sync to this change
6642
6643         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
6644         assertion that colormap != NULL, you can set the colormap to NULL
6645         if you like.
6646         
6647         * Makefile.am: remove gtk-config-2.0
6648
6649         * configure.in: Use pkg-config to locate GLib. Remove
6650         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
6651         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
6652         Use pkg-config to locate Pango. Output correct Pango libs to
6653         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
6654
6655         * Makefile.am (pkgconfig_DATA): install only target-specific pc
6656         files
6657         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
6658         X11 pc files
6659
6660         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
6661         unref from here
6662
6663 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
6664
6665         * configure.in:
6666         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
6667
6668 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
6669
6670         * gtk/gtktextlayout.c
6671         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
6672         variable when moving back onto a single line.
6673
6674 2001-01-01  Havoc Pennington  <hp@redhat.com>
6675
6676         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
6677
6678         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
6679
6680         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
6681         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
6682
6683 2001-01-01  Havoc Pennington  <hp@redhat.com>
6684
6685         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
6686
6687         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
6688         GtkTextAttributes
6689
6690         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
6691         #40246
6692         (gtk_text_attributes_copy_values): rename from 
6693         gtk_text_attributes_copy
6694         (gtk_text_attributes_copy): a more standard GTK copy function, 
6695         which returns a new object
6696
6697 2001-01-01  Havoc Pennington  <hp@redhat.com>
6698
6699         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
6700         
6701         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
6702         don't fill in tree_view->priv->selection, kind of an unexpected
6703         side effect
6704
6705         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
6706         gtkintl.h
6707         
6708         * gtk/gtkcellrenderer.c: Remove definition of _ and include
6709         gtkintl.h
6710         (gtk_cell_renderer_get_property): remove calls to g_value_init
6711
6712         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
6713         gtkintl.h
6714
6715         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
6716         and include gtkintl.h
6717         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
6718         property names
6719
6720         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
6721         GtkTreeSelection
6722         (_gtk_tree_selection_new_from_with_view): rename, return
6723         GtkTreeSelection
6724         (_gtk_tree_selection_set_tree_view): rename with uscore
6725         (gtk_tree_selection_get_selected): fill in the "model" out param
6726         first, so it gets filled in even if we return at the top of the 
6727         function
6728         (gtk_tree_selection_real_select_all): add a comment and an else{}
6729         to clarify this a bit
6730         (gtk_tree_selection_real_unselect_all): add the same else{}
6731
6732         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
6733         set_tree_view to have underscore prefixes, move them to the
6734         private header, fix return type of new_with_tree_view
6735         (struct _GtkTreeSelection): mark struct
6736         fields private  
6737
6738         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
6739         GtkTreeModelFlags, not a guint
6740         (gtk_tree_path_prev): return gboolean not gint
6741         (gtk_tree_path_up): return gboolean not gint
6742
6743         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
6744         return GtkTreeModelFlags, not a guint
6745
6746         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
6747         that child model is non-null before unrefing it
6748         (g_value_int_compare_func): make this a qsort compare func, not 
6749         a boolean predicate
6750
6751         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
6752         (add -umn to the end), and mark it unimplemented
6753         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
6754         I don't see what it's for - doesn't the model always sort itself?
6755         (gtk_tree_model_sort_set_compare): this had the wrong signature
6756
6757         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
6758         Fix the docs to say that it destructively replaces existing
6759         attributes (previously said that it added attributes).
6760         (gtk_tree_view_column_set_visible): canonicalize bool before
6761         equality testing. Also, check for realization before
6762         hiding/showing the tree_column->window; if this window could exist
6763         before realization, then it's busted and needs fixing, we can't 
6764         create GDK resources pre-realization. Also, remove
6765         superfluous queue_resize(), since set_size() does that for us.
6766         (gtk_tree_view_column_set_col_type): check realization before 
6767         using tree_column->window
6768
6769         * gtk/gtktreedatalist.c: fix filename in copyright notice
6770
6771 2000-12-31  Havoc Pennington  <hp@pobox.com>
6772
6773         * gtk/gtktextview.c: Rearrange all the
6774         scroll-while-dragging-or-selecting code to be different, not
6775         necessarily better. ;-)
6776         (gtk_text_view_scroll_to_mark): Change this
6777         function to take within_margin as a fraction instead of a pixel
6778         value, and to take alignment arguments (indicating where to align 
6779         the mark inside the visible area)
6780         
6781         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
6782         to GtkObject
6783
6784         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
6785         behavior so that offsets past the end of the line are not 
6786         allowed, and an offset equal to the line length moves the iterator
6787         to the next line
6788         (gtk_text_iter_set_line_index): make parallel change
6789         (gtk_text_iter_get_bytes_in_line): add this function
6790         
6791         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
6792         of byte indexes off the end of the line; byte index at the end of
6793         the line now returns FALSE and doesn't fill in the requested
6794         values, byte index past the end of the line is an error.  Also,
6795         don't allow -1 offset anymore, since its meaning is unclear.
6796
6797         This change exposes some bug in visual cursor motion, where we
6798         end up with a huge invalid byte index; needs fixing. Symptom of 
6799         bug is a crash when you hit up arrow.
6800         
6801         (_gtk_text_line_char_locate): match the change to byte_locate
6802
6803         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
6804         from start of line properly. fixes bug reported by Mikael
6805         Hermansson where backspace would delete all text before the
6806         cursor.
6807
6808 2000-12-30  Tor Lillqvist  <tml@iki.fi>
6809
6810         * gdk/win32/gdkwindow-win32.c
6811         (gdk_window_impl_win32_get_visible_region): New function, as in
6812         the X11 backend.
6813         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
6814         instead of duplicating the same code here.
6815
6816         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
6817         GDK_COLORMAP macro.
6818
6819         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
6820         destroy function.
6821         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
6822         access that.
6823
6824         * gtk/gtk.def: Update.
6825
6826         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
6827
6828 2000-12-30  Havoc Pennington  <hp@pobox.com>
6829
6830         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
6831         colormap on input only windows, to avoid special cases all over
6832         the code for these windows.
6833
6834 2000-12-26  Tor Lillqvist  <tml@iki.fi>
6835
6836         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
6837         we are on a palettized display ("PseudoColor" in X11), as the code
6838         for that doesn't work anyway, and never has.
6839
6840 2000-12-22  Alexander Larsson  <alexl@redhat.com>
6841
6842         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
6843         Don't use isprint() for chars > 255.
6844
6845 2000-12-21  Havoc Pennington  <hp@redhat.com>
6846
6847         * tests/testtreeview.c: more work
6848
6849 2000-12-21  Alexander Larsson  <alexl@redhat.com>
6850
6851         * docs/README.linux-fb:
6852         Update the docs to the new pangoft2 way.
6853
6854 2000-12-21  Alexander Larsson  <alexl@redhat.com>
6855
6856         * configure.in:
6857         For linux-fb get the pangoft2 cflags and libs. This needs a recent
6858         pango version.
6859         Remove modules/linux-fb/Makefile.
6860
6861         * gdk/linux-fb/gdkdrawable-fb2.c:
6862         Render glyphs using freetype.
6863
6864         * gdk/linux-fb/gdkfb.h:
6865         Add new fb-specific functions needed for managing windows.
6866
6867         * gdk/linux-fb/gdkmain-fb.c:
6868         Remove gdk_font_init/fini() calls.
6869
6870         * gdk/linux-fb/gdkpango-fb.c:
6871         Remove old implementation. Use pangoft2 instead.
6872
6873         * gdk/linux-fb/gdkprivate-fb.h:
6874         Remove PangoFBFont and related stuff.
6875
6876         * gdk/linux-fb/gdkwindow-fb.c:
6877         Implement drawable->get_visible_region.
6878         Implement support for _gdk_window_set_child_handler () and
6879         _gdk_window_get_decorations().
6880
6881         * modules/Makefile.am:
6882         Remove linux-fb subdir.
6883
6884         * modules/linux-fb/*:
6885         Removed all.
6886         
6887 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
6888
6889         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
6890         calls, as they are no longer needed.
6891
6892         * gtk/gtktreemodelsort.c: Fix up the comparison code.
6893         
6894         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
6895         figure out how to emit a signal on an interface.
6896
6897 2000-12-20  Havoc Pennington  <hp@redhat.com>
6898
6899         * tests: new directory to contain tests, gtk/test* should move
6900         here sometime (with appropriate on-cvs-server hackery)
6901
6902         * tests/testtreeview.c, tests/Makefile.am: a test
6903         
6904         * configure.in (AC_OUTPUT): add tests/Makefile
6905
6906         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
6907         and "invisible_set" which were missing
6908
6909         * gtk/gtkrbtree.h: some cheesy indentation fix
6910         
6911 2000-12-20  Alexander Larsson  <alexl@redhat.com>
6912
6913         * gtk/gtkinvisible.c (gtk_invisible_realize):
6914         Attach the style to the window so that the style it is not
6915         leaked when unrealizing the window.
6916
6917 2000-12-18  Havoc Pennington  <hp@redhat.com>
6918
6919         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
6920         begin/end user action where appropriate
6921         (gtk_text_view_commit_handler): add begin/end user action
6922
6923         * gtk/gtktextbuffer.c: add begin/end user action signals, and
6924         bracket interactive operations with begin/end user action pair.
6925         
6926         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
6927         "interactive" arg from insert_text and delete_text signals.
6928         Add begin_user_action, end_user_action signals
6929         (gtk_text_buffer_begin_user_action): 
6930         (gtk_text_buffer_end_user_action): New functions to delimit 
6931         a user-visible action
6932
6933         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
6934         signals.
6935         
6936 2000-12-18  Havoc Pennington  <hp@redhat.com>
6937
6938         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
6939         was pretty non-working.
6940
6941         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
6942         by passing the length to g_utf8_validate().
6943
6944 2000-12-16  Havoc Pennington  <hp@pobox.com>
6945
6946         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
6947         Port to GObject, can go back in gdk-pixbuf after setting up 
6948         a gdk-pixbuf-marshal.h header over there.
6949
6950         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
6951         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
6952         args
6953         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
6954         set
6955         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
6956         here, do it when we create the buttons later
6957         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
6958         (gtk_tree_view_map): paranoia checks that column->button is shown 
6959         and unmapped
6960         (gtk_tree_view_size_request): only request visible children.
6961         Move header size calculation in here, for cleanliness, and 
6962         to maintain invariants for child widgets if we eventually 
6963         let users set different children inside the buttons
6964         (gtk_tree_view_map_buttons): factor out code to map buttons,
6965         since it was being called several times
6966         (gtk_tree_view_size_allocate_buttons): move_resize the drag
6967         windows instead of just moving them; their height may change 
6968         if we allow random widgets in there, or the theme changes.
6969         (gtk_tree_view_size_allocate): move button size allocation 
6970         above emitting the scroll signals, to ensure a sane state when we
6971         hit user code
6972         (gtk_tree_view_button_release): remove queue_resize after
6973         tree_view_set_size(), set_size() will handle any resize queuing
6974         that's needed
6975         (gtk_tree_view_focus_in): just queue a draw, don't fool with
6976         draw_focus goo
6977         (gtk_tree_view_focus): use gtk_get_current_event() and
6978         gdk_event_get_state()
6979         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
6980         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
6981         semicolon
6982         (gtk_tree_view_create_button): show the button here
6983         (gtk_tree_view_button_clicked): actually emit the clicked signal
6984         on the column
6985         (_gtk_tree_view_set_size): return right away if the size is
6986         unchanged, as a cheesy optimization
6987         (gtk_tree_view_setup_model): rename set_model_realized to 
6988         setup_model to match the flag that indicates whether we've 
6989         called it
6990         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
6991         exist, because set_scroll_adjustment does that and it shouldn't
6992         matter what order you call these in
6993         (gtk_tree_view_get_vadjustment): ditto
6994         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
6995         for paranoia
6996         (gtk_tree_view_set_headers_visible): call
6997         gtk_tree_view_map_buttons() instead of using cut-and-paste code
6998         (gtk_tree_view_append_column): clarify whether the return value
6999         is the count of columns before or after, and do the increment 
7000         separately from the return statement so you can tell from the code.
7001         (gtk_tree_view_remove_column): ditto
7002         (gtk_tree_view_insert_column): ditto
7003         (gtk_tree_view_get_column): remove g_return_if_fail for columns
7004         outside the existing range, the docs say that outside-range
7005         columns are allowed, so we handle them as documented. (Presumably
7006         this allows a nice loop with column != NULL as test.)
7007         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
7008         mean (left/right/center etc.).
7009         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
7010         (gtk_tree_view_expand_row): add docs
7011         (gtk_tree_view_collapse_row): add docs
7012
7013         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
7014         function to emit the clicked signal on a column
7015         
7016         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
7017         state of an event
7018         (gdk_event_get_time): don't treat GDK_SCROLL 
7019         as a button event, remove default case from switch so gcc 
7020         will whine if we don't explicitly handle all event types
7021
7022         * gtk/gtktreeselection.h: added some FIXME 
7023         
7024         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
7025         "columns" to "n_columns" and "column" to "columns" for clarity
7026
7027 2000-12-16  Havoc Pennington  <hp@pobox.com>
7028         
7029         * gtk/gtktextiter.c: General cleanup of the log attr iteration
7030         stuff. This should make e.g. the delete key work again in the
7031         text widget...
7032         (gtk_text_iter_forward_cursor_positions): handle negative count
7033         (gtk_text_iter_backward_cursor_positions): handle negative count
7034         (gtk_text_iter_forward_word_ends): handle negative count
7035         (gtk_text_iter_backward_word_starts): handle negative count
7036
7037         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
7038         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
7039         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
7040         GObject. No doubt will cause breakage.
7041
7042         * demos/gtk-demo/textview.c: remove hacks around
7043         non-GObject-ification of the text objects
7044
7045         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
7046         the text tag
7047         
7048 2000-12-14  Havoc Pennington  <hp@pobox.com>
7049
7050         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
7051         that we have Xrender
7052
7053 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
7054
7055         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
7056         Add two virtualized functions gdk_drawable_get_clip_region - to
7057         get the clip region when drawing.
7058         
7059         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
7060         use invalidate_region.
7061
7062         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
7063         region.
7064
7065         * acconfig.h configure.in: Check for Xft. For now, assume
7066         that if Xft is found, Pango was compiled with Xft support
7067         as well.
7068
7069         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
7070         gdk_colormap_query_color().
7071         
7072         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
7073         with Xft if appropriate.
7074
7075         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
7076         a pangoxft context if we have XFT and the environment
7077         variable GD_USE_XFT is set.
7078         
7079         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
7080         and also possibly an XftDraw structure.
7081
7082         * gtk/gtkfontsel.c: Handle the case where the font from the
7083         style doesn't match any of the fonts a bit better.
7084         
7085         * gtk/testgtk.c: Add tabs between directional segments for
7086         hebrew/arabic test. (Not really necessary, just a little
7087         prettier.)
7088
7089 2000-12-14  Havoc Pennington  <hp@redhat.com>
7090
7091         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
7092         reading a file
7093
7094 2000-12-14  Havoc Pennington  <hp@redhat.com>
7095
7096         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
7097         unused call to get_last_line()
7098
7099         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
7100         here until boxed is working (and maybe after that - we should
7101         really not gratuitously break old code)
7102
7103         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
7104         specific types for font_desc and tabs args, move them to
7105         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
7106         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
7107
7108         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
7109         use GTK_TYPE_POINTER for signal signatures as a hack-around
7110
7111         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
7112         PangoTabArray
7113
7114         * gtk/gtktextlayout.c (line_display_iter_to_index): 
7115         make static
7116         (line_display_index_to_iter): make static
7117
7118         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
7119         to marshal a string not a boxed
7120
7121         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
7122
7123         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
7124         since the UTF-8 isn't validated yet
7125
7126         * gtk/gtktextsegment.c (char_segment_check_func): don't require
7127         lines to end in '\n'
7128         
7129         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
7130         forward_to_delimiters, and grapheme boundaries
7131         (gtk_text_view_delete_from_cursor): properly handle non-newline
7132         delimiters, and grapheme boundaries
7133
7134         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
7135         to gtk_text_iter_forward_to_delimiters, and make it work properly
7136         if empty lines end with a character other than '\n'
7137
7138         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
7139         position
7140
7141 2000-12-15  Tor Lillqvist  <tml@iki.fi>
7142
7143         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
7144
7145         * gtk/gtk.def
7146         * gdk/gdk.def: Update.
7147
7148         * gdk/win32/gdkmain-win32.c
7149         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
7150         gdkmain-win32.c here.
7151
7152         * gdk/win32/makefile.mingw.in (all): No need to make
7153         gdk-win32res.o here, the makefile one step up will call us to make
7154         it.
7155
7156         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
7157         gdkkeys-win32.
7158
7159         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
7160
7161         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
7162         call to g_source_add().
7163
7164         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
7165         leak. Thanks to Andreas Kemnade.
7166
7167 2000-12-13  Havoc Pennington  <hp@pobox.com>
7168
7169         * gtk/gtktextbtree.h: Remove double _ in front of some functions
7170
7171         * gtk/gtktext*.[hc]: update accordingly
7172         
7173 2000-12-13  Havoc Pennington  <hp@pobox.com>
7174
7175         * gtk/gtktextbtree.h: Put _ in front of every function in this 
7176         header file
7177
7178         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
7179
7180 2000-12-13  Alex Larsson  <alexl@redhat.com>
7181
7182         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
7183         Add support for ps2 intellimouse.
7184
7185         * gdkkeyboard-fb.c:
7186         Move shift-F1 repaint handling to xlate handler only.
7187         
7188         * docs/README.linux-fb:
7189         Add imps2 to docs.
7190         Document the new refresh keys.
7191         
7192 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
7193
7194         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
7195
7196         * gtk/gtkbox.c: change property types from (u)long to (u)int for
7197         ::position and ::padding.
7198
7199         * gtk/gtkcontainer.c: make ::border_width an INT property.
7200
7201         * gtk/gtkpacker.c: make ::position an INT property.
7202
7203         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
7204         guard against NULL h/v scrollbars, since this is used at construction
7205         time.
7206
7207         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
7208         internal gtk_clist_constructor().
7209
7210         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
7211         gtk_ctree_constructor().
7212
7213         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
7214         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
7215
7216         * docs/reference/Makefile.am: fun stuff, disabled docs generation
7217         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
7218
7219         * gtk/gtkwidget.[hc]:
7220         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
7221         and gtk_widget_get().
7222         (gtk_widget_new): use g_object_new_valist().
7223         (gtk_widget_set): use g_object_set_valist().
7224
7225         * gtk/gtkobject.[hc]:
7226         removed gtk_object_arg_get_info(), gtk_object_getv(),
7227         gtk_object_query_args(), gtk_object_newv(),
7228         gtk_object_class_add_signals(),
7229         gtk_object_class_user_signal_new(),
7230         gtk_object_class_user_signal_newv(),
7231         gtk_object_arg_set(), gtk_object_arg_get(),
7232         gtk_object_args_collect(),
7233         gtk_object_default_construct(),
7234         gtk_object_constructed(),
7235         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
7236         removed nsignals, signals and n_args members from GtkObjectClass.
7237         (gtk_object_new): use g_object_new_valist().
7238         (gtk_object_set): use g_object_set_valist().
7239         (gtk_object_get): use g_object_get_valist().
7240         
7241         * gtk/gtkcompat.h: define gtk_object_default_construct().
7242         
7243         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
7244         g_object_new().
7245
7246         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
7247         fucntions, cleaned up method assignments (make sure your structures
7248         are setup properly before calling out). removed all GTK_CONSTRUCTED
7249         hacks ;)
7250
7251 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
7252
7253         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
7254         off-by-one error in checks. (Dave Lambert)
7255
7256 2000-12-12  Alexander Larsson  <alexl@redhat.com>
7257
7258         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
7259         Don't free gdk_fb_keyboard twice.
7260
7261 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
7262
7263         * gtk/testgtk.c:
7264         (create_tooltips): 
7265         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
7266         use GObject swapped_signal:: properties instead.
7267
7268         * gtk/gtkcellrenderertoggle.c: 
7269         * gtk/gtkcellrenderertextpixbuf.c: 
7270         * gtk/gtkcellrenderertext.c: 
7271         * gtk/gtkcellrendererpixbuf.c: 
7272         * gtk/gtkcellrenderer.c:
7273         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
7274         missing warnings for invalid property ids, install properties
7275         with g_object_class_install_property() now.
7276         
7277         * gtk/gtksignal.c:
7278         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
7279         
7280 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
7281         
7282         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
7283         to determine if a window is the focus widget within
7284         its toplevel.
7285
7286         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
7287         to be boolean.
7288
7289         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
7290         of the case where the container CAN_FOCUS to here instead
7291         of having it in each individual move-the-focus place.
7292
7293         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
7294         focusing to be geometric in a much more obvious sense. Arrowing
7295         around is still non-intuitive because it isn't perfect and
7296         because entries, etc, grab the arrow keys, but it at least
7297         usually will do what you expect now.
7298         
7299         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
7300         file.
7301
7302         * gtk/gtknotebook.c: Change tabs to be a single item in
7303         the focus chain. Make movement of focus on tabs with arrow
7304         keys wrap around.
7305         
7306         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
7307         CHECK_FIND_CHILD macro to give informative error messages
7308         instead of silent returns.
7309
7310         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
7311         flag since we handle GdkReturn on the tabs.
7312
7313         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
7314         windows rather than sending expose events directly.
7315
7316         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
7317         definition for GtkNotebookPage into .c file, since it is private.
7318
7319         * gtk/testgtk.c (create_notebook): Add option for 
7320         testing borderless notebook.
7321
7322         * gtk/testgtk.c (page_switch): Removed egregious poking
7323         around in GTK+ internals.
7324
7325         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
7326
7327         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
7328         properly through gtk_clist_focus. Make the title headers a
7329         single item in the tab-focus chain, and make left-right wrap
7330         around.
7331
7332         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
7333         focus method so that wrapping around works properly.
7334
7335         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
7336         that is handled for the widget now. 
7337
7338 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
7339
7340         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
7341         widgets as TOPLEVEL.
7342
7343         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
7344         TOPLEVEL widgets are containers.
7345
7346         * gtk/gtkinvisible.h: Remove useless include.
7347
7348 2000-12-11  Havoc Pennington  <hp@redhat.com>
7349
7350         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
7351         Handle chopping off \r\n and 0x2029 in addition to \n before
7352         passing to PangoLayout
7353
7354         * gtk/gtkimcontextsimple.c
7355         (gtk_im_context_simple_get_preedit_string): 
7356         return an empty string if no match is pending
7357
7358         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
7359         assertion that the returned preedit string was sane
7360
7361         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
7362         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
7363         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
7364
7365 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
7366
7367         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
7368         Fix up finalizer to chain to its parent.
7369
7370 2000-12-11  Alexander Larsson  <alexl@redhat.com>
7371
7372         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
7373         Clearified the difference between the keyboard types. Wrote a note
7374         about the magic sysrq key to get out of raw mode.
7375
7376 2000-12-09  James Henstridge  <james@daa.com.au>
7377
7378         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
7379         member to hold masks for detecting the start of a protocol packet.
7380         (mouse_devs): add packet start masks for ps2 and ms device types.
7381         Left the mask for fidmour blank, as I have no idea what it should
7382         be.
7383         (handle_mouse_io): skip bytes until we get to the start of a
7384         packet.  My Logitech mouse seems to be passing an extra NULL pad
7385         byte, and GPM does a similar thing here.
7386         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
7387         this is the ms mouse driver.
7388         (gdk_fb_mouse_ms_packet): fix up button handling, which was
7389         completely broken except for button1.  It was checking the wrong
7390         bit in the packet for the status of the right mouse button, and
7391         wrongly assuming right == button2 rather than 3.  I fixed that and
7392         also added support for middle button (button2).
7393
7394 2000-12-08  Havoc Pennington  <hp@redhat.com>
7395
7396         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
7397         that cause a segfault on text insertion
7398
7399         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
7400         warning
7401
7402         * gtk/gtktextiter.c (test_log_attrs): use
7403         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
7404
7405         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
7406         Get log attrs for a line, using a cache stored on the buffer
7407         
7408         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
7409         reported by Jeff Franks
7410
7411 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
7412
7413         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
7414         /dev/ttyS0 -> /dev/mouse
7415
7416 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
7417
7418         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
7419         Added dummy gdk_fontset_load.
7420
7421 2000-12-08  Alexander Larsson  <alexl@redhat.com>
7422
7423         * docs/README.linux-fb:
7424         * docs/Makefile.am:
7425         Initial GtkFB docs.
7426         
7427         * gdk/linux-fb/Makefile.am:
7428         Define GDK_DATA_PREFIX.
7429
7430         * gdk/linux-fb/gdkmain-fb.c:
7431         Fix typo.
7432         Change default display to /dev/fb0.
7433
7434         * gdk/linux-fb/gdkpango-fb.c:
7435         Add $(prefix)/share/fonts/ to font path.
7436         
7437 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
7438
7439         * gdk/linux-fb/gdkkeyboard-fb.c:
7440         New file containing the abstracted keyboard driver. Most code
7441         taken from gdkinput-ps2.c
7442
7443         * gdk/linux-fb/gdkinput-ps2.c:
7444         Removed file.
7445         
7446         * gdk/linux-fb/Makefile.am:
7447         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
7448
7449         * gdk/linux-fb/gdkcolor-fb.c:
7450         display->fb was renamed to display->fb_fd.
7451
7452         * gdk/linux-fb/gdkcursor-fb.c:
7453         gdk_mouse_get_info -> gdk_fb_mouse_get_info
7454
7455         * gdk/linux-fb/gdkinput.c:
7456         Moved gdk_input_init here from gdkinput-ps2.c
7457
7458         * gdk/linux-fb/gdkmain-fb.c:
7459         display->fb was renamed to display->fb_fd.
7460         Now the tty and the console is opened here instead
7461         of in the keyboard driver. Also check GDK_VT to see what
7462         tty to open.
7463         Move gdk_beep () here from gdkinput-ps2.c
7464         gdk_mouse_get_info -> gdk_fb_mouse_get_info
7465
7466         * gdk/linux-fb/gdkmouse-fb.c:
7467         Add header.
7468         gdk_mouse_get_info -> gdk_fb_mouse_get_info
7469         Return correct keyboard modifiers.
7470         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
7471
7472         * gdk/linux-fb/gdkprivate-fb.h:
7473         Add tty and vt info to display.
7474         Add orignal modeinfo storage to display
7475         Update global functions
7476
7477         * gdk/linux-fb/gdkwindow-fb.c:
7478         Added gdk_fb_window_find_focus().
7479         gdk_mouse_get_info -> gdk_fb_mouse_get_info
7480
7481 2000-12-07  Havoc Pennington  <hp@pobox.com>
7482
7483         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
7484         function, noticed by Alex
7485
7486 2000-12-06  Elliot Lee  <sopwith@redhat.com>
7487
7488         * configure.in: Detect freetype properly
7489
7490         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
7491         above.
7492
7493 2000-12-06  Alexander Larsson  <alexl@redhat.com>
7494
7495         * gdk/linux-fb/Makefile.am:
7496         Add gdkmouse-fb.c
7497         
7498         * gdk/linux-fb/gdkmouse-fb.c:
7499         New file. Abstracted the mouse drivers a bit.
7500
7501         * gdk/linux-fb/gdkcursor-fb.c:
7502         The cursor hide/show functions was moved here from gdkinput-ps2.c.
7503
7504         * gdk/linux-fb/gdkinput-ps2.c:
7505         Removed old mouse handling code. Moved cursor handling code
7506         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
7507         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
7508         gdk_mouse_get_info.
7509
7510         * gdk/linux-fb/gdkmain-fb.c:
7511         Pass NULL pointers for x,y in gdk_mouse_get_info call.
7512
7513         * gdk/linux-fb/gdkprivate-fb.h:
7514         Removed public gdk_fb_find_common_ancestor, added and renamed
7515         functions for the new mouse handling code.
7516
7517         * gdk/linux-fb/gdkwindow-fb.c:
7518         Moved gdk_fb_window_send_crossing_events here. added global
7519         variable gdk_fb_window_containing_pointer. made
7520         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
7521         renamed to gdk_mouse_get_info.
7522
7523 2000-12-06  Alexander Larsson  <alexl@redhat.com>
7524
7525         * gdk/linux-fb/gdkevents-fb.c:
7526         Update to match latest gmain/gsource changes.
7527
7528         * gdk/linux-fb/gdkinput-ps2.c:
7529         Bogus gdk_keymap_get_entries_for_keycode implementation so that
7530         it links. Will be implemented later.
7531
7532 2000-12-03  Havoc Pennington  <hp@pobox.com>
7533
7534         * gdk/Makefile.am: add gdkkeys.[hc]
7535
7536         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
7537         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
7538
7539         * acconfig.h, configure.in: add checks and command line options
7540         for XKB
7541
7542         * gdk/x11/gdkkeys-x11.c: Implement the above functions
7543         
7544         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
7545         and group in the key event
7546
7547         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
7548         field with the low-level hardware key code, and a group
7549         field with the keyboard group
7550
7551         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
7552         and declare a couple globals used for keymap handling
7553         
7554         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
7555         hold down Shift-Control and type a hex number to get a Unicode 
7556         character corresponding to the hex number
7557         (gtk_im_context_simple_get_preedit_string): Fix cursor position
7558         (return bytes not chars)
7559
7560 2000-12-05  Elliot Lee  <sopwith@redhat.com>
7561
7562         * gdk/gdkcolor.h: Make GdkColor specify element sizes
7563         to avoid waste on 64-bit platforms.
7564
7565 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
7566
7567         * INSTALL: Fix link to PNG home, remove reference
7568         to fribidi.
7569
7570         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
7571         
7572         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
7573         tested.)
7574
7575         * gtk/gtkcheckmenuitem.c: Permanently turn on
7576         always_show_toggle.
7577
7578         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
7579         be NULL. (Vladimir Klebanov, #26545)
7580
7581         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
7582         some signed/unsigned comparison problems. (#6510,
7583         David Kaelbling)
7584
7585         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
7586         return type to boolean (Oskar Liljeblad, #18648)
7587
7588 2000-12-05  Alexander Larsson  <alexl@redhat.com>
7589
7590         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
7591         Remove bogus colormap setting.
7592
7593 2000-12-05  Alexander Larsson  <alexl@redhat.com>
7594
7595         * gdk/linux-fb/gdkcolor-fb.c:
7596         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
7597
7598         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
7599         Must set colormap.
7600         
7601 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
7602
7603         * docs/tutorial/gtk-tut.sgml: DND updates
7604
7605 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
7606
7607         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
7608         Remove old debug g_warning().
7609         (gdk_fb_draw_drawable): The src argument can be either a wrapper
7610         or an implementation, just pass the implementation to draw_drawable_2.
7611         
7612         * gdk/linux-fb/gdkprivate-fb.h:
7613         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
7614
7615         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
7616         clear and invalidate area when window is destroyed.
7617         (send_map_events): Remove old commented out code.
7618
7619 2000-12-05  Alexander Larsson  <alexl@redhat.com>
7620
7621         * gdk/linux-fb/gdkpango-fb.c:
7622         Use italic instead of oblique in font aliases.
7623         
7624         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
7625         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
7626         other unsupported functions.
7627
7628 2000-12-04  Havoc Pennington  <hp@redhat.com>
7629
7630         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
7631
7632         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
7633
7634         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
7635
7636         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
7637         hack to avoid infinite loops (synthetic expose event) - 
7638         Owen has more appropriate fixes in a branch he'll check in later.
7639
7640         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
7641         separator, CR, and CRLF as line ends
7642
7643         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
7644         into lines using pango_find_paragraph_boundary(); other bits of
7645         the widget are still going to be broken if the boundary isn't '\n'
7646         though
7647
7648 2000-12-04  Alexander Larsson  <alexl@redhat.com>
7649
7650         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
7651         multiply.
7652
7653         * gdk/linux-fb/gdkpango-fb.c:
7654         Copied some 26.6 scaling macros from pango to clean up the rounding.
7655         (pango_fb_font_get_glyph_info): Correct sign on x value.
7656
7657         * gdk/linux-fb/gdkprivate-fb.h:
7658         Removed unreferenced external functions.
7659
7660         * modules/linux-fb/Makefile.am: Use ` instead of '.
7661
7662         * modules/linux-fb/basic.c:
7663         Remove dead code. In particular the dummy lang engine which broke all
7664         pango layouts in GtkFB. Don't include tables-big.i anymore.
7665
7666         * modules/linux-fb/tables-big.i:
7667         Upgrade to latest version from pango. Left for reference, basic_ranges
7668         moved to basic.c.
7669         
7670 2000-12-04  Havoc Pennington  <hp@redhat.com>
7671
7672         Fix bugs Alex found:
7673         
7674         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
7675         to "draw"
7676
7677         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
7678
7679         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
7680
7681         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
7682         implementation in here, apparently the expose() implementation was
7683         dead code.
7684
7685 2000-12-04  Alexander Larsson  <alexl@redhat.com>
7686
7687         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
7688         Return positive descent.
7689
7690 2000-12-02  Havoc Pennington  <hp@pobox.com>
7691
7692         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
7693         method and signal
7694         
7695         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
7696         calls gdk_window_process_updates() to push the exposes through
7697         (gtk_widget_class_init): No more draw signal, no
7698         gtk_widget_real_draw()  
7699         
7700         * gtk/gtkbin.c (gtk_bin_draw): remove
7701
7702         * gtk/gtkbox.c (gtk_box_draw): remove
7703
7704         * gtk/gtkbutton.c (gtk_button_draw): remove
7705
7706         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
7707
7708         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
7709
7710         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
7711
7712         * gtk/gtkclist.c (gtk_clist_draw): remove
7713
7714         * gtk/gtkentry.c (gtk_entry_draw): remove
7715
7716         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
7717
7718         * gtk/gtkfixed.c (gtk_fixed_draw): remove
7719
7720         * gtk/gtkframe.c (gtk_frame_draw): remove
7721
7722         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
7723
7724         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
7725
7726         * gtk/gtklayout.c (gtk_layout_draw): remove
7727
7728         * gtk/gtklist.c (gtk_list_draw): remove
7729
7730         * gtk/gtklistitem.c (gtk_list_item_draw): remove
7731
7732         * gtk/gtkmenu.c (gtk_menu_draw): remove
7733
7734         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
7735
7736         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
7737
7738         * gtk/gtknotebook.c (gtk_notebook_draw): remove
7739
7740         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
7741
7742         * gtk/gtkpacker.c (gtk_packer_draw): remove
7743
7744         * gtk/gtkrange.c (gtk_range_draw): remove
7745
7746         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
7747
7748         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
7749
7750         * gtk/gtktable.c (gtk_table_draw): remove
7751
7752         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
7753
7754         * gtk/gtktext.c (gtk_text_draw): remove
7755
7756         * gtk/gtktextview.c (gtk_text_view_draw): remove
7757
7758         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
7759
7760         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
7761
7762         * gtk/gtktree.c (gtk_tree_draw): remove
7763
7764         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
7765
7766         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
7767
7768         * gtk/gtkviewport.c (gtk_viewport_draw): remove
7769
7770         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
7771
7772         * gtk/gtkvscale.c (gtk_vscale_draw): remove
7773
7774         * gtk/gtkwindow.c (gtk_window_draw): remove
7775
7776 2000-20-01  Anders Carlsson  <andersca@gnu.org>
7777
7778         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
7779         a GtkToggleButton is both insensitive and active, it was being
7780         drawn by the GtkButton draw handler which doesn't check the
7781         state. Now it's calling gtk_toggle_button_paint instead.
7782         
7783 2000-12-01  Havoc Pennington  <hp@redhat.com>
7784
7785         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
7786         dangling pointers to the appearance attributes from the 
7787         line display
7788
7789         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
7790         width/height to mean "full width/height of drawable"
7791
7792         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
7793         click to select word/line
7794         
7795         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
7796         when getting log attrs. Get a slice, so that pixmaps and stuff
7797         are properly handled.
7798
7799         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
7800         paste into the selection (replaces selection now, previously
7801         crashed or added to selection). Reveals longstanding btree bug -
7802         select multiple lines, middle-click on the selection, boom. This
7803         isn't related to my changes though.
7804
7805         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
7806         PangoLogAttrs changes
7807         (gtk_entry_move_backward_word): ditto
7808
7809         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
7810         functions return bool whether the iter moved onto a
7811         dereferenceable position.
7812  
7813         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
7814         functions for motion in terms of display lines.
7815
7816         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
7817         get the buffer a mark is inside
7818         
7819 2000-12-01  Alexander Larsson  <alexl@redhat.com>
7820
7821         * gdk/linux-fb/Makefile.am:
7822         * modules/linux-fb/Makefile.am:
7823         Freetype 2 final uses freetype-config
7824
7825         * gdk/linux-fb/gdkpango-fb.c:
7826         Upgrade to use Freetype 2 final.
7827         More flexible support for font aliases, this also fixes a bug with
7828         GtkFontSelector, as the aliases must be visible in the font/family list,
7829         or GtkFontSelector reads uninitialized memory.
7830
7831 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
7832
7833         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
7834         XGetIMValues to properly terminate variable argument list, and do
7835         NULL return check for ic_values and xim_styles.
7836
7837         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
7838         Restore preedit state after XmbResetIC().
7839         
7840         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
7841         XvaCreateNestedList() should take XvaNestedList, but not
7842         XvaNestedList*.
7843
7844         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
7845         preedit_draw_callback, preedit_caret_callback): Match
7846         "preedit-changed" signal name to "preedit_changed" to be
7847         consistent to the spec.
7848
7849         * gtk/gtkimcontextsimple.c (check_table):
7850         Match "preedit-changed" to "preedit_changed" to be consistent
7851         to the spec.
7852
7853 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
7854
7855         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
7856         gc->clip_region == NULL>
7857
7858 2000-11-30  Tor Lillqvist  <tml@iki.fi>
7859
7860         Changes by Hans Breuer:
7861         
7862         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
7863         Dont't use negative width and height as max_hints. This fixes
7864         Owen's recent testgtk changes for win32.
7865
7866         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
7867         gdk_win32_hdc_release): These are exported and may be called with
7868         other drawable types than our GdkDrawableImplWin32 (?).
7869
7870         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
7871         so always #define USE_BACKING_STORE.
7872
7873         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
7874         of printf for debugging output.
7875
7876         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
7877         
7878         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
7879
7880         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
7881         declaration.
7882
7883         * gtk/gtktexttypes.h: Ditto.
7884
7885         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
7886         (GDK_VoidSymbol) also if in case of arg check failure.
7887
7888         * gtk/gtkimcontextsimple.c
7889         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
7890         position to the pointer, but to the variable it points to.
7891
7892         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
7893
7894         * gtk/gtk.def: Updates.
7895
7896 2000-11-29  Elliot Lee  <sopwith@redhat.com>
7897
7898         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
7899         GTK_TYPE_TREE_MODEL.
7900
7901 2000-11-29  Alexander Larsson  <alexl@redhat.com>
7902
7903         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
7904         Set the size of the font from the description.
7905         (gdk_text_width): Gross hack that calculates the width
7906         of text by text_length * size/2. This is necessary because
7907         GtkLabel does some ugly gtk_string_width call to calculate
7908         an good size.
7909         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
7910
7911 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
7912
7913         * docs/tutorial/gtk-tut.sgml: DND updates
7914
7915 2000-11-29  Alexander Larsson  <alexl@redhat.com>
7916
7917         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
7918         If you pass width or height == 0 to gdk_window_clear_area they
7919         should be calculated from the window size.
7920
7921 2000-11-29  Alexander Larsson  <alexl@redhat.com>
7922
7923         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
7924         a grab, but no grab-cursor, use the cursor from the grabbed
7925         window. (gdk_fb_window_send_crossing_events): Send normal
7926         enter/leave notifications if grab and owner_events == TRUE.
7927
7928 2000-11-29  Alexander Larsson  <alexl@redhat.com>
7929
7930         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
7931         Do implicit button grabs, even if the window doesn't
7932         want the event.
7933         (gdk_fb_window_send_crossing_events): If there is a
7934         grab, only the grabbed window gets normal enter/leave
7935         notifications. On ungrab go from grabbed window to current.
7936         Don't send any notification to b when propagating from c -> b.
7937         If setting a grab on window, don't set prev_window.
7938         (handle_mouse_input): Send enter/leave events to the window the
7939         mouse is over, not the grabbed one.
7940         
7941 2000-11-28  Elliot Lee  <sopwith@redhat.com>
7942
7943         * gdk/gdkregion-generic.c: Zap warning.
7944         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
7945         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
7946
7947 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
7948
7949         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
7950         The cursor should be hidden if it is part of either the
7951         source or destination region. Not only if it is in both.
7952         (gdk_window_set_transient_for): Silence warnings.
7953
7954 2000-11-28  Alexander Larsson  <alexl@redhat.com>
7955
7956         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
7957         The default mode in X is Pie Arcs, therefore that is
7958         what Gtk+ uses.
7959
7960 2000-11-28  Alexander Larsson  <alexl@redhat.com>
7961
7962         * gdk/linux-fb/gdkinput-ps2.c:
7963         Implement correct EnterNotify/LeaveNotify:
7964         (gdk_fb_window_send_crossing_events): New function that sends
7965         all GdkCrossingEvents from the last mouse-window to the specified
7966         destination.
7967         (gdk_fb_window_visibility_crossing): Removed function.
7968         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
7969         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
7970         instead of gdk_window_get_pointer() for better readability.
7971
7972         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
7973         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
7974
7975         * gdk/linux-fb/gdkprivate-fb.h:
7976         removed gdk_fb_window_visibility_crossing, added
7977         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
7978
7979         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
7980         New function that finds the least common ancestor of two windows.
7981         (gdk_window_show, gdk_window_hide):
7982         Use gdk_fb_window_send_crossing_events.
7983         (gdk_fb_window_move_resize): Send configure events to toplevel
7984         windows. Use gdk_fb_window_send_crossing_events.
7985
7986 2000-11-27  Havoc Pennington  <hp@redhat.com>
7987
7988         * gtk/gtkprivate.h (enum): Remove a trailing comma
7989
7990 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
7991
7992         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
7993         the "changed" callback of the adjustment.  We need to redraw the
7994         spin button's arrows when the adjustment's range changes.
7995         (adjustment_changed_cb): Draw the arrows.
7996         (gtk_spin_button_value_changed): Draw the arrows.
7997
7998 2000-11-23  Alexander Larsson  <alexl@redhat.com>
7999
8000         * gdk/linux-fb/gdkselection-fb.c:
8001         Initial selection implementation.
8002
8003         * gtk/gtkselection.c:
8004         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
8005         requestor in gtk_selection_request.
8006         
8007         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
8008         Added gdk_selection_property atom.
8009
8010         * gdk/linux-fb/gdkprivate-fb.h:
8011         Export _gdk_selection_window_destroyed.
8012         Removed mask_off_x/y from GdkCursorPrivateFB.
8013         Removed hbearing, added top, left to PangoFBGlyphInfo.
8014
8015         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
8016         Call _gdk_selection_window_destroyed
8017         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
8018         the root window has been created.
8019         (static_dx_hack, static_dy_hack, compare_draw_rects,
8020         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
8021         in region. They are already sorted. Instead just traverse them in
8022         reverse if draw_direction < 0.
8023         
8024         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
8025         Double-clicks must be sent after the normal button_press.
8026         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
8027         
8028         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
8029         Pass _gdk_fb_screen_gc instead of NULL.
8030
8031         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
8032         Initialize gdk_selection_property.
8033         (gdk_event_make): Remove unused code.
8034
8035         * gdk/linux-fb/gdkcursor-fb.c:
8036         Make the pixmap for the cursor the same size as the mask. Also remove
8037         the mask_off_x/y fields in GdkCursorPrivateFB and combine
8038         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
8039         Now the whole cursor is visible.
8040
8041         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
8042         Fix bug where xdest+height instead of ydest+height was used
8043         to calculate if the source and dest overlapped. This fixes the
8044         redraw bug when the main window in testgtk was scrolled when
8045         partially covered by a tall window.
8046         Copy rectangles in region in order depending on draw_direction.
8047         Also moved the draw_direction flipping of start_y and end_y into
8048         the gc functions, as this might not be what all of them want.
8049         (gdk_fb_draw_lines): Support dashed lines.
8050         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
8051         so that the text is positioned correctly (was 1 pixel high).
8052
8053         gdk/linux-fb/gdkgc-fb.c:
8054         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
8055         all lines were drawn a pixel to short. Also checked the default of
8056         the rest of the values, and they're the same as X now.
8057
8058         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
8059         Clean up pixel positioning of the glyphs. Just use bgy->top and
8060         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
8061         to all divisions to get correct rounding behaviour.
8062
8063         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
8064         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
8065         Moved start_y/end_y flip into draw_drawable implementations.
8066         Flip also x rendering when draw_direction < 0.
8067         Remove unneccesary multiply with draw_direction.
8068
8069 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
8070
8071         * docs/tutorial/gtk-tut.sgml:
8072           - get rid of gtk_toggle_button_toggled FUD
8073           - start DND section - needs work - based on:
8074                 http://wolfpack.twu.net/docs/gtkdnd/
8075
8076 2000-11-22  Alexander Larsson  <alexl@redhat.com>
8077
8078         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
8079         Correct calculation of font metrics. Now GtkEntrys have sane
8080         size.
8081
8082 2000-11-22  Alexander Larsson  <alexl@redhat.com>
8083
8084         * gdk/gdktypes.h:
8085         Add new type GdkSpan
8086         
8087         * docs/reference/gdk/gdk-sections.txt,
8088         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
8089         gdk/gdkregion.h:
8090         Implement and document gdk_region_spans_intersect_foreach.
8091
8092         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
8093         Add new file gdkrender-fb.c which contains all core
8094         rendering code.
8095         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
8096         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
8097         (optimized rectangle fillers).
8098
8099         * gdk/linux-fb/gdkdrawable-fb2.c:
8100         Move all rendering code to gdkrender-fb.c.
8101         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
8102         Use the new span intersection functions in gdk_fb_fill_spans.
8103         gdk_fb_draw_rectangle() clips filled rectangles and calls
8104         gc->fill_rectangle with the result.
8105         gdk_fb_fill_spans() gets extra argument "sorted".
8106
8107         * gdk/linux-fb/gdkevents-fb.c:
8108         Remove unused includes and defines.
8109         New function gdk_fb_get_time() to get correct time for events.
8110
8111         * gdk/linux-fb/gdkinput-ps2.c:
8112         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
8113         Make sure to set the time of all events.
8114
8115         * gdk/linux-fb/gdkmain-fb.c:
8116         Use gdk_fb_get_time ().
8117
8118         * gdk/linux-fb/gdkprivate-fb.h:
8119         New virtual GC calls: fill_span & fill_rectangle.
8120         Export gdk_fb_get_time().
8121         gdk_fb_fill_spans() gets extra argument "sorted".
8122
8123         * gdk/linux-fb/mi*.c:
8124         Use GdkSpan instead of GdkRectangle.
8125         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
8126         from XFree 4 source)
8127         
8128 2000-11-22    <jrb@redhat.com>
8129
8130         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
8131         reversing the order in an if statement will do.  Doing so managed
8132         to make the treemodelsort half work.  Other half will follow after
8133         I get the insert function fully fixed.
8134
8135 2000-11-21  Elliot Lee  <sopwith@redhat.com>
8136         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
8137         more than 2 bits. Besides, I need to implement an evil hack. :)
8138
8139 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
8140
8141         * docs/tutorial/gtk-tut.sgml: minor corrections
8142
8143 2000-11-20  Jonathan Blandford <jrb@redhat.com>
8144         * gtk/gtktreemodelsort.h: Add convertion functions to let you
8145           convert to and from relative path's and iters.
8146
8147         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
8148           testing sorting functions a bit better.  Currently broken -- will
8149           fix in morning.
8150
8151 2000-11-20  Havoc Pennington  <hp@redhat.com>
8152
8153         * gtk/gtkwidget.c: Documented a bunch of functions in here
8154         (gtk_widget_realize): Warn if you try to realize
8155         a widget with no parent that isn't a toplevel
8156         (gtk_widget_intersect): return a gboolean
8157
8158 2000-11-20  Havoc Pennington  <hp@redhat.com>
8159
8160         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
8161         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
8162         scrolling to be implemented in GDK to finish. Also, right now
8163         we just size_allocate all children on every layout change,
8164         which is pretty lame. Test commented out of testtext.c, 
8165         until it works better.
8166
8167 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
8168
8169         * gdk/linux-fb/gdkdrawable-fb2.c:
8170         Removed unused arguments from gdk_fb_drawable_get_pixel().
8171
8172         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
8173         Renamed fidur specific mouse packet data in MouseDevice to
8174         generic. Used it in ps2 mouse handling code to avoid blocking
8175         reads.
8176
8177 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
8178
8179         * demos/gtk-demo/main.c: Changed to have the list become
8180         non-italic when the demo window is destroyed through an external
8181         event (like a close button).  Doing so found three bugs in the
8182         widget.
8183
8184         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
8185
8186         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
8187         we actually set the cell.
8188
8189         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
8190
8191         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
8192         free a leaked path.  Thanks memprof.
8193
8194 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
8195
8196         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
8197         off-by-one error when destroying allocated segments
8198         on failure. (Elliot)
8199
8200 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
8201
8202         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
8203         memleaks found by Evan Martin.
8204
8205 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
8206
8207         * Released 1.3.2
8208         
8209         * NEWS: Updates for 1.3.2
8210
8211 2000-11-17  Tor Lillqvist  <tml@iki.fi>
8212
8213         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
8214         but in general for window system specific events.
8215
8216         * gtk/gtk.def
8217         * gtk/makefile.mingw.in
8218         * gtk/makefile.msc.in: Update.
8219         
8220         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
8221
8222 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
8223
8224         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
8225         distribute gtk.immodules.
8226
8227         * gtk/Makefile.am (install-data-local): Don't install the
8228         gtk.immodules file created for the uninstalled modules;
8229         instead run gtk-query-immodules after install
8230
8231 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
8232
8233         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
8234         -rpath to the right install location.
8235
8236         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
8237         -export-dynamic.
8238
8239         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
8240         properly.
8241
8242 2000-11-15  Havoc Pennington  <hp@pobox.com>
8243
8244         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
8245         patch from Mikael Hermansson to temporarily stop blinking while
8246         the user is using the keyboard to type or navigate. 
8247
8248         Also, when blinking, stay on for longer than we stay off. Also,
8249         return from start_cursor_blink if !cursor_visible, to save
8250         checking that flag all over the place before we call
8251         start_cursor_blink.
8252
8253 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
8254
8255         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
8256         only contain a "fontset" line, which is now ignored.
8257
8258         * gtk/gtkentry.c (gtk_entry_button_release): Make 
8259         double-click-to-select-word work.
8260         
8261 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
8262
8263         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
8264         Don't move back one char when we are actually at the end of the 
8265         paragraph.
8266
8267 2000-11-15  Robert Brady  <robert@suse.co.uk>
8268
8269         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
8270         'o' < 'p'.
8271         
8272         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
8273         bind_textdomain_codeset.
8274
8275         (gtk_init_check): Make the warning about translating default:LTR
8276         sterner.
8277         
8278 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
8279
8280         * **/Makefile.am : remove unecessary rules for win32-specific
8281         config-substituted targets. If you want these rules, use
8282         --enable-maintainer-mode (called automatically by autogen.sh).
8283         Stops a lot of unneccessary make-time warnings.
8284
8285         * gtk/gtktext{layout,display}.c: Factor in total width as
8286         well as screen when figuring alignment for word-wrap as well as
8287         no wrap; this is necessary to handle lines that cannot be wrapped
8288         at all.
8289
8290 2000-11-15  Havoc Pennington  <hp@redhat.com>
8291
8292         * gtk/testtext.c: Implement essential color cycling feature
8293
8294 2000-11-15  Havoc Pennington  <hp@redhat.com>
8295
8296         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
8297         when we invalidate the main window.
8298
8299         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
8300         GtkTextView will now invalidate the side windows for us when text
8301         changes.
8302
8303 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
8304
8305         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
8306         unconditionally, since we may need to update the horizontal
8307         scrollbars even if the height didn't change.
8308
8309         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
8310         the extra attrs, since some of them affect size.
8311
8312         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
8313         x_offset correctly.
8314
8315 2000-11-15  Havoc Pennington  <hp@redhat.com>
8316
8317         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
8318         don't move the first line out into the margin, instead move the
8319         whole paragraph in order to make space for the first line within 
8320         the margin
8321
8322 2000-11-15  Havoc Pennington  <hp@redhat.com>
8323
8324         * gtk/gtktextview.c (changed_handler): offset redraw rect by
8325         xoffset in addition to yoffset, so horizontal scrolling doesn't
8326         break redraws
8327
8328 2000-11-15  Havoc Pennington  <hp@redhat.com>
8329
8330         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
8331         from the cursor
8332         (render_layout_line): fix reversed test that caused weird
8333         underlines to get drawn
8334
8335 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
8336
8337         * gdk/linux-fb/gdkprivate-fb.h:
8338         Fix debug macros.
8339         
8340 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
8341
8342         * gdk/linux-fb/gdkprivate-fb.h:
8343         Added virtual functions set_pixel, get_color,
8344         fill_span and draw_drawable to the GC.
8345         Added global _gdk_fb_screen_gc to use instead of
8346         NULL when drawing to the screen.
8347         Added _gdk_fb_gc_calc_state() prototype.
8348
8349         * gdk/linux-fb/gdkgc-fb.c:
8350         Call _gdk_fb_gc_calc_state() on any gc state change.
8351
8352         * gdk/linux-fb/gdkglobals-fb.c:
8353         Add _gdk_fb_screen_gc
8354                 
8355         * gdk/linux-fb/gdkdrawable-fb2.c:
8356         _gdk_fb_gc_calc_state() calculates best functions
8357         for the GC state and depth.
8358         Moved bpp specialized code to separate functions.
8359         Added optimized 24 bpp AA draw_drawable.
8360
8361         * gdk/linux-fb/gdkevents-fb.c:
8362         Silence gcc warning.
8363
8364         * gdk/linux-fb/gdkimage-fb.c:
8365         Use _gdk_fb_screen_gc
8366
8367         * gdk/linux-fb/gdkwindow-fb.c:
8368         Init and use _gdk_fb_screen_gc
8369
8370         * gdk/linux-fb/mitypes.h:
8371         Remove unused types.
8372
8373 2000-11-14  Havoc Pennington  <hp@pobox.com>
8374
8375         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
8376         to pixels
8377
8378 2000-11-14  Havoc Pennington  <hp@pobox.com>
8379
8380         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
8381
8382         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
8383         unknown char, no real reason we were using a variable. 
8384         Remove gtk_text_unknown_char variable. Fix all the text widget
8385         files accordingly.
8386
8387         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
8388         since the Unicode spec seems to prefer that character for our
8389         purposes.
8390
8391 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
8392
8393         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
8394         value of g_getenv() isn't freeable, so g_strdup it.
8395
8396         * modules/input/inuktitut.c: Inuktitut input method.
8397
8398         * modules/input/Makefile.am: Build this.
8399         
8400 2000-11-14  Elliot Lee  <sopwith@redhat.com>
8401
8402         * gtk/Makefile.am: Install gtk.immodules, needed for operation
8403         of gtk programs.
8404
8405 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
8406
8407         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
8408         reversed > that was causing Home to go to end of previous line.
8409
8410         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
8411         modified-keypresses (leave for bindings.)
8412
8413         * modules/input/Makefile.am: Remove useless -export-dynamic
8414         from module LDFLAGS.
8415
8416 2000-11-14  Havoc Pennington  <hp@redhat.com>
8417
8418         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
8419         higher.
8420
8421         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
8422         account. Also, render rise, underline, background, etc. for
8423         pixbufs as well as text. Also, draw underlines one pixel higher.
8424
8425         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
8426         PangoAttribute for the rise, so it gets drawn properly. Also,
8427         add the GtkTextAppearance attribute for pixbuf/widget segments
8428         as well; we should go ahead and have rise, underline, background,
8429         stipple work for those
8430
8431         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
8432         Pango
8433
8434 2000-11-15  Tor Lillqvist  <tml@iki.fi>
8435
8436         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
8437
8438         * gtk/gtk.def: Update.
8439
8440         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
8441         included.
8442         (gtk_rc_get_im_module_file): Use run-time installation directory
8443         on Win32.
8444
8445         * gdk/win32/rc/gdk.rc: Remove.
8446         * gdk/win32/rc/gdk.rc.in: New file.
8447         * gdk/win32/rc/Makefile.am: New file
8448         * gdk/win32/Makefile.am: Corresponding changes.
8449
8450         * gtk/gtk.rc: Remove.
8451         * gtk/gtk-win32.rc.in: New file.
8452         * gtk/Makefile.am: Corresponding changes.
8453
8454         * configure.in: Corresponding changes.
8455
8456         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
8457         has a built gtkcompat.h. Developers using CVS code on Win32 can
8458         hand-edit it from gtkcompat.h.in.
8459
8460         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
8461         gtkcompat.h from gtkcompat.h.win32.
8462
8463 2000-11-14  Havoc Pennington  <hp@redhat.com>
8464
8465         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
8466         to default to GDK_ACTION_MOVE if the drag is within a single
8467         widget. Defaults to GDK_ACTION_COPY between widgets.
8468
8469 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
8470
8471         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
8472
8473         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
8474
8475         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
8476         srcdir != builddir
8477
8478         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
8479
8480         * configure.in (GTK_VERSION): Up to 1.3.2
8481
8482         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
8483         gtkimcontextxim.h
8484
8485         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
8486         missing doc comment.
8487
8488 2000-11-14  Alexander Larsson  <alexl@redhat.com>
8489
8490         * modules/linux-fb/basic.c:
8491         Use the glib iconv wrappers.
8492
8493 2000-11-13  Havoc Pennington  <hp@pobox.com>
8494
8495         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
8496         still more bugs.
8497
8498         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
8499         scroll the GdkWindows before realization.
8500
8501 2000-11-13  Havoc Pennington  <hp@redhat.com>
8502
8503         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
8504         where GC didn't always get updated properly
8505
8506         * demos/gtk-demo/textview.c (create_tags): Use subattributes
8507         of fonts instead of setting the entire font
8508
8509         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
8510         setting entire font
8511
8512         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
8513
8514         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
8515         a bunch of individually-settable font attributes. You can still 
8516         use the "font" and "font_desc" args, they just set all the font
8517         attributes at once.
8518
8519 2000-11-13 Elliot Lee <sopwith@redhat.com>
8520
8521         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
8522
8523 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
8524
8525         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
8526         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
8527
8528         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
8529         work better.
8530
8531 2000-11-13  Havoc Pennington  <hp@redhat.com>
8532
8533         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
8534         the module file.
8535
8536         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
8537         dest->language
8538
8539         * gtk/testtext.c: Test pixels above/below/inside paragraphs
8540         settings
8541
8542         * gtk/gtktextview.c: Implement object args and setters/getters for
8543         all the aspects of the GtkTextAttributes that are not set from
8544         GtkWidget attributes. This is spacing, justification, margins,
8545         etc.
8546
8547         (gtk_text_view_set_arg)
8548         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
8549         args
8550         (gtk_text_view_class_init): Add args for justify, left_margin,
8551         right_margin, indent, and tabs
8552         
8553
8554         * gtk/gtktextlayout.c (set_para_values): fix to display indent
8555         attribute properly
8556
8557         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
8558         replace with indent attribute
8559
8560         * gtk/gtktextlayout.c (set_para_values): multiply indent by
8561         PANGO_SCALE
8562
8563         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
8564         rearranging code to do that
8565         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
8566         i.e. don't subtract the top_margin first, just to keep
8567         all margin-futzing in one place.
8568
8569         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
8570
8571         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
8572         special case of last line, Pango now handles this itself.
8573         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
8574         Y coordinate
8575         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
8576         (find_display_line_above): wasn't moving the byte index as it
8577         iterated over lines, so always returned byte 0. Also, port to use
8578         PangoLayoutIter.
8579         (find_display_line_below): same problem as
8580         find_display_line_above. Also, port to use PangoLayoutIter.
8581
8582 2000-11-13  Alexander Larsson  <alexl@redhat.com>
8583
8584         * gdk/linux-fb/*.[ch]:
8585         Massive reindent to gtk+ standard. My hands hurt.
8586
8587         * gdk/linux-fb/gdkcolor-fb.c:
8588         Move GdkColorPrivateFB from inherited to windowing_data
8589
8590         * gdk/linux-fb/gdkcursor-fb.c:
8591         _gdk_cursor_new_from_pixmap made static
8592
8593         * gdk/linux-fb/gdkdnd-fb.c:
8594         GdkDragContextPrivate moved to windowing_data
8595
8596         * gdk/linux-fb/gdkdrawable-fb2.c:
8597         Removed endian.h, use glib endianness macros instead
8598         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
8599         and GDK_DRAWABLE_IMPL_FBDATA
8600
8601         * gdk/linux-fb/gdkfont-fb.c:
8602         Add empty gdk_font_load(). Needed for linking of Gtk+.
8603
8604         * gdk/linux-fb/gdkimage-fb.c:
8605         Removed endian.h, use glib endianness macros instead
8606         Moved GdkImagePrivateFB to windowing_data
8607         gdk_image_new_bitmap didn't always allocate enough
8608         memory.
8609
8610         * gdk/linux-fb/gdkinput-ps2.c:
8611         Added semi-working support for MS serial mice.
8612
8613         * gdk/linux-fb/gdkprivate-fb.h:
8614         s/GdkWindowPrivate/GdkWindowObject/
8615         Removed GdkWindowPrivate typedef
8616         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
8617         Removed GDK_DRAWABLE_P
8618         Move GdkColorPrivateFB from inherited to windowing_data
8619         Moved GdkImagePrivateFB to windowing_data
8620
8621         * gdk/linux-fb/gdkvisual-fb.c:
8622         Removed some unused debug code.
8623
8624         * gdk/linux-fb/gdkwindow-fb.c:
8625         Use stock cursors instead of including X headers.
8626         s/GdkWindowPrivate/GdkWindowObject/
8627
8628         * gdk/linux-fb/mitypes.h:
8629         Removed unused types.
8630
8631         * modules/linux-fb/basic.c:
8632         Use the pango fribidi wrappers.
8633
8634 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
8635
8636         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
8637         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
8638         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
8639         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
8640         GEqualFunc where applicable.
8641         
8642         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
8643         pango_font_description_equal as changed in pango.
8644         
8645         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
8646
8647         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
8648
8649         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
8650
8651         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
8652
8653         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
8654
8655         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
8656
8657         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
8658         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
8659
8660         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
8661         gtk_rc_styles_compare -> gtk_rc_styles_equal.
8662
8663 2000-11-12  Havoc Pennington  <hp@pobox.com>
8664
8665         * demos/gtk-demo/Makefile.am (democodedir): change demo install
8666         dir to datadir/gtk+-2.0/demo
8667
8668         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
8669         sorts of text widget and Pango font bugs. Urgh.
8670
8671         * demos/gtk-demo/Makefile.am (demos): Add textview.c
8672
8673         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
8674         tree that you should double click to see the demo. Fix 
8675         types of variables to reflect changed return values from 
8676         GtkTreeStore and GtkTreeViewColumn constructors.
8677
8678         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
8679         newly-created buffer to prepare for GObject semantics
8680
8681         * gtk/testtext.c: don't leak the buffer with GObject semantics
8682
8683         * gtk/testtextbuffer.c: ditto
8684         
8685 2000-11-12  Havoc Pennington  <hp@pobox.com>
8686
8687         Rename this testgtk to gtk-demo to avoid confusion, and 
8688         install it so people can use it as a supplement to 
8689         the documentation.
8690         
8691         * demos/gtk-demo: Moved from demos/testgtk
8692
8693         * demos/testgtk: Removed
8694
8695         * configure.in: make Makefile in gtk-demo
8696         
8697         * demos/gtk-demo/Makefile.am: Install sample source to 
8698         datadir/gtk-demo (maybe there's a better place?), and 
8699         rename the binary to gtk-demo
8700         
8701         * demos/gtk-demo/main.c (load_file): Load installed sample
8702         source if source isn't found in pwd.
8703
8704 2000-11-09  Havoc Pennington  <hp@pobox.com>
8705
8706         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
8707         argument to set the char displayed when visibility == FALSE
8708         (gtk_entry_create_layout): If !entry->visible, replace 
8709         all chars with the "invisible char"
8710
8711         * gtk/testgtk.c: Test the invisible_char deal
8712         
8713 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
8714
8715         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
8716         can't get a native font in the right encoding.
8717
8718 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
8719
8720         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
8721         respectively.
8722
8723 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
8724
8725         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
8726         Fix warning when moving between paragraphs.
8727
8728         * gtk/gtkentry.[ch]: Change move => move_cursor, 
8729         delete => delete_from_cursor, insert => insert_at_cursor
8730
8731 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
8732
8733         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
8734
8735         * modules/input/imthai-broken.c: A Thai input method for use if
8736         Thai keys are really generating Latin1 keysyms.
8737
8738         * modules/input/Makefile.am: Build these.
8739
8740 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
8741
8742         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
8743         g_filename_{to,from}_utf8 now takes an extra parameter.
8744
8745         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
8746         strftime into UTF-8.
8747
8748         (column_from_x, gtk_calendar_paint_day_names): Support RTL
8749         calendars.
8750
8751         (gtk_calendar_paint_day_names): Draw day names in the right 
8752         place.
8753         
8754 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
8755
8756         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
8757         problem with using result of g_get_charset() backwards -
8758         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
8759
8760         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
8761         negative min_width/height and max_width/height to
8762         mean "requisition"; this allows setting a window
8763         to be user-resizable in only one direction easily.
8764
8765         * gtk/testgtk.c (create_main_window): Remove hard-coded
8766         usize - set a default size in the vertical direction.
8767
8768 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
8769
8770         * gtk/gtkrange.c: Add some missing casts. Support 
8771         2 and 3 button clicks on the arrows to mean 
8772         "move by pages" and "jump to end". (Like gtkspinbutton)
8773
8774 2000-11-12 Hans Breuer <Hans@Breuer.Org>
8775
8776         * gdk/win32/makefile.msc : reflect build module changes
8777
8778         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
8779         from GdkPixmap*, cast implementation member instead.
8780
8781         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
8782         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
8783         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
8784         more Gdi functions return value checking. 
8785         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
8786         GdkImagePrivateWin32 *.
8787
8788         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
8789         menus useable again. Add #pragma message to keep reminded on this issue.
8790         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
8791         windows. This allows to enable backing store on Win32!
8792
8793         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
8794         in drawable is of impl type. Correct specific type checks appropriate.
8795  
8796         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
8797         GDK_WINDOW_DESTROYED before allocating new resources.
8798
8799         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
8800
8801         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
8802         (gdk_window_foreign_new) initialize parent handle.
8803         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
8804
8805         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
8806         Let the GDI invalidate the window on MoveWindow call to fix scrolling
8807         problems (e.g. main buttons in testgtk). 
8808
8809 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
8810
8811         * gtk/gtkentry.c (gtk_entry_key_press): Call 
8812         gtk_widget_activate for GDK_Return.
8813
8814         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
8815         of preedit cursor position.
8816
8817 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
8818
8819         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
8820         static.
8821
8822 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
8823
8824         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
8825         out support for multiple locales; that simple doesn't
8826         work reliably with current Xlib
8827
8828         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
8829         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
8830         Add support for positioning the cursor within the preedit string.
8831
8832 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
8833
8834         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
8835         at XIM input method module.
8836
8837         * gtk/gtktextview.c: Check for bindings after passing
8838         events to im context filter.
8839
8840 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
8841
8842         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
8843         empty attribute lists properly.
8844
8845 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
8846
8847         * gtk/queryimmodules.c (main): Return non-zero exit
8848         status if errors were encountered querying any
8849         modules.
8850
8851         * modules/input/Makefile.am (moduledir): remove
8852         leftover bin program target.
8853
8854         * docs/make-todo: Fix typo in error message.
8855
8856 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
8857
8858         * configure.in: Add modules/input/Makefile
8859
8860 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
8861
8862         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
8863         don't include gtkthemes.h.
8864
8865         * gtk/testgtk.c gtk/testtext.c: Set environment variables
8866         to point
8867
8868         * gtk/Makefile.am: Add new .c and .h files, build 
8869         gtk-query-immodules and use it to create a gtk.immodules
8870         file for use of test programs.
8871
8872         * gtk/gtkpreview.c: remove extra blank line.
8873
8874 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
8875
8876         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
8877         Add the ability to add extra tables beyond the default
8878         one, and also the ability to have compose sequences 
8879         that are prefixes of other compose sequences. 
8880
8881         * gtk/gtkimcontextsimple.c: Export a preedit string which
8882         consists of possible candidates for keystrokes that have
8883         been entered but not yet committed.
8884
8885         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
8886         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
8887
8888         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
8889         Add a function to add input-method switching menu items
8890         to a menu.
8891
8892         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
8893         when switching input methods.
8894
8895         * gtk/gtkimcontextsimple.[ch]: Change the format of
8896         the compose table to allow compose tables of different
8897         lengths / sequence.
8898
8899 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
8900
8901         * gtk/gtkimmodule.[ch]: Support routines for loading
8902         GtkIMContext implementations dynamically at runtime.
8903
8904         * modules/input/imcyrillic-translit.c: A sample input
8905         method (based on GtkIMContextSimple with an extra table),
8906         which demonstrates preedit strings and the module
8907         system for input modules
8908
8909         * gtk/queryimmodules.c: Program to query the available
8910         input modules and write the results into a file.
8911          
8912         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
8913         extra config options "im_module_file" (cache file for
8914         input method modules), and "im_module_path" - path
8915         to look for modules when generating cache file.
8916
8917         This doesn't scale.
8918
8919 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
8920
8921         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
8922         generic code from gtkthemes into a new abstraction
8923         GtkModule which has the logic for implementing
8924         a loadable module which implements a number of 
8925         GObject types.
8926
8927 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
8928
8929         * gtk/gtkeditable.[ch]: Convert GtkEditable from
8930         a class into an interface  
8931         
8932         * gtk/gtkoldeditable.[ch]: Move the old editable
8933         implementation into here, so legacy widgets can
8934         still rely on the implemenation. GtkOldEditable
8935         exports GtkEditable. Make selection handling
8936         code use new text conversion functions (and
8937         handle UTF-8 as a side-effect). Use GtkClipboard
8938         for CLIPBOARD.
8939
8940         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
8941         Adopt to match above changes.
8942
8943         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
8944         avoid GtkOldEditable implementation. Restructure
8945         to reduce number of places that modify state directly.
8946         Move to GtkBindingSet. Display the preedit string.
8947         Queue recomputation of PangoLayout and scroll position
8948         to improve effiency of doing complex changes naively.
8949         Add a menu with cut/copy/paste and input method selection.
8950
8951 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
8952
8953         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
8954         to set preedit string and attributes; display preedit string by
8955         inserting string and attributes at cursor when creating the
8956         GtkTextLineDisplay.
8957
8958         * gtk/gtktextlayout.c: Move all conversions between byte
8959         positions in PangoLayout and GtkTextIter into new functions
8960         line_display_iter_to_index/index_to_iter that properly
8961         handle the preedit string.
8962
8963         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
8964         it to return const char * (eventually will end up
8965         as GCONST char *, most likely.)
8966
8967         * gtk/gtktextview.[ch]: Handle the preedit string, call
8968         gtk_im_context_reset() as necessary, add a menu to switch
8969         input methods.
8970         
8971         * gtk/gtktextlayout.[ch]: Remove useless
8972         gtk_text_layout_get_log_attrs() function.
8973
8974 2000-11-11  Tor Lillqvist  <tml@iki.fi>
8975
8976         * gdk/gdk.def
8977         * gtk/gtk.def: Update.
8978
8979         * gdk/win32/*.c: Add last argument to g_type_register_static()
8980         calls.
8981
8982         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
8983
8984         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
8985         generated by older wheel mouse drivers. Get the correct y
8986         coordinate from WM_MOUSEWHEEL messages.
8987
8988         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
8989         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
8990         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
8991         Debugging functions.
8992
8993         * gdk/win32/gdkprivate-win32.h: Declare them.
8994
8995         * gdk/win32/gdkinput-win32.h: Add declaration for
8996         gdk_input_window_destroy().
8997
8998         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
8999
9000 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
9001
9002         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
9003         function to help handle keeping things in sync.
9004
9005 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
9006
9007         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
9008         BOXED marshallers.
9009
9010         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
9011         (gtk_list_store_class_init): use the new BOXED marshallers.
9012
9013         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
9014         new_with_values to new_with_types.
9015         (gtk_tree_store_get_column_type): add this.
9016         (gtk_tree_store_class_init): use the new BOXED marshallers.
9017
9018         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
9019         mirror some POINTER marshallers.
9020
9021 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
9022
9023         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
9024         allow more interesting iterators.  Also, made the lifecycle of
9025         iterators more explicit.
9026
9027         * gtk/gtktreemodelsort.[ch]: New model for sorting.
9028
9029         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
9030         types.
9031
9032 2000-11-09  Alexander Larsson  <alexl@redhat.com>
9033
9034         * demos/testgtk/menus.c:
9035         Changes to make the new testgtk compile after
9036         gtk_menu_append was removed.
9037
9038         * gdk/linux-fb/gdkdrawable-fb2.c
9039         (gdk_fb_get_depth, gdk_fb_get_visual,
9040         gdk_drawable_impl_fb_class_init): Implement
9041         these drawable functions. Now GtkImages work again.
9042
9043         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
9044
9045         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
9046         
9047         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
9048         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
9049         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
9050         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
9051
9052 2000-11-08  Havoc Pennington  <hp@pobox.com>
9053
9054         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
9055         visible_set args, don't know where these had gone, I thought they
9056         used to be there
9057
9058         * gtk/testtext.c: Add a menu item to apply invisibility tag;
9059         now we can test the feature and see that it's totally broken.
9060
9061 2000-11-08  Havoc Pennington  <hp@pobox.com>
9062
9063         Make DND copy pixbufs and tags when source and target share a 
9064         tag table.
9065         
9066         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
9067         in-process GTK_TEXT_BUFFER_CONTENTS target
9068         (gtk_text_view_drag_data_received): Paste from
9069         GTK_TEXT_BUFFER_CONTENTS if we receive it.
9070
9071 2000-11-08  Alexander Larsson  <alexl@redhat.com>
9072
9073         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
9074         API changes.
9075
9076         * gtk/gtkmenu.c: Add support for scrolling menus.
9077         Remove gtk_menu_append/prepend/insert, these have been moved to
9078         gtkcompat.h as #defines.
9079
9080         * gtk/gtkcompat.h.in:
9081         Add compatibility #defines for gtk_menu_append/prepend/insert
9082
9083         * gtk/gtkmenu.h: Add data needed for scrolling menus.
9084         GtkMenuPositionFunc gets an extra argument push_in.
9085         gtk_menu_append/prepend/insert removed.
9086         
9087         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
9088         positioning behaviour to fit to scrolling menus.
9089
9090         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
9091         into menuitem->submeny. That is wrong, and broke torn
9092         off submenus of torn off menus, since they were unrealized
9093         when the first menu was unrealized.
9094
9095         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
9096         gtk_menu_shell_select_item() since these need to be overridden in
9097         GtkMenu.
9098
9099         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
9100         positioning behaviour to fit to scrolling menus.
9101         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
9102         the current item so that it is prelighted when the menu pops up.
9103         This is a workaround to the fact that the menu doesn't get the
9104         initial enter event (due to grabs).
9105
9106         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
9107         s/gtk_menu_append/gtk_menu_shell_append/
9108
9109         * gtk/gtknotebook.c:
9110         s/gtk_menu_insert/gtk_menu_shell_insert/
9111
9112         * gtk/testgtk.c (create_menu, create_menus):
9113         Create the first menu with 50 items so that menu scrolling
9114         can be tested.
9115         
9116         
9117         Patch from Jonathan Blandford  <jrb@redhat.com>
9118
9119         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
9120         system to handle size requests.  First, we ask what the size of
9121         the toggle is.  Then, when allocating the size, we allocate the
9122         toggle_size first.  This way we can have multiple menu-item
9123         classes w/o needing a seperate class for each.
9124
9125         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
9126         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
9127
9128         * gtk/gtkcheckmenuitem.c
9129         (gtk_check_menu_item_toggle_size_request): New function to handle
9130         the toggle size-request.
9131
9132 2000-11-07  Havoc Pennington  <hp@redhat.com>
9133
9134         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
9135         Half-ass somewhat fix this function, so that scrolling to the
9136         insertion point works. Pango hacking is in the future to really
9137         fix it.
9138
9139         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
9140         length of data, no longer used.
9141
9142         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
9143         method contents in here, get rid of destroy method
9144         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
9145         that were backward. Remove debug spew.
9146         (cut_or_copy): Make the clipboard work with insert_range to
9147         preserve tags and pixbufs, not just the primary selection.
9148
9149 2000-11-07  Havoc Pennington  <hp@redhat.com>
9150
9151         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
9152         to gtk_text_mark_get_visible
9153
9154         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
9155         bug that was generating an invalid iterator
9156
9157         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
9158         ensure_char_offsets() in front of code placing the iter in an
9159         invalid state.
9160
9161         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
9162         make override_location arg const
9163         (paste): Replace the selection if we paste into the 
9164         current selection
9165
9166         * gtk/gtkselection.h: Remove "GtkSelectioData"
9167         (struct _GtkSelectionData): move the definition here.
9168
9169         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
9170         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
9171
9172         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
9173
9174         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
9175         (gtk_text_buffer_insert_range_interactive): implement
9176         (gtk_text_buffer_get_tags): Remove, replaced by
9177         gtk_text_iter_get_tags()
9178
9179         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
9180         limit parameter, to avoid infinite linear scan.
9181         (gtk_text_iter_backward_search): Add search limit
9182         (gtk_text_iter_forward_find_char): Add search limit
9183         (gtk_text_iter_backward_find_char): Add search limit
9184
9185 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
9186
9187         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
9188         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
9189         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
9190         gdk/linux-fb/gdkwindow-fb.c:
9191         use g_object_new() instead of g_type_create_instance() which
9192         is a private function for fundamental type implementations.
9193
9194         * gdk/linux-fb/gdkinput-ps2.c:
9195         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
9196         instead just store the current modifier state. Add a (somewhat broken)
9197         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
9198         Rename exported function gdk_input_ps2_get_mouseinfo to
9199         gdk_input_get_mouseinfo.
9200
9201         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
9202         gdk/linux-fb/gdkwindow-fb.c:
9203         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
9204         
9205
9206 2000-11-02  Havoc Pennington  <hp@redhat.com>
9207
9208         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
9209         use stock buttons. Should be 100% source compatible, appropriate
9210         filesel fields now point to dialog->vbox and dialog->action_area.
9211         On the bizarre side, dialog->action_area and filesel->action_area
9212         are not the same widget.
9213         (gtk_file_selection_init): Put some padding around the selection
9214         entry, so it isn't touching the GtkDialog separator.    
9215
9216         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
9217         use stock buttons, etc. Should also be source compatible.
9218         Set the dialog default title in _init not _new().
9219         
9220         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
9221         Use stock buttons; don't put a button box inside the existing
9222         dialog button box. Don't bother with push/pop colormap anymore.
9223
9224         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
9225         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
9226         for message dialog, and necessary for the font selection and color
9227         selection with help and apply buttons.
9228         
9229         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
9230         to the created button widget. Set GTK_CAN_DEFAULT on the button.
9231         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
9232         between buttons, put less padding around the action area.
9233         (gtk_dialog_run): Exit on unmap rather than on destroy. 
9234         This will also exit the loop if the widget is hidden.
9235         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
9236         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
9237         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
9238         special-case delete event.
9239
9240         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
9241         formatting
9242         
9243 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
9244
9245         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
9246         button to temporarily disable position recording in the
9247         "saved position" test.
9248
9249 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
9250
9251         * gtk/gtkthemes.c: added compat code that temporarily implements
9252         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
9253         going to be revamped by owen's upcoming GtkModule patches, but
9254         untill then people want gtk to build, right? ;)
9255
9256 2000-11-04  Havoc Pennington  <hp@pobox.com>
9257
9258         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
9259         list
9260
9261         * docs/Changes-2.0.txt: Add note about
9262         gtk_container_get_toplevels()
9263
9264         * gtk/gtktextview.h: formatting
9265         
9266         * gtk/gtktextview.c: don't start descriptions with "Returns",
9267         confuses gtk-doc
9268
9269 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
9270
9271         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
9272         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
9273
9274 2000-11-03  Havoc Pennington  <hp@redhat.com>
9275
9276         * gtk/gtktexttagtable.c: Docs
9277         (gtk_text_tag_table_size): return a signed int
9278
9279         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
9280         (gtk_text_tag_event): make the event_object a GObject
9281
9282         * gtk/gtktextview.c: Write API docs for all functions.
9283
9284         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
9285         for gtk_text_view_get_window_type() called on one of the private
9286         windows.
9287
9288         * gtk/gtktextview.c: Instead of accessing text_view->buffer
9289         directly, call get_buffer() which demand-creates a default
9290         buffer. So gtk_text_view_new() can be used to create a view with a
9291         default buffer in it, if you just want an empty text box users can
9292         put data in. Useful for GUI builders also.
9293
9294 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
9295
9296         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
9297         the charset encodign portion MUST be in lowercase.
9298         * gtk/gtkrc.az: added file for Azeri language
9299
9300 2000-11-03  Havoc Pennington  <hp@redhat.com>
9301
9302         Get widgets working on the btree/buffer side. Display of them 
9303         still doesn't work.
9304         
9305         * gtk/gtktextview.c: start implementing child widget stuff
9306
9307         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
9308
9309         * gtk/gtktextlayout.c: handle embedded widgets
9310
9311         * gtk/gtktextdisplay.c: handle embedded widgets
9312
9313         * gtk/gtktextchild.c: Implement all the child anchor goo
9314
9315         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
9316         function
9317
9318         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
9319         (insert_pixbuf_or_widget_segment): abstract out common portions of 
9320         creating a child anchor or a pixbuf segment.
9321         (gtk_text_btree_create_child_anchor): new function
9322         (gtk_text_btree_unregister_child_anchor): new function
9323
9324         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
9325         allocate_child signal on GtkTextLayout
9326
9327         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
9328         values
9329         (gtk_text_iter_get_child_anchor): new function
9330
9331         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
9332         default handler for the changed signal, which calls
9333         gtk_text_buffer_set_modified(), instead of just always emitting
9334         changed then calling set_modified() manually. I guess this is
9335         maybe more flexible. It seems logical.
9336
9337 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
9338
9339         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
9340         now.
9341
9342         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
9343
9344 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
9345
9346         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
9347         been marked static.
9348
9349 2000-11-02  Havoc Pennington  <hp@redhat.com>
9350
9351         * gtk/testgtk.c (create_labels): had a test backward
9352
9353         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
9354         fields, so the dest GC ends up with the correct clip origin, 
9355         etc. Fixes a bug where colored labels didn't redraw 
9356         properly.
9357
9358 2000-11-02  Alexander Larsson  <alexl@redhat.com>
9359
9360         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
9361         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
9362         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
9363         Add last argument to t_type_register_static call.
9364         
9365         * gdk/linux-fb/gdkdrawable-fb2.c:
9366         Add last argument to t_type_register_static call.
9367         export the get_image drawable virtual function.
9368
9369         * gdk/linux-fb/gdkimage-fb.c:
9370         Add last argument to t_type_register_static call.
9371         rename gtk_image_get to _gdk_fb_get_image and
9372         export it for use by gdkdrawable-fb2.
9373
9374         * gdk/linux-fb/gdkprivate-fb.h:
9375         export _gdk_fb_get_image.
9376
9377         * gdk/linux-fb/gdkselection-fb.c:
9378         Add new api call stubs.
9379
9380         * gtk/Makefile.am:
9381         Missing ( in linux-fb part.
9382
9383         * modules/linux-fb/Makefile.am:
9384         Must link with gdk_pixbuf or get unresolved symbol.
9385
9386 2000-11-01  Havoc Pennington  <hp@pobox.com>
9387
9388         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
9389         GTK_TYPE_TEXT_ITER and BOXED marshallers
9390
9391         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
9392
9393         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
9394         
9395         * gtk/gtk-boxed.defs: add GtkTextIter
9396
9397         * gtk/gtkmarshal.list: Add marshallers for text widget that 
9398         properly use OBJECT and BOXED
9399
9400 2000-11-01  Havoc Pennington  <hp@redhat.com>
9401
9402         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
9403
9404         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
9405         before returning it. 
9406         
9407 2000-11-01  Havoc Pennington  <hp@redhat.com>
9408
9409         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
9410         Clip the rectangle to be rendered to the drawable, since
9411         get_from_drawable() requires a region within the drawable
9412
9413 2000-11-01  Havoc Pennington  <hp@redhat.com>
9414
9415         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
9416         from coordinates.
9417
9418 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
9419
9420         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
9421         it isn't NULL.
9422
9423 2000-11-01  Havoc Pennington  <hp@pobox.com>
9424
9425         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
9426         on a label
9427         (gtk_label_finalize): unref the attr list if any.
9428
9429         * gtk/testgtk.c (create_get_image): close test on second click
9430         (make_message_dialog): close dialog if it exists
9431
9432         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
9433
9434         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
9435         gdk-pixbuf
9436
9437         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
9438         from Pango markup format
9439         (gtk_label_set_markup_with_accel): ditto but with accelerator
9440         parsing
9441
9442         * gtk/gtkimage.c (gtk_image_expose): reformatting.
9443
9444         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
9445         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
9446         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
9447         call gdk_window_get_origin().
9448
9449         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
9450         implement GDK_PIXBUF_ALPHA_FULL
9451         
9452 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
9453
9454         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
9455         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
9456         g_signal_handlers_disconnect_matched to block/unblock and disconnect
9457         multiple handlers respectively, instead of only treating the
9458         first handler found (bug reported by owen).
9459
9460 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
9461
9462         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
9463
9464         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
9465
9466         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
9467         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
9468         gtk/gtktreeviewcolumn.h: Fixed inline docs.
9469
9470         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
9471         widget.  Needs writing someday.
9472
9473         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
9474         the docs.
9475
9476 2000-10-30  Havoc Pennington  <hp@redhat.com>
9477
9478         * gtk/gtktextview.h, gtk/gtktextview.c:
9479         Rename delete_at_cursor delete_from_cursor, and 
9480         move to move_cursor.
9481
9482 2000-10-30  Havoc Pennington  <hp@redhat.com>
9483
9484         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
9485         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
9486         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
9487         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
9488         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
9489         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
9490         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
9491         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
9492         gtktexttypes.h, gtktextview.c, gtktextview.h:
9493
9494         Massive reindentation and reformatting. Arg alignment and comments
9495         still need fixing in various places.
9496
9497 2000-10-30  Havoc Pennington  <hp@redhat.com>
9498
9499         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
9500         to be named insert_at_cursor and delete_at_cursor so C++ can
9501         handle them.
9502
9503 2000-10-28  Tor Lillqvist  <tml@iki.fi>
9504
9505         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
9506         to get a double directory separator in case the home directory
9507         ends with one. This would cause trouble especially on Windows,
9508         where the path will be confused with the syntax for an an UNC
9509         (network share) path \\server\share\path.
9510         (gtk_rc_add_initial_default_files): Ditto.
9511
9512 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
9513
9514         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
9515
9516         * gtk/gtktextview.c: Use correct marshallers.
9517
9518 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
9519
9520         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
9521         use new iter stuff, and added all the appropriate signals et al.
9522
9523         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
9524         code is internal to gtk only.
9525
9526 2000-10-28  Tor Lillqvist  <tml@iki.fi>
9527
9528         * gtk/gtk.def
9529         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
9530         glib-genmarshal etc.
9531
9532 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
9533
9534         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
9535         parallel builds.
9536
9537 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
9538
9539         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
9540
9541 2000-10-27  Robert Brady  <robert@suse.co.uk>
9542
9543         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
9544         en_GB (British), ia (Interlingua).
9545
9546 2000-10-26  Havoc Pennington  <hp@redhat.com>
9547
9548         * gtk/gtktextiter.c (my_strrstr): fix constness warning
9549
9550         Fixed output of:
9551         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
9552         
9553         * gtk/gtktextsegment.c (char_segment_new): rename
9554         (_char_segment_new_from_two_strings): rename
9555         (_toggle_segment_new): rename
9556         
9557         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
9558         (make_clipboard_widget): make it static
9559         (text_get_func): static
9560         (text_clear_func): static
9561
9562         * gtk/gtkcolorsel.c (adjustment_changed): make this function
9563         static
9564         (hex_changed): make it static
9565         (hsv_changed): make it static
9566         (opacity_entry_changed): make it static
9567
9568         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
9569         (toggle_segment_check_func): rename with _gtk
9570
9571         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
9572         (_widget_segment_new): rename
9573         (_widget_segment_add): rename
9574         (_widget_segment_remove): rename
9575         (_widget_segment_ref): rename
9576         (_widget_segment_unref): rename
9577
9578         * gtk/gtktextmark.c (_mark_segment_new): Rename
9579         _gtk_mark_segment_new   
9580
9581 2000-10-26  Havoc Pennington  <hp@redhat.com>
9582
9583         * gtk/gtkmarshal.list: add new marshallers used by the text widget
9584         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
9585         types
9586
9587         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
9588         marshaller types
9589
9590         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
9591         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
9592         license on these files.
9593
9594         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
9595         work.
9596
9597         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
9598         runtime random number different for each tree, instead of 
9599         a constant I made up.
9600
9601 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
9602
9603         * gtk/Makefile.am: buncha cleanups, kludged build sources
9604         dependencies with a Makefile: oldest-source-stamp dependancy
9605         for the moment. automake is really fighting us here, with
9606         intentionally not allowing user-defined rules or dependancies
9607         prior to it's -include $(DEP_FILES) statement. sucks rocks!
9608
9609         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
9610         to public headers. tehy have a comment stating that they are
9611         "semi-public" aren't included by gtk.h and if enums popup there,
9612         they can be /*< skip >*/-ed.
9613
9614         * gtk/gtktextlayout.h: 
9615         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
9616         added LGPL... <SIGH>
9617
9618 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
9619
9620         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
9621         GtkTreeIter.  Added iterators everywhere.
9622
9623         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
9624
9625         * gtk/gtktreeviewselection.c: Changed to use the iterators.
9626
9627         * gtk/gtktreestore.c: Changed to use the iterators.
9628
9629         * gtk/gtkliststore.c: Commented out the code.  Will convert to
9630         iterators tomorrow.
9631
9632         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
9633         iterators tomorrow.
9634
9635         * gtk/treestoretest.c: Changed to use iterators.
9636
9637         * demos/testgtk/main.c: Moved to use the new iterator system.
9638
9639 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
9640
9641         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
9642         localization misbehaviour.
9643
9644         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
9645         a useless type without copy/free.
9646
9647         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
9648         of GTK_TYPE_CTREE_NODE.
9649
9650 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
9651
9652         * gtk/gtksignal.c:
9653         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
9654         applicable.
9655
9656         * gtk/gtk-boxed.defs (GtkSelectionData): specify
9657         gtk_selection_data_copy and gtk_selection_data_free
9658         do GtkSelectionData work as params in signals.
9659
9660 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
9661
9662         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
9663         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
9664         couldn't they at least give it a non-standard name?
9665         
9666         * gtk/gtktextlayout.c: arg! yet another implementation of
9667         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
9668
9669         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
9670         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
9671         home. now i know this _is_ a conspiracy.
9672
9673         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
9674         ::state-changed.
9675
9676         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
9677         (gtk_accel_group_create_add): marshaller signature fixups.
9678
9679         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
9680         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
9681
9682         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
9683         anymore.
9684
9685 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
9686
9687         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
9688         due to the signal system changes, it wouldn't build currently. to
9689         be fixed soon.
9690
9691         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
9692
9693         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
9694         so it needs gtk_marshal_VOID__ENUM() instead of
9695         gtk_marshal_NONE__UINT().
9696
9697         * gdk/gdk*.c: adapted type registration functions.
9698
9699         * gtk/gtkbindings.c:
9700         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
9701         gone.
9702
9703         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
9704
9705         * gtk/gtkobject.c:
9706         (gtk_object_destroy):
9707         (gtk_object_shutdown): fixed recursion guards. basically we have to
9708         catch the case where any of GObject.shutdown() or gtk_object_destroy()
9709         is called during ::destroy, and avoid recursion there.
9710
9711         * gtk/gtktypeutils.c:
9712         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
9713         boxed_copy/boxed_free. this needs a more general solution based on a
9714         publically installed code-generator utility.
9715
9716         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
9717         glib's gobject has support for that now.
9718         define GtkSignalMarshaller in terms of GSignalCMarshaller.
9719
9720 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
9721
9722         * gtk/gtksignal.[hc]:
9723         * gtk/gtkmarshal.[hc]:
9724         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
9725         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
9726         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
9727         care of that.
9728
9729         * *.c: marshaller name fixups.
9730
9731         * gtk/gtkmarshal.list: added a comment briefing the format.
9732
9733 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
9734
9735         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
9736         compatibility macros here now. more specifically, most of
9737         the API is preserved (yes, _most_, nonwithstanding the
9738         following exceptions listed, the API is stil lHUGE ;)
9739         things that got removed completely:
9740         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
9741         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
9742         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
9743         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
9744         gtk_signal_remove_emission_hook().
9745         non-functional functions variants:
9746         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
9747         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
9748         not supported anymore.
9749         (gtk_signal_compat_matched): new internal function to aid
9750         implementation of the compatibility macros, it  provides
9751         functionality to block/unblock/disconnect handlers based
9752         on func/data.
9753
9754         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
9755
9756         * *.c: adaptions to new type registration API signatures.
9757
9758 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
9759
9760         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
9761
9762 2000-10-25  Robert Brady  <robert@suse.co.uk>
9763
9764         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
9765         gdk_property_delete): If window == NULL, assume the root window.
9766         (restoring the behaviour that was in 1.2).
9767         
9768         * gtk/testtext.c (save_buffer): Allow creation of new files when
9769         saving.
9770
9771         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
9772         calls to read().
9773
9774 2000-10-25  Tor Lillqvist  <tml@iki.fi>
9775
9776         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
9777
9778         * gdk/win32/gdkdrawable-win32.c
9779         * gdk/win32/gdkimage-win32.c
9780         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
9781         X11 backend.
9782
9783         * gdk/win32/gdkcc-win32.c
9784         * gdk/win32/gdkcolor-win32.c
9785         * gdk/win32/gdkfont-win32.c
9786         * gdk/win32/gdkinput-win32.c
9787         * gdk/win32/gdkmain-win32.c
9788         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
9789
9790 2000-10-24  Havoc Pennington  <hp@redhat.com>
9791
9792         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
9793         it a static function
9794
9795         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
9796         redraw text when a tag is applied to it.
9797
9798         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
9799         (gtk_text_tag_affects_nonsize_appearance): private functions to
9800         see if a tag requires various kinds of redraw/layout to be queued
9801         up.
9802
9803         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
9804
9805         * gtk/testtext.c (fill_example_buffer): Put the cursor 
9806         at the start of the buffer, so search works by default
9807
9808         * gtk/gtktextiter.c (lines_match): init match_start always
9809
9810         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
9811         function, get iter at a line + a byte index
9812
9813         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
9814         to set byte position within a line
9815         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
9816
9817 2000-10-23  Havoc Pennington  <hp@redhat.com>
9818
9819         * gtk/testtext.c: Re-enable the "find" dialog
9820
9821         * gtk/testgtk.c: Add test for gdk_drawable_get_image
9822         
9823         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
9824         the arguments to gdk_draw_drawable were in the wrong order
9825         (gdk_window_paint_init_bg): This function was ignoring the
9826         init_region, instead of clipping to it, so the entire backing
9827         pixmap was cleared on every begin_paint()
9828         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
9829         was in here again, the loop kept using the same GtkWindowPaint
9830         over and over.
9831         (gdk_window_begin_paint_region): Fix a bug where we had two
9832         x_offset instead of x_offset and y_offset
9833
9834         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
9835         before we get the image.
9836         (gdk_draw_drawable): get the composite before we draw the drawable.
9837         (gdk_drawable_real_get_composite_drawable): default
9838         get_composite_drawable implementation that returns the drawable 
9839         itself
9840
9841         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
9842         get_composite_drawable virtual function
9843
9844         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
9845         list-walking bug
9846
9847         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
9848         make this work if the source drawable is a GdkDrawableImplX11
9849         instead of a public drawable type. This is really broken; the
9850         problem is that GdkDrawable needs a virtual method get_xid(), but
9851         of course that doesn't work in practice. Enter RTTI.
9852
9853         Also, improve mismatched depth message.
9854
9855         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
9856         GdkPixmap
9857
9858         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
9859         install _gdk_x11_get_image as our implementation of get_image
9860         
9861         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
9862         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
9863
9864         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
9865         gdk_drawable_get_image
9866
9867         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
9868
9869         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
9870         get_image
9871
9872         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
9873         trailing semicolon after for loop
9874
9875 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
9876
9877         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
9878         where font_desc for widget's context lagged widget's font_desc by
9879         one step.
9880
9881 2000-10-22  Tor Lillqvist  <tml@iki.fi>
9882
9883         * gdk/win32/gdkgc-win32.c
9884         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
9885
9886         * gtk/makefile.mingw.in
9887         * gtk/gtk.def: Updates.
9888
9889         * gtk/testgtk.c: sleep() is called _sleep in MS's C
9890         library.
9891
9892         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
9893
9894         * gtk/makefile.msc: Remove
9895
9896         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
9897
9898         * gtk/Makefile.am: Add it.
9899
9900         * configure.in: Generate it.
9901
9902         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
9903         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
9904         something even if not implemented, to satisfy picky MSVC.
9905
9906         Patches by Hans Breuer:
9907         
9908         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
9909         SetBkMode() and SetTextAlign() before calling
9910         pango_win32_render().
9911
9912         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
9913         Set hcliprgn to NULL after destroying it.
9914         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
9915
9916         * gdk/win32/gdkgeometry-win32.c
9917         (_gdk_windowing_window_queue_antiexpose): More effective
9918         implementation.
9919
9920         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
9921         depth as default, not the visual's.
9922
9923         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
9924         against empty title.
9925
9926         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
9927         IMAGE_PRIVATE_DATA.
9928
9929         * gdk/win32/gdkimage-win32.c: Use it.
9930
9931 2000-10-22  Robert Brady  <robert@suse.co.uk>
9932
9933         * configure.in: Check for bind_textdomain_codeset
9934
9935         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
9936         present, make use of it.
9937
9938         Add a translatable string "default:LTR" which, if translated
9939         to "default:RTL", will cause the default direction to be
9940         Right-to-Left.
9941
9942         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
9943         direction if marked as flippable.
9944
9945         * gtk/gtkhscale.c: Mark widget as flippable.
9946         
9947 2000-10-04  Havoc Pennington  <hp@redhat.com>
9948
9949         * gtk/testgtk.c (create_buttons): create some stock buttons
9950         with the default accel group
9951         (create_image): test some new GtkImage features
9952         (make_message_dialog): test GtkMessageDialog
9953         (create_modal_window): fix someone's bizzarro indentation
9954
9955         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
9956         GTK_WIN_POS_CENTER_ON_PARENT. 
9957         Add "destroy with parent" setting, which means the window goes
9958         away with its transient parent.
9959         (gtk_window_get_default_accel_group): get the default accel group
9960         for the window.
9961         (gtk_window_set_destroy_with_parent): set/unset destroy with
9962         parent flag
9963         (gtk_window_read_rcfiles): invalidate icon set caches
9964         after reloading rcfiles 
9965
9966         * gtk/gtkenums.h (GtkWindowPosition): add
9967         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
9968         on its parent window when the dialog is mapped for the first time.
9969
9970         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
9971         a simple message dialog class
9972         
9973         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
9974         handler to emit response signal, and maybe later it would
9975         honor a hide_on_delete flag - though that isn't there yet.
9976         Set border width on the vbox to 2, so we get some padding.      
9977         Use a button box for the action area.
9978         (gtk_dialog_key_press): synthesize a delete event if Esc
9979         is pressed and the GtkWidget key press handler didn't 
9980         handle the escape key.
9981         (gtk_dialog_new_with_buttons): new function creates a dialog
9982         with some default buttons in it.
9983         (gtk_dialog_add_action_widget): add an activatable widget
9984         as a button in the dialog - you can also add a non-activatable
9985         widget by accessing the action area directly.
9986         (gtk_dialog_add_button): add a simple button - stock ID or 
9987         label - to the action area
9988         (gtk_dialog_response): emit response signal
9989         (gtk_dialog_run): block waiting for the dialog, return 
9990         the response. Override normal delete_event behavior, so that 
9991         delete_event does nothing inside gtk_dialog_run().
9992
9993         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
9994         emitted when an action widget is clicked or the dialog gets
9995         delete_event
9996
9997         * gtk/gtk.h: add gtkmessagedialog.h
9998
9999         * gtk/Makefile.am: add gtkmessagedialog.[hc]
10000
10001 2000-10-18  Havoc Pennington  <hp@redhat.com>
10002
10003         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
10004         where any number of empty lines would get skipped
10005
10006         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
10007         edge.
10008
10009         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
10010         warning about invalid iterators (explain more thoroughly)
10011         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
10012
10013         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
10014         big
10015
10016         * demos/*.c: Add error handling
10017
10018         * gtk/gtktextbuffer.c: don't modify const iterators
10019
10020         * gtk/gdk-pixbuf-loader.c: Add full error handling here
10021
10022         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
10023         on file load
10024
10025         * gtk/gtkiconfactory.c: Update to reflect addition of error
10026         handling to gdk-pixbuf loaders
10027
10028 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
10029
10030         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
10031         move to new modularized testgtk.
10032
10033 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
10034
10035         * gtk/gtktreeview.c: Draw the arrows correctly.
10036
10037         * gtk/gtktreemodel.c: Added user docs.
10038
10039         * gtk/gtk.h: remove gtktreedatalist.h.
10040
10041         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
10042         parent when generating my type.
10043
10044         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
10045         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
10046
10047 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
10048
10049         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
10050         GtkTreeModel from object to interface.
10051
10052 2000-10-16  Havoc Pennington  <hp@redhat.com>
10053
10054         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
10055         compilation
10056
10057 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
10058
10059         * gtk/gtktreeselection.c: Add API documentation to all public
10060         functions.
10061
10062         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
10063         functions.
10064
10065 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
10066
10067         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
10068         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
10069         docs to all public functions.
10070
10071         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
10072         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
10073         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
10074         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
10075         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
10076         issue.
10077
10078 2000-10-14  Robert Brady  <robert@suse.co.uk>
10079
10080         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
10081
10082 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
10083
10084         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
10085         values other then G_TYPE_STRING.
10086         * gtk/gtktreeselection.c: Minor commenting updates.
10087         * gtk/gtktreeview.c: Format updates.
10088
10089 2000-10-09  Tor Lillqvist  <tml@iki.fi>
10090
10091         * README.win32: Update.
10092
10093         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
10094         lines that had been deleted by mistake (?).
10095
10096         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
10097         also the case fg==white and bg==black (but still not randomly
10098         coloured cursors). Thanks to Wolfgang Sourdeau.
10099
10100         * gdk/win32/*.c: Silence gcc -Wall.
10101
10102         * gtk/gtk.def: Add missing entry points.
10103
10104         Fixes by Hans Breuer:
10105
10106         * gdk/makefile.msc
10107         * gdk/win32/makefile.msc: Update.
10108
10109         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
10110         some MSVC thing, presumably), cause breakpoint on failures. Add
10111         GDK_NOR case. Call g_log_set_always_fatal.
10112
10113         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
10114         should be pased by reference.
10115         
10116         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
10117         
10118         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
10119
10120         * gdk/win32/gdkevents-win32.c
10121         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
10122
10123         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
10124         implementation object.
10125
10126         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
10127         not just windows.
10128         
10129         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
10130         Use the wrapper object.
10131         
10132 2000-10-06  Havoc Pennington  <hp@redhat.com>
10133
10134         * Makefile.am (SRC_SUBDIRS): contrib subdir
10135
10136         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
10137         so it can be used in Xlib version
10138
10139         * demos/testpixbuf.c (update_timeout): error checking from 1.0
10140         tree
10141
10142         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
10143         change from 1.0 tree that returns first frame of animation
10144         if the loaded file is an animation.
10145
10146         * contrib: add new directory to hold stuff that comes with GTK+
10147         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
10148         
10149         * configure.in: add contrib/*
10150
10151 2000-10-05  Havoc Pennington  <hp@redhat.com>
10152
10153         * demos/testpixbuf-save.c: add pixbuf save test
10154
10155         * demos/Makefile.am: add testpixbuf-save.c
10156
10157 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
10158
10159         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
10160         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
10161         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
10162         * gtk/gtktreeselection.[ch]: Replaced
10163         "node_selected"/"node_unselected" signal with "selection_changed"
10164         signal.
10165
10166 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
10167
10168         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
10169         tree widget.
10170
10171 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
10172
10173         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
10174         drawing.
10175
10176 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
10177
10178         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
10179         Move list pointer forwards before removing item from
10180         list. (Crash reported by Salmaso Raffaele)
10181
10182         * gdk/gdkwindow.h: Remove spurious trailing ,
10183
10184         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
10185         dependencies on uninstalled libraries, sorry folks.
10186
10187 2000-10-04  Havoc Pennington  <hp@redhat.com>
10188
10189         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
10190         gtk/gtkiconfactory.c: Fix copyrights    
10191
10192         * demos/testpixbuf.c: add inline pixbuf test
10193         
10194 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
10195
10196         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
10197         Add gdk_window_iconify.
10198
10199         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
10200         (gdk_window_set_geometry_hints): Add win_gravity
10201         to geometry structure.
10202
10203         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
10204         Implement _NET_WM_PING.
10205
10206         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
10207         Set _NET_WM_PID on the client leader.
10208
10209         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
10210         Handle UTF-8 better.
10211
10212         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
10213         UTF-8 better, set _NET_WM_NAME as well. Only set
10214         icon name if it hasn't previously been explicitely 
10215         set.
10216
10217 2000-10-03  Havoc Pennington  <hp@redhat.com>
10218
10219         * gtk/testtextbuffer.c: clean up trailing whitespace,
10220         add extensive tests for tag toggle iteration.
10221         
10222         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
10223         distance
10224
10225         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
10226         optimize case where the tag root is on level 1
10227         (gtk_text_line_previous_could_contain_tag): attempt to implement
10228         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
10229         functionality
10230
10231         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
10232         Implement this, though not very efficiently.
10233
10234         * gtk/gtktextiterprivate.h: reformat
10235
10236         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
10237         iterator
10238
10239         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
10240         this to properly revalidate the iterators.
10241
10242         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
10243         properly at the end of the line (and therefore on empty lines)
10244
10245         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
10246         maybe we should return a value...
10247
10248 2000-10-03  Tor Lillqvist  <tml@iki.fi>
10249
10250         * config.h.win32: Guard definition of alloca(). glib.h now handles
10251         that.
10252
10253         * gdk/gdk.def
10254         * gtk/gtk.def: Add new entry points.
10255
10256         Changes just to make GTK+ build without errors on Win32. No hope
10257         of it working in its current state, though...:
10258         
10259         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
10260         some functions from the X11 backend, just to make GTK+ build.
10261
10262         * gdk/makefile.mingw.in
10263         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
10264         number. Add new object files.
10265
10266         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
10267         GetMessageTime to get timestamp (where on X11 uses
10268         gdk_x11_get_server_time()).
10269
10270 2000-10-02  Havoc Pennington  <hp@pobox.com>
10271
10272         * gtk/gtktextview.c: text_window_* weren't static and should have
10273         been.
10274         Start work on child widgets; not yet complete, syncing to 
10275         office computer.
10276
10277         * gtk/gtktextchild.h: change this to contain a public interface,
10278         starting work on child interfaces.
10279         * gtk/gtktextchildprivate.h: move private interfaces here
10280
10281         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
10282
10283         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
10284         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
10285         gtk/gtktextmark.c: copyright notices
10286
10287         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
10288         internal functions      
10289
10290         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
10291         internal function
10292
10293         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
10294         Reformatting    
10295
10296 2000-09-30  Havoc Pennington  <hp@pobox.com>
10297
10298         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
10299         NULL start/end pointers
10300
10301         * gtk/gtktextbuffer.c: Write some docs
10302         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
10303         NULL, so you can just check whether there's a selection.        
10304
10305         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
10306         cleanup_line or segments_changed ourselves, it gets done 
10307         in unlink_segment
10308
10309         * gtk/gtktextmark.h:
10310         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
10311         
10312         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
10313
10314         * gtk/gtktextmark.c: delete some more old Tk cruft
10315
10316         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
10317         mark before removing it, so we can emit MARK_DELETED with a valid
10318         pointer.
10319         (gtk_text_buffer_mark_set): hold ref across signal emission
10320
10321         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
10322         whining about attempts to delete special marks
10323
10324         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
10325         underscore, since it's internal.
10326
10327         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
10328         now implemented in terms of iterators in gtktextiter.h
10329
10330         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
10331         New function, destructively sets contents of buffer. Also 
10332         a convenient way to clear the buffer by setting text to ""
10333
10334         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
10335         multiline string literal
10336
10337         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
10338         text changes.
10339
10340         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
10341         is not dereferenceable
10342         (gtk_text_iter_forward_lines): fix return value
10343
10344 2000-09-29  Havoc Pennington  <hp@redhat.com>
10345
10346         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
10347
10348         * gtk/gtktextview.c: Implement drag thresholding; change functions 
10349         that set border window size to have nicer name
10350         (gtk_text_view_mark_set_handler):  Fix this to have the 
10351         right signature.
10352
10353         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
10354
10355         * gtk/testtext.c: Update with API changes, put line numbers on 
10356         both sides.
10357         
10358         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
10359         with this
10360
10361         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
10362         pixbuf; delete a big block of #if 0 Tk code
10363
10364         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
10365         insert_pixmap with insert_pixbuf
10366
10367 2000-09-29  Martin Baulig  <baulig@suse.de>
10368
10369         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
10370         confusion with the GdkPixbuf of the GNOME 1.x platform.
10371
10372 2000-09-29  Havoc Pennington  <hp@pobox.com>
10373
10374         * gtk/gtktextview.c: Implement the side windows.
10375
10376         * gtk/testtext.c: Implement simple line numbering in the 
10377         left side window; seems to make scrolling sloooow. Oops.
10378         Also, cursor blink is for some reason causing redraws
10379         of the line numbers. Should investigate...
10380
10381 2000-09-28  Havoc Pennington  <hp@redhat.com>
10382
10383         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
10384         scrolling child windows, and draw focus rectangle properly.
10385         
10386         (gtk_text_view_buffer_to_window_coords):
10387         Coordinate transformation to deal with all these freaking windows
10388         and offsets
10389         (gtk_text_view_window_to_buffer_coords): transform the other way
10390
10391         * gtk/testtext.c (create_buffer): Update to match Pango API change
10392
10393         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
10394         anonymous tags
10395         (foreach_unref): don't emit remove signal from finalize, just
10396         set tag's parent to NULL
10397
10398 2000-09-26  Havoc Pennington  <hp@redhat.com>
10399
10400         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
10401         Fix some warnings       
10402
10403 2000-09-26  Havoc Pennington  <hp@redhat.com>
10404
10405         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
10406         headers into the private header list
10407
10408         * Makefile.am (pkgconfig_DATA): install pkg-config files
10409
10410         * configure.in: add pkg-config files
10411
10412         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
10413
10414         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
10415         outstanding icon caches on theme change.
10416
10417         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
10418         important types:
10419
10420         (GtkIconSource): Specification for creating a pixbuf 
10421         appropriate for a direction/state/size triplet from 
10422         a source pixbuf or filename
10423
10424         (GtkIconSet): List of GtkIconSource objects that are used to
10425         create the "same" icon (e.g. an OK button icon), and cache for
10426         rendered icons
10427
10428         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
10429         up the icon set for a given stock ID.  GTK maintains a stack of
10430         GtkIconFactory to search, and applications or libraries can add
10431         additional icon factories on top of the stack
10432         
10433         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
10434         the set of GtkIconSource specified for a given stock ID into 
10435         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
10436         RcStyle, under the specified stock ID.
10437
10438         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
10439         render_icon used to derive a GdkPixbuf from a GtkIconSource.
10440         This allows people to theme how prelight, insensitive, etc. are
10441         done.
10442
10443         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
10444         icon factories for a style, and return the resulting 
10445         icon set if any.
10446
10447         (gtk_style_render_icon): Render an icon using the render_icon 
10448         method in the GtkStyleClass.
10449
10450         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
10451         Use the style for a given widget to look up a stock ID, get the
10452         icon set, and render an icon using the render_icon method 
10453         of the style
10454
10455         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
10456         (contains information about a stock item), the built-in stock item
10457         IDs, and functions to add/lookup stock items.
10458
10459         * gtk/stock-icons/*: Stock icons that come with GTK
10460
10461         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
10462         a button based on a GtkStockItem
10463         (gtk_button_new_accel): Takes a uline string and accel group, and
10464         installs the accelerator.
10465
10466         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
10467         image-display widget.
10468
10469 2000-09-25  Havoc Pennington  <hp@redhat.com>
10470
10471         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
10472
10473         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
10474         Fix a bug when removing node data, we didn't properly 
10475         re-splice the linked list after removing the data.
10476
10477         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
10478         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
10479
10480         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
10481
10482         * gtk/gtktextlayout.c (set_para_values): Set tab array 
10483         for the layout from the GtkTextTag.
10484
10485         * gtk/gtktexttypes.h: delete tab and search cruft, 
10486         remove g_convert() in favor of GLib version
10487
10488         * gtk/gtktexttypes.c: remove tab implementation from here,
10489         move to Pango
10490
10491         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
10492         tab stuff using new PangoTabArray from Pango
10493
10494         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
10495         unused border_width stuff
10496
10497 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
10498
10499         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
10500         glib) and now useless utf_to_latin1() latin1_to_utf()
10501
10502         * gtk/gtktextview.[ch]: Change ::move_insert and
10503         ::delete_text action signals to ::move and ::delete;
10504         create the signals with the right enumeration type,
10505         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
10506         C-v bindings, change Home, End to move to beginning/end
10507         of line, Add C-Home C-End to move to beginning/end
10508         of buffer. Change ::cut_text to ::cut_clipboard, etc;
10509         combine ::scroll_text into ::move; use new GtkSelectionData
10510         functions to simplify DND text handling.
10511         
10512         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
10513         deletion enumerations here, rename enumeration values to 
10514         be consistently plural.
10515
10516         * gtk/gtktextbuffer.c: Use new clipboard interfaces
10517         for cut/copy/paste and primary selection.
10518
10519         * gtk/gtktextbuffer.[ch]: Remove excess time and
10520         'interactive' arguments from cut/copy/paste;
10521         rename cut to cut_clipboard, etc; remove
10522         gtk_text_buffer_get_clipboard_contents().
10523
10524         * gtk/gtktextlayout.[ch]: Add 
10525         gtk_text_layout_move_iter_to_line_end() to move the iter to 
10526         line ends.
10527
10528         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
10529         Functions to set or get a UTF-8 string on the selection
10530         data.
10531
10532         * gtk/gtkclipboard.[ch]: New, simplified selection handling
10533         interfaces.
10534
10535         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
10536         created widgets - one of these is useless if we don't.
10537
10538         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
10539         a public function clear all targets registered for the
10540         widget.
10541
10542         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
10543         Never call gtk_widget_realize() - that was just asking
10544         for bizarre side-effects.
10545
10546         * gtk/gtkselection.c (gtk_selection_owner_set): Call
10547         gdk_selection_owner_set even if the widget is the
10548         same so that we reliably update the timestamp on
10549         the server.
10550
10551         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
10552         gdk_x11_get_server_time() function.
10553         
10554         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
10555         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
10556         Add some tricky filtering on serial numbers for
10557         selection clear events to fix up long-standard
10558         race condition FIXME's in gtkselection.c.
10559
10560         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
10561         routines to convert from utf8 to compound text or
10562         STRING and from a text property to UTF-8.
10563
10564         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
10565         a convenience function gdk_get_current_event_time().
10566
10567         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
10568         and free selection_data->data properly
10569
10570 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
10571
10572         * gtk/gtkthemes.c: Remove some unecessary includes.
10573
10574 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
10575
10576         * gtk/gtktextdisplay.c
10577         * gtk/gtktextlayout.c
10578         * gtk/gtktexttag.c
10579         * gtk/gtktexttag.h
10580         * gtk/testtext.c: Change the overstrike property to strikethrough,
10581         to closer match pango.
10582
10583 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
10584
10585         * gtk/gtktextview.c: Fix up visibility so that focus,
10586         cursor_visible and blink interact properly.  Reenable cursor blink
10587         which had been roughly disabled. Make blink and focus
10588         properly per-view.
10589
10590         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
10591         Add a flag for whether to display insertion cursor and
10592         a function to set the flag.
10593
10594         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
10595         get_line_y() to get_line_yrange(), to be a bit more generally
10596         useful.
10597
10598 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
10599
10600         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
10601           do stop_navigating_submenu, to clear last timeout properly.
10602           Also in gtk_menu_motion_notify move ignore_enter above
10603           the conditional to make it always happen as suggested by Owen
10604
10605 2000-09-07  Tor Lillqvist  <tml@iki.fi>
10606
10607         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
10608
10609         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
10610         w32api headers.
10611
10612         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
10613         declarations.
10614
10615         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
10616         (gdk_win32_get_colormap): A line had been deleted by mistake.
10617
10618         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
10619         (gdk_event_translate): Handle more virtual keycodes to be able to
10620         generate GDK events for Control-comma, Control-period, etc.
10621
10622         * gtk/gtk.def: Add some missing entry points.
10623
10624 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
10625
10626         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
10627         Doc comment fixing. (Mostly non-matching parameter names.)
10628
10629         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
10630         comments a little to avoid looking like a doc comment.
10631
10632         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
10633         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
10634         conversions be changed to GError?)
10635
10636         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
10637         Move private #defines into .c file.
10638
10639         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
10640         order of argument addition, remove duplicates.
10641
10642         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
10643         parent class is FrameClass, not BinClass.
10644
10645         * gtk/gtk.h: Add gtkinvisible, which was missing.
10646         (It's occasionalyl useful for client apps, if seldom.)
10647
10648         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
10649         #define.
10650
10651 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
10652
10653         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
10654         coordinates when creating window, instead of GDK-space
10655         coordinates. (Avoid BadValue on too large windows.)
10656
10657 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
10658
10659         * configure.in (use_mmx_asm): Remove conftest* after use along the
10660         lines of AC_TRY_COMPILE.        
10661         
10662         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
10663         of g_dirname, which is deprecated.
10664         (gtk_rc_parse_any): Removed calls to
10665         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
10666
10667         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
10668         Removed calls to g_hash_table_{freeze,thaw}, as they are
10669         deprecated now.
10670
10671         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
10672         instead of g_basename.
10673         
10674 2000-09-04 Elliot Lee <sopwith@redhat.com>
10675         
10676         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
10677         ANSI warning.
10678
10679 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
10680
10681         * gtk/gtkwidget.h:  Add some documenting comments about 
10682           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
10683           just as owen said on irc.
10684
10685         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
10686           set HAS_DEFAULT.  Only set it if there isn't another window
10687           holding it (a focus window which RECEIVES_DEFAULT) and only unset
10688           it if the widget is not the focused window with RECEIVES_DEFAULT.
10689           This fixes weird double default bugs in dialogs which has things
10690           call gtk_window_set_default at times.
10691
10692 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
10693
10694         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
10695         Nils Barth and David Santiago to improve submenu
10696         navigation. The patch does this by creating a triangular
10697         region from the point where the pointer leaves the
10698         menu to the submenu.  While the pointer is in
10699         that region and a timeout has not expired, events 
10700         that would cause the active submenu to change are
10701         ignored.
10702
10703 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
10704
10705         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
10706         moving a toplevel window immediately after sizing it would
10707         result in it being sized back to the old size since 
10708         impl->width, impl->height aren't updated until we hear
10709         back from the server. There is still a (longstanding) bug
10710         here that gdk_window_get_size() will give the wrong size
10711         until we do hear back.
10712
10713 2000-08-31  Havoc Pennington  <hp@redhat.com>
10714
10715         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
10716         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
10717         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
10718         Rename GtkTextStyleValues to GtkTextAttributes
10719
10720 2000-08-31  Havoc Pennington  <hp@pobox.com>
10721
10722         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
10723         for rapid testing whether an iterator is the end iterator
10724         (gtk_text_btree_new): init end line cache
10725         (gtk_text_line_is_last): use fast cached line to 
10726         see if we're the last line.
10727         (get_last_line): use cached line here too, should 
10728         speed up some random unrelated code.
10729         
10730 2000-08-30  Havoc Pennington  <hp@pobox.com>
10731
10732         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
10733         signals.
10734
10735         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
10736         delete_text signals. This allows the signals to be used for
10737         implementing undo.
10738
10739         * gtk/gtktextbuffer.c: Change signal handler signatures; 
10740         provide "interactive" argument when emitting insert_text or
10741         delete_text signal.
10742         
10743 2000-08-30  Havoc Pennington  <hp@pobox.com>
10744
10745         * gtk/gtktextbuffer.c: Docs
10746
10747 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
10748
10749         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
10750         from switch statements, since Tor removed the enumeration
10751         value.
10752         
10753         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
10754         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
10755
10756 2000-08-29 Elliot Lee <sopwith@redhat.com>
10757         * */*.h: Use G_GNUC_CONST.
10758
10759 2000-08-27  Havoc Pennington  <hp@pobox.com>
10760
10761         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
10762         minor indentation fixes, inserted some FIXME about stuff I
10763         realized was broken while documenting it.
10764         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
10765         GTK convention  
10766
10767 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
10768
10769         * gtk/testgtk.c (create_styles): Fix double free of
10770         font desc.
10771
10772 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
10773
10774         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
10775         
10776         * gtk/testgtk.c (create_styles): Add a test for modifying
10777         the style through gtk_widget_modify_*.
10778
10779         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
10780         a function to get the current modifier style.
10781
10782         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
10783         of the passed in GtkRcStyle instead of ref'ing it.
10784
10785         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
10786
10787 2000-08-20  Tor Lillqvist  <tml@iki.fi>
10788
10789         * gdk/gdkimage.h
10790         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
10791         shared memory image+pixmap GdkImage type, or
10792         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
10793         I am dropping that.
10794
10795         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
10796         actually call gtk_init_abi_check(), passing also
10797         sizeof(GtkWindow). Ditto for gtk_init_check(). 
10798
10799         * gtk/gtk.def
10800         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
10801         New functions, used to check that the GTK+-using code has been
10802         compiled using the correct compiler and switches. In particular,
10803         with gcc one has to use the -fnative-struct switch as GTK+ is
10804         compiled with that.
10805
10806 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
10807
10808         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
10809         ->prev fields when merging lists. (Found simultaneously
10810         by Pawel Salek and Jakub Jelinek)
10811
10812 2000-08-12  Tor Lillqvist  <tml@iki.fi>
10813
10814         * gdk/gdk.def
10815         * gtk/gtk.def: Add missing entries.
10816
10817         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
10818         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
10819
10820         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
10821         function. Dummy implementation at this point.
10822
10823         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
10824         rules. Undefine GTK_COMPILATION when compiling the test programs.
10825         
10826         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
10827
10828 2000-08-11  Tor Lillqvist  <tml@iki.fi>
10829
10830         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
10831         to convert back and forth from UTF-8 and the "system" (or "current
10832         locale") charset when necessary. Indentation/spacing cleanup.
10833
10834 2000-08-10  Havoc Pennington  <hp@redhat.com>
10835
10836         * Makefile.am (snapshot): Change the format of the snapshot
10837         version to match glib
10838
10839         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
10840         from EXTRA_DIST since it doesn't seem to exist
10841
10842 2000-08-10  Tor Lillqvist  <tml@iki.fi>
10843
10844         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
10845         version of the directory name (not the UTF-8 one) when building
10846         the path name to stat().
10847
10848 2000-08-03  Elliot Lee  <sopwith@redhat.com>
10849
10850         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
10851         PANGO_ATTR_SHAPE set.
10852
10853 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
10854
10855         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
10856         Peter Osterlund to simplify the code while keeping the
10857         functionality the same.
10858
10859 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
10860
10861         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
10862         is_viewable() test further inside the function, since removing the 
10863         window from the redraw list without clearing ->update_area
10864         was also very broken.
10865
10866 2000-08-02  Tor Lillqvist  <tml@iki.fi>
10867
10868         * configure.in: Check for <unistd.h>.
10869
10870 2000-08-01  Martin Baulig  <baulig@suse.de>
10871
10872         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
10873         to display the message that this is a development version of GTK+.
10874
10875 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
10876
10877         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
10878         was depending on widget->allocation instead of the width of text_area,
10879         which was incorrect for subclasses like GtkSpinButton.
10880
10881         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
10882         with width == 1 tests that should be width == -1.
10883
10884 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
10885
10886         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
10887         (broken, Elliot, every single window blank on X) custom code with call
10888         to gdk_window_is_viewable() which a) prevents code duplicate and
10889         b) works. 
10890
10891 2000-07-31  Elliot Lee  <sopwith@redhat.com>
10892
10893         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
10894         to get the GDK_PARENT_ROOT() macro to work.
10895         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
10896         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
10897         of, windows that aren't shown.
10898         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
10899         pointer grab stuff.
10900
10901 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
10902
10903         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
10904           s/gtk_main_iteration/g_main_iteration/
10905
10906           Did this already in change:
10907                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
10908           don't know how it got reverted.
10909
10910 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
10911
10912         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
10913         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
10914
10915         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
10916         not gdk_pixbuf.
10917
10918 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
10919
10920         * configure.in,po/{sp,sr}.po: Added Serbian files
10921
10922 2000-07-30  Tor Lillqvist  <tml@iki.fi>
10923
10924         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
10925
10926         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
10927         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
10928         GIOChannel implementation.
10929
10930         * gdk/win32/gdkinput.c
10931         * gdk/win32/gdkpango-win32.c: Update license name here, too.
10932
10933         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
10934         definition to match prototype.
10935
10936         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
10937
10938 2000-07-27  Elliot Lee  <sopwith@redhat.com>
10939
10940         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
10941         function, to allow handling image formats that cannot be detected
10942         by looking at content alone.
10943
10944 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
10945
10946         * docs/tutorial/*.gif *.jpg *.eps
10947           Update these to the same look-n-feel.
10948           Why does including images in DocBook suck so badly?
10949
10950 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
10951
10952         * gtk/gtktable.c: applied patch from Phil Thompson
10953         <phil@river-bank.demon.co.uk> that enables space settings for
10954         the last row/columns as well.
10955
10956 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
10957
10958         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
10959         updates the license headers to the GNU Lesser General Public License,
10960         as well as updating the copyright year to 2000.
10961
10962 2000-07-26  Robert Brady  <rwb197@zepler.org>
10963
10964         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
10965           and po/Makefile, was installing and looking for them under gtk20
10966           and gtk2 respectively.
10967
10968 2000-07-25  Havoc Pennington  <hp@redhat.com>
10969
10970         * gtk/testtext.c: Comment out some stuff that depends on the rest
10971         of my patches.
10972
10973 2000-07-25  Havoc Pennington  <hp@redhat.com>
10974
10975         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
10976         buffer
10977
10978 2000-07-25  Havoc Pennington  <hp@redhat.com>
10979
10980         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
10981         widget changes.
10982
10983         * gtk/gtktextview.h: To be consistent with usage of "line"
10984         throughout the API to mean "newline-terminated thingy", change
10985         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
10986         to MOVEMENT_LINE.
10987
10988         (GtkTextView): Add flags for default editability, and whether to
10989         show the cursor. Add functions to get/set that. Add 
10990
10991         (gtk_text_view_get_iter_location): new function
10992
10993         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
10994         gtktextlayout.h
10995         (g_convert): Add g_convert temporarily, will go in glib in a bit
10996         
10997         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
10998         GtkTextTagTableForeach instead of brokenly using GHFunc.
10999         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
11000
11001         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
11002         moved to public header.
11003
11004         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
11005         "invisible", since "elide" was a bad name.
11006         (gtk_text_tag_get_priority): Added
11007
11008         (GtkTextStyleValues): put this in public header, along with
11009         functions to use it.
11010
11011         * gtk/gtktextmarkprivate.h: Include more headers, since we no
11012         longer include gtktextbtree.h.
11013
11014         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
11015         gtk_text_mark_deleted
11016
11017         * gtk/gtktextlayout.h: Don't include the "really private" headers,
11018         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
11019         to make this possible. Now we only need to install
11020         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
11021         (However the Makefile.am isn't changed yet because of the
11022         logistics of merging gtk-hp-patches piecemeal)
11023
11024         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
11025         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
11026         gtk_text_iter_get_line is now used in the public API for a
11027         different purpose.
11028
11029         * gtk/gtktextiter.h: Clean up function names to be more
11030         consistent. Always call char offset "offset" and byte index
11031         "index". A "line" is always a line number. 
11032
11033         (gtk_text_iter_is_last): new function, more efficient than 
11034         the existing way to check
11035         (gtk_text_iter_is_first): new function, also more efficient
11036
11037         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
11038
11039         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
11040         gtk_text_iter_forward_char, etc.
11041
11042         (gtk_text_iter_forward_to_tag_toggle): Renamed from
11043         forward_find_tag_toggle, since this isn't a linear search
11044
11045         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
11046
11047         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
11048         New functions, search for a buffer substring.
11049
11050         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
11051         interactive and default editable (since we need to store that info
11052         until we receive the selection data).
11053
11054         Remove all the _at_char and at_line etc. versions of functions;
11055         only have iterator versions.
11056
11057         Add _interactive() versions of functions, that consider the
11058         editability of text. (FIXME add interactive flag to the 
11059         insert/delete signals per Darin's suggestion)
11060
11061         (gtk_text_buffer_get_tag_table): new function, demand-creates the
11062         tag table if necessary
11063
11064         Remove declaration of gtk_text_buffer_get_iter_from_string
11065
11066         (_gtk_text_buffer_get_btree): private/internal function, added.
11067         
11068
11069         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
11070         (gtk_text_line_is_last): new function
11071
11072 2000-07-25  Havoc Pennington  <hp@redhat.com>
11073
11074         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
11075         using GtkProgressBar. See Changes-2.0.txt for details.
11076
11077         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
11078         "pulse_step" which are the equivalent of
11079         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
11080         Implement new API.
11081         
11082         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
11083         (use_text_format) to mark whether text set on the progress bar is
11084         a format string. Deprecate entire GtkProgress interface.
11085
11086         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
11087         (gtk_progress_build_string): make this a no-op if use_text_format
11088         is FALSE
11089
11090         * docs/Changes-2.0.txt: Describe progress bar changes.
11091
11092 2000-07-25  Tor Lillqvist  <tml@iki.fi>
11093
11094         * Makefile.am: Include the build directory.
11095
11096         * configure.in: Generate build/Makefile, build/win32/Makefile,
11097         gdk/, gdk/win32/, and gtk/makefile.mingw.
11098
11099         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
11100         Add GETTEXT_PACKAGE.
11101         
11102         * gdk/gdk.def
11103         * gtk/gtk.def: Updates.
11104
11105         * gdk/gdkfont.h
11106         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
11107         need them any longer.
11108
11109         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
11110
11111         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
11112         PANGOWIN32_LIBS and gdk_pixbuf.
11113
11114         * gdk/win32: Compiles, but no doubt doesn't work at all.
11115
11116         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
11117
11118         * gdk/win32/gdkinput.c: New file, temporarily.
11119         
11120         * gdk/win32/gdkinput-win32.h: New file
11121
11122         * gdk/win32/gdkinputprivate.h: Remove.
11123
11124         * gdk/win32/gdkpango-win32.c: New file.
11125
11126         * gtk/makefile.mingw.in: New file
11127
11128         * gtk/makefile.cygwin: Removed
11129         
11130         * gtk/Makefile.am: Update accordingly.
11131
11132         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
11133         made externally visible.
11134
11135         * gtk/gtkmain.c: Use it.
11136         
11137         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
11138         is enough.
11139
11140         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
11141
11142 2000-07-24 Elliot Lee <sopwith@redhat.com>
11143         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
11144         individual backends already.
11145         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
11146         again. Yes, there really is a good reason for this, if you are using the gdkregion
11147         internals, and if you're not, why do you care?
11148         * gdk/gdkwindow.c: Fix inverted condition
11149         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
11150         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
11151         * gtk/gtkrange.c: Redraw trough when moving.
11152         * gtk/gtktypeutils.c: Fix warning by adding const cast.
11153         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
11154
11155 2000-07-23  Tor Lillqvist  <tml@iki.fi>
11156
11157         * configure.in: Check for mkstemp and sigsetjmp. Output
11158         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
11159
11160         More work on GDK for Win32. Still in an intermediate state.
11161
11162         * gdk/makefile.cygwin
11163         * gdk/win32/makefile.cygwin: Removed.
11164         
11165         * gdk/makefile.mingw.in
11166         * gdk/win32/makefile.mingw.in: New files.
11167
11168         * gdk/Makefile.am
11169         * gdk/win32/Makefile.am: Generate and distribute them.
11170
11171         * gdk/win32/gdkwindow-win32.h
11172         * gdk/win32/gdkdrawable-win32.h
11173         * gdk/win32/gdkpixmap-win32.h: New files.
11174
11175         * gdk/win32/gdkcolor-win32.c
11176         * gdk/win32/gdkcursor-win32.c
11177         * gdk/win32/gdkdrawable-win32.c
11178         * gdk/win32/gdkgc-win32.c
11179         * gdk/win32/gdkimage-win32.c
11180         * gdk/win32/gdkprivate-win32.h
11181         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
11182         Rename fields and variables called xcursor, xid, etc (these names
11183         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
11184
11185 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
11186
11187         * gtk/gtkentry.[ch]: Fix some problems with vertical
11188         alignment.
11189
11190         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
11191         char/byte confusion.
11192
11193 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
11194
11195         * gtk/gtktextview.c (changed_handler): Fix bug where
11196         redraw wasn't being done properly when height of
11197         dirty region changed.
11198
11199         * demos/Makefile.am: Remove various references to
11200         -lgmodule
11201
11202 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
11203
11204         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
11205         PangoAttrShape to reserve space for pixmaps, add 
11206         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
11207         in the display functions.
11208         
11209         * gtk/testgtk.c (create_layout): Set some more exotic
11210         scrolled window options
11211
11212         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
11213         Add function to set the shadow type of a window, to allow
11214         putting a shadow around widgets such as GtkLayout or GnomeCanvas
11215         which don't draw their own frame.
11216
11217 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
11218
11219         * docs/tutorial/package-db-tutorial.sh: New file for
11220           packaging DocBook format tutorial
11221
11222 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
11223
11224         * docs/tutorial/gtk-tut.sgml: Minor updates
11225
11226         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
11227
11228 2000-07-19  Tor Lillqvist  <tml@iki.fi>
11229
11230         * gtk/gtksignal.c: Fix C++ comment.
11231
11232         * gtk/gtkimmulticontext.c
11233         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
11234         don't return value from void functions.
11235
11236         * gtk/gtk.def: Add gtk_rc_style_unref.
11237
11238 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
11239
11240         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
11241         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
11242         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
11243         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
11244         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
11245         gtk/gtktypeutils.h: Include files outside of the extern "C"
11246         block. Makes some C++ compiler happy. Reported by Denis Vakatov
11247         <vakatov@peony.nlm.nih.gov>.
11248
11249 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
11250
11251         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
11252           Completes first pass. Hurrah!
11253
11254 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
11255
11256         * docs/tutorial/gtk-tut.sgml: More clean ups.
11257
11258 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
11259
11260         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
11261         paint the background of the text area which was accidentally
11262         removed at some point.
11263
11264         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
11265           
11266          - Move most of the functionality from the theme vtable
11267            into GtkRcStyleClass and GtkStyleClass. The moved
11268            vtable functions were changed a bit in the move to
11269            work better in their new home.
11270
11271          - Get rid of the engine and engine_data fields from
11272            GtkRcStyle and GtkStyle; instead the theme
11273            engine derives theme-specific subclasses of GtkRcStyle
11274            and GtkStyle
11275
11276          - Add extra dlsym() found entry point to themes,
11277            theme_create_rc_style().
11278
11279         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
11280         in gtk_style_real_copy.
11281
11282         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
11283         to register a type associated with an engine. (The engine
11284         won't be unloaded as there is an instance of the type.)
11285
11286
11287 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
11288
11289         * docs/tutorial/gtk-tut.sgml: Clean ups.
11290
11291 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
11292
11293         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
11294           of cleaning up to do.
11295
11296 2000-07-15  Tor Lillqvist  <tml@iki.fi>
11297
11298         * gdk/testgdk.c: New file, quick hack to test backends for
11299         pixel-by-pixel correctness of the most simple graphic operations.
11300
11301 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
11302
11303         * Really release 1.3.1
11304         
11305         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
11306         include structure.
11307
11308 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
11309
11310         * Released 1.3.1
11311
11312 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
11313
11314         * gtk/gtktextlayout.c: use FALSE for size_only most
11315         of the time when calling gtk_text_layout_get_line_display()
11316         to avoid causing double reshapes when a redraw follows
11317         immediately after.
11318
11319 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
11320
11321         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
11322         appropriate region and gdk_window_process_updates() so trough
11323         updating doesn't lag behind the window being scrolled.
11324
11325         * gdk/gdkgc.c: Make parent_class pointer static.
11326          
11327 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
11328
11329         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
11330         include <string.h>.
11331          
11332         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
11333         cut-and-paste error in computing memory offset for 4 channels.
11334
11335 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
11336
11337         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
11338         gtk_rc_append_default_pixmap_path(), since it wasn't
11339         adding an interesting path and we don't have a meaningful
11340         default for this value.
11341
11342 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
11343
11344         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
11345         gtk-config to gtk-config-2.0 move gtk_.m4 to
11346         gtk-2.0.m4
11347
11348         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
11349         gdk/Makefile.am demos/Makefile.am: Change 
11350         library names to libgtk-1.3.la, etc, so that we
11351         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
11352
11353         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
11354         gdk/Makefile.am gdk/x11/Makfile.am
11355         Move include files into /usr/include/gtk-2.0, 
11356         /usr/lib/gtk-2.0/include/
11357          
11358         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
11359         gtk/gtkintl.h: Change package for gettext from 
11360         gtk+ to gtk20. Put hack in autogen.sh to modify
11361         po/Makefile.in.in after gettextize to make this
11362         possible.
11363
11364         * gtk+.spec: Some updates, not tested.
11365
11366         * gdk-pixbuf/Makefile.am: Move loaders into
11367         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
11368
11369         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
11370         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
11371         to THEMENAME/gtk-2.0/. Move engine directory  to
11372         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
11373         
11374 2000-07-12  Tor Lillqvist  <tml@iki.fi>
11375
11376         Win32 changes, still doesn't build though.
11377
11378         * gdk/makefile.cygwin
11379         * gdk/win32/makefile.cygwin
11380         * gtk/makefile.cygwin: Updates.
11381
11382         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
11383         default values for fg and bg pixel as X11 does (0 and 1), not
11384         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
11385         Use 0 for pen width by default (treated as 1 anyway later, but for
11386         apps that might check the value in the GdkGC).
11387         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
11388         interface to gdk_gc_predraw and _postdraw.
11389
11390         * gdk/win32/gdkwin32.h
11391         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
11392
11393         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
11394         extraneous semicolon.
11395
11396         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
11397
11398         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
11399         not the Win32 bitspixel value.
11400
11401         * gdk/win32/gdkcc-win32.c:
11402         * gdk/win32/gdkcolor-win32.c 
11403         * gdk/win32/gdkprivate-win32.h
11404         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
11405         GDK object structure.
11406
11407 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
11408
11409         * docs/tutorial/gtk_tut_12.es.sgml (name): 
11410         * docs/tutorial/gtk_tut_it.sgml (name): 
11411         * docs/tutorial/gtk_tut_fr.sgml (name): 
11412         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
11413         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
11414
11415 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
11416
11417         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
11418           small changes.
11419
11420 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
11421
11422         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
11423         a bug here, never been here and never fixed anything ;(
11424         (don't segfault if tree->root_tree is NULL, which happens prior
11425         to widget realization, but puke instead).
11426
11427 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
11428
11429         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
11430         add the necessary tokens.
11431
11432         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
11433         (gtk_rc_style_to_style): copy thicknesses.
11434         (gtk_rc_init_style): apply thicknesses.
11435         (gtk_rc_parse_style): parse xthickness and ythickness.
11436
11437         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
11438
11439         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
11440         (gdk_window_new): 
11441         (_gdk_windowing_window_init): 
11442         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
11443         (gdk_pixmap_create_from_data): 
11444         (gdk_bitmap_create_from_data): 
11445         (gdk_pixmap_new): 
11446         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
11447         (gdk_image_new): 
11448         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
11449         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
11450         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
11451         (gdk_colormap_get_system): 
11452         (gdk_colormap_new): 
11453         * gdk/gdkwindow.c (gdk_window_init): 
11454         * gtk/gtkstyle.c (gtk_style_new):
11455         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
11456         * gdk/gdkpixmap.c (gdk_pixmap_init): 
11457         * gtk/gtkrc.c (gtk_rc_style_new):
11458         use g_object_new() instead of g_type_create_instance() which
11459         is a private function for fundamental type implementations.
11460
11461 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
11462
11463         * configure.in: Add check for db2html
11464
11465 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
11466
11467         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
11468         hack to set glib_debug_objects based on gtk_debug_flags.
11469
11470 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
11471
11472         * INSTALL.in: Update the Prerequisites section.
11473
11474         * Makefile.am demos/Makefile.am docs/Makefile.am
11475         docs/tutorial/Makefile.am gdk/x11/Makefile.am
11476         gdk/linux-fb/Makefile.am: Dist fixes
11477
11478 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
11479
11480         * NEWS: 10,000 foot view of 1.3.1 changes.
11481
11482 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
11483
11484         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
11485         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
11486         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
11487         gdk/x11/gdkmain-x11.c: 
11488
11489         Patch from George Lebl to add a GdkGrabStatus enumeration to use
11490         as a return value of gdk_*_grab(). Previously, we just
11491         returned the X11 values directly.
11492
11493 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
11494
11495         * gdk/x11/Makefile.am: Patch from George Lebl to 
11496         install all the headers in the right place.
11497
11498 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
11499
11500         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
11501           initial conversion to DocBook.
11502
11503 2000-07-04  Tor Lillqvist  <tml@iki.fi>
11504
11505         * README.win32: Improve a bit.
11506
11507         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
11508         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
11509         Alt+0nnn on the numpad (used to enter characters by numeric code
11510         from current DOS or ANSI codepage) working correctly, as in other
11511         Windows apps.
11512
11513         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
11514         same argument validity tests as in X11 version.
11515         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
11516
11517         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
11518         definitions in case missing from headers.
11519
11520         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
11521         destroy the window-specific cursor.
11522         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
11523         calling GetModuleHandle(NULL).
11524         (gdk_window_set_cursor): Reworked to always copy the passed cursor
11525         with CopyCursor before setting it as the window-specific
11526         cursor. It is OK for the caller to destroy the GdkCursor (and thus
11527         also its Windows cursor) after calling this function. Destroy any
11528         previous window-specific cursor.
11529
11530 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
11531
11532         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
11533         font charset is iso8859-1, not iso-8859-1.
11534
11535 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
11536
11537         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
11538         Use g_get_charset() instead of g_get_codeset().
11539
11540         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
11541         Comment out some strdup'ing functions to keep timj
11542         happy until we finish fighting this out.
11543
11544 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
11545
11546         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
11547         <= width or height.
11548
11549         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
11550         from 1.2 for parent/child states.
11551
11552         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
11553         of typos.
11554
11555         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
11556         event structures, replace with a generic axes field. Replace 
11557         deviceid/sourec with GdkDevice *device.
11558
11559         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
11560         to extract particular axis use value from event. (Also
11561         can be used for normal X/Y.)
11562
11563         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
11564         allow for arbitrary number of axes, namespace everything
11565         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
11566         everywhere.
11567
11568         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
11569         Get rid of the gdk_input_vtable setup if favor of simply
11570         defining the functions in gdkinput-none/gxi/xfree.c in
11571         a similar fashion to the way that the port structure is 
11572         done.
11573
11574         * gtk/gtkdnd.c: Fix fields of synthesized button press event
11575         for new event structures. 
11576
11577         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
11578         new device interfaces.
11579
11580 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
11581
11582         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
11583         set the initial text.
11584
11585         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
11586         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
11587         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
11588         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
11589
11590         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
11591         pango_layout_set_font_description to simplify.
11592
11593 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
11594
11595         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
11596         pango_layout_set_font_description to simplify.
11597
11598 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
11599
11600         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
11601         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
11602         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
11603
11604         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
11605         PANGO_PIXELS() macro.
11606
11607 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
11608
11609         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
11610         that returns a PangoContext owned by the widget and updated to
11611         match future changes in the widget. Also, make 
11612         gtk_widget_create_pango_layout() use this context. If we ever
11613         add a ::changed signal to PangoContext, this will make things
11614         much more convenient. 
11615
11616         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
11617         in the appropriate places instead of destroying the layouts and
11618         creating new ones.
11619
11620         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
11621         in a few strategic places.
11622
11623 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
11624
11625         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
11626         gtk_widget_size_request() on reparented child, if one. Otherwise,
11627         queue_resize() on the child never results in it getting size-requested
11628         at all.
11629
11630         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
11631         in option menus, so that (with luck) people won't copy it into
11632         their apps in the future.
11633
11634         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
11635         to gtk_option_menu_calc_size. This isn't perfect, but should fix
11636         a lot of problems with changing the size of the menu's menu
11637         items after adding it to the option menu.
11638
11639         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
11640
11641         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
11642         the text direction for a widget changes.
11643
11644         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
11645         ::direction_changed to get rid of various hacks.
11646
11647 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
11648
11649         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
11650         name.
11651
11652 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
11653
11654         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
11655         flag to the structure. Do not call XFreePixmap on pixmaps created
11656         by gdk_pixmap_foreign_new().
11657
11658 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
11659
11660         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
11661         value using GdkRGB functionality given GdkColormap and GdkColor.
11662         (name not final, waiting for inspiration.)
11663         
11664         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
11665         set the foreground/background of a GC using the GC's colormap
11666         and GdkRGB. (name not final, waiting for inspiration.)
11667
11668         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
11669         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
11670
11671         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
11672         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
11673         purely a function of the corresponding colormap. Make
11674         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
11675
11676         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
11677         gdk_pixbuf_*create_from_xpm_* in terms of
11678         gdk_pixbuf_new_from_xpm_data(), move into platform independent
11679         code.
11680
11681         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
11682         advantage of the new draw_rgb_32_image_dithalign.
11683
11684         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
11685
11686         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
11687         on each created GC.
11688
11689         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
11690
11691         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
11692         which we initialize from the drawable when the GC is created,
11693         if the drawable has a colormap.
11694
11695         * gdk/x11/gdkgc-x11.c: include string.h for memset.
11696
11697         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
11698
11699         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
11700
11701 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
11702
11703         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
11704         actually returning expose events, make sure to set
11705         the count field properly.
11706
11707         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
11708         accidentally reintroced bug which always cleared
11709         the graphics_exposures value. 
11710
11711 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
11712
11713         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
11714
11715 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
11716
11717         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
11718
11719 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
11720
11721         * docs/faq/gtk-faq.sgml: Start of Section 6.
11722
11723 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
11724
11725         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
11726         
11727         (Fixes problem with drawing childless frames. Pointed out
11728         by and a first patch from Anders)
11729         
11730         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
11731         compute a child_allocation, even if we don't have a child.
11732
11733         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
11734         Always chain to the parent's impl, even if we don't have a child.
11735
11736 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
11737
11738         * gdk/gdkrgb.c: If possible, create only a single shm segment and
11739         use multiple parts of it instead of creating a bunch of separate
11740         segments, since the maximum number of segments per system is not
11741         large. (This might be worth backporting to GTK+-1.2.x if we make a
11742         new release )
11743
11744         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
11745         structure in preparation for per-colormap GdkRGB.
11746
11747         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
11748         to False when we get EINVAL from shmget so that the caller of
11749         gdk_image_new can retry with a smaller segment size.
11750
11751 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
11752
11753         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
11754
11755 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
11756
11757         * configure.in: make the current version number 1.3.1 (binary age 0,
11758         interface age 0).
11759         
11760         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
11761         gtkcompat.h is all we want.
11762
11763         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
11764         GLib primitive types. fixed g_type_register_fundamental() argument
11765         ordering.
11766
11767         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
11768         compiles.
11769
11770         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
11771         object code cleanup, comment trigraph fixes, etc...
11772
11773 2000-06-23  Havoc Pennington  <hp@redhat.com>
11774
11775         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
11776         instead of making up a bogus name for first_para_mark
11777
11778         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
11779         0 as a context ID
11780
11781 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
11782
11783         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
11784
11785 2000-06-21  Havoc Pennington  <hp@pobox.com>
11786
11787         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
11788         we didn't check window->bg_pixmap != GDK_NO_BG.
11789
11790         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
11791         gdk-pixbuf
11792
11793 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
11794
11795         * docs/faq/gtk-faq.sgm: Move file to here.
11796           TODO: Update Makfile.am 
11797
11798 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
11799
11800         * docs/gtk-faq.sgm: Add Section 2
11801
11802 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
11803
11804         * docs/gtk-faq.sgm: New file. Start of DocBook
11805           version of the FAQ.
11806
11807 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
11808
11809         * configure.in (GDK_PIXBUF_MAJOR): Define version
11810         numbers for GDK_PIXBUF_*, as they get substituted
11811         into a header file. Need to consider versioning
11812         for gdk-pixbuf more carefully later.
11813
11814 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
11815
11816         Work with srcdir != builddir.   
11817         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
11818         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
11819         * demos/testpixbuf.c: Likewise.
11820         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
11821         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
11822         <gdk/x11/gdkx.h>.
11823         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
11824         "gdk-pixbuf.h".
11825         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
11826
11827 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
11828
11829         * TODO.xml: Change 1.4 version numbers to 2.0.
11830
11831 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
11832
11833         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
11834         fixups to GTK+ standard.
11835
11836 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
11837
11838         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
11839         gdk-pixbuf.
11840
11841         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
11842         fixups for GObject.
11843
11844         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
11845         gdk-pixbuf with GDK dependencies moved into GDK.
11846         
11847         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
11848         move gdk-pixbuf-loader here until GObject has signals.
11849
11850         * demos/: New directory of demos. Move demos from
11851         gdk-pixbuf here.
11852
11853         * demos/pixbuf-init.c: Small bit of code to check for
11854         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
11855         set GDK_PIXBUF_MODULEDIR appropriately.
11856
11857         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
11858         define which no longer makes sense.
11859
11860 2000-06-21  Havoc Pennington  <hp@redhat.com>
11861
11862         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
11863         gtk_get_default_language
11864
11865         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
11866         new function to get the default language
11867
11868         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
11869         s/gtk_text_view_style_values/gtk_text_style_values/
11870
11871         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
11872         Add a "language" field to tags.
11873
11874         (gtk_text_tag_set_arg): Fix bug in setting
11875         "bg_full_height_set" tag.
11876
11877 2000-06-21  Havoc Pennington  <hp@redhat.com>
11878
11879         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
11880         in the interfaces
11881
11882         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
11883         stuff instead when possible.
11884
11885         * gtk/gtktexttypes.h: Delete some unused constants
11886
11887         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
11888         testtextbuffer.c: use glib instead of custom unicode routines
11889
11890 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
11891
11892         * docs/es/: Removed mistakenly added generated sgml
11893
11894         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
11895         Remove outdated info files.
11896
11897         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
11898         Moved tutorial files into subdir
11899
11900         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
11901         subdir.
11902
11903         * docs/man/gtk_button.pod: Remove. (contents will be
11904         integrated into gtk-reference button page.)
11905
11906         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
11907         docs/faq/Makefile.am: Adjust for new organization
11908
11909 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
11910
11911         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
11912         not $(MKINSTALLDIRS)
11913
11914 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
11915
11916         * gtk/testgtk.c (create_text): Finish the job Elliot started
11917         of removing font setting test for text widget. (Since text widget
11918         and GdkFont are not deprecated, and cause portability problems.)
11919
11920 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
11921
11922         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
11923         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
11924         Remove use of libunicode in favor of new GLib functions.
11925
11926         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
11927         nano-x, framebuffer. The X11 include is just a hack until we get
11928         the necessary functions in gdkcolor.h, so there is no reason to
11929         add other includes of platforms.
11930
11931         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
11932         window bigger than the screen change.
11933
11934         * gtk/testgtk.c: Revert some random changes from Elliot
11935         that had no particular point and were causing testgtkrc
11936         not to function correctly.
11937         
11938         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
11939         because GdkSegment and GdkRegionBox have the same fields,
11940         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
11941         results in clearer code.
11942
11943         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
11944         gdk_input_translate_coordinates): Fix missed GdkObjectification
11945
11946 2000-06-18  Elliot Lee  <sopwith@redhat.com>
11947
11948         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
11949         * gtk/gtk{plug,socket}.h: Missed commits from previous.
11950
11951 2000-06-20  Havoc Pennington  <hp@redhat.com>
11952
11953         * modules/linux-fb/Makefile.am: Make this compile
11954         without framebuffer enabled
11955
11956         * gdk/linux-fb/Makefile.am: Add conditional to not build
11957         framebuffer unless specified in configure
11958
11959         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
11960         the size of the target instead of source if -1 was passed for
11961         width/height
11962
11963         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
11964         width/height confusion.
11965
11966 2000-06-19  Havoc Pennington  <hp@redhat.com>
11967
11968         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
11969         GDK_DRAWABLE_XID. In the future, we probably want to make it
11970         faster with G_DISABLE_CHECKS turned on.
11971
11972 2000-06-14  Havoc Pennington  <hp@redhat.com>
11973
11974         * gdk/Makefile.am: add gdkpixmap.c
11975
11976         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
11977         s/gdk_image_init/_gdk_windowing_image_init
11978
11979         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
11980         ref/unref
11981
11982         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
11983
11984         * gdk/gdkcompat.h: remove GdkWindowType compat, since
11985         GdkWindowType is now non-deprecated; 
11986         change gdk_window_get_type() compat to be
11987         gdk_window_get_window_type().
11988
11989         * gdk/gdkdnd.h: make GdkDragContext a GObject.
11990
11991         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
11992         virtual GObject. Make all functions call into the vtable.
11993         Move gdk_image_put() guts in here. Remove GdkDrawableType
11994         and gdk_drawable_get_type(), these are now GdkWindow-specific.
11995         draw_image, get_depth, get_size, set_colormap, get_colormap,
11996         get_visual added to the vtable.
11997         
11998         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
11999         GObject. Virtualize everything. 
12000         (gdk_gc_new_with_values): remove check for destroyed window,
12001         because now GdkWindow::create_gc will check this.
12002         (gdk_gc_set_values): New function to set GC values, this 
12003         was already implemented but wasn't in the header
12004
12005         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
12006
12007         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
12008         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
12009         remove _gdk_window_class; add _gdk_window_impl_get_type() and
12010         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
12011         _gdk_windowing_window_init, rename gdk_image_init to
12012         _gdk_windowing_image_init.
12013         
12014         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
12015         (gdk_draw_layout): Remove check for destroyed window, 
12016         because all the drawable methods already check it.
12017         
12018         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
12019         Add gdkpixmap.c which contains implementation of GdkDrawable
12020         virtual table (by chaining to a platform-specific implementation
12021         object).
12022         
12023         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
12024         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
12025         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
12026         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
12027         GdkColormapPrivate. 
12028
12029         * gdk/gdktypes.h: #include <glib-object.h>
12030
12031         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
12032         Move most functionality to platform-specific implementation
12033         object. GdkWindow itself now handles the backing store, then
12034         chains to the platform-specific implementation.
12035         (gdk_window_get_window_type): return GdkWindowType of the window.
12036         (gdk_window_peek_children): New routine, returns the children of 
12037         a GdkWindow
12038         (gdk_window_get_children): Was in X11-specific code and did 
12039         XQueryTree. Changed to simply return a copy of window->children; 
12040         so it can go in cross-platform code.
12041         
12042         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
12043
12044         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
12045         GdkColormap; just changed to use the new private data instead
12046         of casting to GdkColormapPrivate.
12047
12048         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
12049         gdk_cursor_new().
12050
12051         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
12052         (private data member in the GObject). 
12053         (xdnd_manager_source_filter): Function had broken 
12054         error handling, fix it (use gdk_error_trap_push).
12055
12056         * gdk/x11/gdkdrawable-x11.c: This file now implements
12057         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
12058         base class is purely for the convenience of the X port,
12059         and not part of the interface to cross-platform GDK.
12060
12061         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
12062         
12063         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
12064         specific to X, and returned by the create_gc virtual method
12065         of GdkDrawableImplX11. 
12066         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
12067         rather than gchar, this was also changed in the GdkGC vtable.
12068         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
12069         mask is 0, return immediately, instead of checking every flag.
12070         This is faster, and keeps us from segfaulting if values is NULL
12071         and the mask contains some nonzero flags.
12072
12073         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
12074         GdkWindow.
12075
12076         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
12077         GdkWindowPrivate is gone.
12078
12079         * gdk/x11/gdkim-x11.c: rename things that got renamed.
12080
12081         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
12082         remove the image_put stuff that got transferred to GdkDrawable.
12083         
12084         * gdk/x11/gdkinput.c: renamings
12085
12086         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
12087
12088         * gdk/x11/gdkpixmap-x11.c: GObject conversion
12089
12090         * gdk/x11/gdkprivate-x11.h: indentation fixes
12091
12092         * gdk/x11/gdkproperty-x11.c: renamings
12093
12094         * gdk/x11/gdkselection-x11.c: renamings
12095
12096         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
12097         implements the platform-specific "impl" object.
12098         Moved gdk_window_get_children to gdk/gdkwindow.c
12099
12100         * gdk/x11/gdkx.h: Remove all the private structs and private datas
12101         that no longer exist. Add declaration of GdkGCX11 object here.
12102         Fix all the macros to still work. 
12103
12104         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
12105         GdkDragContext from the boxed types since they are now GObjects.
12106
12107         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
12108         moved xthickness/ythickness into the instance. GtkStyleClass
12109         functions are now in the standard vtable for GtkStyle, so you have
12110         to create a GObject subclass to write a theme engine.
12111         (gtk_style_copy): fixed a leaked PangoFontDescription
12112         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
12113         can be the standard GObject function.
12114         
12115         * Throughout GTK:
12116         s/style->klass->[xy]thickness/style->[xy]thickness
12117         s/pango_layout_unref/g_object_unref/
12118
12119         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
12120         
12121         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
12122         accessing GDK internals.
12123
12124         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
12125         accessing GDK internals.
12126
12127 2000-06-18  Elliot Lee  <sopwith@redhat.com>
12128
12129         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
12130
12131         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
12132         problem by calculating event position relative to the trough
12133         rather than the slider.
12134         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
12135
12136         * gdk/gdkgc.h: Add GDK_NOR.
12137
12138         * configure.in, Makefile.am: Add modules top level dir
12139         * configure.in: Only use pangox library if building x11 target.
12140         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
12141
12142 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
12143
12144         * gtk/gtkcolorsel.c: Change private class member to be named
12145         private_data throughout the file.
12146
12147         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
12148         private_data to avoid clashing with keyword.
12149
12150 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
12151
12152         * gdk/gdkdnd.h: Add comment to remove warning.
12153
12154 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
12155
12156         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
12157         Byelorussian language; changed the Makefile and file names 
12158         to reflect that.
12159
12160 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
12161
12162         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
12163         rather than gdk_window_hide; this makes things work
12164         correctly if the window is programmatically hidden while
12165         iconified.
12166
12167 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
12168
12169         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
12170         cut and paste typo where wrong pixmap was being
12171         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
12172
12173 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
12174
12175         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
12176         Add helper function to compute format / bytes 
12177         relationship. Use in a couple places to fix up
12178         errors which assume 8 * format.
12179
12180         * gtk/gtkselection.c (gtk_selection_request): Use 32
12181         rather than 8 * sizeof (GdkAtom), to work correctly
12182         on Alpha.
12183
12184 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
12185
12186         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
12187         libgtk.la
12188         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
12189         versions
12190
12191         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
12192         checking macros return NULL since the function has a return value.
12193
12194 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
12195
12196         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
12197         GTK+ from building at all.
12198
12199         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
12200
12201 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
12202
12203         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
12204         gtk/Makefile.am: make it possible to configure gtk for different
12205         targets on the same platform. The library name is now 
12206         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
12207         flag. Only the x11 target compiles right now.
12208         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
12209         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
12210         * gdk/nanox/gdk*generic*: delete generic region code.
12211         * gdk/linux-fb/gdk*generic*: delete generic region code.
12212         * README.nanox: update information.
12213         
12214 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
12215
12216         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
12217         prepend not append. (Pointed out by Brett Hall.)
12218
12219 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
12220
12221         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
12222
12223 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
12224
12225         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
12226         need this later, and this makes sure that the atexit for
12227         glib gets called after that for GDK, so atexits are
12228         properly ordered for object leak checking.
12229
12230         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
12231
12232         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
12233         pango_x_shutdown_display()
12234
12235         * gtk/simple.c (main): Close window on destroy.
12236
12237 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
12238
12239         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
12240         to treat initial creation different from setting with 
12241         regards to the graphics-exposures parameter, so add a parameter
12242         indicating whether this is initial or not.
12243
12244 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
12245
12246         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
12247         to sort of work by adding an extra return_exposes arg
12248         to gdk_event_translate() - it might be better to simply
12249         deprecate the function altogether and force people to rewrite
12250         without it. gdk_window_scroll() handles most of it, and where
12251         gdk_window_scroll() doesn't work, simply redrawing more does.
12252
12253         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
12254         assertion.
12255
12256         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
12257
12258         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
12259         bunch of pretty much useless /* Print debugging info */ comments 
12260         which had drifted away from the code they were commenting.
12261
12262 2000-06-02  Havoc Pennington  <hp@pobox.com>
12263
12264         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
12265         is in working order.
12266         
12267         * gtk/testtext.c: Change to reflect anonymous mark API
12268
12269         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
12270
12271         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
12272         field, which was unused.
12273
12274         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
12275         saves some typing.
12276
12277         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
12278
12279         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
12280         flag on the insertion point and selection bound
12281
12282         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
12283         make mark-manipulation functions take a GtkTextMark* instead of a
12284         mark name.
12285         
12286         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
12287         GtkTextMarkBody; will be used to detect attempts to delete
12288         the permanent marks (insert and selection bound)
12289
12290         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
12291
12292 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
12293
12294         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
12295         flag to on.
12296
12297         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
12298         Honor DOUBLE_BUFFRED_FLAG
12299
12300         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
12301         function to set the DOUBLE_BUFFERED flag.
12302
12303         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
12304         or not exposes done on the widget should be double-buffered.
12305
12306         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
12307         to be what would be expected. (Fixes problem with a
12308         g_return_if_fail() validating a TextDirection enumeration)
12309
12310 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
12311
12312         * gtk/gtkwidget.c: Remove all references to 
12313         offscreen flag which was no longer used.
12314
12315         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
12316
12317         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
12318         for non-null label_widget->parent.
12319
12320         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
12321         which no longer was used.
12322
12323         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
12324
12325         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
12326         for null arguments.
12327
12328         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
12329         check for destroyed windows.
12330
12331 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
12332
12333         * gtk/gtkimmulticontext.c: Add a finalize method and unref
12334         the slave context there.
12335
12336         * gtk/gtkinvisible.[ch]: Make reference counting behavior
12337         identical to GtkWindow.
12338
12339 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
12340
12341         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
12342         pangox to here, so we can write them independent of rendering
12343         system, using GDK primitives.
12344
12345         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
12346         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
12347         since we have a rendering-system independent implementation in
12348         terms of draw_glyphs().
12349         
12350         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
12351         function to render a single line.
12352
12353         * gdk/x11/gdkpango.c: Move the guts of this file mostly
12354         into ../gdkpango.c, which simplifies things, since we
12355         don't have to deal with raw X gc's.
12356
12357 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
12358
12359         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
12360         get the logical attributes for a given GtkTextLine.
12361
12362 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
12363
12364         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
12365         g_locale_get_codeset() to g_get_codeset() change.
12366
12367 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
12368
12369         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
12370         descriptions.
12371
12372         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
12373         the entry.
12374
12375         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
12376         redoing (vastly simplifying) for Pango. Still needs quite
12377         a bit of work. (Size selection is currently poor. List of 
12378         predefined sizes is not a good idea, since all of these
12379         sizes won't necessarily be distinct.)
12380
12381 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
12382
12383         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
12384         CODESET results for LANG=C.
12385
12386 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
12387
12388         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
12389         which takes a stringized pango font description;
12390         ignore the older 'font' and 'fontset' declarations.
12391
12392         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
12393         field with a GdkFont derived via gdk_font_from_description(),
12394         for compatibility. (Should we just remove it entirely?
12395         Probably too much compatibility breakage, but people
12396         should be migrating to the new Pango stuff as quickly
12397         as possible.)
12398
12399 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
12400
12401         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
12402
12403 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
12404
12405         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
12406         redoing; there are some bugs in size allocation right
12407         now, the semi-existant distinction between header / day
12408         fonts was removed, but, with Pango, could actually
12409         be made functional in a nice way.
12410         
12411         * gtk/testcalender: Move calender from examples into this
12412         directory as a test program. (We really need to restrcture
12413         testgtk into a whole directory full of tests for every
12414         widget or functionality group, separated into multiple .c
12415         files.)
12416
12417 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
12418
12419         * gtk/testgtk.c (file_exists): Fix stupid typo that
12420         was keeping RC file from being loaded.
12421
12422         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
12423         RC file font code.
12424
12425 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
12426
12427         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
12428         Add function to load a GdkFont from a PangoFontDescription.
12429
12430 2000-05-29  Tor Lillqvist  <tml@iki.fi>
12431
12432         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
12433         variable should be of type GdkEventPrivate.
12434
12435 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
12436
12437         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
12438         to have any widget for the label, use a GtkLabel widget
12439         to display the text. (Based partially on a patch from
12440         Anders Carlson.)
12441
12442         (Quite a bit of code reorganization - strip 90% of the
12443         guts out of gtkaspectframe and add a single virtual
12444         func to GtkFrameClass - compute_child_allocation.)
12445
12446 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
12447
12448         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
12449         (Removed clist->row_center_offset field because caching
12450         it wasn't saving time or code, added private function
12451         _gtk_clist_create_cell_layout()).
12452
12453 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
12454
12455         * gtk/gtkaccellabel.c: Pangoized.
12456
12457         * gtk/[hv]ruler.c: Pangoized
12458
12459 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
12460
12461         * gtk/gtkfilesel.c (gtk_file_selection_init):
12462         Use gtk_clist_set_column_auto_resize() to remove need
12463         need for manual column width computations.
12464
12465 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
12466
12467         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
12468         ensuring Pango correctness, and considerably simplifying the
12469         code.
12470         
12471         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
12472
12473         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
12474         getting of numbers of lines.
12475
12476         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
12477         to the actual requested width of the lable, not to the wrap
12478         width we set.
12479
12480         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
12481
12482         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
12483           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
12484
12485         * gtk/gtktextview.c: Fix structure inheritance.
12486
12487         * gtk/gtkprogressbar.c: Pangoize.
12488
12489 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
12490
12491         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
12492         in a function.
12493
12494         * gtk/gtktextlayout.c (find_display_line_above): Fixed
12495         bug with computing line tops.
12496
12497         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
12498
12499 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
12500
12501         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
12502         and y_offset coordinates to do what we need now. (The offset between
12503         buffer and layout coordinates has been reintroduced, but is a 
12504         bit different than before.)
12505
12506         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
12507         handle the adjustments ourselves, and scroll as necessary using
12508         the new gdk_window_scroll().
12509         
12510         The advantage of this is that when we are incrementally revalidating,
12511         we are essentially rearranging things around the visible portion
12512         of the screen. With the old setup, the visible portion of the
12513         screen was moved around in the layout, so scrolling and redrawing
12514         to track that caused jumping of the display. Since we now
12515         control the scrolling ourselves, we can suppress this and
12516         only redraw when things actually change.
12517
12518 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
12519
12520         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
12521         the region not just redisplay it after-all, since we store the
12522         cursors in the LineDisplay. (Ugly interactions here between
12523         GtkLayout and GtkTextBTree here.)
12524         
12525         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
12526
12527 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
12528
12529         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
12530         Added function to scroll contents of a window while keeping the
12531         window constant. Works by XCopyArea or guffaw-scrolling depending
12532         on the details of how the window is set up. (guffaw-scrolling
12533         still needs to be filled in.)
12534
12535 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
12536
12537         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
12538         move the debugging that was tied to a global variable
12539         to that.
12540
12541         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
12542
12543         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
12544         validated flag, in line data instead of setting height/width to
12545         -1. This allows us to perform operations with partially invalid
12546         buffer (using the old size for invalid lines) and thus to do
12547         incremental vaidation. Keep height/width aggregates up to date
12548         when deleting text and rebalancing the tree.
12549
12550         * gtk/gtktextbtree.[ch]: Add functions validate a line
12551         (gtk_text_btree_validate_line), and to validate up
12552         to a number of pixels (gtk_text_btree_validate).
12553
12554         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
12555         that indicates that something is changed and a revalidation
12556         pass is needed. Change ::need_repaint to ::changed, and
12557         make it take old and new yranges instead of a rectangle.
12558
12559         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
12560         the line_data_destroy() function from 
12561         gtk_text_btree_add_view() to a virtual function in 
12562         GtkTextLayout
12563
12564         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
12565         since we are handling partial repaints in a different fashion
12566         now.
12567
12568         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
12569         of the selection instead of queueing a repaint on the
12570         entire widget.
12571
12572         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
12573         get_selection_bounds() down to btree, make the function
12574         in buffer a wrapper around the btree function.
12575
12576         * gtk/gtktextlayout.[ch]: Add functions to check if the
12577         layout is valid and to recompute either a range of pixels
12578         aroudn a line or a certain total number of pixels.
12579
12580         * gtk/gtktextlayout.[ch]: Cache a single line display;
12581         now that we only redraw the needed portions, the hit rate
12582         for this cache is quite high.
12583         
12584         * gtk/gtktextview.[ch]: Keep track of the first paragraph
12585         on the screen so that when re-laying-out the buffer, we can
12586         keep the same place. This requires connecting to ::value_changed
12587         on the adjustments
12588
12589         * gtk/gtktextview.[ch]: Add idle functions to revalidate
12590         the buffer after we receive an ::invalidated signal.
12591         
12592 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
12593
12594         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
12595         to max of allocation and layout size, not just to the
12596         layout size.
12597
12598         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
12599         Invalidate window so it gets redrawn properly.
12600
12601         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
12602         to mean the entire window.
12603
12604         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
12605         into public header.
12606
12607 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
12608
12609         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
12610         to get the name of a mark.
12611
12612         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
12613         to find the paragraph from a y position.
12614
12615 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
12616
12617         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
12618         nodes have width/height >= 0, not > 0.
12619
12620 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
12621
12622         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
12623         Add a size_only flag, so when we only need the size, we don't create
12624         useless appearance attributes.
12625
12626         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
12627         duplicate setting of font description.
12628
12629         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
12630
12631 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
12632
12633         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
12634         EXTRA_DIST. It does not work well when the file that
12635         everything depends on is not in the tarball.
12636
12637 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
12638
12639         * gtk/testgtk.c: Some hacks and fixes so that it basically
12640         works when not sitting in the GTK+ build tree.
12641
12642 2000-05-03  Havoc Pennington  <hp@redhat.com>
12643
12644         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
12645         Properly determine the ordering of the tag root and the current
12646         line within the tree. Previous algorithm only worked if the tag
12647         root's immediate parent was the common root of both the current
12648         line and the tag root.
12649
12650 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
12651
12652         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
12653         alignment.
12654
12655         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
12656         the widget text directional dynamically.
12657
12658         * gtk/gtktextview.[ch]: Added functions to get and set default
12659         wrap mode.
12660
12661 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
12662
12663         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
12664         in cursor location computation.
12665
12666 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
12667
12668         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
12669         vadjusment values properly when layout gets smaller.
12670
12671         * gtk/gtktextview.c (need_repaint_handler): Areas being
12672         passed in are far completely inaccurate, and sometimes
12673         too small, so, for now, just queue a redraw on the
12674         whole visible region.
12675
12676 2000-04-25  Havoc Pennington  <hp@redhat.com>
12677
12678         * gtk/gtktextbtree.c (summary_destroy): new function to 
12679         destroy tag summary nodes
12680         (gtk_text_line_next_could_contain_tag): this function was 
12681         totally broken if the line passed in wasn't below the tag
12682         root. Fix it.
12683         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
12684         "wildcard" case, we have to do a linear scan. Blah.
12685         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
12686         we have to do the linear scan
12687         (tag_removed_cb): When a tag is removed from the tag table, 
12688         remove the GtkTextTagInfo node from the btree.
12689         (gtk_text_btree_spew): Implement the spew function, for 
12690         our debugging pleasure.
12691
12692 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
12693
12694         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
12695         a problem with referring to the wrong buffer.
12696
12697         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
12698
12699         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
12700         font description to gtk_style_new() - otherwise things
12701         don't work without a .gtkrc file.
12702
12703         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
12704         tags table if we create it ourself, too.
12705
12706         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
12707         it was conflicting with XKB modifiers.
12708
12709         * gtk/gtktextview.[ch]: Add simple support for 
12710         GtkIMContext.
12711
12712 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
12713
12714         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
12715         with deletion from last commit.
12716
12717 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
12718
12719         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
12720         in the context from the current locale.
12721         
12722         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
12723         context, not hardcoded value.
12724
12725         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
12726         not logical.
12727
12728 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
12729
12730         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
12731         attributes - that doesn't handle partial-glyph selection
12732         properly. Instead use new pango_layout_line_get_x_ranges()
12733         functionality to draw the selection.
12734
12735         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
12736         now properly handles out-of-range coordinates.
12737
12738         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
12739
12740         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
12741         public.
12742
12743         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
12744         for paragraphs opposite to the base direction of the widget.
12745
12746         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
12747
12748         * gtk/gtktextlayout.c: Don't split segments on marks, since that
12749         causes Arabic words to reshape as you cursor through.
12750
12751         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
12752         cursor position when moving vertically with the arrow keys and
12753         scrolling with page-up/page-down. (Arrow keys save only the X,
12754         scrolling saves both X and Y.)
12755
12756         This means you can line-up / line-down or page-up / page-down
12757         without losing your place, and also that moving vertically
12758         with the cursor keys keeps the same X position, not the same
12759         character count:
12760
12761         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
12762         arrow keys move by display lines, not paragraphs.
12763
12764 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
12765
12766         * gtk/gtklayout.c: Make sure that the bin window is at least
12767         as big as the allocation. (Should we also make sure that the
12768         bin window is big enough to completely cover widget->window?)
12769
12770         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
12771         function to get the onscreen rectangle.
12772
12773         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
12774         for offsets in window coordinates.
12775
12776 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
12777
12778         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
12779         confusion.
12780
12781         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
12782         from the widget direction.
12783
12784         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
12785         Add a "direction" attribute.
12786
12787         * gtk/gtktextview.c: global s/tkxt/text_view/.
12788
12789         * gtk/testtext.c: Added long block of text in Arabic, to test out
12790         the direction attributes. (Some problems with the shaping system
12791         for arabic become obvious - like the fact the cursor splits words
12792         into unjoined pieces.)
12793
12794 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
12795
12796         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
12797
12798         * gtk/gtktextlayout.c: Fix up alignment.
12799
12800         * gtk/testtext.c: Add some tests for centering, wrapping.
12801
12802 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
12803
12804         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
12805         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
12806         If we wrote GTK+-specific layout-render function this could just replace
12807         the draw_layout() operation in the vtable.
12808
12809         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
12810         pango_layout_get_cursor_pos() and use that function.
12811
12812         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
12813         is a non-static symbol.
12814
12815         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
12816         with gtk_text_btree_find_line_by_y()
12817
12818         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
12819         renderer that handles GtkTextAppearance attributes.
12820
12821         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
12822
12823           - Move the values in the style that don't affect geometry into a
12824             GtkTextAppearance structure.
12825           - Change underline to take a PangoUnderline and "font" a string
12826             representation of a font description
12827           - Add a "font_desc" attribute which takes a FontDescription structure.
12828
12829         * gtk/gtktextlayout.[ch]:
12830
12831           - Get rid of the display-line list per each line. Instead, we
12832             generate, on demand, a GtkTextLineDisplay structure which]
12833             contains a PangoLayout * and other necesary information
12834             (offsets, cursor locations) for displaying a paragraph.
12835           - Get rid of the code to wrap lines, create display chunks,
12836             etc. Instead, we just go through a paragraph and convert
12837             it into the necessary inputs to a PangoLayout.
12838           - Implement a new attribute type, GtkTextAttrAppearance. This
12839             holds a GtkTextAppearance, and is used to pass colors, 
12840             stipple, etc, through from the layout to the display without
12841             having to use lots and lots of individual attributes.
12842           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
12843             in terms of PangoLayout functions.
12844         
12845         * gtk/gtktextview.c: 
12846          
12847           - Handle passing the necessary PangoContext to the layout
12848           - Some fixups in painting to deal with the automatic backing store
12849             and offsetting of GTK+-1.4
12850           - Add a style_set handler so that the default style reacts
12851             properly to theme changes.
12852         
12853         * gtk/gtktext?*.[ch]: Random code-style fixes.
12854
12855         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
12856
12857 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
12858
12859         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
12860         in original form preparatory to Pango-ization and gdkimcontext-ization.
12861
12862 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
12863
12864         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
12865         so that we can derive from gtkimcontext in language bindings properly.
12866
12867 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
12868
12869         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
12870         Add a compose table including (almost) all the compose combinations
12871         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
12872         data in the XIM implementation.
12873
12874         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
12875         Moved functions to convert keyvalues from and to unicode here from
12876         the win32 port and made them public.
12877
12878 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
12879
12880         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
12881
12882 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
12883
12884         * gtk/gtkimcontext.[ch]: Base class for new input context system
12885
12886         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
12887         the real input context implementation to be loaded from modules
12888         and switched on the fly.
12889
12890         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
12891         context that just does direct keysymbol => unicode translation.
12892
12893         * gtk/gtkentry.[ch]: Start switching editing over to using
12894         GtkInputContext. (No handling of preedit yet.)
12895
12896 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
12897
12898         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
12899         many substitutions. (klass should not be subsituted.)
12900
12901 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
12902
12903         * configure.in: Add checks for Pango
12904
12905         * configure.in docs/Makefile.am: Add test for sgml2html
12906         and allow 'make dist' without building html, but print out
12907         warnings in that case. (For making snapshots)
12908
12909         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
12910         Add Pango libraries and C flags
12911
12912         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
12913         Add function (gdk_draw_layout) to draw a pango layout.
12914
12915         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
12916         for getting Pango contexts for GDK.
12917
12918         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
12919
12920         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
12921         editing.
12922
12923         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
12924         keysym => unicode translations. More languages can be added
12925         here, but real input-method support is needed.
12926
12927         * docs/Changes-1.4.txt: Added note about entry behavior.
12928         
12929         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
12930         to set the reading direction for a widget and the global direction.
12931         Add test which allows toggling the global direction. Two private
12932         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
12933
12934         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
12935           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
12936
12937         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
12938
12939         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
12940         underlining now handled by Pango.
12941
12942         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
12943         to RCStyle and Style. (Having both this and the old font name and GdkFont 
12944         is temporary.)
12945
12946         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
12947         convenience functions for creating contexts and layouts for widgets.
12948
12949         * gtk/testgtk.c: Enhance label tests with multilingual labels.
12950
12951 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
12952
12953         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
12954         titles to be active, even if they aren't visible.
12955         (gtk_clist_column_titles_passive):  Ditto.
12956
12957 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
12958
12959         * gtkmenu.c:
12960         * gtkmenu.h:
12961         * gtktypeutils.h: Spelling/grammar fixes in comments.
12962
12963 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
12964
12965         * gdk/nanox/*.h: add missing header files.
12966
12967 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
12968
12969         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
12970         send_event to TRUE.
12971         (gtk_drawing_area_size): queue a resize.
12972
12973 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
12974
12975         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
12976         the handlers, also invalidate them. bug nailed down by Karl Nelson
12977         <kenelson@ece.ucdavis.edu>.
12978
12979 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
12980
12981         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
12982         "(nil)" foundries, patch from Grigorios Magklis.
12983
12984         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
12985         on non-available fonts, based on a patch by Grigorios Magklis
12986         <maglis@cs.rochester.edu>.
12987
12988 2000-05-18  Elliot Lee  <sopwith@redhat.com>
12989
12990         * gdk/x11/gdkregion-generic.c: If a region does not have any
12991         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
12992         instead of GDK_OVERLAP_RECTANGLE_IN.
12993
12994 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
12995
12996         * gtk/gtklayout.c (gtk_layout_map): Remove references to
12997         OFFSCREEN, as it is no longer necessary.
12998
12999 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
13000
13001         * gtk/gtkcolorsel.c: Patch from David Santiago
13002         <mrcooger@cyberverse.com> to change things so that the 
13003         indicator of the active palette entry is done independently,
13004         not via the focus, since it should always be visible.
13005
13006 2000-05-17  Tor Lillqvist  <tml@iki.fi>
13007
13008         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
13009         refcount leaks as in the X11 backend.
13010
13011         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
13012         cosmetics.
13013
13014         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
13015         backend. Add _gdk_windowing_window_destroy().
13016
13017         * gtk/gtkcolorsel.c: Include correct backend-specific header.
13018         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
13019         either, but these probably do exist on nanox?)
13020         
13021         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
13022         which isn't necessarily defined by <math.h>.
13023
13024         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
13025         ancestry past GtkObject.
13026
13027         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
13028         from DLL on Win32.
13029
13030         * gtk/gtk.def: Update corresponding to recent changes.
13031
13032         * gtk/makefile.{cygwin,msc}: Updates.
13033
13034 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
13035
13036         * docs/Changes-1.4.txt: A bit of editing.
13037
13038         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
13039         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
13040         to clear the update area for the window, and clear it
13041         when hiding a window.
13042
13043         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
13044         if window destroyed.
13045
13046         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
13047
13048         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
13049         gdk_window_destroy() to the generic code, since there was a lot of 
13050         window-system-independent logic it in. Add a function:
13051         
13052          _gdk_window_destroy() 
13053
13054         to the internal API to destroy a window without unreferencing it.
13055         Add a function:
13056
13057          _gdk_windowing_window_destroy()
13058
13059         That does the windowing-system-dependent part of destroying 
13060         the window.
13061
13062 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
13063
13064         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
13065
13066 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
13067
13068         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
13069         Make gtk_widget_shape_combine_mask() keep a reference count on
13070         the pixmap since it keeps it around.
13071
13072 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
13073
13074         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
13075         leak.
13076
13077         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
13078         leak with event filters.
13079
13080 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
13081
13082         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
13083         signal handlers with the right data arguments. (Fixes
13084         some warnings when a widget was repeatedly set as a drag
13085         destination.)
13086
13087         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
13088         window so we can avoid avoid setting the DND properties on the
13089         toplevel window repeatedly.
13090
13091 2000-05-13  Tor Lillqvist  <tml@iki.fi>
13092
13093         * gdk/win32/gdkwin32.h: Define more message types missing from
13094         mingw headers.
13095
13096         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
13097         call gdk_window_destroy_notify(). It was never called. This
13098         probably meant that the GdkWindow was never freed. Thanks Owen for
13099         noticing (!).
13100
13101         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
13102         window as destroyed before calling DestroyWindow(). DestroyWindow()
13103         causes a call to the window procedure (gdk_WindowProc), which
13104         calls gdk_event_translate(), which calls
13105         gdk_window_destroy_notify(), which gets confused unless the window
13106         is set as destroyed.
13107
13108         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
13109         this function to indicate it's win32 only. Put inside #ifdef
13110         G_ENABLE_DEBUG.
13111
13112         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
13113         debugging function. (gdk_event_translate:) Add a default branch
13114         that uses the above function to print debug messages with all
13115         Windows messages symbolically.
13116
13117         * gdk/win32/gdkprivate-win32.h: Declare it, and
13118         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
13119
13120 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
13121
13122         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
13123         public header file.
13124
13125 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
13126
13127         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
13128
13129         * gtk/gtktext.c: made the adjustments no-construct args, simply
13130         provide default adjustments.
13131         (gtk_text_destroy): release adjustments.
13132
13133         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
13134         adjustment argument non-construct.
13135
13136         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
13137         instead of in finalize.
13138         (gtk_progress_get_text_from_value): 
13139         (gtk_progress_get_current_text): 
13140         (gtk_progress_set_value): 
13141         (gtk_progress_get_percentage_from_value): 
13142         (gtk_progress_get_current_percentage): 
13143         (gtk_progress_set_percentage): 
13144         (gtk_progress_configure): ensure an adjustment is present.
13145
13146 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
13147
13148         * gtk/gtkcolorsel.[hc]:
13149         * gtk/gtkcolorseldialog.[hc]:
13150         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
13151         their parent implementation, use bit fields for boolean values, don't
13152         create unused widgets, usage of glib types, braces go on their own
13153         lines, function argument alignment, #include directives etc. etc. etc..
13154
13155         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
13156
13157 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
13158
13159         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
13160
13161         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
13162         of NULL.
13163
13164         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
13165         to freed data.
13166         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
13167
13168         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
13169         to NULL when the toplevel is getting destroyed.
13170         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
13171         (gtk_menu_destroy): 
13172         (gtk_menu_init): store the information of whether we have to
13173         readd the initial child ref_count during destruction in a new
13174         GtkMenu field needs_destruction_ref_count.
13175
13176         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
13177         here, those reading: learn from my mistake! ;)
13178         in order for set_?adjustment to support a default adjustemnt if
13179         invoked with an adjustment pointer of NULL, the code read (pseudo):
13180         if (v->adjustment) unref (v->adjustment);
13181         if (!adjustment) adjustment = adjustment_new ();
13182         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
13183         now imagine the first unref to actually free the old adjustment and
13184         adjustment_new() creating a new adjustment from the very same memory
13185         portion. here, the latter comparision will unintendedly fail, and
13186         all hell breaks loose.
13187         (gtk_viewport_set_hadjustment):
13188         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
13189         after unreferencing it.
13190
13191         * gtk/gtkcontainer.[hc]: removed toplevel registration
13192         functions: gtk_container_register_toplevel(),
13193         gtk_container_unregister_toplevel() and
13194         gtk_container_get_toplevels() which had wrong semantics
13195         anyways: it didn't reference and copy the list.
13196
13197         * gtk/gtkwindow.c: we take over the container toplevel registration
13198         bussiness now. windows are registered across multiple destructions,
13199         untill they are finalized. the initial implicit reference count
13200         users are holding on windows is removed with the first destruction
13201         though.
13202         (gtk_window_init): ref & sink and set has_user_ref_count, got
13203         rid of gtk_container_register_toplevel() call. add window to
13204         toplevel_list.
13205         (gtk_window_destroy): unref the window if has_user_ref_count
13206         is still set, got rid of call to
13207         gtk_container_unregister_toplevel().
13208         (gtk_window_finalize): remove window from toplevel list.
13209         (gtk_window_list_toplevels): new function to return a newly
13210         created list with referenced toplevels.
13211         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
13212
13213         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
13214         adjustment a non-construct arg.
13215         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
13216         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
13217         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
13218
13219         * gtk/gtkrange.c: added some realized checks.
13220         (gtk_range_destroy): get rid of the h/v adjustments in the
13221         destroy handler instead of finalize. remove timer.
13222         (gtk_range_get_adjustment): demand create adjustment.
13223
13224         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
13225         we simply create them on demand now and get rid of them in
13226         the destroy handler.
13227         (gtk_viewport_destroy): get rid of the h/v adjustments in the
13228         destroy handler instead of finalize.
13229         (gtk_viewport_get_hadjustment): 
13230         (gtk_viewport_get_vadjustment): 
13231         (gtk_viewport_size_allocate): demand create h/v adjustment
13232         if required.
13233
13234         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
13235         gtk_widget_real_destroy () functionality.
13236         (gtk_widget_real_destroy): reinitialize with a new style, instead
13237         of setting widget->style to NULL.
13238
13239 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
13240
13241         * gtk/gtkcalendar.c:
13242         * gtk/gtkbutton.c: ported _get_type() implementation over to
13243         GType, either to preserve memchunks allocation facilities,
13244         or because Gtk+ 1.0 GtkTypeInfo was still being used.
13245
13246         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
13247         over. prepare for ::destroy to be emitted multiple times.
13248         removed reference tracer magic. chain into GObjectClass.shutdown()
13249         to emit ::destroy signal.
13250
13251         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
13252         fundamental.
13253
13254         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
13255         cludge.
13256
13257         * gtk/gtksocket.c:
13258         * gtk/gtkplug.c:
13259         * gtk/gtklayout.c:
13260         * gtk/gtklabel.c:
13261         * gtk/gtkargcollector.c:
13262         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
13263         not being a fundamental anymore, and to work with the new
13264         type system (nuked fundamental type varargs clutter).
13265
13266         * gtk/*.c: install finalize handlers in the GObjectClass
13267         part of the class structure.
13268         changed direct GTK_OBJECT()->klass accesses to
13269         GTK_*_GET_CLASS().
13270         changed direct object_class->type accesses to GTK_CLASS_TYPE().
13271
13272         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
13273         GType. made most of the GTK_*() type macros and Gtk* typedefs
13274         simple wrappers around macros and types provided by GType.
13275         most notably, a significant portion of the old API vanished:
13276         GTK_TYPE_MAKE(),
13277         GTK_TYPE_SEQNO(),
13278         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
13279         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
13280         GTK_TYPE_ARGS,
13281         GTK_TYPE_CALLBACK,
13282         GTK_TYPE_C_CALLBACK,
13283         GTK_TYPE_FOREIGN,
13284         GtkTypeQuery,
13285         gtk_type_query(),
13286         gtk_type_set_varargs_type(),
13287         gtk_type_get_varargs_type(),
13288         gtk_type_check_object_cast(),
13289         gtk_type_check_class_cast(),
13290         gtk_type_describe_tree(),
13291         gtk_type_describe_heritage(),
13292         gtk_type_free(),
13293         gtk_type_children_types(),
13294         gtk_type_set_chunk_alloc(),
13295         gtk_type_register_enum(),
13296         gtk_type_register_flags(),
13297         gtk_type_parent_class().
13298         replacements, where available are described in ../docs/Changes-1.4.txt.
13299         implemented compatibility functions for the remaining API.
13300
13301         * configure.in: depend on glib 1.3.1, use gobject module.
13302
13303 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
13304
13305         * TODO.xml: Various updates to current status.
13306
13307 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
13308
13309         * gtk.m4: Print out version when test succeeds.
13310
13311 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
13312
13313         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
13314         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
13315         
13316         (Original triangle color selector from Simon Budig
13317         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
13318         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
13319         Santiago <mrcooger@cyberverse.com>)
13320
13321         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
13322         out into a separate widget.
13323
13324         * gtk/testgtk.c: Add some checkbuttons for toggling palette
13325         and opacity controls.
13326
13327 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
13328
13329         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
13330         snuck in prematurely.
13331
13332 2000-05-07  Tor Lillqvist  <tml@iki.fi>
13333
13334         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
13335         had deleted a ! operator by mistake, which caused
13336         GDK_SELECTION_CLEAR events never to be generated, which caused
13337         only the first copy to the clipboard from an gtkeditable to
13338         actually cause a copy to the Windows clipboard.
13339
13340 2000-05-06  Tor Lillqvist  <tml@iki.fi>
13341
13342         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
13343         compilation, too. Current mingw gcc distributions include the
13344         necessary headers. Also the necessary IIDs are now in mingw
13345         headers/libraries, and own definitions unnecessary.
13346
13347         More hacking on OLE2 DND, still doesn't work though, and thus
13348         ifdeffed out.
13349
13350         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
13351         here, too.
13352
13353 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
13354
13355         * gdk/nanox/*: nano-X port work in progress.
13356         * gdk/simple.c: simple test for Gdk.
13357         * README.nanox: notes about the port: read this first!
13358         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
13359         with nano-X.
13360
13361 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
13362
13363         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
13364         gdk_window_clear() into common code, implement in terms of
13365         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
13366         not redirected to the backing rectangle.
13367
13368 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
13369
13370         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
13371         EXTRA_DIST. It does not work well when the file that
13372         everything depends on is not in the tarball.
13373
13374 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
13375
13376         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
13377         with recursion where process_updates() is called from
13378         an expose handler. (GtkTextView is highly broken in
13379         doing this, but it should work, so it is a nice test
13380         case.)
13381
13382 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
13383
13384         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
13385         handle the case where updates are queued during processing of
13386         updates.
13387
13388 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
13389
13390         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
13391         window is on gdk_display - use that instead of segfaulting.
13392
13393 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
13394
13395         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
13396         broken and require an empty arg, give it to them.
13397
13398 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
13399
13400         * gtk/gtklabel.h: indentation fixes.
13401
13402 2000-05-02  Tor Lillqvist  <tml@iki.fi>
13403
13404         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
13405         draw too narrow or too low arcs, they seem to fail, at least with
13406         some display drivers.
13407
13408         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
13409
13410         Large changes to the Win32 backend, partially made necessary by
13411         the changes to the backend-independent internal
13412         structures. Attempts to implement similar backing store stuff as
13413         on X11. The current (CVS) version of the Win32 backend is *not* as
13414         stable as it was before the no-flicker branch was merged. A
13415         zipfile with that version is available from
13416         http://www.gimp.org/win32/. That should be use by "production"
13417         code until this CVS version is usable. (But note, the Win32
13418         backend has never been claimed to be "production quality".)
13419
13420         * README.win32: Add the above comment about versions.
13421
13422         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
13423
13424         * gdk/gdk.def: Update.
13425
13426         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
13427         presumably be replaced by some more better mechanism as 1.4 gets
13428         closer to release shape.
13429
13430         * gdk/makefile.{cygwin,msc}: Update.
13431
13432         * gdk/win32/*.c: Correct inclusions of the backend-specific and
13433         internal headers. Change code according to changes in these. Use
13434         gdk_drawable_*, not gdk_window_* where necessary.
13435
13436         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
13437         our old DND.
13438
13439         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
13440         to interpret single characters as UTF-8. Thanks to Hans Breuer.
13441         Use correct function name in warning messages.
13442
13443         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
13444         GSourceFuncs gdk_event_prepare and gdk_event_check.
13445         (gdk_event_get_graphics_expose): Do implement, use
13446         PeekMessage. Thanks to Hans Breuer.
13447         (event_mask_string): Debugging function to print an GdkEventMask.
13448         (gdk_pointer_grab): Use it.
13449
13450         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
13451         (old) book I used claimed was Hangul actually is CJK Unified
13452         Ideographs Extension A. Also, Hangul Syllables were missing.
13453         Improve logging.
13454
13455         * gdk/win32/gdkgc-win32.c: Largish changes.
13456
13457         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
13458         g_win32_getlocale() from GLib, and not setlocale() to get current
13459         locale name.
13460
13461         * gdk/win32/gdkprivate-win32.h
13462         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
13463         gdkwin32.h, similarily as in the X11 backend.
13464
13465         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
13466         assignment was used instead of equals in if test. Thanks to Hans
13467         Breuer.
13468
13469         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
13470         the X11 version.
13471
13472         * gdk/win32/makefile.{cygwin,msc}
13473         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
13474         path to the Win32 headers that works also with the mingw compiler.
13475
13476         * gtk/gtkstyle.c: Include <string.h>.
13477
13478 2000-04-26  Havoc Pennington  <hp@redhat.com>
13479
13480         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
13481         replacing the broken gtk_label_get ()
13482
13483 2000-04-15  Havoc Pennington  <hp@pobox.com>
13484
13485         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
13486         this keeps scanner scripts from getting confused.
13487
13488         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
13489         data, rather than void
13490
13491 2000-04-15  Tor Lillqvist  <tml@iki.fi>
13492
13493         * gtk/gtkclist.c (gtk_clist_motion)
13494         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
13495         with is_hint FALSE, get x and y from the event. They used to be
13496         used uninitialised. The Win32 backend never sends motion events
13497         marked as hints. This for instance fixes the annoying file and
13498         font selector behaviour in the Win32 version.
13499
13500 2000-04-14  Tor Lillqvist  <tml@iki.fi>
13501
13502         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
13503         gtk_private_n_signals variables, they are used by some software,
13504         sigh.
13505
13506         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
13507         installation directory from the Registry, where the installer
13508         should have put it.
13509
13510 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
13511
13512         * gdk/x11/Makefile.am: Fix problem with installation directory for
13513         gdkx.h
13514
13515         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
13516         <mrcooger@cyberverse.com> so that when selecting menus with the
13517         mouse, the first item will not be selected, but when selecting
13518         with an accelerator, or navigating left-right on a menubar with
13519         the menus popped up, the first item will be selected.
13520
13521 2000-04-05  Dan Damian  <dand@dnttm.ro>
13522
13523         * configure.in: Added "ro" to ALL_LINGUAS.
13524
13525 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
13526
13527         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
13528         indentation.
13529
13530         * Makefile.am (EXTRA_DIST): Fix typo.
13531
13532         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
13533         to catch gdkconfig.h
13534
13535         * gtk/gtkitemfactory.c: Added FIXME.
13536
13537 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
13538
13539         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
13540         s/return_if_fail/return_val_if_fail/g and add a return value.
13541
13542 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
13543
13544         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
13545         merge slipup.
13546
13547         * gdk/gdkinput.h: Fix missing line from merge.
13548
13549 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
13550
13551         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
13552         instead of gdkprivate.h.
13553
13554 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
13555
13556         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
13557         parent class to correctly be GtkDialogClass.
13558
13559 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
13560
13561         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
13562         toplevel windows and their immediate children by their parents,
13563         since the size of toplevel windows is out of our immediate
13564         control and we don't get any real benefit from trying to track
13565         this size for clipping.
13566
13567         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
13568         for input_only windows.
13569
13570         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
13571         to fix some hacks and make sure that we don't try to set the
13572         background of input only windows.
13573
13574 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
13575
13576         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
13577         the _really_ internal stuff, and leave gdkprivate.h for the fake private
13578         stuff that we've traditionally exposed.
13579
13580         * gdk/**.c: Use gdkinternals.h where appropriate.
13581
13582         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
13583         not include gdkprivate-x11.h, move all stuff of conceivable public
13584         interest into gdkx.h; keep all really private stuff in
13585         uninstalled header gdkprivate-x11.h.
13586
13587         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
13588         image->image_put on windows through a new function _gdk_window_draw_image()
13589         to allow us to do backing store for images. (Sort of ugly)
13590
13591         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
13592         contexts locally so that we can offset them properly when drawing 
13593         onto backing pixmaps.
13594
13595         * gdk/gdkinput.h: Reindented
13596
13597         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
13598         pixmap or color for the window, so we can properly initialize
13599         our double-buffer pixmaps, and also so that we temporarily set
13600         a background of None while scrolling.
13601
13602         * gdk/gdkregion.h: Revise region boolean operators to have an
13603         interface that is actually convenient - switch from creating new
13604         regions on every op, to "methods" that modify existing regions
13605         (A = A OP B). 3 argument forms which allow dest == src, would also
13606         be possible, but the current interfaces seem to map nicely
13607         onto what needs to be done. (There is quite a lot of region
13608         code in GDK now.)
13609
13610         * gdk/gdkregion.h: Add constructor from rectangle and a copy
13611         operator.
13612
13613         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
13614         gdkpoly-generic.h: Copy region code from Xlib, switch it over
13615         to 32 bit coordinates, modify it to be mostly GTK+ style
13616         and to have interfaces that match gdkregion.h.
13617
13618         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
13619         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
13620         create a backing pixmap and redirect all drawing to
13621         that backing pixmap until a matching gdk_window_end_paint().
13622
13623         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
13624         Create a special drawable class for GtkWindow's that 
13625         redirects the drawing to the backing pixmap as necessary
13626         and then calls the real operations in _gdk_windowing_window_class.
13627
13628         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
13629         Store invalid region for each window. Generate expose events for invalid
13630         region in an idle. This replaces both the expose compression
13631         and the redrawing queuing in GTK+. It is both more efficient and
13632         simpler than either one individually and far more so then the
13633         combination.
13634
13635         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
13636         Emulate 32 bit coordinates for windows with 16 bit coordinates
13637         by offsetting drawing, guffaw scrolling techniques and
13638         mapping/unmapping child windows as necessary.
13639
13640         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
13641         where, when invalid regions are processed, the region is stored,
13642         and if expose events come in that are detectably duplicate
13643         the processed exposes (by comparison of event serial numbers),
13644         the stored region is subtracted out of those exposes.
13645
13646         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
13647         regions newly exposed when scrolling or resizing windows.
13648         This, combined with forcing processesing of queued invalidated
13649         regions, gives nice flicker-free scrolling.
13650
13651         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
13652         invalidated regions after every scroll.
13653
13654         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
13655         emulation in GDK. Its, for all practical purposes just a
13656         GtkViewport/GtkFixed hybrid now.
13657
13658         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
13659         (16-bit) structures as necessary instead of just casting.
13660
13661         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
13662         in terms of the structures from gdkregion-generic.c, using appropriate
13663         offsets from GDK to X11 coordinates. Cache clip mask and
13664         origin and ts origin locally and only flush to the server
13665         when drawing, to avoid constantly setting and resetting these
13666         values when offsetting GC's for scrolling and backing pixmaps.
13667
13668         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
13669
13670         * gtk/gtkcontainer.c: Call process_all_updates at end
13671         of resizing to reduce flicker. (Avoids having redraw
13672         lag arbitrarily behind resize under some circumstances)
13673
13674         * gtk/gtkentry.c: Remove old backing store code, and simply take
13675         advantage of the new backing store capabilities of GDK.
13676
13677         * gtk/gtkmain.c: Simple implementation of widget backing
13678         store - simply push a paint while handling each expose.
13679         (Should really be configurable widget for widget.)
13680         
13681         * gtk/gtkwidget.c: Remove all the old complicated redraw
13682         code, and simply invalidate the GDK windows from
13683         gdk_window_queue_clear(), etc. (Sigh, so much carefully
13684         debugged complexity ... gone to the winds.)
13685
13686         Remove all the code for suppressing expose events while
13687         resizes are pending; this isn't needed since the invalid
13688         areas won't be processed until after the resizes are
13689         processed, since they are in a lower priority idle.
13690
13691 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
13692
13693         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
13694         and height of dest rectangle for non-intersecting rectangles.
13695
13696 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
13697
13698         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
13699         for GdkRectangle.
13700
13701 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
13702
13703         * gdk/gdk{events,image,private,types,window}.h
13704          gdk/x11/gdkinputprivate.h: Change all coordinates
13705          from int16 to int. Also, Change width and height from
13706          unsigned to signed to avoid all the stupid C 
13707          signedness bugs.
13708
13709 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
13710
13711         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
13712         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
13713         Add some more detailed checking.
13714
13715         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
13716         New function to retrieve the depth of a drawable.
13717
13718         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
13719         field, reorder fields to save memory. 
13720
13721 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
13722
13723         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
13724         of the background image instead of scaling the background down to
13725         a line.
13726
13727         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
13728         which temporarily set slider to wrong size.
13729
13730         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
13731         queue_clear().
13732
13733 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
13734
13735 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
13736
13737         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
13738
13739 2000-03-17  Tor Lillqvist  <tml@iki.fi>
13740
13741         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
13742         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
13743
13744         * gdk/win32/gdkfont-win32.c
13745         * gdk/win32/gdkproperty-win32.c
13746         * gdk/win32/gdkselection-win32.c
13747         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
13748         now declared such.
13749
13750 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
13751
13752         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
13753
13754 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
13755
13756         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
13757         is called without trapping X errors.
13758
13759 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
13760
13761         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
13762         way into the fontset lists.
13763
13764 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
13765
13766         * gtk/gtkthemes.h: add extern "C" scope.
13767
13768 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
13769
13770         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
13771         to make appends to the list constant. (gtk-guy-990901-0.patch)
13772
13773 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
13774
13775         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
13776         for the typename hash table.
13777
13778 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
13779
13780         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
13781         to make sure we never divide by zero. 
13782         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
13783
13784 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
13785
13786         * gtk/gtkfontsel.c: Apply patch from
13787         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
13788         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
13789
13790         Also, some cleanups in atom handling.
13791
13792 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
13793
13794         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
13795         not GtkWidget.
13796
13797 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
13798
13799         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
13800         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
13801         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
13802         more guint wrap-around bugs before going to bed.
13803
13804 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
13805
13806         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
13807         guint wrap arounds in allocation.width.
13808
13809         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
13810         process untill we fit the allocation given.
13811
13812 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
13813
13814         * gtk/gtkwidget.c:
13815         (gtk_widget_unrealize): guard widget access with ref/unref
13816         around signal emission.
13817         (gtk_widget_hide): same here, but also check its destroyed
13818         state before queueing a resize.
13819
13820 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
13821
13822         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
13823         of gtk_default_insensitive_bg as insensitive base color.
13824
13825         * gtk/gtktext.c (gtk_text_style_set): set the background color according
13826         to the widget's state.
13827         (gtk_text_realize): same here.
13828         (gtk_text_state_changed): same here.
13829         (draw_bg_rect): compare background color against base[] from
13830         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
13831
13832 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
13833
13834         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
13835         grabs are active, unless a delete event is send to the toplevel
13836         of the currently grab holding widget.
13837
13838 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
13839
13840         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
13841         debugging g_print's.
13842
13843 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
13844
13845         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
13846         ever make the scrolled-window requisition ever depend on the 
13847         visibility state of the scrollbars for the AUTOMATIC policy. 
13848         This breaks the GTK+ requisition model, and causes loops.
13849
13850 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
13851
13852         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
13853         the default font to avoid problems with XFree86-4.0 where the
13854         default charset is iso10646-1, not iso8859-1.
13855
13856 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
13857
13858         * acinclude.m4
13859         * config.guess
13860         * config.sub
13861         * ltconfig
13862         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
13863
13864         * gtk/Makefile.am: minor cosmetic consistency tweak
13865
13866 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
13867
13868         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
13869         the activate_time to 0, so that we handle a quick
13870         press/release press/release properly and don't suppress
13871         the second release. (Red Hat bug #7545)
13872
13873 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
13874
13875         * gtk/gtkctree.c (row_delete):
13876         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
13877         bugs with destruction notifier, *always* update internal
13878         structures *before* calling user code.
13879
13880 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
13881
13882         A few more fixes for bug #5487, #2051, #2677.
13883         * gtk/gtkclist.c : 
13884         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
13885         not GDK_BUTTON_PRESS.
13886         (resync_selection): resync only if selection_mode is
13887         GTK_SELECTION_EXTENDED
13888         * gtk/gtkctree.c (resync_selection): same here
13889
13890 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
13891
13892         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
13893         gdk_drag_get_selection() and gtk_menu_detach().
13894
13895         [ From Jeroen Ruigrok/Asmodai ]
13896
13897 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
13898
13899         * gtk/gtknotebook.c (gtk_notebook_size_request): 
13900         page->tab_label can be NULL.
13901
13902 2000-01-25  Havoc Pennington  <hp@pobox.com>
13903         
13904         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
13905         arg is boolean
13906
13907         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
13908
13909         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
13910
13911         * gdk/gdkproperty.c (gdk_property_get): return boolean
13912
13913         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
13914
13915         * gdk/gdkim.c (gdk_im_ready): return boolean
13916
13917         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
13918
13919         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
13920         glib clash, should fix glib)
13921
13922         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
13923         (gdk_get_show_events): return gboolean, and canonicalize 
13924         to TRUE/FALSE
13925
13926         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
13927         colormap is private
13928         (gdk_colors_alloc): gboolean whether to be contiguous
13929         (gdk_color_equal): return gboolean since we are a predicate
13930         and not a qsort() (this looks semi-wrong due to glib breakage,
13931         IMO glib should be fixed)
13932         
13933         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
13934         (gdk_get_use_xshm): return gboolean
13935         (gdk_pointer_is_grabbed): return gboolean
13936
13937         * gdk/gdk.h: Change prototypes to match all the above changes,
13938         and re-run egtk-format-protos as required.
13939
13940 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
13941
13942         * gtk/gtkctree.c (resync_selection): 
13943         * gtk/gtkclist.c (resync_selection):
13944
13945         Return immediately if clist->drag_pos < 0. This is a workaround
13946         for the corrupt state that the clist gets into when a
13947         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
13948
13949         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
13950         
13951         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
13952         variable from recent commit.
13953
13954 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
13955
13956         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
13957
13958 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
13959
13960         * gtk/Makefile.am: prefix all autogenerated source that get build in
13961         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
13962         in builddir. since we subsequently cd into srcdir for autogeneration,
13963         the paths have to be stripped from the target file names, thusly we
13964         use $(@F) as target names now.
13965         put a comment about configure.in's --disable-rebuilds option,
13966         which can be used for non-writable source directories, for development
13967         setups though, srcdir has to be *writable*.
13968
13969 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
13970
13971         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
13972           Finish the job of allowing event to be NULL.
13973           (Fixes bug #4283, reported by Chris Blizzard)
13974
13975         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
13976           things so that the cursor appears on screen, properly
13977           take into account INNER_BORDER.
13978           (Fixes bug #4754, reported by Antonio Campos)
13979
13980 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
13981
13982         * gtk/gtknotebook.c (gtk_notebook_map): Don't
13983           show the tab_label unless it itself is visible.
13984
13985           gtk/gtknotebook.c (gtk_notebook_size_request):
13986           Do a better job of making sure that the visibility
13987           of the tab label corresponds to whether it should
13988           be mapped or not.
13989
13990 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
13991
13992         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
13993           Use the requisition, not the allocation, since the
13994           allocation has not necessarily been computed yet.
13995           (Pointed out by Eugene Osintsev)
13996
13997 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
13998
13999         * gtk/gtkstyle.c (gtk_style_new): Dont' set
14000           style/base[GTK_STATE_INSENSITIVE] both to
14001           gtk_default_insensitive_bg!
14002           (Bug #2187, reported by Jonathan Blandford)
14003
14004         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
14005           Add Alt_L, Alt_R to list of invalid accelerators.
14006           (Bug #3736, reported by Vlad Harchev)
14007
14008 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
14009
14010         * gtk/gtkfilesel.c (open_ref_dir): Fix several
14011         bugs which occured after an attempt to open 
14012         invalid home directory left cmpl_state->reference_dir == NULL.
14013
14014          - completion on files in home directory didn't work
14015          - completion on an empty string caused  segfault
14016
14017          (Bug #3678, reported by Steve Ratcliffe)
14018
14019         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
14020         cut and paste error that was causing scales to
14021         be incorrectly positioned.
14022         (Bug #2956,
14023          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
14024
14025 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
14026
14027         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
14028         when checking for dcgettext, if we've found we needed
14029         it for dgettext.
14030 +
14031 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
14032
14033         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
14034         queue_clear on NO_WINDOW widgets during a reparent,
14035         since at that point the window and widget heirarchies
14036         are out of sync. This stops crashing in some cases
14037         (the scrolled window reparent test, for instance), and
14038         _probably_ won't cause drawing errors.
14039
14040         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
14041         test do what it was supposed to do and be robust against
14042         window closings, etc. (Bug #2443)
14043
14044 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
14045
14046         * gtk/gtkentry.c: Fix return values on mouse events.
14047         (Bug #2686, Sky <seb_sky@yahoo.com>)
14048
14049         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
14050         (pointed out by George Lebl)
14051
14052         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
14053         (From Ettore Perazzoli  <ettore@helixcode.com>)
14054  
14055 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
14056
14057         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
14058         clicks between rows or outside calender area correctly.
14059         (Patch from Damon Chaplin)
14060
14061         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
14062         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
14063           Call destroy function when overwriting existing data. 
14064           (Pointed out by Damon Chaplin)
14065
14066 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
14067
14068         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
14069           which was causing problems on various systems with Xmu.
14070           This hasn't been needed for a very long time.
14071           (Fixes #1185 3167)
14072
14073 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
14074
14075         * gdk/gdki18n.h: Include <ctype.h> when defining
14076           gdk_isw* in terms of is* as a fallback.
14077           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
14078
14079 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
14080
14081         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
14082           realize the widget when it is size allocated!
14083           (old, old bug)
14084
14085         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
14086           Removed unused call to gdk_window_get_size() that
14087           showed up when the above was fixed.
14088
14089 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
14090
14091         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
14092           fix up widget->window when the widget is a
14093           NO_WINDOW container widget.
14094
14095 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
14096
14097         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
14098           to account for the fact that feof() does _not_ 
14099           return TRUE on errors, and thus avoid infinite loops
14100           when trying to use gdk_pixmap_create_from_xpm()
14101           on unreadable values.
14102
14103 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
14104
14105         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
14106
14107 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
14108
14109         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
14110           gdk_gc_set_dashes to take gint8 instead of gchar to
14111           make it clearer that it is _not_ a NULL terminated string.
14112
14113         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
14114           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
14115           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
14116           arguments.
14117
14118 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
14119
14120         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
14121         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
14122         background size relative to our allocation, guard against small
14123         allocations, we may have not yet been size allocated.
14124
14125 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
14126
14127         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
14128         not just version == 3. We implement all 3 + most of 4 - 
14129         (we don't support matching text/plain;charset=iso-8859-1
14130         to a dest that expects text/plain). We'll still advertise
14131         3 to be safe, but any client implementing version >= 3
14132         must interoperate with 3.
14133         
14134 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
14135
14136         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
14137         background and gc members, add a warning in gtk_tooltips_set_color()
14138         indicating that this function is deprecated.
14139
14140 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
14141
14142         * docs/gtkfaq.sgml: FAQ Update:
14143           - Minor cleanups (Emmanuel, me)
14144           - New questions:
14145                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
14146                 How can I retrieve the text from a GtkMenuItem? (timj)
14147                 How do I validate/limit/filter the input to a GtkEntry? (me)
14148                 Memory does not seem to be released when I free the list
14149                         nodes I've allocated (timj)
14150
14151 2000-03-07  Tor Lillqvist  <tml@iki.fi>
14152
14153         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
14154         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
14155         for which it is no use to call GetLastError onWin9x.
14156         (gdk_other_api_failed) New function, for general error
14157         reporting without calling GetLastError.
14158         (gdk_win32_api_failed) OTOH, this function always calls
14159         GetLastError. (gdk_win32_last_error_string) Remove this function,
14160         GLib has the equivalent now.
14161
14162         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
14163         call them with function name, file name and line number in the
14164         arguments.
14165
14166         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
14167         functions.
14168         
14169         * gtk/gtk.def: Add some missing entry points.
14170
14171         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
14172         gtk_paned_set_gutter_size, which don't exist any longer, as void.
14173         
14174         Fixes by Hans Breuer:
14175
14176         * gdk/makefile.msc: Update for debugging.
14177
14178         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
14179         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
14180         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
14181         in the dash_list.
14182
14183         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
14184         the x11 backend.
14185
14186         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
14187
14188         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
14189
14190 2000-03-04  Tor Lillqvist  <tml@iki.fi>
14191
14192         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
14193         just pixel value of background colour.
14194
14195         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
14196         containing code snippet previously duplicated in a couple of
14197         places.
14198         
14199         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
14200         gdk_colormap_color.
14201
14202         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
14203         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
14204         events for autorepeated Shift, Control and Alt keys. Use
14205         gdk_colormap_color.
14206
14207         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
14208         pointer is inside the window the cursor of which we are setting,
14209         call SetCursor immediately.
14210
14211         * gdk/win32/makefile.cygwin
14212         * gtk/makefile.cygwin: If we don't have the build number stamp
14213         file, use zero.
14214
14215         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
14216         gtk_paned_set_gutter_size as empty.
14217
14218         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
14219         
14220 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
14221
14222         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
14223           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
14224           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
14225           docs/gtk_tut.sgml docs/gtk.texi TODO:
14226
14227           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
14228
14229 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
14230
14231         * gtk/gtkcalendar.c: Implement num_marked_dates,
14232           and don't emit mutiple day_selected signals on
14233           month_prev.
14234
14235 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
14236
14237         * docs/make-todo (lineno): let title and logo be configurable so
14238         that GNOME can use this script too.
14239
14240         * TODO.xml: added logourl and a title
14241
14242 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
14243
14244         * TODO.xml: Added some UI items, and an explanatory
14245         comment at the top of the file.
14246
14247 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
14248
14249         * TODO.xml: some updates, added abunch of new entries.
14250         a note for those fiddeling with this file, when done
14251         with it, invoke:
14252         $ ./docs/make-todo TODO.xml >/dev/null
14253         and correct output errors before comitting changes.
14254
14255 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
14256
14257         * TODO.xml: Added XML-structured TODO file.
14258         * docs/make-todo: python script to turn TODO.xml into
14259           pretty XML output. 
14260
14261 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
14262
14263         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
14264         the function to let it draw the seven dots, instead of the old,
14265         much maligned, method.
14266         (draw_dot): New function to draw a dot.
14267
14268         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
14269         to draw the handle inside the border width as opposed to outside.
14270         Use paint function instead of gdk_draw_point.
14271
14272         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
14273         to draw the handle inside the border width as opposed to outside.
14274         Use paint function instead of gdk_draw_point.
14275
14276         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
14277         Change indenting to be more GTK like.
14278
14279 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
14280
14281         * docs/gtk_tut.sgml: New section on GtkCalendar
14282         * examples/calendar: Update example code
14283
14284 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
14285
14286         * docs/gtkfaq.sgml: FAQ Update
14287
14288 2000-02-19  Anders Carlsson  <andersca@gnu.org>
14289
14290         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
14291         to prevent the scroll event to be propagated upwards.
14292
14293 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
14294
14295         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
14296         OwnerGrabButtonMask from button entries for
14297         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
14298
14299         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
14300         to the event mask (which will result in button/press release
14301         being added to the event mask on Unix) so scrolling works
14302         for layouts in scroll windows.
14303
14304         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
14305
14306         Patch from Anders Carlsson  <andersca@gnu.org> to add
14307         a scroll event.
14308
14309         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
14310         scrolling to the "Test Scrolling" part of testgtk.
14311  
14312         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
14313  
14314         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
14315         it against GDK_SCROLL.
14316  
14317         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
14318         way of mouse wheel scrolling.
14319  
14320         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
14321  
14322         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
14323  
14324         * gtk/gtkmain.c: Removed previous mouse wheel hack.
14325  
14326         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
14327         gdk_event_mask_table.
14328  
14329         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
14330         GdkEventScroll handler.
14331  
14332         * gdk/gdkevents.h: Added GdkEventScroll structure.
14333  
14334 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
14335
14336         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
14337         and Anders Carlsson to change the Paned widgets so that they
14338         can be dragged from anywhere along the length. Also change
14339         the way that this is drawn to make this apparent.
14340
14341         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
14342         from George Lebl to check that option_menu->menu is present
14343         before getting history.
14344
14345 2000-02-14  Tor Lillqvist  <tml@iki.fi>
14346
14347         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
14348         before the assertion for non-NULL segment list.
14349
14350         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
14351         Seems that pattern brushes *must* be 8x8 pixels! At least on my
14352         machine, but it might be display driver dependent. Sigh, so make
14353         sure the stipple is that size. Does Windows suck or what?
14354
14355         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
14356         places.
14357
14358 2000-02-13  Havoc Pennington  <hp@pobox.com>
14359
14360         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
14361         refcount to 1
14362         (gdk_cursor_new): init refcount to 1
14363
14364         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
14365
14366 2000-02-13  Tor Lillqvist  <tml@iki.fi>
14367
14368         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
14369         so that we don't have to do unnecessary settings to the HDC.
14370
14371         * gdk/win32/gdkdrawable-win32.c
14372         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
14373         gdk_gc_predraw.
14374
14375         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
14376         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
14377         GDI paths, call WidenPath to get the outline of the stroken path,
14378         and then fill the outline (with the brush that was built from the
14379         stipple).
14380
14381         * gdk/win32/gdkgc-win32.c: Factor out common code from
14382         _gdk_win32_gc_new and gdk_win32_gc_set_values into
14383         gdk_win32_gc_values_to_win32values. Use correct colour for
14384         SetBkColor() (Until now the code actually used a random colour in
14385         the call to SetBkColor()... but that didn't show up as not many
14386         GDI APIs use the background colour. Pattern (opaque stippled)
14387         brushes do.)
14388
14389         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
14390         gdk_win32_api_failed): New functions for error logging.
14391
14392         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
14393         WIN32_API_FAILED to call them, passing function or file name and
14394         line number.
14395
14396         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
14397
14398         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
14399         GdkColor for foreground and background in GdkGCWin32Data.
14400
14401         * gdk/makefile.cygwin: Link in the resource object separately.
14402
14403         * gdk/win32/rc/gdk.rc
14404         * gtk/gtk.rc (New file)
14405         * gdk/win32/makefile.cygwin
14406         * gtk/makefile.cygwin: Update build number in DLLs automatically,
14407         as in GLib.
14408
14409 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
14410
14411         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
14412         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
14413         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
14414         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
14415         parameters given and cursor->ref_count. coding style fixups.
14416
14417         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
14418         not GtkWidget.
14419         
14420         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
14421         fix up widget macros and add _GET_CLASS() variant.
14422         
14423         * gtk/*.c: some GtkType fixups.
14424
14425 2000-02-09  Tor Lillqvist  <tml@iki.fi>
14426
14427         * gdk/win32/gdkproperty-win32.c
14428         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
14429         were reversed.
14430
14431 2000-02-04  Tor Lillqvist  <tml@iki.fi>
14432
14433         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
14434         g_filename_to_utf8 to convert the font names Windows gives us from
14435         whatever is the default codepage to UTF-8.
14436         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
14437         in the other direction.
14438
14439         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
14440         error in debugging output.
14441
14442 2000-02-02  Tor Lillqvist  <tml@iki.fi>
14443
14444         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
14445         and height parameters to gdk_window_clear_area(). Not minus one.
14446
14447 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
14448
14449         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
14450         checks if the widget passed to gtk_drag_get_data() was not the
14451         dest widget.
14452
14453 2000-02-01  Tor Lillqvist  <tml@iki.fi>
14454
14455         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
14456         g_filename_from_utf8 functions (which were added a moment ago to
14457         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
14458         size buffers.
14459
14460         gtk_file_selection_get_filename returns the filename in the C
14461         runtime encoding. It calls g_filename_from_utf8, but copies the
14462         returned string to a static buffer, which is returned. I think
14463         this is better than returning the result from g_filename_from_utf8
14464         directly, which would mean all apps that use it would have to free
14465         the return value. Or should this function care about this issue at
14466         all? Maybe a new function with clearly defined semantics.
14467
14468         * gtk/gtkfilesel.h: Add comment about
14469         gtk_file_selection_get_filename returning the filename in the C
14470         runtime's encoding.
14471
14472         * README.win32
14473         * gdk/gdk.def
14474         * gdk/makefile.{cygwin,msc}
14475         * gtk/gtk.def: Updates.
14476
14477         * gdk/gdkcursor-win32.c: Initialise refcount.
14478
14479 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
14480
14481         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
14482
14483 2000-01-30  Havoc Pennington  <hp@pobox.com>
14484
14485         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
14486         destroy
14487
14488         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
14489
14490         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
14491         implemented in platform-specific code
14492
14493         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
14494
14495         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
14496         underscore in front
14497
14498         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
14499         put an underscore in front
14500
14501         * gdk/gdkcursor.c: new file, implements
14502         gdk_cursor_ref/gdk_cursor_unref
14503
14504         * gdk/gdkcursor.h: Refcount GdkCursor
14505
14506         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
14507
14508 2000-01-29  Tor Lillqvist  <tml@iki.fi>
14509
14510         * gdk/gdkwindow.h
14511         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
14512
14513 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
14514
14515         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
14516         structures to properly inherit from GtkWidget not GtkBin.
14517
14518 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
14519
14520         * gtk+.spec.in: Added lib/gtk+/include/* to %files
14521         (bug #5178 - Peter Wainright)
14522         
14523         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
14524         so that it will be installed.
14525         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
14526
14527 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
14528
14529         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
14530         for the GtkStyleClass vtable const.
14531
14532         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
14533         take a const string argument like GtkTranslateFunc. This will
14534         require changes in use code.
14535
14536 2000-01-19  Tor Lillqvist  <tml@iki.fi>
14537
14538         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
14539         semantics (to mimic the X11 backend, which just calls XClearArea)
14540         is to check for zero width (and height), and in that case use the
14541         window's width minus x (height minus y). This fixes for instance
14542         some redraw problems with gtkclist, which were easily noticeable
14543         in the gtk file selection widget.
14544
14545         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
14546         windows.
14547
14548 2000-01-13  Tor Lillqvist  <tml@iki.fi>
14549
14550         * configure.in
14551         * gdk/Makefile.am
14552         * gdk/x11/Makefile.am
14553         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
14554         (bug #5177).
14555         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
14556         out later.
14557
14558 2000-01-09  Tor Lillqvist  <tml@iki.fi>
14559
14560         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
14561         WM_MOVE for iconified or invisible windows. This fixes various
14562         problems when minimising windows. Thanks to Bernd Herd.
14563
14564 2000-01-05  Tor Lillqvist  <tml@iki.fi>
14565
14566         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
14567         backend's draw_lines method, not draw_points.
14568
14569 2000-01-02  Tor Lillqvist  <tml@iki.fi>
14570
14571         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
14572         before Owen's reorganisation: Don't have queued_events and
14573         queued_tail statics in this file, but use gdk_queued_events and
14574         gdk_queued_tail. This makes exposure event compression work again.
14575
14576         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
14577         seem to be needed?
14578
14579 1999-12-30  Tor Lillqvist  <tml@iki.fi>
14580
14581         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
14582         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
14583         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
14584         doesn't do anything.
14585
14586         * gdk/gdk.def: Add gdk_xid_table_insert.
14587
14588         * gdk/win32/gdkprivate-win32.h
14589         * gdk/win32/gdkevents-win32.c
14590         * gdk/win32/gdkinput-win32.c
14591         
14592         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
14593         extension_events field in the GdkWindowWin32Data struct. Use only
14594         the extension_events field in GdkWindowPrivate. Previously one was
14595         set, and the other one tested, which broke tablet
14596         functionality. Thanks to Keishi Suenaga for pointing this out.
14597
14598 1999-12-18  Tor Lillqvist  <tml@iki.fi>
14599
14600         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
14601         When handling a single character (text length == 1), don't handle
14602         it as if it was UTF-8.
14603
14604 1999-12-11  Tor Lillqvist  <tml@iki.fi>
14605
14606         * Makefile.am: Distribute README.win32.
14607         
14608         * gdk/Makefile.am
14609         * gdk/win32/Makefile.am: Distribute Win32 files.
14610
14611         * gdk/makefile.msc: New file.
14612
14613         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
14614         after label).
14615
14616         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
14617         gdk_error_code as GDKVAR, as they are referred outside GDK.
14618
14619         * gdk/win32/makefile.msc: Update.
14620
14621         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
14622         tweaks. Check only if at least one of those Unicode subrange bits
14623         we care for is set. If no code page bits are set, guess (wildly)
14624         based on the charset.
14625
14626         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
14627
14628         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
14629         non-NULL.
14630
14631         * gtk/gtkdnd.c
14632         * gtk/gtklayout.c
14633         * gtk/gtkplug.c
14634         * gtk/gtkselection.c
14635         * gtk/gtksocket.c
14636         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
14637         appropriate. There must be a cleaner way to handle this?
14638
14639         * gtk/gtkrc.c: Must include windows.h on Win32.
14640
14641         * gtk/testgtk.c: No need to include gdkx.h.
14642
14643         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
14644
14645 1999-12-07  Tor Lillqvist  <tml@iki.fi>
14646
14647         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
14648         the rbearing is set to the same as the width, but this should be
14649         fixed.
14650
14651 1999-12-06  Tor Lillqvist  <tml@iki.fi>
14652
14653         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
14654         function. If Windows doesn't tell us what Unicode subranges a font
14655         covers, guesstimate based on the codepages it covers. This will
14656         hopefully help those Windows versions or fonts that don't give us
14657         any useful Unicode subrange information with GetTextCharsetInfo.
14658         Call this function in gdk_font_load_internal.
14659
14660         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
14661         minor changes.
14662
14663 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
14664
14665         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
14666         New function, long needed.
14667
14668 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
14669
14670         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
14671         only_if_exists argument of gdk_atom_intern to
14672         bool.
14673
14674 1999-11-25  Tor Lillqvist  <tml@iki.fi>
14675
14676         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
14677         Fix two copy&paste errors.
14678
14679         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
14680         win32 has changed.
14681
14682         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
14683         GdkWin32SingleFont struct.
14684
14685         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
14686         subranges of loaded fonts. Clear font signature first, in case
14687         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
14688         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
14689
14690         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
14691         Unoffset clip region.
14692
14693 1999-11-23  Tor Lillqvist  <tml@iki.fi>
14694
14695         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
14696         event->any.window before calling filter functions.
14697
14698 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
14699
14700         * gtk/gtkgamma.h: Adapt cast macros to standard.
14701
14702 [ Merges from 1.2 ]
14703
14704 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
14705
14706         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
14707         If translation does not include a '/', use entire
14708         translation instead of crashing.
14709
14710 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
14711
14712         * docs/gtk_tut.sgml:
14713         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
14714
14715 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
14716
14717         * gtk/gtkselection.c (gtk_target_list_remove): Use
14718         g_list_remove_link, not g_list_remove.
14719
14720         [ From Geert Bevin <gbevin@thunderstorms.org> ]
14721         
14722 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
14723
14724         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
14725         statement upon unselection (how the heck did that slip in?).
14726
14727 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
14728
14729         * gtk/gtktext.c (gtk_text_freeze): 
14730         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
14731         in frozen state (and aparently crashes). patch provided by Anders
14732         Melchiorsen <and@kampsax.dtu.dk>.
14733
14734 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
14735
14736         * fix insensitive default/focus widget activation,
14737         reported by Matt Goodall <mgg@isotek.co.uk>.
14738
14739         * gtk/gtkwindow.c (gtk_window_key_press_event): 
14740         (gtk_window_activate_default):
14741         (gtk_window_activate_focus):
14742         return handled=FALSE for actiavtion of insensitive default
14743         widgets. return handled=TRUE for activation of insensitive
14744         focus widgets. don't activate in either case.
14745
14746 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
14747
14748         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
14749         and $glib_cflags to match library order and in the
14750         theory that an old version of GLib is more likely to
14751         be in the include directory for X then vice-versa.
14752         (Bug #2776)
14753
14754 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
14755
14756         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
14757         to determine the locale for fontsets, not LC_MESSAGES;
14758         the user may want English messages with a handling
14759         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
14760         will still be broken) (Bug #2891)
14761
14762 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
14763
14764         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
14765
14766 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
14767
14768         * gtk/gtkrc.ko: Changed the Korean default fontset.
14769
14770 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
14771
14772         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
14773         where when scrolling to the left or top double exposes
14774         were done, causing major slowdowns.
14775
14776 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
14777
14778         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
14779         names to lowercase and alphanumeric, before looking
14780         them up.
14781
14782         * gtk/Makefile.am: Install codeset variant gtkrc files
14783         with normalized names.
14784
14785 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
14786
14787         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
14788         popup menus when the menu is already visible, but its parent
14789         is still hidden, (happens after tornoff window got hidden).
14790
14791 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
14792
14793         * gtk/Makefile.am (install-data-local): Fix
14794         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
14795         deleted, causing error messages on install.
14796
14797 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
14798
14799         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
14800         the handle as well, since we now sometimes ignore
14801         exposes on the handle while resizing.
14802
14803 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
14804
14805         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
14806         extra g_free introduced in one of the last one or two 
14807         commits.
14808
14809 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
14810
14811         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
14812         consistent, put each style that a gtkrc.* file creates
14813         in a unique namespace, remove old files before installing.
14814
14815 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
14816
14817         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
14818         gtk_rc_init is called multiple times. (Yes, people who
14819         do that have bugs in their code.)
14820
14821 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
14822
14823         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
14824         Remove it since it's generated by the Makefile anyway
14825
14826 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
14827
14828         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
14829         device->info.axes for core pointer.
14830
14831 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
14832
14833         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
14834         idle_id, to deal with obsolete, broken C libraries.
14835
14836 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
14837
14838         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
14839         allocation->x/y twice!
14840
14841         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
14842         consistent with gtk_vscale_pos_trough().
14843
14844 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
14845
14846         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
14847         be queueing a resize on a toplevel container between
14848         the time we show it and when we map it. So, we need
14849         to test GTK_WIDGET_VISIBLE() for toplevels, and only
14850         use GTK_WIDGET_DRAWABLE() for child windows.
14851
14852 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
14853
14854         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
14855         (fixes bug #2144)
14856
14857 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
14858
14859         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
14860         container DRAWABLE (instead of VISIBLE), so we don't queue
14861         resizes on non-toplevel containers.
14862
14863 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
14864
14865         * gtk/gtkselection.[ch]: Make the data argument
14866         const guchar *.
14867
14868 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
14869
14870         * gtk/gtkwindow.c: Try to behave sensibly if 
14871         the focus widget is the window itself. (Should
14872         we allow this at all?)
14873
14874 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
14875
14876         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
14877         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
14878         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
14879         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
14880         in prototypes and implementations consistent (Tomas Ogren).
14881
14882         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
14883         before the widget is unparented (reported by damon).
14884
14885         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
14886         since we provide unsigned data anyways.
14887
14888 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
14889
14890         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
14891         the call to gtk_tooltips_layout_text() until later.
14892
14893         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
14894         Call gtk_widget_ensure_style() before using the style.
14895
14896 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
14897
14898         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
14899         for old widgets that don't propagate draws to all
14900         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
14901
14902 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
14903
14904         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
14905         for a redraw but just the widget that requested the resize.
14906
14907 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
14908
14909         * gtk/gtkcontainer.c: added new widget level method
14910         gtk_container_set_reallocate_redraws() and a GtkContainer flag
14911         reallocate_redraws : 1 to reflect the setting, exported this through
14912         the argument system as a boolean ::reallocate_redraws.
14913
14914         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
14915         on the widget because the allocation changes, do so as well for
14916         widget->parent if the parent has reallocate_redraws set to TRUE.
14917         with that containers requesting reallocation redraws get automatically
14918         redrawn if their children changed allocation (this unfortunately
14919         affects also other children that didn't change allocation, but we
14920         cannot work around that before 1.3).
14921
14922 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
14923
14924         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
14925         _and_ height are >0 (not _or_).
14926
14927         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
14928         instead of gtk_container_queue_resize(), which is a core gtk internal
14929         function (must have been on crack when i queued that).
14930
14931         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
14932         we can check more reliably if we want to discard expose events.
14933         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
14934         flag.
14935         
14936         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
14937         we simply trust these events. for deciding whether to discard exposes,
14938         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
14939         
14940 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
14941
14942         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
14943         queues of areas that are completely off screen.
14944
14945         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
14946         logic for handleboxes.
14947
14948         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
14949         check on width/height.
14950
14951 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
14952
14953         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
14954         we are fine with using $@ the way we do (if we actually encounter
14955         brokeness with $@ in VPATH builds because of additional path prefixes,
14956         we need to use $(@F) actually).
14957
14958 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
14959
14960         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
14961         short lived bugs, that would allow language bindings to do surgeries
14962         to our guts.
14963
14964 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
14965
14966         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
14967         where comparison was being done against an uninitialized
14968         value causing intermittant results depending on
14969         compiler flags. Also make it clearer that we aren't
14970         ever initializing the child as 0x0 (though this will
14971         be caught in gtk_widget_size_allocate())
14972
14973 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
14974
14975         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
14976         gtk_window_unset_transient_for() call after we do checks
14977         involving the old transient parent.
14978         [ From Lance Capser <lmc@cyberhighway.net> ]
14979
14980 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
14981
14982         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
14983         an empty file.
14984
14985 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
14986
14987         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
14988         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
14989
14990 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
14991
14992         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
14993         `$@' is valid only in the build dir, not after we've done 
14994         `cd $srcdir'.  Also use `test -f' instead of less portable
14995         `test -e'.
14996
14997 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
14998
14999         * gtk/gtktext.c (correct_cache_insert): Rewrite
15000          for simplicity, and hopefully correctness.
15001          (Fixes bug #1322, which was a segfault when
15002           on some insertions with the properties around
15003           the insertion set up just wrong.)
15004
15005         * gtk/gtktext.c (gtk_text_adjustment): When we receive
15006          a "changed" signal, clamp the new value to the adjustment
15007          bounds to avoid segfaulting if someone tries to change
15008          the adjustment to a bogus value. (Bug #1795)
15009
15010 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
15011
15012         * gtk/gtkmain.c: Ignore unexpected destroy notifies
15013         for children, for toplevel windows handle them
15014         like delete_event.
15015
15016         * gtk/gtkplug.c: Add an unrealize handler so that
15017         we unref plug->socket_window when we are done
15018         with it.
15019
15020 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
15021
15022         * gtk/gtktext.c (clear_area): Fix stupid signedness
15023          problem that was causing background to sometimes
15024          be misaligned.
15025
15026 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
15027
15028         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
15029         
15030         * gtk/gtkmenu.c (gtk_menu_position): Make
15031          sure we never position menus with negative x, y,
15032          since gtk_widget_set_uposition() can't handle that.
15033
15034         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
15035          Modify the positioning code a bit so that we always
15036          put the top-left corner onscreen. (This is for
15037          UI reasons, gtk_menu_position() now takes care of
15038          gtk_widet_set_uposition() brokeness.)
15039
15040 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
15041
15042         * gtk/Makefile.am: fixed up things for -jx, x > 1.
15043
15044 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
15045
15046         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
15047           RC style that is passed in. The lack of the ref
15048           before was a bug. If people worked around this
15049           bug, this will introduce a slight memory leak
15050           in their code. The code should typically look like:
15051
15052             rc_style = gtk_rc_style_new ();
15053             [...]
15054             gtk_widget_modify_style (widget, rc_style);
15055             gtk_rc_style_unref (rc_style);
15056
15057         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
15058           the style if it was already set.
15059
15060         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
15061           style if it was set before.
15062
15063 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
15064
15065         * gtk/testgtk.c (main): Add a check to see if we
15066           are being run from the correct directory and
15067           to quit nicely if we are not.
15068
15069         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
15070           static.
15071
15072 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
15073
15074         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
15075
15076         * gtk/gtkwindow.c:
15077         queue resizes unconditionally (gtk_widget_queue_resize will figure
15078         what to do if the window is not realized).
15079         (gtk_window_move_resize): only recenter the window
15080         for GTK_WIN_POS_CENTER_ALWAYS.
15081         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
15082         the same way as GTK_WIN_POS_CENTER.
15083
15084 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
15085
15086         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
15087         with (!(info->last_flags & GDK_HINT_POS)) instead of
15088         (!info->last_flags & GDK_HINT_POS).
15089
15090         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
15091         new_height unconditionally, because we use these values even if
15092         !default_size_changed && !hints_changed.
15093         comented the (default_size_changed || hints_changed) case with
15094         respect to resize rejects from the window manager.
15095
15096         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
15097         in the zvt condition hack, since this includes the window hints, set
15098         the hints after the handling_resize case.
15099
15100         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
15101         window is initially shown with to the geometry.
15102
15103 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
15104
15105         * gtk/gtkwindow.c (gtk_window_move_resize):
15106         s/size_changed/default_size_changed/g so i know what's
15107         really going on (frying brain on smaller flame now).
15108
15109 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
15110
15111         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
15112         we have size_changed upon handling_resize. this is a gross
15113         workaround for the broken zvt widget and should be removed in
15114         1.3 again (search for FIXME).
15115         Owen provided an accurate comment for this:
15116
15117         /* We could be here for two reasons
15118          *  1) We coincidentally got a resize while handling
15119          *     another resize.
15120          *  2) Our computation of size_changed was completely
15121          *     screwed up, probably because one of our children
15122          *     is broken. It's probably a zvt widget.
15123          *
15124          * For 1), we could just go ahead and ask for the
15125          * new size right now, but doing that for 2)
15126          * might well be fighting the user (and can even
15127          * trigger a loop). Since we really don't want to
15128          * do that, we requeue a resize in hopes that
15129          * by the time it gets handled, the child has seen
15130          * the light and is willing to go along with the
15131          * new size. (this happens for the zvt widget, since
15132          * the size_allocate() above will have stored the
15133          * requisition corresponding to the new size in the
15134          * zvt widget)
15135          *
15136          * This doesn't buy us anything for 1), but it shouldn't
15137          * hurt us too badly, since it is what would have
15138          * happened if we had gotten the configure event before
15139          * the new size had been set.
15140          */
15141
15142 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
15143
15144         * gtk/gtkrc.c: deal properly with the fact that RC
15145           style lists may include rc styles more than once.
15146
15147         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
15148           unused static function.
15149
15150         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
15151           stack of directories of RC files currently being
15152           parsed and implicitely add them to pixmap path.
15153           
15154           This fixes a bug where the directory would get
15155           appended then overwritten by pixmap_path declarations.
15156
15157           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
15158
15159         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
15160           theme's exit function. (Patch from Peter Wainwright,
15161           bug #1454)
15162
15163         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
15164           Add a destroy() handler to take care of removing
15165           group for menu item. (Fixes bug #1197)
15166
15167         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
15168           in warning message.
15169
15170 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
15171
15172         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
15173         roundtrip to figure window's width and height, since we know that
15174         anyways from widget->allocation.
15175
15176 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
15177
15178         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
15179           the hints after we request the new size.
15180
15181 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
15182
15183         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
15184           GTK_WIDGET_REALIZED() assertion - we can compute the
15185           hints before we are realized.
15186
15187         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
15188           hint changing so that we have a value of hints_changed
15189           when we decide whether to constrain the window size.
15190
15191         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
15192
15193         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
15194         change back to G_MAXINT.
15195
15196 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
15197
15198         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
15199         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
15200         contain uncluttered values.
15201         (gtk_window_compute_hints): simply assert that window is realized
15202         and that geometry_info is valid, since we rely on this anyways.
15203         (gtk_window_constrain_size): major cleanups to the code.
15204         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
15205         for the base size, instead of the minimums. use 32767 as max width
15206         and height (like in gtkwindow.c) instead of G_MAXINT.
15207
15208 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
15209
15210         * cleaned up the GtkContainer.need_resize flag handling mess, we
15211         only need to force resize requests when we were prematurely
15212         realized, or our widget tree was modified when we were temporarily
15213         hidden. handling these cases directly upon showing the window (i.e.
15214         while the GdkWindow is still unmapped) avoids the need to wait for
15215         a configure event response and therefore makes the GUI more snappier
15216         and avoids blank windows during the roundtrip.
15217
15218         * gtk/gtkwidget.c:
15219         (gtk_widget_hide): 
15220         (gtk_widget_show): don't queue resizes on toplevels, they know how
15221         to deal with matters.
15222
15223         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
15224         flag directly for not visible resize containers and spare us unecessary
15225         signal emissions.
15226
15227         * gtk/gtkwindow.c:
15228         (gtk_window_realize): if we need to enforce premature size allocation,
15229         queue a container resize so we are correctly resized later on.
15230         (gtk_window_init):
15231         (gtk_window_size_request):
15232         don't freak around with the ->need_resize flag,
15233         gtk_container_queue_resize() will care about that.
15234         (gtk_window_show):
15235         handle initial resizing issues here, we can handle matters better in
15236         this place, especially since we know that our GdkWindow is still
15237         unmapped.
15238         (gtk_window_move_resize):
15239         don't care about ->need_resize at all.
15240         handle size changes properly that occoured while we waited for a
15241         configure event.
15242
15243 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
15244
15245         * gtk/gtkwidget.c (gtk_widget_set_uposition):
15246         * gtk/gtkwindow.[hc] (gtk_window_reposition):
15247         Move the hint setting code from gtk_widget_set_uposition
15248         to here; set the hints so that we respect any previously
15249         set geometry hints.
15250
15251         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
15252         change the window hints here or move the window here,
15253         let that happen in gtk_window_move_resize().
15254
15255 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
15256
15257         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
15258         to already queued resizes (and therefore redraws) on a widget, check
15259         its anchestry as well.
15260
15261         * gtk/gtkcontainer.c:
15262         (gtk_container_queue_resize): clear resize widgets for resize
15263         containers before aborting prematurely. this is especially important
15264         for toplevels which may need imemdiate processing or their resize
15265         handler to be queued.
15266         (gtk_container_dequeue_resize_handler): added new internal function for
15267         gtkwindow.c.
15268
15269         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
15270         configure event, take possible changes in window position into account
15271         as well.
15272         if we request a new window size, queue up a resize handler that will
15273         last until the configure event response arrives.
15274         combined the ->need_resize case (initial show) with the general size
15275         (hints) changed case and added even more comments.
15276         if !auto_shrink, only revert to the old allocation if the new size
15277         is smaller than the current allocation.
15278
15279 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
15280
15281         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
15282                            gtk_window_set_geometry_hints
15283                            gtk_window_set_default_size):
15284         When hints are set, queue a resize so that the hints will
15285         be eventually reset on the toplevel.
15286
15287         * gtk/gtkwindow.c (gtk_window_show): Use
15288         gtk_window_compute_default_size(). Clear the need_resize flag
15289         on the initail map so that we don't unnecessarily trigger the
15290         resize code.
15291
15292         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
15293         into separate functions. Compare the hints we are setting
15294         with what we set last time so that we can accurately
15295         tell when we need to reset the hints.
15296
15297         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
15298         function to figure out the size from requisition
15299         and default_size.
15300
15301         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
15302         from fvwm to constrain a size to the geometry hints.
15303
15304         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
15305         to compare two sets of geometry hints.
15306
15307         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
15308         from gtk_window_set_hints(), just compute the hints,
15309         don't set them.
15310
15311         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
15312         code from gtk_window_move_resize() to separate function,
15313         rationalize a bit.
15314
15315 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
15316
15317         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
15318         structure into a new private structure.
15319
15320         * gtkrc.c: Split GtkRcStyle into public/private.
15321         In the private part, add a list of pointers to the
15322         RcStyle lists this RcStyle participates in.
15323
15324         * gtkrc.c: When a RcStyle is free, remove all
15325         lists referencing it from the 
15326         realized_style_ht hash, and free those lists.
15327         
15328         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
15329         gtk_rc_init(), since that adds the default styles
15330         to the list of parsed RC files again.
15331
15332         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
15333         
15334 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
15335
15336         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
15337         checks that ensure that a widget's allocation is at least 1 in width
15338         and height. (GNOME note: this doesn't affect old panel code anymore,
15339         because GtkSocket will request width and height of at least 1 since
15340         Fri Jul 23).
15341
15342         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
15343         allocated yet (happens if the user realizes the window prematurely),
15344         size request and allocate it.
15345         (gtk_window_size_allocate): guard against guint underflows.
15346
15347 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
15348
15349         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
15350         in gtk_built_sources, so gtk.defs gets built prior to all other
15351         sources.
15352
15353 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
15354
15355         * gtk/Makefile.am:
15356         invoke indent on gtkmarshal.*. 
15357         rewrote source generation rules, use COPYING as oldest source tag for
15358         a piggyback rule to generate all sources from (don't touch it ;).
15359         major cleanups, strip spaces on build rules for GNU Make.
15360
15361         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
15362         source and target files from commandline arguments. don't invoke indent.
15363
15364 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
15365
15366         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
15367         notebook after switch to avoid drawing problems.
15368         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
15369         
15370         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
15371         show them instead. 
15372         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
15373
15374 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
15375
15376         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
15377         notebook after switch to avoid drawing problems.
15378         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
15379         
15380         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
15381         show them instead. 
15382         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
15383
15384 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
15385
15386         * gtk/gtkwindow.c:
15387         we use window->need_resize from configure_event now, to indicate that
15388         the gtkwindow should keep its allocation (e.g. because the user resized
15389         the window through window manager handles). resize_count is now reliably
15390         used to figure whether we got the allocation we requested from the
15391         window manager.
15392         configure events get queued as resizes now, the real stuff (size
15393         computation and allocation) now only goes on in gtk_window_move_resize().
15394         GtkWindow's requisition now contains its *real* requisition (like all
15395         other widgets), *not* taking usize into account.
15396         geometry_info->last_{width|height} is now updated from set_hints() only
15397         so it always contains the last hints we set for the window manager.
15398         made some event handlers return TRUE instead of FALSE.
15399         the overall code should be much more straight forward now, and the
15400         significant code portions are accompanied by comments now.
15401         (gtk_window_set_hints):
15402         removed requisition argument and made it
15403         fetch the requisition through gtk_widget_get_child_requisition.
15404         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
15405         does that now.
15406         (gtk_window_show):
15407         ensure that the widget is realized before calling 
15408         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
15409         ensure that we got properly size requested and allocated before
15410         realization.
15411         (gtk_window_configure_event):
15412         ignore plain window moves, or reallocate the widget tree through the
15413         resize queue otherwise.
15414         (gtk_window_move_resize):
15415         mostly rewrote this function to figure window manager hints more
15416         reliably, coalesce window moves and resizes to reduce configure events
15417         and do actuall size allocations.
15418
15419 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
15420
15421         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
15422         that have a resize pending, because a redraw is already queued for them.
15423
15424         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
15425         hack to clear resize_widgets.
15426
15427         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
15428         for resize containers prior to size allocation. (this is also a bit
15429         ugly, but avoids side effects for stopped emissions and is thus more
15430         reliable).
15431         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
15432
15433         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
15434         function from gtk_tooltips_expose, as we connect to ::expose_event
15435         *and* ::draw now.
15436
15437 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
15438
15439         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
15440         checks.
15441         (gtk_target_list_unref): Likewise.
15442
15443         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
15444
15445 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
15446
15447         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
15448         guard against division by zero. (Fixes bug #1339)
15449
15450 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
15451
15452         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
15453         Prevent the trivial leak of information of allowing
15454         word motion when the entry is not visible.
15455
15456 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
15457
15458         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
15459         modality to error dialog as well as confirmation dialogs.
15460         (Bug #1803, reported by Rosanna Wing Sze Yuen)
15461
15462 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
15463
15464         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
15465         tree->view_lines.
15466         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
15467
15468         * gtk/Makefile.am (install-data-local): Solaris apparently
15469         has various troubles with ln -f; use rm first instead.
15470         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
15471
15472 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
15473
15474         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
15475         use `cp' followed by `rm' (the `rm' was already there).
15476
15477 July 30, 1999 Elliot Lee <sopwith@redhat.com>
15478         
15479         * configure.in: Fix autoconf warnings about cross compilation by
15480         trying to provide sane defaults for AC_TRY_RUN.
15481         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
15482         put them into $(srcdir) when generated. Also add a dependency of
15483         gtksignal.h on gtkmarshal.h for -j builds. 
15484         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
15485
15486 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
15487
15488         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
15489         GDK_THREADS_{LEAVE,ENTER} pair.
15490         (From Paul Fisher <pnfisher@redhat.com>)
15491
15492 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
15493
15494         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
15495         width and height are always >0 (owen).
15496
15497 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
15498
15499         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
15500         change that assured that a widget's allocated with and height are
15501         always >1, since this breaks *buggy* panel code. unfortunately this
15502         back-breaks the gimp's color selector.
15503
15504         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
15505         allocation is always >0 in width and height, before sending the
15506         configure event; this is a *gross* hack to get the gimp back to work.
15507         
15508         * marked both cases with TODO-1.3
15509
15510 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
15511
15512         * gtk/gtktext.c: Don't display wrap indicators when
15513         text is not editable and word wrap is on.
15514
15515 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
15516
15517         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
15518         option menus here as they are not derived from menu shell, assure that
15519         the option menu has a menu we can add items to.
15520
15521 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
15522
15523         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
15524         width/height to (gint) before calculations and check against < 0 to
15525         avoid guint wraparounds.
15526
15527 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
15528
15529         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
15530         width and height is never zero. sanity check both dimensions against
15531         32767 and issue a warning if the allocation is greater than that.
15532
15533 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
15534
15535         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
15536         to g_main_pending() as well.
15537
15538 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
15539
15540         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
15541         call to g_main_iteration() - since that will regrab
15542         GTK+ lock to process events.
15543
15544 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
15545
15546         * gtk/gtkwindow.c
15547         - Regularize with the rest of GTK+ by making widget->requisition
15548           not reflect the set_usize()
15549         - Always recompute geometry hints, then check if they
15550           changed before sending them to the X server. The
15551           previous checks for changes would fail in a number
15552           of circumstances. 
15553
15554 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
15555
15556         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
15557
15558 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
15559
15560         * gtk/gtkdnd.c:
15561         - Code cleanups
15562         - Instantaneously update on modifier key presses
15563         - Allow cancellation of the drag with Escape.
15564
15565 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
15566
15567         * gtk/testgtk.c (create_handle_box): Set the policy
15568         to auto_shrink - otherwise the appearance is rather
15569         strange when flipping between horizontal and vertical.
15570
15571 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
15572
15573         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
15574         (gtk_window_set_default_size): don't change a value if it's < 0.
15575         queue a resize.
15576
15577 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
15578
15579         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
15580
15581 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
15582
15583         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
15584         add an extra "/" when concating "/" + filename.
15585         (From Matt Grossman <mattg@oz.net>)
15586
15587 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
15588
15589         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
15590         for fg_gc if we set it for drawing pixmap.
15591
15592 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
15593
15594         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
15595         
15596         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
15597         already set, call old engine's destroy function and
15598         unref the old engine.
15599
15600 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
15601
15602         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
15603
15604 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
15605
15606         * gtk/gtkaccelgroup.h: mark certain functions as internal.
15607
15608 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
15609
15610         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
15611         expand behaviour changed.
15612
15613         * gtk/gtklabel.c (gtk_label_set_pattern):
15614         (gtk_label_set_justify):
15615         (gtk_label_set_line_wrap):
15616         don't bother invoking queue_clear, the reallocation does
15617         that for us, always free_words so the upcoming resize will
15618         relayout the label's contents.
15619
15620 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
15621
15622         * applied argument implementation patches from Elena Devdariani
15623         <elena@cogent.ca>.
15624
15625         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
15626         ::space_style, ::relief
15627         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
15628         * gtk/gtkpreview.c: ::expand
15629         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
15630         * gtk/gtknotebook.c: ::homogeneous
15631         * gtk/gtklabel.c: ::wrap
15632         * gtk/gtklist.c: ::selection_mode
15633         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
15634         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
15635         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
15636         * gtk/gtkclist.c: ::sort_type
15637         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
15638         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
15639
15640 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
15641
15642         * gtk/gtkstyle.c: Removed ill-thought-out part of last
15643         comment.
15644
15645 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
15646
15647         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
15648         counting right when we have to attach a new style
15649         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
15650
15651         * gtk/gtkstyle.c: Documented the refcounting
15652         peculularities of gtk_style_attach.
15653
15654 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
15655
15656         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
15657         window types.
15658
15659         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
15660         of GTK_TOPLEVEL for creating the window.
15661
15662 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
15663
15664         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
15665         the last argument (reported by Per Winkvist).
15666         
15667 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
15668
15669         Fixes for invisible XOR lines (Frank Loemker
15670         <floemker@TechFak.Uni-Bielefeld.DE>)
15671         
15672         * gtk/gtkclist.c (gtk_clist_realize): Always use
15673         a non-zero pixel for GDK_XOR.
15674
15675         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
15676         Use GDK_INVERT instead of GDK_XOR.
15677
15678 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
15679
15680         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
15681         signals if h/voffsets differ from adjustment values.
15682         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
15683
15684 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
15685
15686         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
15687         ::selection-done emissions up to the topmost menu shell.
15688
15689 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
15690
15691         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
15692         the user data on the window before destroying it.
15693
15694         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
15695         unrealize handler to take care of destroying 
15696         notebook->panel properly. 
15697         (Bug #1198 - Morten Welinder <terra@diku.dk>)
15698
15699         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
15700         of g_new and g_realloc to stop memory leak. (Actually,
15701         we could just use g_realloc(), but I'm not 100% sure
15702         that is portable).
15703         (Bug #1196 - Morten Welinder <terra@diku.dk>)
15704
15705 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
15706
15707         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
15708
15709         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
15710         for fontsets.
15711
15712         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
15713         with bin/button confusion.
15714
15715 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
15716
15717         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
15718         and show how preselection of radio items is done.
15719
15720 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
15721
15722         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
15723         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
15724         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
15725         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
15726         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
15727         * gtk/gtktable.c (gtk_table_attach): 
15728         * gtk/gtklist.c (gtk_list_insert_items): 
15729         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
15730         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
15731         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
15732         * gtk/gtkbin.c (gtk_bin_add): 
15733         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
15734         * gtk/gtkfixed.c (gtk_fixed_put): 
15735         * gtk/gtklayout.c (gtk_layout_put):
15736         general fixups to container_add logic. always realize child if
15737         child->parent is realized, only map the child and queue a resize
15738         if child and child->parent are both visible.
15739
15740 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
15741
15742         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
15743         instead of gtk_container_foreach to walk and unrealize children, so
15744         composite children get also unrealized.
15745         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
15746         (gtk_widget_map): assert that the widget is visible (basic constrain).
15747         (gtk_widget_real_map): assert that the widget is realized (basic
15748         constrain).
15749
15750 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
15751
15752         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
15753
15754 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
15755
15756         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
15757         file for iso-8859-2 locales.
15758
15759         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
15760
15761 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
15762
15763         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
15764          (Pointed out by andy@rz.uni-karlsruhe.de and others).
15765          Remove some suspicious and useless lines. 
15766
15767 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
15768
15769         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
15770         width,height = 0, 0 to mean - here to edge of window,
15771         instead of -1, -1, since the former is all we support.
15772
15773 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
15774
15775         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
15776         when removing from quit_functions list.
15777
15778 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
15779
15780         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
15781
15782 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
15783
15784         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
15785          When redrawing characters on non-visible entry, use appropriate
15786          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
15787
15788 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
15789
15790         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
15791         from drag coordinates.
15792         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
15793         use drag_dest_cell.
15794
15795         * gtk/gtktree (drag_dest_cell)
15796         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
15797         (Bug #1129)
15798
15799 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
15800
15801         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
15802         translate_* fields.
15803         (gtk_item_factory_finalize): invoke translate_notify independant from
15804         translate_data.
15805         (gtk_item_factory_set_translate_func): likewise.
15806         (gtk_item_factory_destroy): only remove ifactory pointer from those
15807         widgets that belong to us (stupid me).
15808
15809 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
15810
15811         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
15812         rc_style list when lookup succeeeds.
15813
15814 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
15815
15816         * gtk/gtkctree.c (resync_selection): 
15817         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
15818         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
15819         bug.
15820
15821 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
15822
15823         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
15824         Add some missing GDK_THREADS_ENTER()/LEAVE around
15825         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
15826
15827 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
15828
15829         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
15830         rather than emit_by_name.
15831
15832         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
15833         on the widget across multiple signal emissions.
15834         (gtk_editable_delete_text): same here.
15835         (gtk_editable_class_init): set widget_class->activate_signal after
15836         editable_signals[ACTIVATE] has been created.
15837
15838 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
15839
15840         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
15841         position here prematurely -- we might not have the
15842         right ->min_position and ->max_position yet.
15843
15844 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
15845
15846         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
15847         Add error traps so if the other end of the connection
15848         dies, we survive.
15849
15850         * gtk/gtkselection.c (gtk_selection_notify): Clean
15851         up properly when selection property retrieval fails.
15852         
15853         * gtk/gtkselection.c (gtk_selection_request): Correctly
15854         reject SelectionRequest notifies where the handler
15855         returns no data.
15856
15857 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
15858
15859         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
15860         when we've previously highlighted.
15861
15862         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
15863         emit two "drag_leave" signals for Motif drops.
15864
15865         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
15866         back the correct status messages when dropping from
15867         Motif onto a proxy window that is rejecting the
15868         drop.
15869
15870 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
15871
15872         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
15873         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
15874         to compare two argument values. added gtk_arg_to_valueloc() to set a
15875         variable from an arg through its location (pointer).
15876
15877         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
15878         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
15879         as gfloat*, uchars are collected as guchar*, ints are collected as
15880         gint*, etc...
15881
15882 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
15883
15884         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
15885         Include <string.h> instead of <strings.h>.
15886
15887         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
15888         (actually, a lot more duplicate includes occur if
15889          you trace through the sequence of #include's)
15890         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
15891         
15892 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
15893
15894         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
15895         gtk-a-higuti-990322-[0-3]
15896
15897         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
15898         that was causing -DX_LOCALE not to work.
15899
15900         * gtk/gtkrc.c (gtk_rc_init):
15901         X_LOCALE will never have LC_MESSAGES defined
15902
15903 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
15904
15905         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
15906         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
15907
15908         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
15909         left/right as well (gtk-michael-980726-0.patch.gz).
15910
15911         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
15912         for pointer values, use gchar instead of char. fixed uline allocation
15913         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
15914         chunks instead of G_ALLOC_ONLY.
15915         (gtk_label_size_request): always alter requisition as passed and leave
15916         widget->requisition alone.
15917         (gtk_label_set_text): allow NULL strings.
15918         (gtk_label_new): likewise.
15919
15920 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
15921
15922         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
15923
15924 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
15925
15926         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
15927         *and* mapped (i.e. drawable).
15928         (gtk_bin_expose): only send exposes to drawable children.
15929
15930         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
15931         (gtk_box_expose): only send exposes to drawable children.
15932
15933         * gtk/gtkhscale.c (gtk_hscale_draw): 
15934         * gtk/gtkvscale.c (gtk_vscale_draw):
15935         hm, this is an ugly one. we first compute the size of our trough area
15936         here (window relative) and then check intersection with the draw_area
15937         which is parent relative because we're a NO_WINDOW widget, so we need
15938         to offset the trough area by allocation.x and allocation.y before the
15939         check. (this must not be done for the background area though, since
15940         that's already computed parent relative).
15941
15942 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
15943
15944         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
15945         unrealize title buttons.
15946
15947 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
15948
15949         * gtk/gtkclist.c (gtk_clist_column_title_passive)
15950         (gtk_clist_column_title_active): 
15951         only connect/disconnect to GtkWidgetClass::event to block mouse events.
15952
15953         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
15954         zero initialize event, removed superfluous gdk_window_get_pointer call
15955
15956         * gtk/gtklist.c (gtk_list_vertical_timeout)
15957         (gtk_list_horizontal_timeout): removed superfluous
15958         gdk_window_get_pointer call
15959
15960 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
15961
15962         * plugging problems reported by "Bruce Mitchener, Jr."
15963         <bruce@puremagic.com> due to a purify session.
15964
15965         * gtk/gtkstyle.c:
15966         (gtk_style_ref): 
15967         (gtk_style_unref): assert ref_count to be > 0.
15968
15969         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
15970         the requisition.
15971         (gtk_clist_set_shift): likewise.
15972
15973         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
15974         adjustments.
15975
15976         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
15977         event before sending it and set send_event to TRUE (which needs to
15978         be done for *all* synthesized events).
15979         (gtk_list_vertical_timeout): likewise.
15980
15981         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
15982         leaks.
15983
15984         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
15985         to TRUE when synthesizing events.
15986
15987 [ *** end of merges from 1.2 *** ]      
15988         
15989 1999-11-21  Tor Lillqvist  <tml@iki.fi>
15990
15991         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
15992         (or copied from gdkconfig.h.win32 on Win32, sigh).
15993
15994         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
15995
15996         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
15997
15998         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
15999
16000         * gdk/gdkconfig.h.win32: New file.
16001
16002         * gdk/win32/makefile.cygwin: Build just a static archive here.
16003
16004         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
16005         for the DLL from the static archive built above.
16006
16007         * gdk/gdk.def: Moved here from the win32 subdirectory.
16008
16009         * gdk/win32/*: Adapt for the changed private struct organisation.
16010
16011         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
16012
16013 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
16014
16015         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
16016         for wheel mice (buttons 4 and 5).
16017
16018 1999-11-18  Tor Lillqvist  <tml@iki.fi>
16019
16020         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
16021         drawables use just the pixel field in the foreground and
16022         background GdkColor of the GdkGC.
16023
16024         gdk_gc_set_{fore,back}ground() are called in the GIMP with
16025         GdkColors containing uninitialized (red,green,blue) fields, and
16026         just the pixel field filled in, and furthermore in the
16027         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
16028         It thus turns out that we really don't need to have the full
16029         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
16030         it later to have just the pixel values.
16031
16032 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
16033
16034         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
16035
16036 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
16037
16038         * docs/gtkfaq.sgml: threads example from Erik Mouw.
16039         New question on GtkLabel background colors.
16040
16041         * docs/gtk_tut.sgml:
16042           - Correct the example code callback
16043             function definitions.
16044           - Update the gtkdial example code, from Frans van Schaik.
16045           - Update setselection.c to current API.
16046
16047         * examples/Makefile examples/*/*.c: Update to code
16048         listed in tutorial.
16049
16050 1999-11-10  Tor Lillqvist  <tml@iki.fi>
16051
16052         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
16053         subrange table (from the "Developing International Software for
16054         WIndows 95 and Windows NT" book) was missing the Hangul syllable
16055         block... Get the loaded font's charset correctly.
16056
16057         (Note that this, and the other *-win32.c files, still really are
16058         the old ones, the win32 subdirectory is not ready for compilation
16059         yet after the reorg.)
16060
16061 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
16062
16063         * gtk/gtkclist.c: Fix off-by-one bug in parameter
16064         check.
16065
16066 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
16067
16068         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
16069         on results of XQueryDeviceState().
16070
16071 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
16072
16073         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
16074         we need to accesss only ->children. We need an accessor
16075         for the children.
16076
16077         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
16078         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
16079         to get rid of gdkx.h include.
16080         
16081         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
16082         and random references to 'None'.
16083
16084         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
16085         Get rid of unused #include <gdk/gdkx.h>
16086
16087         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
16088         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
16089         gdkconfig.h.
16090
16091 1999-11-08  Tor Lillqvist  <tml@iki.fi>
16092
16093         * gdk/win32/gdkdraw.c
16094         * gdk/win32/gdkfont.c
16095         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
16096         following yesterday's changes. (Unrelated to Owen's reorg.)
16097
16098 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
16099
16100         * gdk/x11/gdkinput-gxi.c: Add missing include,
16101           fix GdkWindowPrivate => GdkDrawablePrivate.
16102
16103         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
16104
16105         * gdk/x11/Makefile.am (xinput_sources): Add missing
16106         backslash to fix building with --with-xinput=none
16107
16108 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
16109
16110         Move all X specific code into the x11/ directory.
16111         Aside from shuffling things around, did the following:
16112
16113        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
16114          gdk_arg_context_* - a simple argument parsing system
16115          in the style of popt.
16116
16117        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
16118          gdk/x11/gdkprivate-x11.h:
16119          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
16120          add ->klass and ->klass_data fields. The klass_data
16121          field points to an auxilliary structure that is
16122          windowing system dependent.
16123
16124        * gdk/gdkfont.c: Make most of the measurement functions
16125          simply wrappers around gdk_text_extents().
16126
16127        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
16128          _gdk_font_strlen() function that hides the weird
16129          behavior in gtk+-1.[02] where a string is interpreted
16130          differently for 8-bit and 16-bit fonts.
16131
16132        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
16133          to store common code for synthesizing double/triple
16134          press events.
16135         
16136        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
16137          Make all the function that modify an existing GC
16138          simply wrappers around gdk_gc_set_values().
16139          
16140        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
16141          for throwing out later.
16142
16143        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
16144          GdkImagePrivate and GdkColormapPrivate to have a
16145          windowing system dependent part (GdkFontPrivateX etc.)
16146          that "derives" from the system-independent part.
16147
16148        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
16149          Got rid of the included-source-files for XInput in
16150          favor of automake conditionals. (Which didn't exist
16151          when XInput support was originally added.)
16152
16153        * gdk/gdkrgb.c: Remove the visual id from the debugging
16154          statements since that is X11 specific; print out
16155          type/depth info instead.
16156          
16157
16158 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
16159
16160         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
16161         loading duplicates of hashed fonts.
16162
16163         * gdk/gdk.c (gdk_keysym_convert_case): rename
16164         gdk_XConvertCase to gdk_keysym_convert_case, allow
16165         results to be NULL in the GTK+ style.
16166
16167         * gdk/gdkcompat.h: Started compatibility header
16168         for renames.
16169
16170 1999-11-07  Tor Lillqvist  <tml@iki.fi>
16171
16172         * gdk/win32/gdkprivate.h: New font private structures, related to
16173         fontsets.
16174
16175         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
16176         gdk_font_list_free(). On X11, will just be wrappers to
16177         XListFonts() and XFreeFontNames(). On Win32, the code previously
16178         in gtkfontsel.c is now here.
16179
16180         New function gdk_font_xlfd_create(). On X11 will get the FONT
16181         property of the font (for GDK_FONT_FONTs), or call
16182         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
16183         builds a XLFD style name from the font information in the LOGFONT
16184         struct(s).
16185
16186         New function gdk_font_xlfd_free(), which correspondingly frees the
16187         string returned by gdk_font_xlfd_create().
16188
16189         Implement fontsets on Win32. Add a function that iterates over a
16190         wide char string and calls a callback function for each substring
16191         of wide chars from the same Unicode subrange (and thus probably
16192         available in the same real font).
16193
16194         Improve the XLFD emulation a bit.
16195
16196         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
16197
16198         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
16199         Beta3, WM_IME_CHAR messages don't seem to contain the composed
16200         multi-byte char as with the Active IMM on Win9x. Oh well, handle
16201         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
16202         ImmGetCompositionStringW() to get the composed Unicode chars.
16203
16204         * gdk/win32/gdkgc.c
16205         * gdk/win32/gdkdraw.c: Changes needed because of the font private
16206         struct changes.
16207
16208         * gdk/win32/gdk.def: Add the new functions.
16209
16210 1999-11-04  Tor Lillqvist  <tml@iki.fi>
16211
16212         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
16213         get the Platform SDK to get <dimm.h>.
16214
16215         * gdk/win32/gdkevents.c: More event handling fixes and
16216         simplification. Never generate motion events with is_hint true. We
16217         used to do that on bogus grounds earlier. Windows sends
16218         WM_MOUSEMOVE messages on button events even if the mouse hasn't
16219         moved, ignore these.
16220
16221         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
16222
16223         * gdk/win32/gdkglobals.c
16224         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
16225         the TrackMouseEvent function, and use it.
16226
16227         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
16228         char before calling WideCharToMultiByte in order to get a string
16229         for the window title.
16230
16231         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
16232
16233         * gdk/win32/gdk.def: Remove obsolete functions.
16234
16235         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
16236         /nodefaultlib and /defaultlib switches.
16237
16238         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
16239
16240 1999-10-31  Tor Lillqvist  <tml@iki.fi>
16241
16242         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
16243         EuroSign).
16244
16245         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
16246         same type as GdkWChar, especially on Win32.
16247
16248         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
16249
16250         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
16251         before passing to Windows GDI for drawing etc. Convert to the
16252         system default codepage before passing to Windows as window
16253         titles.
16254
16255         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
16256         support changing input locale on the fly.
16257
16258         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
16259         on-the-fly changes. Convert incoming characters from the current
16260         codepage to Unicode (and then to a UTF-8 multi-byte string) based
16261         on the current input language. Use keysym<->Unicode mapping tables
16262         and functions borrowed from xterm sources.
16263
16264         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
16265         editions of Win9x, use the ActiveX-based Active IMM (Input Method
16266         Manager) if available. IMEs and the Active IMM are available under
16267         the disguise of Chinese, Korean and Japanese support for IE and
16268         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
16269         support is present in all editions (as long as you install it).
16270
16271         Call DispatchMessage from gdk_events_queue() (and thus
16272         gdk_WindowProc()), instead of duplicating the code in
16273         gdk_WindowProc().
16274
16275         Reworked the grab handling and propagation code, factored out
16276         duplicated code snippets into separate functions. Other cleanups,
16277         too.
16278
16279         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
16280         the <dimm.h> header describing the Active IMM.
16281
16282         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
16283         just do the same as for "single" fonts.
16284
16285         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
16286         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
16287         the new keysyms from gdkkeysyms.h.
16288
16289         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
16290         fontset, so that gtkentry uses wide characters.
16291
16292         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
16293         GTk+'s system directory "gtk+", not "gtk".
16294
16295 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
16296
16297         * docs/gtkfaq.sgml: FAQ update
16298
16299 1999-10-21  Tor Lillqvist  <tml@iki.fi>
16300
16301         * gdk/win32/gdkprivate.h: Add more font private data.
16302
16303         * gdk/win32/gdkfont.c
16304         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
16305         fonts and strings. Now works much better. You still have to
16306         have a correct font selected, though. No fontset emulation yet.
16307
16308 1999-10-19  Tor Lillqvist  <tml@iki.fi>
16309
16310         * gtk/maketypes.awk: Use G_OS_WIN32.
16311
16312         * gtk/gtk.def: Add some missing entry points. Also some non-public
16313         ones, but PyGTK porter claims to need them.
16314
16315         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
16316         built-in type generation.
16317
16318 1999-10-14  Tor Lillqvist  <tml@iki.fi>
16319
16320         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
16321         GDK_FONT_FONT fonts (which is all we have for now, we don't
16322         emulate fontsets). The X11 version uses plain XDrawString in that
16323         case, too. The string passed to gdk_draw_text_wc seems to be in
16324         fact (at least, when used by gtkentry and gtktext) either in a
16325         single-byte charset, or a DBCS. Not Unicode.
16326
16327         This fixes the problem in gtkfontsel, where even if you had
16328         selected a font with a non-Latin1 charset (windows-greek, for
16329         instance), the preview still used Latin-1 glyphs.
16330
16331         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
16332         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
16333         (gdk_font_load): Recognize the demibold etc weights, even if we
16334         don't have the corresponding constants in the headers.
16335         (gdk_font_hash_insert): Use same hash mechanism as in the X11
16336         version. Should save font resources a bit, when we don't have
16337         multiple HFONTs for the same font.
16338
16339         * gdk/win32/gdkprivate.h: Add the names field as in the X11
16340         version.
16341
16342 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
16343
16344         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
16345         X values
16346
16347 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
16348
16349         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
16350         layout support (as mentioned on
16351         http://www.jcinteractive.com/gnome-ui/software/widgets/)
16352
16353 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
16354
16355         * gtk/fnmatch.c
16356         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
16357
16358 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
16359
16360         * configure.in (ALL_LINGUAS): Added Galician (gl)
16361
16362 1999-10-05  Tor Lillqvist  <tml@iki.fi>
16363
16364         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
16365
16366         * gdk/win32/gdkcompat.c: New file, actually provide an
16367         implementation for the deprecated functions. (Just temporarily.)
16368
16369         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
16370
16371         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
16372
16373         * gdk/win32/gdk.def gtk/gtk.def: Updates.
16374
16375 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
16376
16377         * configure.in: Added "uk" to ALL_LINGUAS.
16378         
16379 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
16380
16381         * configure.in: correct checking for BeOS check
16382
16383         * gdk/gdktypes.h
16384         * gtk/fnmatch.c
16385         * gtk/gtkfilesel.c
16386         * gtk/gtkitemfactory.c
16387         * gtk/gtkmain.[ch]
16388         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
16389
16390 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
16391
16392         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
16393         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
16394         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
16395         by Bulgarian). 
16396
16397 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
16398
16399         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
16400         Fix a reference to window_private->destroyed.   
16401
16402         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
16403         (ugly) setting of an internal GdkWindow member to use
16404         a _slightly_ cleaner macro.
16405
16406         * gdk/gdkprivate.h: Split GdkWindowPrivate into
16407         GdkDrawablePrivate and GdkWindowPrivate.
16408         Add extra macros for accessing GDK_DRAWABLE_ components.
16409
16410         * *.[ch]: Massive adjustments for the above, use the
16411         new macros in a lot of places.
16412
16413 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
16414
16415         * gdk/gdktypes.h: Make GdkDrawable the base type,
16416         not GdkWindow.
16417
16418 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
16419
16420         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
16421
16422 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
16423
16424         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
16425
16426 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
16427
16428         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
16429         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
16430
16431         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
16432
16433         * docs/gtk-config.1: Now autogenerated.
16434         * docs/Changes-1.4.txt: started
16435         
16436 1999-10-03  Tor Lillqvist  <tml@iki.fi>
16437
16438         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
16439         to #ifdef also here.
16440
16441         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
16442         Owen did to the X11 backend.
16443
16444         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
16445         ScrollWindowEx when blitting inside a window, it can't be correct
16446         in the general case.
16447
16448         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
16449         WM_GETMINMAXINFO is easier.
16450
16451         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
16452         depth equal to the bitspixel value, not the visual's depth.
16453
16454         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
16455         to 24 even if the bitspixel value is 32.
16456
16457         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
16458         need to check for depth==32 when bpp==32, depth will always be 24.
16459
16460 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
16461
16462         * docs/Changes-1.4.txt: Started
16463         
16464         * gtk/Makefile.am (gdk_headers): Include all the new headers.
16465
16466         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
16467         
16468         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
16469         into C file.
16470         
16471         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
16472         header to gdkinputprivate.h.
16473
16474         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
16475         unused since before 1.2.
16476
16477 1999-09-30  Tor Lillqvist  <tml@iki.fi>
16478
16479         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
16480         expand possible hex escapes in the font family (put there by
16481         logfont_to_xlfd if the font name isn't a legal XLFD font family,
16482         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
16483         On Win32, add hex escapes here, too.
16484
16485 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
16486
16487         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
16488         to #ifdef GDK_WINDOWING_X11.
16489
16490 [ Merges from gtk-1-2 ]
16491
16492 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
16493
16494         * configure.in: fixed "GNU Make" check to pass with new make version
16495         3.77.95.
16496
16497 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
16498
16499         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
16500         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
16501         AM_PATH_GTK() macros don't get confused by the -pre1.
16502
16503 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
16504
16505         * configure.in (REBUILD): Change check for perl5
16506           to check explicitely for v >= 5.002. (5.001
16507           does not work with our scripts.)
16508
16509 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
16510
16511         * configure.in: evaluate $PERL for the perl version check. added
16512         --disable-rebuilds to give the user an option to completely disable
16513         any source autogeneration rules.
16514
16515 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
16516
16517         * configure.in: evaluate $ac_make when checking for GNU Make.
16518
16519 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
16520
16521         * docs/Makefile.am: added generation.txt.
16522
16523         * Makefile.am: require automake 1.4, build README from README.in and
16524         INSTALL from INSTALL.in in dist-hook.
16525         
16526         * README.in:
16527         * INSTALL.in: new files to autogenerate README and INSTALL from.
16528
16529         * configure.in: figure whether we have GNU Make
16530
16531         * docs/generation.txt: minor additions/corrections.
16532
16533 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
16534
16535         * docs/gtkfaq.sgml: FAQ Update
16536
16537 July 30, 1999 Elliot Lee <sopwith@redhat.com>
16538         
16539         * configure.in: Fix autoconf warnings about cross compilation by
16540         trying to provide sane defaults for AC_TRY_RUN.
16541
16542 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
16543
16544         * ltconfig
16545         * ltmain.sh: upgrade to libtool 1.3.3
16546
16547 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
16548
16549         * INSTALL: Indicate that the --with-glib= configure
16550         time flag is unsupported.
16551
16552 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
16553
16554         * docs/generation.txt: Added a file that gives
16555         documenation about the autogeneration process for
16556         various autogenerated files.
16557         
16558 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
16559
16560         * configure.in (LIBS): Look for libgmodule in the
16561         right location.
16562
16563 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
16564
16565         * docs/gtk_tut.sgml: Removed references to
16566         code examples in my directory on gtk.org as
16567         they should all be in the tutorial now.
16568
16569         * docs/gtk_tut.sgml: Added sources for dial-test
16570         and scribble-xinput programs that were previously
16571         missing.
16572
16573 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
16574
16575         * TODO: Added entry about menu keyboard navigation, removed
16576         some finished items.
16577
16578 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
16579
16580         * acinclude.m4: Standardize on func_dgettext
16581         not func_gettext, so that the checks for dgettext
16582         actually are paid attention to.
16583
16584 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
16585
16586         * configure.in (LIBS): Add $INTLLIBS into $LIBS
16587         directly, rather than repeating the checks for
16588         gettext.
16589
16590         * INSTALL: Added information about gettext and
16591         NLS support.
16592
16593         * acinclude.m4 (LIBM): Check for dgettext, not
16594         just gettext. This should hopefully fix things wrt
16595         systems with old versions of GNU gettext installed.
16596
16597 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
16598
16599         * configure.in (LIBS): Look for libgmodule in the
16600         right location.
16601
16602 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
16603
16604         * autogen.sh: add --enable-maintainer-mode
16605
16606         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
16607
16608 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
16609
16610         * docs/gtk-config.1.in:
16611           docs/Makefile.am:
16612           configure.in: gtk-config is now generated.
16613
16614         * docs/gtk-config.1: Removed, now generated.
16615
16616 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
16617
16618         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
16619         handle CreateNotify itself, still put out a debuging message for
16620         --gdk-debug=events. made the ReparentNotify debugging message more
16621         verbose.
16622         wrap xcoords translation for ConfigureEvents into an error trap,
16623         a destroy event may already be pending, and in that case, the
16624         actuall coordinate values are not at all critical.
16625
16626 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
16627
16628         * gdk/gdkcc.c: Stop leaking the color_hash all over
16629         the place. Simplify and improve the logic.
16630
16631 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
16632
16633         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
16634         for prototypes and function implementations consistent (reported
16635         by Tomas Ogren).
16636
16637 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
16638
16639         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
16640         send_event set in debugging output.
16641         (gdk_compress_exposures): default initialize the event so we don't
16642         operate on bogus values (namely send_event).
16643
16644 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
16645
16646         * gdk/gdkwindow.c: When we receive an unexpected
16647         destroy notify on one of our windows, don't just
16648         warn about it, also mark our windows as destroyed.
16649
16650 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
16651
16652         * gdk/gdkfont.c (gdk_font_hash_insert): Add
16653           name => font and name => fontset hashes. The 
16654           name => fontset hash is a _big_ win since we
16655           weren't previously caching fontsets at all and loading
16656           fontsets is expensive. The name => font hash
16657           is less of a win, but it does save us from doing
16658           repeated XQueryFont calls on the same font.
16659
16660         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
16661           list so we can remove font/fontset from hash.
16662
16663 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
16664
16665         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
16666           and slightly confusing test. [ XInternAtom (,,TRUE)
16667           will never return None ].
16668
16669 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
16670
16671         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
16672           gdk/gdkwindow.c (gdk_window_set_hints):
16673
16674         Don't omit setting the properties if flags == 0 -
16675         there may be an existing set of properties there
16676         already. (Very old bug. Would it be better to
16677         delete the property instead?)
16678
16679         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
16680           spelling error in comment.
16681
16682 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
16683
16684         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
16685           to avoid stomping over gdk_error_warnings.
16686
16687         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
16688           as (bits_per_pixel + 7) / 8. This gives the same
16689           result as before for multiples of 8, but actually
16690           a "reasonable" value for 1bit or 4bit displays.
16691
16692 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
16693
16694         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
16695         GNU Make.
16696
16697 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
16698
16699         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
16700         discarding configure events.
16701
16702 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
16703
16704         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
16705         refcount is greater than zero.
16706
16707         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
16708
16709         * gdk/gdkfont.c (gdk_font_unref): Likewise.
16710
16711         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
16712
16713         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
16714
16715 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
16716
16717         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
16718         that format 32 => sizeof(item) == 4. It really is
16719         sizeof(long).
16720
16721 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
16722
16723         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
16724         core dump at all on X IO errors, only core dump
16725         if --enable-debug for X errors.
16726
16727 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
16728
16729         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
16730         unknown window:" message. disabled ConfigureNotify discarding code,
16731         because it led to events being processed out of order.
16732
16733 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
16734
16735         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
16736
16737         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
16738         we export this function, supress error warnings and don't reset the
16739         error code in the first half of this function.
16740
16741         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
16742         code (instead of just -1) so gdk_error_trap_pop() reveals something
16743         actually informative about the error that happened.
16744
16745         * gdk/*.c:
16746         don't rely on gdk_error_code being -1 if an error occoured, but just
16747         gdk_error_code != 0.
16748
16749 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
16750
16751         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
16752         pointer *before* invoking the filter function, so we at least don't
16753         crash if a filter is removed that is currently executed. window filters
16754         *really* need to be made truely reentrant at some point.
16755
16756 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
16757
16758         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
16759         PropertyNotify debug messages.
16760
16761 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
16762         
16763         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
16764         
16765         * gdk/gdkim.c: Fix cut-and-paste errors for 
16766         x/y and PreeditAttributes/StatusAttributes.
16767
16768 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
16769
16770         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
16771         G_MAXINT to 2^16 to alleviate overflow problems in
16772         various window managers.
16773
16774 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
16775
16776         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
16777         for fontsets.
16778
16779 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
16780
16781         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
16782         Initialize size_hints.x and size_hints.y because kwm
16783         brokenly pays attention to them.
16784         (Bug #1181 -  Lars Heete <hel@admin.de>)
16785
16786 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
16787
16788         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
16789         return value of gdk_list_visuals(). 
16790         (Bug #1193 - Morten Welinder <terra@diku.dk>)
16791
16792 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
16793
16794         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
16795         XSetIMValues to (void *) when comparing to NULL, to workaround
16796         the problem of some compilers barfing since older X headers don't
16797         have the prototype for it.
16798
16799 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
16800
16801         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
16802         for pseudocolor where colormap->colors was double
16803         allocated.
16804
16805         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
16806         color value in the hash table with the pixel filled
16807         in so when we do later hash table lookups, the color
16808         value is correct.
16809         
16810 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
16811
16812         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
16813         making the call
16814
16815 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
16816
16817         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
16818         pointed out by Morten Welinder <terra@diku.dk>.
16819
16820 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
16821
16822         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
16823           default filter from the list
16824
16825 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
16826
16827         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
16828           default filter from the list
16829
16830 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
16831
16832         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
16833
16834         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
16835         g_strdup_printf instead of calcing the length separately
16836
16837 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
16838
16839         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
16840         that we don't do in many other places. (Fixing duplicate 
16841         #include of config.h)
16842
16843         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
16844         Otherwise, #ifndef XINPUT_NONE check in the latter
16845         doesn't work. (Bug #546)
16846
16847 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
16848
16849         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
16850         "None" case insensitive.
16851
16852 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
16853
16854         * gdk/gdkselection.c: 
16855         Add error traps so if the other end of the connection
16856         dies, we survive.
16857
16858 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
16859
16860         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
16861         dest_xid field into two fields - one for the window
16862         to send in messages, one to indicate the last looked
16863         up window for caching purposes. This is needed, so
16864         that Leave messages get the correct window.
16865
16866 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
16867
16868         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
16869         Fix warning created by people mucking around
16870         with the gsource API.
16871
16872         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
16873         Change mapping between GIOCondition and GdkInputCondition
16874         to match the way the Linux kernel does it. This should
16875         fix problems where closed pipes were no longer signalling
16876         GDK_INPUT_READ on systems with a native poll().
16877
16878 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
16879
16880         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
16881         explicitly for the string "None" - it is in the XPM
16882         spec and some servers treat unknown colors in odd ways
16883         (like asking the user!)
16884
16885 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
16886
16887         * gdk/gdkevents.c: made "->" into a "." of previous change so
16888         it compiles
16889
16890 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
16891
16892         * gdk/gdkevents.c (gdk_compress_exposures): Set the
16893         window field of the event structure before calling
16894         user filters.
16895
16896 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
16897
16898         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
16899         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
16900
16901 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
16902
16903         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
16904         intermediate text property - prevents major memory
16905         leak when gdk_use_mb.
16906         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
16907
16908 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
16909
16910         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
16911         gtk-a-higuti-990322-[0-3]
16912
16913         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
16914         sizeof(wchar_t) != sizeof (GdkWChar)
16915
16916         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
16917         that was causing -DX_LOCALE not to work.
16918
16919         * gtk/gtkrc.c (gtk_rc_init):
16920         X_LOCALE will never have LC_MESSAGES defined
16921
16922         * gdk/gdk.c (gdk_init_check):
16923         Remove --xim-preedit and --xim-status from argv properly.
16924
16925         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
16926         that the client window is present on the X server
16927         before we pass it to the input method.
16928
16929 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
16930
16931         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
16932         if --display is specified on the command line, than
16933         the drag window will not be created on that display.
16934         
16935 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
16936
16937         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
16938         lookups with only_if_exists == TRUE were inserting
16939         bogus values into the atom cache.
16940
16941 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
16942
16943         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
16944         then reset it to NULL.
16945
16946         * gdk/gdkcolor.c:
16947         (gdk_colors_free): 
16948         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
16949         key for g_hash_table_remove() in both functions, this prevents us
16950         from accessing possibly uninitialized portions of a GdkColor structure
16951         where we are only interested in its pixel value.
16952
16953 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
16954
16955         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
16956         font hash table, if we have a GdkFontPrivate entry for this font
16957         already, simply increment its reference count, provided by Olaf Dietsche
16958         <olaf.dietsche+list.gtk@netcologne.de>.
16959
16960 1999-09-21  Tor Lillqvist  <tml@iki.fi>
16961
16962         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
16963         just to be sure.
16964
16965         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
16966         unused variables, leftovers from the X11 version.
16967
16968         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
16969
16970         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
16971         downcase fields on X11.
16972
16973 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
16974         
16975         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
16976         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
16977
16978 1999-09-17  Tor Lillqvist  <tml@iki.fi>
16979
16980         * gdk/win32/gdk.def: Add gdk_threads_mutex.
16981
16982         * gtk/makefile.msc: Correct path to libintl.
16983
16984         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
16985         use of gint vs. int, and gint vs. gboolean in headers and
16986         definitions. Use GtkType for the *_get_type functions. Note that
16987         these changes preserve binary compatibility.
16988
16989         * gdk/gdk.c
16990         * gdk/win32/gdk.c
16991         * gdk/gdk.h: Fix inconsistencies: gint vs int.
16992
16993         * gtk/gtkmain.c
16994         * gtk/gtkclist.c
16995         * gtk/gtkmenufactory.c
16996         * gtk/gtknotebook.c
16997         * gtk/gtkwidget.c: Fix inconsistencies, also gint
16998         vs. gboolean.
16999
17000         * gtk/gtkcolorsel.[ch]
17001         * gtk/gtkcombo.[ch]
17002         * gtk/gtkdrawingarea.[ch]
17003         * gtk/gtkgamma.[ch]
17004         * gtk/gtkhandlebox.[ch]
17005         * gtk/gtkhpaned.[ch]
17006         * gtk/gtkhruler.[ch]
17007         * gtk/gtkplug.[ch]
17008         * gtk/gtkpreview.[ch]
17009         * gtk/gtkruler.[ch]
17010         * gtk/gtksocket.[ch]
17011         * gtk/gtkstatusbar.[ch]
17012         * gtk/gtktoolbar.[ch]
17013         * gtk/gtkvbbox.[ch]
17014         * gtk/gtkvpaned.[ch]
17015         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
17016         functions.
17017
17018         * gtk/gtkgamma.h: Fix bug, missing () in call of
17019         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
17020
17021 1999-09-14  Tor Lillqvist  <tml@iki.fi>
17022
17023         * gdk/gdkcolor.c (gdk_colormap_new)
17024         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
17025         colormap->colors was allocated twice.
17026
17027         * gdk/win32/gdk.c: Remove some unused stuff.
17028
17029         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
17030         colormap.
17031
17032         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
17033         * gtk/gtklabel.h (gtk_label_get_type)
17034         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
17035         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
17036         in a couple of places, not guint.
17037
17038 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
17039
17040         * configure.in,po/et.po: added Estonian language file
17041
17042 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
17043
17044         * configure.in,po/da.po: added Danish file
17045
17046 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
17047
17048         * docs/gtkfaq.sgml: Minor FAQ Update
17049
17050 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
17051
17052         * docs/gtkfaq.sgml: FAQ update
17053
17054 1999-08-27  Tor Lillqvist  <tml@iki.fi>
17055
17056         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
17057         way to get window contents continually refreshed while resizing. I
17058         didn't like the effects myself, so it's not on by default.
17059
17060         * gdk/win32/gdkprivate.h: New flag variable
17061         gdk_event_func_from_window_proc, FALSE by default.
17062
17063         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
17064         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
17065         are passed --gdk-event-func-from-window-proc.
17066
17067         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
17068         and we have am event_func, call it instead of enqueing the event.
17069
17070 1999-08-23  Tor Lillqvist  <tml@iki.fi>
17071
17072         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
17073         Kelley: Set expose_count in GdkEventExposes correctly.
17074
17075         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
17076         MULTIPLE_WINDOW_CLASSES).
17077
17078         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
17079         for bug in NT, apparently NT *does* draw the end pixel, too, in
17080         LineTo with a one-pixel pen, so we don't have to do it ourselves.
17081
17082 1999-08-21  Tor Lillqvist  <tml@iki.fi>
17083
17084         Improvements by Hans Breuer: 
17085
17086         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
17087
17088         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
17089         CS_?REDRAW flags as they cause lots of (late) redraws when "show
17090         window contents while dragging" is turned on. Allocate at least
17091         one unique class for every GdkWindowType. If support for single
17092         window-specific icons is ever needed (eg. Dialog specific), every
17093         such window should get its own class.
17094
17095 1999-08-19  Tor Lillqvist  <tml@iki.fi>
17096
17097         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
17098         error that caused crashes.
17099
17100 1999-08-17  Tor Lillqvist  <tml@iki.fi>
17101
17102         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
17103         window, use ScrollWindowEx, and call UpdateWindow. This prevents
17104         bugs when for instance part of the window was outside the
17105         display. Thanks to Philippe Colantoni for finding and fixing this.
17106
17107 1999-08-16  Tor Lillqvist  <tml@iki.fi>
17108
17109         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
17110         endpoint calculations which were totally wrong. (A little RTFMing
17111         helps a lot ;-)
17112
17113         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
17114         from a separate directory, not from gettext, because of licensing
17115         issues (we want to use the LGPL version).
17116
17117         * README.win32: Mention the intl from glibc vs from gettext issue.
17118
17119 1999-08-13  Tor Lillqvist  <tml@iki.fi>
17120
17121         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
17122         in the key event handling: Now AltGr chars work again. Also,
17123         now Alt-digits are passed up as well as Control-digits.
17124         Pass keypad plus and minus as normal plus and minus.
17125
17126 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
17127
17128         * docs/gtkfaq.sgml: FAQ Update
17129
17130 1999-07-25  Tor Lillqvist  <tml@iki.fi>
17131
17132         * README.win32
17133         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
17134         the Wintab SDK.
17135
17136         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
17137         OK, but getting closer. Guard against bogus tilt data from Wacom
17138         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
17139         enable easier building without Wintab.
17140
17141         * gdk/win32/gdkinput.h
17142         * gdk/win32/gdkevents.c 
17143         * gdk/win32/gdkwindow.c: Minor changes related related to above.
17144         
17145         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
17146         code. As we have just one visual on Win32, no sense to have it in a
17147         table, and no need for the hash table.
17148
17149         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
17150         better on white background.
17151
17152 1999-07-21  Tor Lillqvist  <tml@iki.fi>
17153
17154         * README.win32: Update gcc build instructions. Mention gettext is
17155         GPL.
17156
17157         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
17158         supported cursor size with GetSystemMetrics.
17159
17160         * gdk/win32/gdkfont.c
17161         * gtk/gtkfontsel.c: Guard against some font weight and charset
17162         symbols being undefined (in mingw32 headers).
17163
17164         * gdk/win32/makefile.cygwin
17165         * gtk/makefile.cygwin
17166         * gtk/gtkthemes.c: No longer need to have differently named
17167         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
17168
17169 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
17170
17171         * docs/gtkfaq.sgml: Long awaited FAQ update.
17172
17173 1999-07-15  Tor Lillqvist  <tml@iki.fi>
17174
17175         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
17176         it. Obscure bit manipulation needed.
17177
17178         * gdk/win32/gdkevents.c: Logging.
17179         
17180         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
17181         style (file name include compiler name) for theme engines.
17182
17183 1999-07-13  Tor Lillqvist  <tml@iki.fi>
17184
17185         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
17186
17187         * gdk/win32/gdkevents.c: Fix long-standing bug in key
17188         events. The key.string wasn't zero-terminated, still we strdup'ed
17189         it in gdk_event_copy(). Synthesize crossing events for button
17190         events before possible propagation.
17191
17192         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
17193
17194         * gdk/win32/makefile.cygwin
17195         * gtk/makefile.cygwin: Use new DLL naming style for the
17196         GCC-compiled ones.
17197
17198         * gdk/win32/makefile.msc
17199         * gtk/makefile.msc: Cosmetics mostly.
17200
17201         * gtk/gtk.def: Add missing entry points.
17202
17203         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
17204
17205 1999-07-09  Tor Lillqvist  <tml@iki.fi>
17206
17207         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
17208         or height is zero. Don't print a warning if Pie or Arc fails, they
17209         always fail (?) for very narrow ellipses.
17210
17211         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
17212         the part or the destination window corresponding to source area
17213         outside of the source drawable's boundary.
17214
17215         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
17216         anything if less than two points.
17217
17218         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
17219         return NULL. Gtk cut-and-paste inside a single program works
17220         better this way. (It always gets the clipboard contents from
17221         Windows, not from its own copy, which is cleared anyway. I can't
17222         say I fully understand what happens... Emulating the X selection
17223         and property stuff is a bit of a mess.)
17224
17225         * gdk/win32/gdkevents.c
17226         * gdk/win32/gdkproperty.c: A bit more verbose logging.
17227
17228         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
17229         that never got deleted). Revamp gdk_region_shrink.
17230
17231         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
17232         after use.
17233
17234         * gtk/gtk.def: Add some missing entry points.
17235
17236         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
17237         component.
17238
17239 1999-07-04  Tor Lillqvist  <tml@iki.fi>
17240
17241         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
17242         Control-digits specially.
17243
17244 1999-07-03  Tor Lillqvist  <tml@iki.fi>
17245
17246         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
17247
17248 1999-06-28  Tor Lillqvist  <tml@iki.fi>
17249
17250         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
17251         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
17252         finding this.)
17253
17254 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
17255
17256         * gtk+.spec.in: Corrected some typos in files section.
17257         
17258 1999-06-15  Tor Lillqvist  <tml@iki.fi>
17259
17260         * README.win32: Mention using GNU gettext.
17261         * config.h.win32: Enable NLS stuff.
17262         * gtk/makefile.msc: Use GNU gettext.
17263         * gdk/win32/gdkdnd.c: Minor header reorg.
17264         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
17265         cosmetics.
17266         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
17267         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
17268
17269 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
17270
17271         * acinclude.m4
17272         * config.guess
17273         * config.status
17274         * ltconfig
17275         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
17276
17277 1999-05-30  Tor Lillqvist  <tml@iki.fi>
17278
17279         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
17280         SafeAdjustWindowRectEx. Don't override all calls to
17281         AdjustWindowRectEx by it, but use it only in two places: When
17282         creating a new top-level window and when moving a top-level
17283         window.
17284
17285         Use screen coordinate rectangle, not client rectangle, in
17286         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
17287         when we try to place a window so that the decoration (mainly,
17288         title bar) isn't visible.
17289
17290         These changes fix the bug that showed up for instance as the
17291         GIMP's saved top-level windows moving right and down (by an amount
17292         equal to the window decoration) for each session. This bug showed
17293         up also in testgtk's "Saved Position".
17294
17295         gdk_window_resize also redone a bit.
17296
17297 1999-05-25  Tor Lillqvist  <tml@iki.fi>
17298
17299         * gtk/testgtkrc: Add (commented out) Windows-style theme
17300         include line.
17301
17302         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
17303
17304 1999-05-18  Tor Lillqvist  <tml@iki.fi>
17305
17306         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
17307         gdkx.h to a gdk subdirectory, so that applications can include
17308         these with <gdk/*.h> without trouble.
17309
17310         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
17311         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
17312         have their bitmap destroyed.
17313
17314         * gdk/win32/gdk.def: Add gdk_root_parent.
17315
17316 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
17317
17318         * configure.in
17319           gtk-config.in
17320           ltconfig
17321           ltmain.sh     
17322           gtk/Makefile.am: changes to compile nicely (with xlib) 
17323           on BeOS
17324
17325 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
17326
17327         * acinclude.m4
17328         * config.guess
17329         * config.sub
17330         * ltconfig
17331         * ltmain.sh: upgrade to libtool 1.3
17332
17333 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
17334
17335         * gtk/gtkclist.c:
17336         * gtk/gtkctree.c: merges from gtk-1-2
17337
17338 1999-04-25  Tor Lillqvist  <tml@iki.fi>
17339
17340         Support added for building using a GNU toolchain on Win32,
17341         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
17342
17343         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
17344         * config.h.win32: Changes for gcc.
17345         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
17346         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
17347         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
17348         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
17349         Protect shl stuff unavaiilable with mingw32 headers.
17350         * gdk/win32/gdkevents.c: Fix typo.
17351         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
17352         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
17353         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
17354         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
17355         the mingw32 headers.
17356         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
17357         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
17358         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
17359         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
17360         Test for NATIVE_WIN32, not _MSC_VER.
17361         * gtk/gtkmain.c: No use warning about developer version on Win32,
17362         there aren't any non-developer versions anyhow.
17363         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
17364         * gtk/makefile.msc: Use pthread from another directory. Minor other
17365         changes. 
17366
17367 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
17368
17369         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
17370           default filter from the list
17371
17372 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
17373
17374         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
17375          when gtk_widget_grab_default() is called for a widget that
17376          is not within a GtkWindow.
17377
17378 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
17379
17380         * docs/gtk_tut.sgml, examples/clist.c: use a
17381           scrolled window in the clist example. Minor
17382           tutorial fixes.
17383
17384 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
17385
17386         * docs/gtk_tut.sgml: Style check from David King
17387           <dking@youvegotmail.net>
17388
17389 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
17390
17391         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
17392         compile with unknown value of GDK_WINDOWING
17393
17394 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
17395
17396         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
17397         after the rule is fired.
17398         (install-exec-local): Install gdkconfig.h only if the contents are
17399         different from the currently installed gdkconfig.h.
17400
17401 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
17402
17403         * gdk/Makefile.am (configexecincludedir): Rename from 
17404         configincludedir so that gdkconfig.h will be installed 
17405         as part of `make install-exec'. 
17406
17407 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
17408
17409         * acinclude.m4
17410         * config.guess
17411         * config.sub
17412         * ltconfig
17413         * ltmain.sh: upgrade to libtool 1.2f
17414
17415         * autogen.sh: libtool is not required to autogen gtk+
17416
17417         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
17418         needed)
17419
17420 1999-03-18  Tor Lillqvist  <tml@iki.fi>
17421
17422         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
17423         declaring gdk variables exported/imported from the DLL. New image
17424         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
17425         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
17426         GDK_DRAG_PROTO_OLE2.
17427
17428         * gdk/gdk.h: Merge in Win32 version: Two new functions,
17429         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
17430         declared only for the Win32 version, but could be in the X11
17431         version as well. (Needed for a Xlib-less gdk_imlib.)
17432         gdk_color_hash should have only one parameter. Declare
17433         gdk_threads_mutex with GDKVAR.
17434         
17435         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
17436         just one parameter.
17437
17438         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
17439         per pixel, not bits.
17440
17441         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
17442         Fetch bpp (which means bits-per-pixel here) from another place on
17443         Win32. Accept also depth==32 (which we might get on Win32) with
17444         bpp==32.
17445
17446         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
17447         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
17448         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
17449         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
17450         in the backend-dependent directory, not in the common gdk
17451         directory.
17452
17453         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
17454         headers.
17455
17456 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
17457
17458         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
17459         want to use the Gtk+ devel version (which is true, and yes - even i am
17460         currently working with the 1.2.x branch). so everyone reading this, you
17461         probably want to issue
17462         cvs checkout -r glib-1-2 glib
17463         and
17464         cvs checkout -r gtk-1-2 gtk+
17465         as your next two comands.
17466
17467 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
17468
17469         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
17470         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
17471
17472         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
17473         file. strongly deprecated the GTK_HAVE_* macros, we provide
17474         GTK_CHECK_VERSION() for people that need to check for certain
17475         Gtk+ versions.
17476
17477         * gtk/gtkcompat.h: removed this from CVS.
17478         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
17479         idea right from the start, it just didn't seem like that back then.
17480
17481 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
17482
17483         * merges from gtk-1-2:
17484
17485 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
17486
17487         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
17488         item factory class has been created.
17489         (gtk_item_factory_parse_rc): likewise.
17490
17491         * gtk/gtkmenu.c:
17492         keep proper references for old_active_menu_item.
17493         (gtk_menu_reparent): unset the usize of the new parent,
17494         so the menu can sanely be size requested and we don't get nasty screen
17495         artefacts upon next reparentation.
17496         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
17497         enter notify. only synthesize enter notifies if the pointer really is
17498         inside the event window.
17499         (gtk_menu_popdown): use gtk_menu_shell_deselect().
17500         (gtk_menu_popup): move the background setting stuff into
17501         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
17502
17503         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
17504         gtk_menu_shell_select_item() to select the new item.
17505         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
17506         do the right thing for deselection as well.
17507
17508 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
17509
17510         * gtk/gtkwidget.[hc]:
17511         (gtk_widget_accelerators_locked): return whether a widget's accelerators
17512         are locked.
17513
17514         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
17515         existing accelerators if the widget's accelerators are locked.
17516
17517 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
17518
17519         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
17520
17521         * gtk/gtkmenu.c: truely forward key press and key release events to
17522         the menu widget from the toplevel or tearoff window. we can't simply
17523         connect to that, we need to stop further processing of the events as
17524         well.
17525
17526 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
17527
17528         * gtk/gtkmenu.c:
17529         (gtk_menu_key_press): pass event->keyval, event->state to
17530         gtk_accelerator_valid, instead of event->keyval twice.
17531         refuse to install single letter accelerators for menus that use
17532         single letter shortcuts.
17533
17534         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
17535         gtk_menu_ensure_uline_accel_group().
17536
17537         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
17538         which will always return an uline accel group, made
17539         gtk_menu_get_uline_accel_group() return NULL if the group isn't
17540         yet created.
17541
17542 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
17543
17544         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
17545
17546         * gtk/gtkclist.c (gtk_clist_column_title_passive):
17547         Leave button sensitive, trap  button_press, button_release,
17548         motion_notify, enter_notify and leave_notify events instead.
17549         (gtk_clist_column_title_active): disconnect event handler.
17550         (gtk_clist_drag_data_get): fixed memory leak. Reported by
17551         Guillaume Laurent <glaurent@worldnet.fr>
17552
17553 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
17554
17555         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
17556         width/height mixups.
17557
17558         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
17559         if needed.
17560
17561 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
17562
17563         * gtk/testgtk.c (create_item_factory): unref the item factory after
17564         window's destruction.
17565
17566         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
17567         count on the menu shell around the menu item's activation, since the
17568         signal emission may cause menu shell destruction.
17569
17570         * gtk/gtkitemfactory.c:
17571         the previous code leaked one accel group per menu. we use
17572         gtk_menu_get_uline_accel_group() now to fix that, and with that
17573         also create the underline accelerator group of the menus only if
17574         required (i.e. an underline accelerator has been specified).
17575         (gtk_item_factory_construct):
17576         (gtk_item_factory_create_item): removed code that would create an
17577         extra accel group for the menu (and leak references).
17578         (gtk_item_factory_create_item): adapted the underline accelerator
17579         installation code to properly feature gtk_menu_get_uline_accel_group().
17580
17581         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
17582         menu->accel_group, this may return NULL if the accelerator group
17583         hasn't been set yet.
17584         added gtk_menu_get_uline_accel_group() to retrive the underline
17585         accelerator group of the menu, this will be created on demand
17586         and proper care is taken about its reference count.
17587
17588         * gtk/gtkitemfactory.h:
17589         * gtk/gtkitemfactory.c:
17590         dumped the approach of keeping a widgets by action list on the
17591         factory since the factory<->widget destroy negotiation didn't work
17592         and would be hard to get going at all. instead we keep a list of
17593         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
17594         persistant throughout a program's life time).
17595         also, i removed the static const gchar *key_* variables, and made
17596         them inline strings (they weren't actually used anyways).
17597         (gtk_item_factory_add_item): update ifactory->items.
17598         (gtk_item_factory_destroy): destroy ifactory->items (and remove
17599         the item factory pointer from the remaining ifactory widgets).
17600         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
17601         list to find the widget.
17602         (gtk_item_factory_get_item): new function that works around
17603         gtk_item_factory_get_widget() limitations, this function will only
17604         return menu items, even for <Branch> entries.
17605
17606 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
17607
17608         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
17609         font hash table, if we have a GdkFontPrivate entry for this font
17610         already, simply increment its reference count, provided by Olaf Dietsche
17611         <olaf.dietsche+list.gtk@netcologne.de>.
17612
17613         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
17614         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
17615
17616 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
17617
17618         * gtk/gtkcontainer.c:
17619         (gtk_container_add_with_args):
17620         (gtk_container_addv):
17621         (gtk_container_add): before adding a child to a conatiner, make sure
17622         it is (default) constructed, this is neccessary because under certain
17623         circumstances the child will get relized and mapped immediatedly, in
17624         which case it has to be constructed already.
17625
17626 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
17627
17628         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
17629         values > 1 as TRUE also.
17630
17631 1999-03-16  Tor Lillqvist  <tml@iki.fi>
17632
17633         * README.win32: New file.
17634                 
17635         * configure.in: Check for lstat.
17636
17637         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
17638         completeness.
17639
17640         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
17641
17642         * gtk/gtk.def: Removed CRs.
17643
17644         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
17645         ..\gdk\win32).
17646
17647         * gdk/win32/makefile.msc: Correct upwards relative paths.
17648         
17649 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
17650
17651         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
17652           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
17653           it was connecting a void function to expose_event and the int
17654           returning function to the draw signal
17655
17656 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
17657
17658         * configure.in:
17659         Use correct path to libgmodule.la when ref'ing uninstalled copy
17660         of glib.  (Already in stable branch, Bug #417)
17661
17662 1999-03-15  Tor Lillqvist  <tml@iki.fi>
17663
17664         Win32 merge and general portability stuff:
17665                 
17666         * acconfig.h,configure.in: Check for <sys/time.h>.
17667
17668         * gdk/win32: New directory (actually, been there for a while).
17669         
17670         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
17671         NATIVE_WIN32, and use these. Always case fold on Win32. No
17672         backslashed escapes on native Win32.
17673
17674         * gtk/{gtk.def,makefile.msc}: New files.
17675
17676         * gtk/Makefile.am: Add above new files.
17677         
17678         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
17679         instead of <strings.h>.
17680
17681         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
17682         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
17683         <unistd.h> appropriately.
17684
17685         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
17686         Use ABS() (from <glib.h>) instead of abs().
17687         
17688         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
17689         of gtk (and thus glib) headers, so that WIN32 will be
17690         defined. With MS C, include <direct.h> for mkdir prototype.
17691
17692         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
17693         some casts, needed by MS C.
17694
17695         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
17696         implemented).
17697
17698         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
17699         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
17700         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
17701
17702         * gtk/gtkmain.h: Mark variables for export/import on Win32.
17703                 
17704         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
17705         the event is not a hint, or its window is not the slider. Needed
17706         on Win32, at least.
17707
17708         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
17709         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
17710         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
17711         a subdirectory of the Windows directory as gtk system
17712         configuration directory.
17713
17714         * gtk/gtkselection.c: No chunks on Win32.
17715
17716         * gtk/gtksocket.c: Not implemented on Win32.
17717
17718         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
17719
17720         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
17721
17722         * gtk/maketypes.awk: Declare variables with a macro that expands to
17723         necessary export/import magic in the case of Win32.
17724                 
17725         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
17726
17727 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
17728
17729         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
17730         since those were meant only for gdki18n.h.  
17731         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
17732         for widechar tests.
17733         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
17734
17735 1999-03-13  Tor Lillqvist  <tml@iki.fi>
17736
17737         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
17738         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
17739
17740         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
17741         installed) to CFLAGS.
17742
17743         * gdk/Makefile.am: Add rules for gdkconfig.h.
17744
17745         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
17746         APIs.
17747
17748         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
17749         gdkx.h anyway when compiling for X11.
17750         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
17751         general): Merge in Win32 version.
17752         
17753         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
17754         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
17755         expansion (if we don't have HAVE_PWD_H), allow for drive
17756         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
17757         included code from Craig Setera's port to Win32 (the one that uses
17758         X11, and the cygwin dll), even if it probably will be abandoned.
17759
17760         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
17761         the user entered one herself.  This way one can complete *.h and
17762         don't get matches on any .help files, for instance.
17763         
17764 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
17765
17766         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
17767         font hash table, if we have a GdkFontPrivate entry for this font
17768         already, simply increment its reference count, provided by Olaf Dietsche
17769         <olaf.dietsche+list.gtk@netcologne.de>.
17770
17771         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
17772         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
17773
17774 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
17775
17776         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
17777         the number of calls to gdk_draw_point() (and thus to X) by
17778         clipping the points by hand.
17779
17780         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
17781         the clip parameter.
17782         (gtk_handle_box_paint): Only paint the handle if the expose area
17783         intersects it.
17784
17785 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
17786
17787         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
17788
17789 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
17790
17791         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
17792         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
17793
17794 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
17795
17796         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
17797          textmode (O_TEXT) for OS/2 version.
17798
17799 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
17800
17801         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
17802         GtkSpinButton, "input" and "output", to make the output more flexible.
17803         The user has to provide a mapping between adjustment->value and the
17804         output string (and vice versa, if the spin button is editable). 
17805         See testgtk for examples.
17806
17807 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
17808
17809         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
17810         new one.
17811         
17812         * configure.in: set gtk+ version to 1.3.0.