]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
Documentation.
[~andy/gtk] / ChangeLog.pre-2-10
1 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
2
3         * gtk/gtkitemfactory.c: Documentation.
4
5 2002-01-13  Sven Neumann  <sven@gimp.org>
6
7         * gdk/gdkwindow.c: documentation cleanups.
8
9 Sun Jan 13 01:15:45 2002  Kristian Rietveld  <kris@gtk.org>
10
11         * gtk/gtktreemodelsort.c: various cleanups,
12         (get_child_iter_from_elt): removed,
13         (gtk_tree_model_sort_elt_get_path): rewritten to be a lot cleaner
14         and especially faster,
15         (gtk_tree_model_convert_iter_to_child_iter): use
16         gtk_tree_model_sort_elt_get_path
17
18 Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
19
20         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
21         revert Owen's change (using a strdupped string as object data), so
22         the interactive search works again
23
24 2002-01-11  Havoc Pennington  <hp@pobox.com>
25
26         * gtk/gtklabel.c: put in more links to Pango markup format docs
27         (gtk_label_set_justify): mention gtk_misc_set_alignment
28
29 2002-01-12  Tor Lillqvist  <tml@iki.fi>
30
31         Fixes contributed by Archaeopteryx Software: This is a first small
32         part of their changes. Will commit more later.
33         
34         * gdk/win32/*.c: Add some more checks for failed GDI calls. If a
35         call fails, don't use bogus values.
36
37          gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): Plug
38         memory leak: g_free() the AND and XOR bitmaps after use.
39         (_gdk_cursor_destroy): If we are destroying the current Windows
40         cursor, set the Windows cursor to none first.
41
42         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
43         brush that was in the DC, like the win32-procution branch does. I
44         guess this plugs a resource leak? With the HDC cache, the old
45         brush might be something we created ourselves, and not a stock
46         brush. And it doesn't do any harm to call DeleteObject on stock
47         brushes.
48
49         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_finalize): If
50         the window has a cursor which is the current Windows cursor,
51         before destroying it set the current Windows cursor to none.
52         (gdk_window_set_cursor): Also here, if destroying the current
53         Windows cursor, set the current Windows cursor to none first.
54         (gdk_window_get_pointer): Revamp logic.
55         
56 2002-01-10  jacob berkman  <jacob@ximian.com>
57
58         * gtk/gtkwidget.c (gtk_widget_add_events): actually iterate
59         through the list rather than infinitely loop
60
61 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
62
63         * gtk/gtkwidget.c (gtk_widget_set_style_recurse): Rename to
64         reset_rc_styles_recurse(). (#68084)
65
66 2002-01-10            Vitaly Tishkov       <tvv@sparc.spb.su>
67         * gtk/gtkimage.c
68         * gtk/gtkimcontext.c
69         * gtk/gtktreemodel.c
70         * gtk/gtktreemodelsort.c
71         * gtk/gtkwindow.c
72         fix docs        
73
74 Wed Jan  9 20:56:42 2002  Jonathan Blandford  <jrb@redhat.com>
75
76         * gdk/x11/gdkkeys-x11.c (get_xkb): get the types as well as the
77         symbols because we need them in MyEnhancedXkbTranslateKeyCode.
78
79 2002-01-10  Tor Lillqvist  <tml@iki.fi>
80
81         Apply the same fixes and improvements as to the
82         gtk-1-3-win32-production branch: Bug fixes and cleanup of
83         selection and DND functionality. Still doesn't work as well as the
84         win32-production branch, though, but getting closer.
85
86         After this, need to add Archaeopteryx Software's OLE2 DND support.
87
88         * gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
89         gdk_selection_send_notify, generate_selection_notify): Don't use
90         SendMessage() to generate events for the same app, instead use
91         gdk_event_put().
92
93         * gdk/win32/gdkprivate-win32.h
94         * gdk/win32/gdkglobals-win32.c
95         * gdk/win32/gdkmain-win32.c
96         * gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
97         initialisation and handling of gdk_selection_notify_msg,
98         gdk_selection_request_msg and gdk_selection_clear_msg. 
99
100         * gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
101         gdk_free_text_list, gdk_string_to_compound_text,
102         gdk_free_compound_text): Implement trivially, witrh a text_list
103         always having a single element, and a compound text always
104         consisting of just a single (UTF-8!) string. Let's see how well
105         this works.
106
107         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
108         non-ASCII paste from the clipboard: Try getting the same formats
109         from the Windows clipboard that gdk_property_change() puts there:
110         CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
111
112         * gdk/win32/gdkproperty-win32.c (gdk_property_change): When
113         storing text on the clipboard, handle non-ASCII text
114         correctly. The logic is as follows:
115
116         If we have only ASCII characters, use CF_TEXT.
117
118         Else, if we are on NT, use CF_UNICODETEXT.
119
120         Else (we are on Win9x), if all the characters are present in the
121         code page of some installed locale, use CF_TEXT and also set
122         CF_LOCALE to that locale.
123
124         Else (still on Win9x) store as RTF. We use a very simple RTF
125         string, just the text, no fonts or other crap, with the non-ASCII
126         characters as Unicode \uN keywords. Additionally, also store the
127         UTF-8 string as such, under the format "UTF8_STRING", so that GDK
128         can also paste from the Clipboard what it has copied there. (Thus
129         no need to implement any RTF parser.)
130         
131         (find_common_locale): New function, implements the search for a
132         locale for case 3 above.
133
134         * gdk/win32/gdkglobals-win32.c: New global variables
135         compound_text, text_uri_list, utf8_string, cf_rtf and
136         cf_utf8_string.
137
138         * gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
139         converts from a wchar_t string to UTF-8.
140         (_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
141         (_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
142
143         * gdk/win32/gdkevents-win32.c (build_keypress_event): Use
144         _gdk_ucs2_to_utf8().
145
146         * gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
147
148         * gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
149         gdk_drag_context_ref() was called unnecessarily in a couple of
150         places, meaning drag contexts were never freed. The same memory
151         leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
152
153         (gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
154         stored file list.
155
156         * gdk/win32/gdkselection-win32.c: Clarify the use of the
157         sel_prop_table. Now it is used only for storing the GDK_SELECTION
158         "properties".
159
160         The file names dropped with WM_DROPFILES -style DND is stored
161         temporarily (between the drop and the target picking them up) in a
162         separate place.
163
164         Have a separate hash table to map selection atoms to owner
165         windows. This used to be quite mixed up.
166
167         (_gdk_dropfiles_store): New function, to store the dropped file
168         list for the drop target to possibly fetch, and clear it
169         afterwards, from gdk_drop_reply().
170
171         (gdk_selection_owner_get): Much simplified now.
172
173 2002-01-09  jacob berkman  <jacob@ximian.com>
174
175         * gtk/gtklayout.c (gtk_layout_style_set): set the background of
176         our bin window also (fixes #58957)
177
178 Wed Jan  9 19:10:07 2002  Jonathan Blandford  <jrb@redhat.com>
179
180         * gtk/gtktreeselection.c
181         (_gtk_tree_selection_internal_select_node): Now we test we can
182         unselect nodes before selecting new ones.
183         (gtk_tree_selection_real_select_node): be careful comparing booleans.
184
185 Wed Jan  9 21:31:44 2002  Kristian Rietveld  <kris@gtk.org>
186
187         * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
188         gtk_tree_model_rows_reordered and not an iter with user_data
189         set to NULL (which is an invalid liststore iter, so
190         iter_n_children failed, etc)
191
192 2002-01-09  Sven Neumann  <sven@gimp.org>
193
194         * tests/prop-editor.c: declared internal functions static.
195         
196 Wed Jan  9 11:13:12 2002  Owen Taylor  <otaylor@redhat.com>
197
198         * gtk/gtkmenuitem.c (_gtk_menu_item_refresh_accel_path): 
199         Fix problem with menus without accel groups, such as the
200         menus for option menus.
201
202         * gtk/gtkpaned.c (gtk_paned_expose): Only conditionalize
203         drawing of handle on whether both children are visible,
204         not the drawing of the other child!. (#68325, Diego Gonzalez)
205
206 Wed Jan  9 10:20:16 2002  Owen Taylor  <otaylor@redhat.com>
207
208         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkgc-c11.c: Check for
209         RENDER before trying to use it... XRenderFindFormat() prints
210         warnings if called when extension isn't present.
211
212 Wed Jan  9 15:20:40 2002  Tim Janik  <timj@gtk.org>
213
214         * gtk/gtkmenuitem.c (gtk_menu_item_parent_set): update the accel
215         path upon parent changes.
216
217 Wed Jan  9 13:20:14 2002  Tim Janik  <timj@gtk.org>
218
219         * gtk/gtkviewport.c (gtk_viewport_size_allocate): small but important
220         fix to force vadjustments at size_alocate time from Xavier Ordoquy
221         <mcarkan@users.sourceforge.net>.
222
223 Wed Jan  9 11:23:39 2002  Tim Janik  <timj@gtk.org>
224
225         * gtk/gtklayout.c (gtk_layout_get_property): 
226         * gtk/gtkspinbutton.c (gtk_spin_button_get_property): 
227         * gtk/gtktreeview.c (gtk_tree_view_get_property): 
228         * gtk/gtkwidget.c (gtk_widget_get_property): 
229         * gtk/gtkfontsel.c (gtk_font_selection_get_property): 
230         * gtk/gtkrange.c (gtk_range_get_property):
231         * gtk/gtkviewport.c (gtk_viewport_get_property):
232         * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
233         possible NULL pointer.
234
235 2002-01-08  Mike Kestner  <mkestner@speakeasy.net>
236
237         * gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
238         * gtk/gtktreednd.h : ditto.
239         * gtk/gtktreemodel.h : ditto.
240         * gtk/gtktreesortable.h : ditto.
241         * gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
242
243 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
244
245         * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather 
246         than XIDs in the docs.
247
248         * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
249
250 Tue Jan  8 18:39:23 2002  Jonathan Blandford  <jrb@redhat.com>
251
252         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
253         Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
254
255 Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
256
257         * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
258         Handle TOGGLE/RADIOBUTTON as well. (#68201,
259         Damon Chaplin.)
260
261         * gtk/gtktoolbar.c (get_first_child): Fix stupid 
262         bug, just introduced.
263
264 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
265
266         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
267         translations, once and for all.
268
269         * gtk/gtktextbuffer.c (paste_from_buffer): Free
270         the ClipboardRequest structure. (#66198, HideToshi
271         Tajima)
272
273 2002-01-08  jacob berkman  <jacob@ximian.com>
274
275         * gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
276         the child rather than the layout. see bug #68263
277
278 Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
279
280         * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
281         the handle if we aren't showing both children.
282         (#68135, Diego Gonzalez)
283
284 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
285
286         * gtk/gtkwidget.c (gtk_widget_add_events): Fix
287         leak of result of gtk_container_get_children().
288
289 Tue Jan  8 14:42:19 2002  Owen Taylor  <otaylor@redhat.com>
290
291         * gtk/gtktoolbar.c: Fix leaks of results of
292         gtk_container_get_children(). (#68199, Damon Chaplin)
293
294 Tue Jan  8 14:19:43 2002  Owen Taylor  <otaylor@redhat.com>
295
296         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): 
297         Fix problem where child->requisition was accessed
298         directly instead of calling get_child_requisition()
299         (#68199, Damon Chaplin)
300
301 2001-01-08  James Henstridge  <james@daa.com.au>
302
303         * gtk/gtkstyle.c: add trailing */ on doc comment.
304
305 Mon Jan  7 22:19:32 2002  Owen Taylor  <otaylor@redhat.com>
306
307         * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
308         problem where were the offset into the image was passed
309         into convert_to_format() wrong.
310
311         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
312         gdk_x11_drawable_update_picture_clip () before using
313         the picture; allow update_picture_clip() to take a NULL gc
314         to mean no clipping.
315
316 2002-01-07  Matthias Clasen  <matthiasc@poet.de>
317
318         * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
319
320         * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
321
322         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
323
324         * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
325
326         * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
327         gtk/gtkwidget.c (gtk_widget_get_toplevel, 
328         gtk_widget_push_composite_child), gtk/gtkdialog.c 
329         (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
330         from messing up the indentation of inline examples.     
331
332         * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv() 
333         instead of getenv().
334
335         * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
336         gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
337         gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
338
339         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
340         gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
341         Document.
342
343 2002-01-07  Anders Carlsson  <andersca@gnu.org>
344
345         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
346         unused pixels and rowstride variables.
347         (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
348
349 Mon Jan  7 08:48:23 2002  Tim Janik  <timj@gtk.org>
350
351         * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
352         the pointer by x/y_offset into the new window when we found
353         the drag destination.
354
355         * gtk/gtkaccelmap.c (internal_change_entry): fix return code
356         for simulation when the entry already contains the required
357         accel key and mod.
358
359 2002-01-06  Matthias Clasen  <matthiasc@poet.de>
360  
361         * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by 
362         G_DISABLE_CAST_CHECKS.
363
364         * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
365         gtk_accel_group_query, gtk_accel_group_find,
366         gtk_accel_groups_from_object): Document.
367
368         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
369
370 2002-01-04  Hans Breuer  <hans@breuer.org>
371
372         * gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c : 
373         need to cast image->mem away from void* to avoid 
374         'error C2036: 'void *' : unknown size'. Doing pointer 
375         arithmetics on void pointers is a GCCism afaik.
376
377         * gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
378         _gdk_draw_pixbuf ()
379
380         * gdk/makefile.msc gdk/win32/makefile.msc 
381         gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
382
383         * gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
384         and take care of image->visual possibly NULL.
385
386         * gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
387         _gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
388         Again take care of image->visual possibly NULL.
389
390         * gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
391
392         * gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
393         instead of private field access
394
395         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
396         colormap setting to the gdk-X behaviour
397
398 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
399
400         * gtk/gtkwidget.c: Documentation additions.
401
402 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
403
404         * gtk/gtkobject.c (gtk_object_dispose): Fix a comment.
405
406         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
407
408 2002-01-04  Havoc Pennington  <hp@pobox.com>
409
410         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
411         
412 Fri Jan  4 13:05:15 2002  Owen Taylor  <otaylor@redhat.com>
413
414         * gtk/gtkdnd.c (gtk_drag_find_widget): At least
415         don't infinite loop if the widget and window heirarchies
416         don't correspond.
417
418         * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes
419         in heirarchy in ::drag_motion, ::drag_drop callbacks
420         by referencing child widget lists. (Patch from Tim)
421
422         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem
423         with widgets where window.x != widget->allocation.x
424
425 Fri Jan  4 01:36:48 2002  Owen Taylor  <otaylor@redhat.com>
426
427         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Optimize
428         a little bit. (More for consistency than because it
429         makes much of a difference.)
430
431 Thu Jan  3 22:18:15 2002  Owen Taylor  <otaylor@redhat.com>
432
433         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
434         (_gdk_x11_have_render): Private function to tell if we have RENDER
435         extension.
436
437         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
438         None if we don't have RENDER extension.
439
440         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
441         use Xft unless we have render extension.
442
443         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
444         Handle missing render extension.
445
446         * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
447         gdk/gdkinternals.h: Add a private copy_to_image() virtual function
448         to the GdkDrawable vtable that extends get_image() to allow
449         copying onto existing images.  Make the default implementation of
450         get_image() use this so that backends don't have to implement
451         both. Add private wrapper _gdk_drawable_copy_to_image().
452
453         * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
454         gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
455         copy_to_image() semantics, speed up by using ShmPixmaps and
456         XCopyArea when possible, XFlush() after ungrabbing the server,
457         generally redo the logic once again.
458
459         * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
460         _gdk_windowing_bits_per_depth(): Function to convert from depth to
461         bits-per-pixel. (We assume only one bpp per depth - X requires
462         this.)
463
464         * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
465         scratch image code into a generic _gdk_image_get_scratch() chunk
466         of code that we can use other places we need scratch images.
467
468         * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
469         Add _gdk_image_new_for_depth() as the backend 
470         to _gdk_image_new() to allowing creating images with
471         a depth and no visual.
472
473         * gdk/gdkpixbuf-drawable.c: Fix so that getting 
474         parts of images not at 0,0 actually works.
475
476         * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
477         gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c: 
478          - Add a new GdkDrawableClass vfunc _draw_pixbuf, and 
479           _gdk_draw_pixbuf() [ will be made public later ], to allow 
480           backends to accelerate drawing pixbufs. 
481          - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
482            to be the default implementation. 
483          - Update docs for gdk_pixbuf_render_to_drawable_alpha(). 
484          - Optimize the default implementation by using 
485            _gdk_image_copy_to_pixmap() and scratch shared images, and
486            special casing the compositing.
487
488         * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
489         with alpha using the RENDER extension.
490
491         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
492         Optimize by _gdk_image_copy_to_pixmap() and scratch images.
493
494         * tests/testrgb.c: Add test for speed of alpha composition,
495         reduce the number of iterations since alpha composition
496         can be a bit slow.
497
498         * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap): 
499         Private function to get a ShmPixmap for an image, if possible.
500
501 2002-01-04  Anders Carlsson  <andersca@gnu.org>
502
503         * tests/testtreesort.c: Add my cool list of integers.
504
505 Thu Dec 27 18:12:55 2001  Owen Taylor  <otaylor@redhat.com>
506
507         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Fix
508         problem where retrieved atoms weren't properly returned.
509
510 2002-01-03  Anders Carlsson  <andersca@gnu.org>
511
512         * gtk/gtktextview.c (gtk_text_view_key_press_event): When
513         tab is pressed and the text view isn't editable, 
514         move the focus instead.
515
516         * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
517         necessary.
518
519         * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list.
520
521         * gtk/gtkcolorsel.c (get_focus_gc): Free dash list.
522
523         * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask
524         if it's NULL.
525
526         * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
527         _gtk_tree_view_queue_draw_node.
528         (gtk_tree_view_row_has_child_toggled): Only redraw one node.
529
530         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): 
531         sort_column_id can be 0.
532
533         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
534         Only redraw one the node being selected.
535
536         * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
537         
538 Wed Jan  2 23:09:06 2002  Tim Janik  <timj@gtk.org>
539
540         * gtk/gtkcontainer.c (_gtk_container_queue_resize): don't ignore
541         realized but visible && !mapped resize containers (which is
542         possible with unset CHILD_VISIBLE now).
543
544 2002-01-02  jacob berkman  <jacob@ximian.com>
545
546         * gtk/Makefile.am (LDFLAGS): automake still doesn't support
547         libsomething_la_LDFLAGS, so fix the build again
548
549 2002-01-01  Havoc Pennington  <hp@pobox.com>
550
551         * gtk/gtktextview.c (gtk_text_view_expose_event): propagate
552         exposes to no window children not in the buffer window.
553         (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab
554         - is this the right way to do it?
555         (gtk_text_view_focus): add focus method, just chains up for now, 
556         I'm not sure why the GtkContainer implementation doesn't work
557
558         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill
559         in the text line for the child anchor segment
560
561         * tests/testtext.c (do_add_focus_children): add another test
562         example (to put focusable buttons into the widget)
563
564 2002-01-01  Havoc Pennington  <hp@pobox.com>
565
566         * docs/README.linux-fb: note that this file is obsolete
567
568         * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
569         files that they should not be edited and look in the reference 
570         manual instead. Probably these files should just be replaced by 
571         the note, and their main contents deleted.
572
573         * gtk/gtktextview.c: docs
574
575         * gtk/gtktextmark.c: docs
576
577         * gtk/gtktextchild.c: docs
578
579         * gtk/gtktextbuffer.c: docs stuff
580
581         * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
582         give people more leads in sorting out PRIMARY vs. CLIPBOARD
583
584 2002-01-01  Tor Lillqvist  <tml@iki.fi>
585
586         * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
587         ../gdk-pixbuf/gdk-pixbuf-csource.
588
589 2001-12-31  Tor Lillqvist  <tml@iki.fi>
590
591         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
592         handling.
593         (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
594
595         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
596         -Wall.  Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
597         one more place.
598
599         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
600         -Wall.
601
602         * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
603
604 2002-01-01  Havoc Pennington  <hp@pobox.com>
605
606         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc 
607         fix
608         
609 2002-01-01  Havoc Pennington  <hp@pobox.com>
610
611         * gtk/gtktextview.c (changed_handler): Replace call to
612         gtk_widget_size_request() that expected to actually compute the
613         request with a direct use of widget_class->size_request, so we get
614         our size request right; fixes remaining part of #63065 reported by
615         Matthias Clasen
616
617 2001-12-31  Havoc Pennington  <hp@pobox.com>
618
619         * tests/testtext.c (do_insert_and_scroll): remove backward_char
620         since we no longer have bogus newline
621         (dialog_response_callback): remove another backward_char horkage, 
622         reported by Matthias Clasen #63065
623
624 2001-12-31  Havoc Pennington  <hp@pobox.com>
625
626         * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
627         fix an incorrect assertion that the "valid" flag is always correct
628         in a node and add explanatory comment. This keeps me from 
629         reproducing #59101, but I'm remembering that 59101 was actually 
630         about incorrect pixel totals, so I'm not sure 59101 is actually 
631         fixed. May just have stopped happening due to some change in 
632         how C-k works.
633
634 2001-12-31  Havoc Pennington  <hp@pobox.com>
635
636         * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
637         selection if shift is down, bug #50939
638         (gtk_text_view_button_press_event): add double/triple click
639         selection to the current selection if shift is down
640
641 2001-12-31  Havoc Pennington  <hp@pobox.com>
642
643         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix 
644         to use ensure_byte_offsets not ensure_char_offsets, patch 
645         from Padraig O'Briain bug #67356
646         
647 2001-12-30  Havoc Pennington  <hp@pobox.com>
648
649         * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have 
650         the right values, reported by Jeff Franks
651
652 2001-12-30  Matthias Clasen  <matthiasc@poet.de>
653
654         * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
655
656 2001-12-28  Matthias Clasen  <matthiasc@poet.de>
657
658         * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c: 
659         Minor documentation tweaks.
660
661 2001-12-28  Tor Lillqvist  <tml@iki.fi>
662
663         * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
664         (unicode_classify): Don't return -1 on encountering an
665         unclassified character, but play it safe and return U_BASIC_LATIN.
666
667 Thu Dec 27 16:05:30 2001  Owen Taylor  <otaylor@redhat.com>
668
669         * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
670         of misc->xpad/ypad consistent with GtkLabel. Do 
671         directional flipping when interpreting misc->xalign/yalign.
672         Fix off-by-one error for negative x,y. (#67472, reported
673         by Mathieu Lacage)
674
675 Thu Dec 27 15:45:41 2001  Owen Taylor  <otaylor@redhat.com>
676
677         * gtk/gtkwidget.c (gtk_widget_set_style_internal):
678         Remove optimization that was causing problems because
679         we called gtk_widget_size_request() before we called
680         gtk_widget_queue_resize() so RESIZE_NEEDED was not
681         set. Optimization shouldn't mattter now that we
682         are smart about needlessly size requesting or allocating
683         widgets. (#67598, reported by Jacob Berkman)
684
685 Thu Dec 27 15:38:20 2001  Owen Taylor  <otaylor@redhat.com>
686
687         * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
688         Call gdk_window_get_pointer() on menu->bin_window not
689         menu->window, so we get the correct window for the
690         menu item. (#65213, Guillermo S. Romero)
691
692 Thu Dec 27 15:13:44 2001  Owen Taylor  <otaylor@redhat.com>
693
694         * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
695         the title by setting to NULL. Move docs inline. 
696         Update the title if the tearoff window already
697         exists. Code cleanup. (Fixes #65190, reported by
698         Vitaly Tishkov.)
699
700 Thu Dec 27 14:04:22 2001  Owen Taylor  <otaylor@redhat.com>
701
702         * gtk/gtksocket.c (gtk_socket_key_press_event): 
703         gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
704         special handling of key presses unless we are doing 
705         iter-app embedding. (Fixes #67590, Anders Carlsson)
706
707 Thu Dec 27 16:37:04 2001  Kristian Rietveld  <kris@gtk.org>
708
709         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
710         (gtk_tree_model_sort_sort_level),
711         (gtk_tree_model_sort_insert_value): fix a few places where
712         I was confused between modelsort iters and other iters. This was
713         really going to happen someday ;)
714
715 Wed Dec 26 23:41:41 2001  Kristian Rietveld  <kris@gtk.org>
716
717         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
718         we are unprelighted before reordering
719
720         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
721         need to break out of the for loop, not return (this fixed
722         the 'selection freeze' bug).
723
724         * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
725         be pretty stable now, though it still needs some more code
726         cleanups.
727
728 Wed Dec 26 12:32:31 2001  Owen Taylor  <otaylor@redhat.com>
729
730         * docs/Changes-2.0.txt: Document the fact that
731         gtk_paned_set_handle_size() has been removed.
732
733         * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro, 
734         since it pointed to gtk_paned_set_handle_size(), which
735         was removed. (#66760, Matt Wilson)
736
737 Wed Dec 26 12:28:24 2001  Owen Taylor  <otaylor@redhat.com>
738
739         * gtk/gtkdnd.c (gtk_drag_highlight): Connect 
740         gtk_drag_hightlight_expose _after_, so it works with
741         widgets that paint there entire background. (#66735)
742
743 Wed Dec 26 12:17:06 2001  Owen Taylor  <otaylor@redhat.com>
744
745         * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
746         allocation to widget->allocation. (Fixes #67290,
747         Chris Phelps.)
748
749 Wed Dec 26 11:49:01 2001  Owen Taylor  <otaylor@redhat.com>
750
751         (#67542, reported by Anders Carlsson)
752         
753         * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
754         rc_style->font_desc with defaul style instead of replacing
755         it.
756
757         * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
758         font descriptions in RC styles by calling
759         pango_font_description_merge(). 
760
761 2001-12-24  James Henstridge  <james@daa.com.au>
762
763         * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
764         valid with both SGML and XML.
765
766 Sat Dec 22 12:38:03 2001  Owen Taylor  <otaylor@redhat.com>
767
768         * configure.in: 1.3.12, interface, binary age 0.
769
770         * configure.in: Require new versions of Glib, Pango, ATK.
771
772         * NEWS: Updated.
773
774         * configure.in: Make explicit what libtool we are executing.
775         (Tomas Ogren)
776
777         * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
778
779         * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix 
780         parameter names for docs.
781
782 Sat Dec 22 22:35:29 2001  Owen Taylor  <otaylor@redhat.com>
783
784         * gtk/gtkwindow.c (gtk_window_realize) 
785           gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
786
787         * gtk/gtkentry.c (gtk_entry_key_release)
788           gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
789         key release events to the input method.
790
791         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
792         Handle release of Control/Shift to end hex sequence.
793
794         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress): 
795         Handle key releases as well as presses.
796
797 2001-12-21  Matthias Clasen  <matthiasc@poet.de>
798
799         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
800
801         * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
802         gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
803         documentation about underscores and mnemonics. (#66380)
804
805         * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
806         cyclic reference in docs.
807
808         * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
809         of default value. (#65402)
810
811         * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale): 
812         Markup fixes.
813
814 2001-12-20  Anders Carlsson  <andersca@gnu.org>
815
816         * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
817         map here.
818
819 Tue Dec 18 16:15:55 2001  Owen Taylor  <otaylor@redhat.com>
820
821         * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
822         (reported by Jeff Franks.)
823
824 Tue Dec 18 16:07:28 2001  Owen Taylor  <otaylor@redhat.com>
825
826         * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix 
827         prototype for direction_changed. (Reported by
828         Jeff Franks.)
829
830 2001-12-18  Padraig O'Briain <padraig.obriain@sun.com>
831
832         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
833         Fix typo (list->data becomes list->next)
834
835 2001-12-06  Havoc Pennington  <hp@redhat.com>
836
837         Add Unicode control char menu, based on patch from Dov.
838         Bug #63495
839         
840         * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
841         gtk_entry_enter_text
842         (gtk_entry_enter_text): function to do "typing in text"
843         (popup_targets_received): add the Unicode menu items
844
845         * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
846         on Input Methods item, and add the unicode menu items.
847
848         * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
849         used in GtkEntry and GtkTextView - may become public later.     
850
851 2001-12-16  Kjartan Maraas  <kmaraas@gnome.org>
852
853         * gtk/gtkprogressbar.c: Fix a typo.
854         * gtk/gtkpaned.c: Fix a typo.
855         
856 2001-12-15  Darin Adler  <darin@bentspoon.com>
857
858         Fix some warnings.
859
860         * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
861         g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
862         * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
863         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
864         * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
865         * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
866         Restructure loop to get rid of uninitialized variable warning. Also
867         gives a tiny efficiency gain.
868
869 2001-12-15  Murray Cumming  <murrayc@usa.net>
870
871         * Fixed first arg type of GtkScale's "format_value" signal's
872         function pointer.
873
874 2001-12-14            Vitaly Tishkov       tvv@sparc.spb.su
875         docs/reference/gtk/tmpl/gtkcelleditable.sgml
876                 gtkcelleditable -> GtkCellEditable
877         docs/reference/gtk/tmpl/gtktreesortable.sgml
878                 gtktreesortable -> GtkTreeSortable
879
880 2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
881
882         * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
883         demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
884         and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
885         resp.
886
887 Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>
888
889         * gtk/gtktreeview.c (validate_visible_area): free path
890         at the end
891
892 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
893
894         * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
895
896 Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>
897
898         * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
899         to find the clicked node in the tree when tree == NULL
900
901 2001-12-13  Anders Carlsson  <andersca@gnu.org>
902
903         * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare 
904         event->state with the default mod mask. 
905
906 2001-12-12  jacob berkman  <jacob@ximian.com>
907
908         * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
909
910 Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
911
912         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
913         Reset the existing slave before removing it to give
914         it a chance to commit and emit "preedit_changed" 
915         in case there was still a preedit string.
916
917 2001-12-12  Matthias Clasen  <matthiasc@poet.de>
918         
919         * gtk/gtktextlayout.c: Typo fixes
920         * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
921
922         * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel, 
923         gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
924
925         * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
926
927 Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>
928
929         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
930         validate_rows_timer in unrealize.  Reported by Matthew Wilson.
931
932 Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
933
934         * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
935         "prepainting" the menu before realizing other than
936         via gtk_style_set_background() - this was broken when
937         we added menu scroll support.
938
939         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
940         window in the expose event -- fixes problem with border
941         flashing during scrolling.
942
943 Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
944
945         * gtk/gtksettings.c (gtk_settings_get_property): Support
946         using names/nicks for the gdk_settings values for enum valued
947         types. (#57678, reported by Anders Carlsson)
948
949 Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>
950
951         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
952         with insert_page_menu.  Code duplication is bad.
953
954         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
955         wrong fix yesterday.
956
957 Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
958
959         * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
960         modifiers.
961
962 2001-12-12  James Henstridge  <james@daa.com.au>
963
964         * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
965         (menu_item)->accel_path first when looking up the accel path.
966
967 Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>
968
969         * tests/testgtk.c (layout_expose_handler): Only draw
970         for events on the bin window.
971
972 Tue Dec 11 18:55:16 2001  Jonathan Blandford  <jrb@redhat.com>
973
974         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
975         mnemonics work with notebooks.
976
977 Tue Dec 11 15:25:06 2001  Jonathan Blandford  <jrb@redhat.com>
978
979         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
980         bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
981         Makes some flicker while scrolling go away.
982
983 2001-12-11  Michael Natterer  <mitch@gimp.org>
984
985         * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
986         adds alpha to the pixbuf; re-load the saved pixbuf and
987         pixel-by-pixel compare it with the original one.
988
989 Tue Dec 11 15:39:08 2001  Soeren Sandmann  <sandmann@daimi.au.dk>
990
991         * ChangeLog: Fix wrong ChangeLog entry
992         * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
993         right corner
994
995 2001-12-10  jacob berkman  <jacob@ximian.com>
996
997         * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer): 
998         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
999         (gdk_keyboard_grab): do not grab things if the nograb debug flag
1000         is set
1001
1002         * gdk/gdkinternals.h: 
1003         * gdk/gdk.c: add nograbs debug flag to disable grabs of the
1004         keyboard / mouse
1005
1006 Mon Dec 10 19:42:29 2001  Jonathan Blandford  <jrb@redhat.com>
1007
1008         * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
1009         didn't reset the timer.
1010
1011 2001-12-10  Matthias Clasen  <matthiasc@poet.de>
1012
1013         * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
1014
1015 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
1016
1017         * gtk/gtkviewport.c: Add docs.
1018
1019 Mon Dec 10 16:21:38 2001  Jonathan Blandford  <jrb@redhat.com>
1020
1021         * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
1022         RBTree corruption bug--
1023
1024 2001-12-10  Anders Carlsson  <andersca@gnu.org>
1025
1026         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
1027         if edited_column is NULL, also grab focus before removing
1028         the cell_editable.
1029
1030 Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
1031
1032         * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
1033           denominator in the horizontal case just like we do in the vertical
1034           case (why I didn't notice that there were two cases the first time
1035           around is beyond me:).  Also fix indentation in the vertical case.
1036
1037 2001-12-09  Anders Carlsson  <andersca@gnu.org>
1038
1039         * gdk/x11/gdkevents-x11.c: Update xsettings name.
1040
1041         * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
1042         gtk-dnd-drag-threshold GtkSetting.
1043
1044         * gtk/gtksettings.c (gtk_settings_class_init): Add 
1045         setting for dnd drag threshold.
1046
1047 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
1048
1049         * gtk/gtkcontainer.c: Add docs.
1050
1051 2001-12-08  Matthias Clasen  <matthiasc@poet.de>
1052
1053         * gtk/gtkwidget.c: Doc markup fix. 
1054
1055         * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
1056
1057         * gtk/gtktreestore.c: Typo fixes. (#66445)
1058
1059         * gtk/gtkaccelgroup.c: Misc doc markup. (#66425) 
1060
1061         * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
1062         to gtk_clipboard_set_with_owner(). (#66424)
1063  
1064 Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>
1065
1066         * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
1067         "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
1068         Fabrice Bellet <fabrice@gnu.org>, #54127).
1069
1070 Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>
1071
1072         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
1073         of places, so that people with crashy trees can just run their
1074         program with GTK_DEBUG=TREE.
1075
1076 Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>
1077
1078         * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
1079         per jrb's request
1080
1081 2001-12-08  Anders Carlsson  <andersca@gnu.org>
1082
1083         * tests/testgtk.c (layout_expose_handler): Don't return TRUE
1084         since then the default GtkLayout expose handler won't be called.
1085
1086 Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@redhat.com>
1087
1088         * gtk/gtktreeview.c (validate_rows_handler): remove
1089         g_return_if_fail.
1090
1091         * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
1092         Singh <yosh@gimp.org> to fix bug when rendering Tree with an
1093         empty model.
1094
1095 Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>
1096
1097         * gtk/gtktreeview.c (validate_visible_area): get logic right,
1098         #66249
1099
1100         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
1101         removing a node ended up with a corrupt tree.  Really really nasty
1102         bug.
1103         (_gtk_rbtree_debug_spew): new debug helper function
1104         (_fixup_validation): new inline function to clean up code
1105         readability a lot. 
1106
1107 Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
1108
1109         * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
1110         Close comment.
1111
1112 2001-12-07  Matthias Clasen  <matthiasc@poet.de>
1113
1114         * gtk/gtkstyle.h: Typo fixes.
1115
1116         * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
1117
1118         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
1119
1120 Fri Dec  7 16:05:22 2001  Owen Taylor  <otaylor@redhat.com>
1121
1122         * modules/input/gtkimcontextxim.c: Display the XIM
1123         status callbacks with a popup window. (Patch from
1124         HideToshi Tajima, #50628, somewhat modified.)
1125
1126 Fri Dec  7 12:07:15 2001  Tim Janik  <timj@gtk.org>
1127
1128         * gtk/Makefile.am: each source generation rule needs to use its own
1129         temporary file, to avoid clashes for parallel builds. fixed rules
1130         for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
1131
1132 2001-12-07  Havoc Pennington  <hp@pobox.com>
1133
1134         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
1135         "cursors that are actually useful" in gdk_cursor_new() docs
1136
1137 Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
1138
1139         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
1140         in computing the size of the second child.
1141
1142 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
1143
1144         * gtk/gtkrange.c: Make button 1 clicks on the trough
1145         do pages, button 3 steps. (Patch from Hans Breuer
1146         #63735)
1147
1148 2001-12-06  Matthias Clasen  <matthiasc@poet.de>
1149
1150         * gtk/gtklabel.c: Fix docs. (#66383)
1151
1152         * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. 
1153         (#66278, #66280)
1154         
1155         * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
1156         gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
1157
1158         * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
1159         Don't emit a g_warning() about being deprecated. (#66208)       
1160
1161         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
1162
1163         * gtk/gtkcontainer.c: Doc fixes.
1164         
1165         * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
1166
1167         * gtk/gtkstyle.c (gtk_style_attach): Add docs.
1168
1169 2001-12-05  Sven Neumann  <sven@gimp.org>
1170
1171         * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
1172
1173         * gtk/queryimmodules.c: g_dir_read_name() returns const.
1174
1175 Tue Dec  4 21:46:13 2001  HideToshi Tajima  <hidetoshi.tajima@sun.com>
1176
1177         * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
1178         #66225
1179         
1180 2001-12-04  Manish Singh  <yosh@gimp.org>
1181
1182         * gtk/gtkmain.c
1183         * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
1184         a gpointer.
1185
1186         * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
1187         correction to docs.
1188
1189         * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
1190
1191 2001-12-04  Havoc Pennington  <hp@redhat.com>
1192
1193         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
1194         g_assert_not_reached() that was bogus, since we demand-create the
1195         tag info. reported by Chris Phelps
1196
1197         Jump through assorted hoops to fix bug from Chris Phelps where 
1198         removing tags from the table resulted in btree trying to 
1199         access tag->table
1200         
1201         * gtk/gtktextbuffer.c: set up mechanics of adding/removing 
1202         ourselves to the tag table
1203
1204         * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) 
1205         (_gtk_text_tag_table_remove_buffer): private cruft to 
1206         let us notify buffer of disappearing tags
1207
1208         * gtk/gtktexttag.h: remove BTreeNode typedef from this public
1209         header, put it in tagprivate    
1210
1211         * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
1212         tag_removed; it's emitted too late.
1213         (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
1214         this
1215
1216         Padding for ABI-compat expansion
1217         
1218         * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
1219         (struct _GtkTextAppearance): one pad in here too
1220
1221         * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
1222
1223         * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
1224         since action signals etc. seem pretty likely
1225
1226         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
1227
1228         * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
1229
1230         * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
1231
1232 2001-12-04  Matthias Clasen  <matthiasc@poet.de>
1233
1234         * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
1235
1236         * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
1237
1238         * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
1239
1240 Tue Dec  4 18:51:44 2001  Jonathan Blandford  <jrb@redhat.com>
1241
1242         * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
1243         #62084.
1244
1245 Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>
1246
1247         * demos/gtk-demo/main.c: (create_tree): Minor fix.
1248
1249         * docs/tree-column-sizing.txt: Update
1250
1251         * gtk/gtkrbtree.[ch]: Massive work to support validation.
1252
1253         * gtk/gtktreemodel.c: Doc fixes.
1254
1255         * gtk/gtktreeview.c: Incremental reflow added.
1256         * gtk/gtktreeviewcolumn.c: ditto
1257         * gtk/gtktreeviewcolumn.h: ditto
1258
1259 2001-12-04  Havoc Pennington  <hp@redhat.com>
1260         
1261         * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
1262         "invisible" property, #65999
1263
1264 2001-12-04  Matt Wilson  <msw@redhat.com>
1265
1266         * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
1267
1268 Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
1269
1270         * gtk/gtksettings.c (gtk_settings_set_property_value):
1271         Simplify, make more efficient and fix memory leak
1272         when turning quark into a string. (#66103, HideToshi
1273         Tajima)
1274
1275         * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
1276         init() and unref priv->tooltips in destroy rather
1277         than calling gtk_object_destroy() which has no
1278         effect on memory management. (#66104, HideToshi
1279         Tajima)
1280
1281         * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
1282         so we free the when the object is freed. (Fixes memory
1283         leak, #66096, HideToshi Tajima)
1284
1285         * gdk/gdkevents.c (gdk_synthesize_window_state): Use 
1286         a full GdkEvent structure to avoid reads of uninitialized/
1287         invalid memory in gdk_event_put() (#65877, patch
1288         from Hidetoshi Tajima)
1289
1290 Tue Dec  4 11:06:54 2001  Owen Taylor  <otaylor@redhat.com>
1291
1292         * gtk/gtkmenuitem.c: Revert my last mistaken change - 
1293         toggle-size-request doesn't take a requisition.
1294
1295         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
1296         reference to marshaler that no longer exists.
1297
1298 Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>
1299
1300         Patch from Bill Haneman (with many modifications) to make
1301         the focus color work on dark themes and to make the
1302         focus line width configurable. (#61079, #63074)
1303
1304         * gtk/gtkwidget.c: Add style properties, 
1305         ::focus-widget, ::focus-line-width, and ::focus-padding.
1306
1307         * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a 
1308         state argument as well so we can use fg[STATE] to
1309         draw instead of always drawing with black. 
1310         Cange paint_focus() to respect GtkWidget::focus-width
1311         and GtkWidget::focus-line-pattern. Fix continuity
1312         problem where the default 1-1 stipple had a blob
1313         in one corner and a gap in the other. Change the
1314         interpretation of x/y/width/height to be the bounding
1315         box of the focus rect instead of the rectangle
1316         passed to gdk_draw_rectangle.
1317
1318         * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c 
1319         gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c 
1320         gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width 
1321         and ::focus-line-padding.
1322
1323         * gtk/gtkentry.c: Handle :;focus-width property; cleanup
1324         and remove duplicated code; fix drawing of focus rectangle
1325         when interior-focus = FALSE. (#63072, #63073)
1326
1327         * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
1328         gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
1329         Range and TreeViewColumn will need more extensive fixing.
1330
1331         * gtk/gtkcolorsel.c: Honor focus line attributes when
1332         drawing the focus on the color swatches. (#63071)
1333
1334         * gtk/gtkhsv.c: Honor focus line attributes when
1335         drawing the focus for the ring and triangle.
1336
1337         * docs/widget_geometry.txt: Start at documenting how 
1338         various widgets are drawn.
1339
1340         * gtk/gtkbutton.c (_gtk_button_paint): Export 
1341         _gtk_button_paint() librarywide, so we don't have 
1342         duplicate a bunch of code in gtktogglebutton.c.
1343
1344         * gtk/gtktogglebutton.c: Use _gtk_button_paint().
1345
1346 Mon Dec  3 21:04:13 2001  Jonathan Blandford  <jrb@redhat.com>
1347
1348         * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
1349         NONE:POINTER.
1350
1351 2001-12-03  Alex Larsson  <alexl@redhat.com>
1352
1353         * gtk/gtkaccellabel.c:
1354         * gtk/gtkarrow.c:
1355         * gtk/gtkcolorsel.c:
1356         * gtk/gtkcontainer.c:
1357         * gtk/gtklabel.c:
1358         * gtk/gtktextview.c:
1359         * gtk/gtktogglebutton.c:
1360         * gtk/gtktreeview.c:
1361         * gtk/gtkwindow.c:
1362         Return FALSE from expose handlers.
1363
1364 Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>
1365
1366         * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
1367         we use pointers, we should free the previous pointer first (if
1368         it exists), before we set a new pointer. (#64726)
1369
1370         * gtk/gtktreeprivate.h: get rid of cursor_drag
1371
1372         * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check     
1373         for cursor_drag
1374         (gtk_tree_view_bin_expose): don't directly return in the while
1375         loop
1376         (gtk_tree_view_class_init): indentend expanders by default
1377         (gtk_tree_view_header_focus): only give the button focus
1378         if it's clickable, visible and the column is reorderable
1379         (#65539)
1380
1381         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
1382         create and free cursor
1383
1384 Mon Dec  3 10:23:07 2001  Owen Taylor  <otaylor@redhat.com>
1385
1386         * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
1387         some bugs with size requisition. (From Bill Haneman)
1388
1389         * gtk/gtkcalendar.c: Draw headers and selection in 
1390         base/text[SELECTED] instead of fg/bg[SELECTED].
1391
1392         * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
1393         code and formatting.
1394
1395 2001-12-03  Havoc Pennington  <hp@pobox.com>
1396
1397         * gtk/gtktextview.c (set_window_height): 
1398         (set_window_width): Hmm, setter functions normally assign the new
1399         value to the object field. Reported by Chris Phelps.
1400
1401 2001-11-30  jacob berkman  <jacob@ximian.com>
1402
1403         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
1404         signal id to 0 after we disconnect from it
1405
1406 2001-11-30  Matthias Clasen  <matthiasc@poet.de>
1407
1408         * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
1409         gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
1410         gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
1411         gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.
1412
1413         * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not 
1414         GTK_DISABLE_DEPRECATED.
1415
1416         * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
1417         gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
1418
1419 Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
1420
1421         * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
1422         move/resize code, removing various bad, non-functional
1423         hacks. (Fixes #65048, reported by Damon Chaplin.)
1424
1425 Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
1426
1427         * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix 
1428         bad match error when target drawable is not the 
1429         same depth as the root window. (#65841)
1430
1431         * HACKING: Update.
1432
1433 2001-11-29  Matthias Clasen  <matthiasc@poet.de>
1434
1435         * gdk/gdkwindow.c: Typo fix.
1436
1437 Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
1438
1439         * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
1440         empty menu items to behave like insensitive items (#59456)
1441
1442         * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
1443         next item if the first item in the menu is a tear off item
1444         (#59456-2, suggestion by Matthias Clasen)
1445
1446         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
1447         (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
1448         (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
1449         (gtk_real_menu_shell_activate_current): add check, so empty
1450         menu items behave like insensitive items (#59456)
1451         
1452         * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
1453         the checks more readable ...
1454         
1455         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
1456         (gtk_menu_shell_button_release): causes the menu to dropdown if the
1457         caption is clicked again (#64977)
1458
1459 2001-11-29  Havoc Pennington  <hp@redhat.com>
1460
1461         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
1462         assertion here that we were at the end iterator was not correct;
1463         change code to move us to the end iterator. bug #65731
1464
1465 Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
1466
1467         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
1468         improper use of g_locale_to_utf8() to convert from
1469         latin-1, and do it the easy way by building the string
1470         correctly in the first place.
1471
1472 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
1473
1474         * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
1475         Convert atoms to and from atoms for properties of type XA_ATOM.
1476         (#65555, patch from Hidetoshi Tajima)
1477
1478 Wed Nov 28 18:37:04 2001  Owen Taylor  <otaylor@redhat.com>
1479
1480         * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter 
1481         to avoid problems with Objective C.
1482
1483 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
1484         
1485         * gtk/gtkaccelmap.c: Typo fixes. (#65607)
1486
1487         * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
1488         Fix docs. (#65505)
1489
1490         * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
1491
1492 Wed Nov 28 18:19:12 2001  Owen Taylor  <otaylor@redhat.com>
1493
1494         * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
1495         accounting of menu->tearoff_scrollbar width to here
1496         and make sure we have the correct requisition.
1497
1498         * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
1499         by using gtk_window_move().
1500
1501         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
1502         the requisition to be updated by calling
1503         gtk_widget_size_request() (#65440)
1504
1505         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate): 
1506         queue resize before calling gtk_menu_set_tearoff_state().
1507
1508 Wed Nov 28 22:20:44 2001  Kristian Rietveld  <kristian@planet.nl>
1509
1510         * demos/gtk-demo/editable_cells.c: fix typo
1511
1512         * demos/gtk-demo/list_store.c (add_columns): remove call to
1513         gtk_tree_view_column_set_clickable which didn't make sense
1514
1515 2001-11-28  Havoc Pennington  <hp@redhat.com>
1516
1517         * gtk/gtktextview.c (gtk_text_view_paint): put the warning
1518         explaining the validation error in front of the G_BREAKPOINT
1519
1520         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
1521         process updates with include_children = FALSE instead of TRUE, so
1522         we redraw the range only, not the whole darn window.  Making
1523         GtkRange a NO_WINDOW widget had weirdly caused the text widget
1524         Trace/breakpoint trap bug to become much easier to trigger.
1525
1526 Wed Nov 28 14:12:03 2001  Owen Taylor  <otaylor@redhat.com>
1527
1528         * gdk/Makefile.am (gdk_public_h_sources): Remove reference
1529         to gdkcursors.h.
1530
1531 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
1532
1533         * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
1534
1535         * gdk/gdkcursor.h: Directly include the contents
1536         of gdkcursors.h in the GdkCursorType enum.
1537
1538         * gdk/gdkcursors.h: Deleted.
1539
1540         * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add 
1541         header boilerplate.
1542
1543         * gdk/Makefile.am: Remove the X-derived-headers rule.
1544
1545 Tue Nov 27 20:17:55 2001  Owen Taylor  <otaylor@redhat.com>
1546
1547         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
1548         Notify on the ::active property _here_, not in
1549         gtk_check_menu_item_set_active.
1550
1551 Mon Nov 26 19:11:18 2001  Jonathan Blandford  <jrb@redhat.com>
1552
1553         * gtk/gtkcellrendererpixbuf.c
1554         (gtk_cell_renderer_pixbuf_class_init): add 2 properties
1555         (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
1556
1557 Sun Nov 25 21:19:02 2001  Owen Taylor  <otaylor@redhat.com>
1558
1559         * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
1560         comment about what is going on in this file.
1561
1562         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
1563         x/y problem.
1564
1565 Sun Nov 25 18:59:19 2001  Owen Taylor  <otaylor@redhat.com>
1566
1567         * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size): 
1568         Calculate size based on the _child_ of the menu item,
1569         not the menuitem. (#65005, Damon Chaplin)
1570
1571         * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
1572         some extra vertical padding to the label widget ... restores
1573         GTK+-1.2 spacing. (#65085, Damon Chaplin.)
1574
1575 2001-11-26  Tor Lillqvist  <tml@iki.fi>
1576
1577         * demos/pixbuf-demo.c
1578         * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
1579
1580         * demos/gtk-demo/main.c (read_line): No flockfile() or
1581         getc_unlocked() on Win32.
1582
1583 2001-11-25  Tor Lillqvist  <tml@iki.fi>
1584
1585         * configure.in
1586         * acconfig.h: As we now use GDir, no need to check for dirent.h.
1587
1588 Sun Nov 25 23:18:39 2001  Kristian Rietveld  <kristian@planet.nl>
1589
1590         * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
1591         when finished (#65266)
1592
1593 Sun Nov 25 23:16:29 2001  Kristian Rietveld  <kristian@planet.nl>
1594
1595         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
1596         data after we set the property. (#65264)
1597
1598 Sun Nov 25 23:14:06 2001  Kristian Rietveld  <kristian@planet.nl>
1599
1600         * gtk/gtkbutton.c: add destroy method so label_text gets freed
1601         if it has been allocated (#65268)
1602
1603 Sat Nov 24 13:39:51 2001  Manish Singh  <yosh@gimp.org>
1604
1605         * gdk/linux-fb/gdkdrawable-fb2.c
1606         * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
1607
1608         * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
1609
1610         * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
1611         set_family
1612         
1613         * gdk/linux-fb/gdkfbswitch.c: minor cleanups
1614
1615 Sat Nov 24 22:05:27 2001  Kristian Rietveld  <kristian@planet.nl>
1616
1617         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
1618         deactivate menu when menu_item isn't sensitive (#61389)
1619
1620 Sat Nov 24 15:35:26 2001  Kristian Rietveld  <kristian@planet.nl>
1621
1622         * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
1623         we return (in case of a failure here)
1624
1625 Fri Nov 23 19:22:50 2001  Owen Taylor  <otaylor@redhat.com>
1626
1627         * gtk/gtknotebook.c: Handle events in windows other
1628         than widget->event_window properly. (#65079, reported
1629         by Damon Chaplin)
1630
1631         * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
1632
1633 Fri Nov 23 18:57:46 2001  Owen Taylor  <otaylor@redhat.com>
1634
1635         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
1636         the image at the top. (#65020, request from Seth Nickell)
1637
1638 Fri Nov 23 18:49:53 2001  Owen Taylor  <otaylor@redhat.com>
1639
1640         * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
1641         arithmetic that was resulting in rows being drawn too low.
1642         (#65001, reported by Damon Chaplin)
1643
1644 Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
1645
1646         * gtk/gtkrange.c (gtk_range_button_press): Offset 
1647         invalidated range correctly.
1648
1649         * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling 
1650         of title window. (#65001, reported by Damon Chaplin)
1651
1652         * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
1653         horrible hack with use of ::event_after.
1654
1655 Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
1656
1657         * Version 1.3.11
1658
1659         * configure.in (ATK_REQUIRED_VERSION): Require
1660         GLib-1.3.11, Pango-0.22, ATK-0.7.
1661
1662         * tests/prop-editor.c (property_widget): Restore
1663         to working as well as it did before.
1664
1665         * gtk/gtklistitem.h: Mark deprecated since it is
1666         an integral part of GtkList.
1667
1668         * demos/gtk-demo/demo-common.h: New header file,
1669         for a common functions not important to the meat
1670         of the demos.
1671         
1672         * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
1673         function to search for a file used by the demo.
1674
1675         * demos/*.c: Use demo_find_file.
1676
1677 2001-11-23  Matthias Clasen  <matthiasc@poet.de>
1678
1679         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
1680         gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo 
1681         fixes already mentioned in ChangeLog entry on 2001-11-14.
1682
1683         * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
1684
1685 2001-11-23  Hans Breuer  <hans@breuer.org>
1686
1687         * gdk/win32/gdkfont-win32.c (gdk_font_from_description) : 
1688         reflect Pango API change
1689
1690         * gtk/gtk.def : updated externals
1691
1692         * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use 
1693         g_return_val_if_fail() to avoid 'function must return a value'
1694
1695         * gtk/gtkrc.c : added spaces to fix small coding style issues
1696         * gtk/gtkwidget.c : ... and linebreaks. Also a static for
1697         'static correctness'
1698
1699         * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
1700         because they only can be build on win32 after applying my patch
1701
1702 Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
1703
1704         * gtk/gtkbutton.c (gtk_button_map): raise event window afte
1705         children, in order for the input pnly window to stay *above*
1706         children.
1707
1708 Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
1709
1710         * tests/testtreeview.c: make hackery worse ;) by checking fundamental
1711         type walks againts G_TYPE_FUNDAMENTAL_MAX.
1712         
1713         * tests/prop-editor.c: disable type hackery.
1714
1715 Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
1716
1717         * gdk/gdkimage.c (gdk_image_get): Fix problem with
1718         lost parameter.
1719
1720 Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
1721
1722         * gtk/gtkcellrenderer.h gtk/gtktreemodel.h 
1723         gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
1724         trailing commas in enum declarations.
1725
1726 Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
1727
1728         * configure.in (GTK_MICRO_VERSION): Version 1.3.11, 
1729         interface, binary age 0.
1730
1731         * NEWS: Updates
1732
1733         * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
1734         fixes in docs.
1735
1736         * gtk/gtkmain.h: Remove unused and misnamespaced
1737         get_gtk_win32_directory() prototype.
1738
1739         * gdk/gdkimage.c (gdk_image_get): Fix parameter names
1740         to match header.
1741
1742         * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
1743         gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
1744         to match docs.
1745
1746         * gdk/gdkevents.c (gdk_event_get_coords)
1747           gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
1748           gtk/gtkdnd.c (gtk_drag_set_icon_stock):
1749         Fix parameter names in docs.
1750         
1751         * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
1752         (#64961, Akira Tagoh)
1753
1754 Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
1755
1756         * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
1757
1758         * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
1759
1760         * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
1761
1762         * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
1763         back to gtk_accel_groups_from_object(), change @acceleratable
1764         parameter to gtk_accel_groups_activate() accordingly.
1765
1766         * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
1767         left-over comment about quark return.
1768
1769         * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
1770
1771         * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
1772         (Patch from Matt Wilson)
1773
1774         * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
1775         object is finalized.
1776
1777 Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
1778
1779         * applied patch from owen to get rid of accel map notifiers.
1780         changed things to fix reentrancy and API as discussed on gtk-devel.
1781
1782         * gtk/gtkaccelgroup.[hc]:
1783         (gtk_accel_group_finalize): unregister this accel group from all
1784         accel map paths.
1785         (accel_closure_invalidate): handle invalidation of closures by
1786         disconnecting their accelerators.
1787         (quick_accel_add): move closure connection and changed notification
1788         into this function to reduce code duplication. don't emit change
1789         notification on closurers without accelerators.
1790         (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
1791         for a GtkAccelGroupEntry.
1792         (gtk_accel_group_connect): get rid of the accel_path_quark argument.
1793         (gtk_accel_group_connect_by_path): new function to add accelerators
1794         with an accel path.
1795         (gtk_accel_group_disconnect_closure): new function, disconnect a
1796         closure from of an accel group.
1797         (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
1798         accel_mods pair and remove them.
1799         (_gtk_accel_group_reconnect): new function that basically does
1800         gtk_accel_group_disconnect_closure() and
1801         gtk_accel_group_connect_by_path() once an accel path changed.
1802         (gtk_accel_groups_disconnect_closure): remove this, there's
1803         gtk_accel_group_disconnect_closure().
1804         
1805         * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
1806         nuke notifiers.
1807         (_gtk_accel_path_is_valid): make this non-static for
1808         gtkwidget.c and gtkaccelgroup.c assertions.
1809         (gtk_accel_map_add_notifer): removed this function.
1810         (gtk_accel_map_remove_notifer): same.
1811         (_gtk_accel_map_add_group):
1812         (_gtk_accel_map_remove_group): (un-)register accel groups, with
1813         accel paths for correct propagation.
1814         (gtk_accel_map_add_entry): return void.
1815         (gtk_accel_map_lookup): return gboolean instead of GQuark.
1816         
1817         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
1818         set accel_path on widgets.
1819         
1820         * gtk/gtkwidget.[hc]:
1821         (accel_path_changed): got rid of this, changes are handled by
1822         accel maps internally now.
1823         (_gtk_widget_set_accel_path): get things to work without notifiers.
1824         (gtk_widget_list_accel_closures): list accel closures of a widget.
1825         
1826         * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
1827
1828 2001-11-20  Matthias Clasen  <matthiasc@poet.de>
1829
1830         * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
1831
1832 Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
1833
1834         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
1835         replace gboolean free_last in the function parameters with
1836         gint depth. Changes to reflect new situation.
1837
1838         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
1839         replace gboolean free_last, with gint depth, add gint current_depth.
1840         Changes to reflect new situation.
1841
1842         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
1843         to reflect new situation
1844
1845         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
1846
1847 Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
1848
1849         * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
1850         where notebook gap was double shifted by allocation.x/y
1851
1852         * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
1853         to unmap children.
1854
1855 Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
1856
1857         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
1858         allocation to be relative to paned->allocation, now
1859         that this is a NO_WINDOW widget.
1860         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
1861
1862         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
1863         needs to be a boxed property.
1864
1865 Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
1866
1867         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
1868         Use the widget's state when drawing the indicator, as
1869         in GtkCheckButton. This gives us color changes for
1870         un-prelighted checkbuttons. (#63308, Matt Wilson)
1871
1872 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
1873
1874         (Fixes related to #64428, Michael Meeks)
1875
1876         * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
1877         widget, so it gets mapped again properly when we
1878         add to a parent.
1879
1880         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
1881         plug->socket_window. 
1882
1883         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
1884         socket_window to NULL, not FALSE.
1885
1886         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
1887         socket->same_app to TRUE. (#64612)
1888
1889 Mon Nov 19 15:50:41 2001  Owen Taylor  <otaylor@redhat.com>
1890
1891         * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add 
1892         gtk_fixed_set/get_has_window() to remove criticism
1893         about GTK_WIDGET_SET_FLAGS() hacks.
1894
1895 2001-11-19  Michael Natterer  <mitch@gimp.org>
1896
1897         * gtk/gtknotebook.c: show notebook->event_window with
1898         gdk_window_show_unraised(), so it doesn't catch the events which
1899         should go to the tab widgets first.
1900
1901 Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
1902
1903         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
1904         "resizable" property, to get rid of the
1905         GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
1906         (gtk_tree_view_column_set_resizable): New function to set resizable.
1907         (gtk_tree_view_column_set_resizable): getter.
1908
1909         * tests/testtreecolumns.c (add_clicked): modify for above change.
1910
1911         * Makefile.am (install-data-hook): remove old .pc files before
1912         installing the new one.  We used to symlink this, and it will
1913         break old installs.
1914
1915 2001-11-19  Havoc Pennington  <hp@pobox.com>
1916
1917         * tests/testtext.c (fill_example_buffer): put in a test for
1918         negative indentation values
1919
1920 Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
1921
1922         * gtk/gtklabel.c (gtk_label_init): Change default for
1923         justify to GTK_JUSTIFY_LEFT. Assuming that multiline
1924         labels are most often wrapped labels, this gives better
1925         compatibility with GTK+-1.2, where justification was
1926         ignored for wrapped labesl and is a more sensible
1927         default in any case. (#64489)
1928
1929         * gtk/gtklabel.c (gtk_label_class_init): Fix default
1930         for wrap property to FALSE.
1931
1932 2001-11-19  jacob berkman  <jacob@ximian.com>
1933
1934         * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
1935
1936 Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
1937
1938         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use 
1939         RevertToParent, not RevertToNone. (#64613, 
1940         Matthias Clasen)
1941
1942 Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
1943
1944         * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
1945         and label_yalign need to be float properties to
1946         correspond to GTK+-1.2, to gtk_frame_set_label_align,
1947         and to the types of the xalign and yalign properties of GtkMisc.
1948         (#63484, Vitaly Tishkov)
1949
1950 Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
1951
1952         * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
1953         of plug_added vfunc. (#64408, Jeff Franks)
1954
1955 Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
1956
1957         * configure.in (deps): Undef HAVE_STDLIB_H before
1958         checking for jpeg, because jconfig.h has this
1959         in it too (%#$@!). Fix from Matthias Clasen, #64500.
1960
1961 Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
1962
1963         * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a 
1964         memory leak when retrieving atom names. (Michael Meeks,
1965         #64508)
1966
1967 2001-11-18  Alex Larsson  <alexl@redhat.com>
1968
1969         * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
1970         Update to new Pango API.
1971         
1972 Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
1973
1974         * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
1975         GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
1976         GTK_OBJECT_DESTROYED() check macro.
1977
1978         * gtk/gtkbindings.c (gtk_bindings_activate): Remove
1979         instances of GTK_OBJECT_DESTROYED() that weren't
1980         needed any more.
1981
1982         * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
1983         for a connection to ::destroy.
1984
1985 Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
1986
1987         * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
1988         have been since the beginning, but as special hack,
1989         allow clearing the NO_WINDOW flag to get a window widget.
1990
1991 Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
1992
1993         * gtk/gtktreestore.c: return TRUE when value changed, so
1994         row_changed is being emitted
1995
1996 2001-11-18  Hans Breuer  <hans@breuer.org>
1997
1998         * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
1999         no label without op, even if it's a no-op.
2000
2001         * gtk/gtk.def :
2002         * gtk/makefile.msc.in : reflect marshaler split, some clean-up  
2003
2004         * config.h.win32.in : remove definition of HAVE_DIRENT_H
2005         * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
2006         required anymore, replace it.
2007         * gtk/queryimmodules.c : DIR -> GDir replacement, also
2008         getcwd() -> g_get_current_dir()
2009
2010         * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
2011         Even 'noisy laugh' scolling appears to work, though I still can't
2012         claim to have fully understood what it is supposed to do ...
2013
2014 Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
2015
2016         * gtk/gtkenums.h: Include glib-object.h instead of
2017         gobject/gsignal.h
2018
2019         * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
2020           x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
2021         argument to the window_at_pointer() field of
2022         GdkPointerHooks. (Patch from Erwann Chenede)
2023
2024         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
2025         to 6 pointers.
2026
2027 2001-11-17  Matt Wilson  <msw@redhat.com>
2028
2029         * gtk/gtkenums.h: must include glib-object.h only
2030
2031 Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
2032
2033         * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
2034         key bindings in order of visibility - mnemonics, then 
2035         accelerators, then send key to the focus widget, then
2036         bindings on the GtkWindow.
2037
2038         * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c: 
2039         Removed the xoffset, yoffset fields of GtkLayout which were
2040         identically zero for compat with 1.2, but were no longer 
2041         compatible with all uses of these fields in 1.2.
2042
2043         * gtk/gtkwindow.c (gtk_window_set_default): Remove 
2044         unused variable.
2045
2046 Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
2047
2048         * tests/testtreeview.c (gtk_tree_model_types_get_type): 
2049         We no longer need to create the signals here ... they
2050         come from the interface.
2051
2052         * gtk/maketypes.awk: Use GType, not GtkType in output.
2053
2054         * gtk/gtktypeutils.h: Mark virtually all of this
2055         file deprecated.
2056
2057         * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
2058         the only use of this function is the GtkArg using
2059         GtkCallbackMarshal, since destroy notification is
2060         silly here.
2061
2062 Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
2063
2064         * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
2065         gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
2066         only for compatibility with GTK+-1.2; and deprecate it; 
2067         put all marshalers we actually use into gtkmarshalers.list 
2068         and use the _gtk_marshal_ prefix for these marshalers.
2069
2070 2001-11-17  Murray Cumming  <murrayc@usa.net>
2071
2072         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
2073         The first parameters of the signals are now registered as
2074         GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
2075         
2076 2001-11-17  Tor Lillqvist  <tml@iki.fi>
2077
2078         * gtk-zip.sh.in: Build separate runtime and developer
2079         packages.
2080
2081         * gtk/gtk.def: Reflect recent accelerator-related changes.
2082
2083 Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
2084
2085         * gtk/gtkwindow.c (gtk_window_set_default): Move 
2086         notification of "has_default" to here, so it
2087         is safe to call gtk_window_set_default() instead
2088         of gtk_widget_grab_default().
2089
2090         * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
2091         gtk_widget_grab_focus(), which then calls 
2092         _gtk_widget_internal_set_focus(). This makes 
2093         gtk_window_set_focus() a safe way of both setting
2094         and unsetting the focus widget.
2095
2096         * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
2097         gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
2098         to find the toplevel.
2099
2100         * gtk/gtkwindow.h: Move gtk_window_set_focus/default
2101         from the "internal functions" section.
2102
2103 2001-11-16  jacob berkman  <jacob@ximian.com>
2104
2105         * tests/testgtk.c (create_radio_buttons): add some no-indicator
2106         radio buttons
2107
2108         * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
2109         initially active, also initially be depressed
2110         (gtk_radio_button_clicked): also update our depressed state
2111
2112 Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
2113
2114         * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
2115         key press events not just to focus/window but also to
2116         intermediate widgets.
2117
2118         * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
2119         to switch pages. (Needs some work on handling focus
2120         when switching pages.)
2121
2122 Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
2123
2124         * gtk/gtknotebook.c: Fix child allocations to be relative to 
2125         widget position and some drawing bugs.
2126
2127         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
2128         with reading uninitialized variable.
2129
2130 Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
2131
2132         * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
2133         gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
2134         NO_WINDOW widgets.
2135
2136         * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
2137         cleanup.
2138
2139         * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
2140         we are drawing in a window when drawing the paned handle.
2141
2142 2001-11-16  Sven Neumann  <sven@gimp.org>
2143
2144         * demos/gtk-demo/appwindow.c
2145         * demos/gtk-demo/menus.c: reduce compiler warnings
2146
2147 Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
2148
2149         * demos/gtk-demo/main.c (button_press_event_cb): Remove 
2150         unused callback to make things compile with 
2151         gtk_tree_view_path_at_pos_change().
2152
2153 Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
2154
2155         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
2156
2157 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
2158
2159         * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
2160  
2161 Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
2162
2163         * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
2164         to get a GdkWindow to compare event->window to.
2165
2166         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
2167         the signal for lateral motion too, #64361
2168
2169         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
2170         arg as it is useless, #64137
2171
2172 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
2173
2174         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
2175
2176 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
2177  
2178         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
2179         gdk_window_invalidate_maybe_recurse() for recursion.
2180         (Soeren Sandmann)
2181
2182         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
2183  
2184         * gtk/gtkcontainer.c (gtk_container_expose): Call
2185         gtk_container_forall() not _foreach() to propagate,
2186         since we need to propagate exposes to internal children
2187         as well.
2188
2189         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
2190         Remove the restriction of only being able to call these
2191         on window widgets, since we have lots of NO_WINDOW widgets
2192         with windows now; for add events, recurse over the children
2193         of widget->window to find one owned by the widget.
2194
2195         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
2196         window to catch events.
2197
2198         * gtk/gtktogglebutton.[ch]: Remove the code for switching
2199         between NO_WINDOW and WINDOW widgets based on the mode.
2200
2201         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
2202         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
2203
2204         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
2205
2206         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
2207         change for range.
2208
2209         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
2210  
2211         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
2212
2213 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
2214
2215         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
2216         "message_type" and "buttons" CONSTRUCT properties. (#64069)
2217
2218         * tests/testsocket.c: Expand tests to add a "local passive
2219         child" (Test case for #64428)
2220
2221 2001-11-14  jacob berkman  <jacob@ximian.com>
2222
2223         * gtk/gtkgamma.c (button_clicked_callback): create the label with
2224         a mnemonic
2225
2226 2001-11-15  Sven Neumann  <sven@gimp.org>
2227
2228         * tests/testgtk.c: make it compile without warnings.
2229
2230 2001-11-14  Alex Larsson  <alexl@redhat.com>
2231
2232         * gtk/gtklabel.c:
2233         Don't recalculate the layout on each gkt_label_ensure_layout () for
2234         wrapped labels.
2235
2236 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
2237
2238         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
2239         the currently selected column when we get the column, #64380
2240
2241         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
2242         to cancel CellRendererText editting, #63613
2243
2244         * gtk/gtkcellrenderertext.c: ditto
2245
2246         * gtk/gtkcellrenderertext.h: formatting changes
2247
2248 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
2249
2250         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
2251
2252         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
2253
2254         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
2255
2256         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
2257
2258         * gtk/gtklabel.c: Documentation fixes (#64452)
2259
2260 2001-11-14  Daniel Egger  <degger@fhm.edu>
2261
2262         * gdk-pixbuf/io-xpm.c: 
2263         (xpm_skip_whitespaces): Remove unused static function.
2264         (xpm_skip_string): Dito.        
2265         (xpm_extract_color): Declare const variable const to avoid warnings. 
2266
2267         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
2268         
2269         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
2270         
2271         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
2272         a long.
2273
2274 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
2275
2276         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
2277         out accidental commit of debugging timing code.
2278
2279 2001-11-14  Havoc Pennington  <hp@redhat.com>
2280
2281         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
2282         it doesn't move to a new line each time you press it
2283
2284         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
2285         return value, #62987
2286
2287 2001-11-14  Havoc Pennington  <hp@redhat.com>
2288
2289         * tests/testtextbuffer.c (main): bulk of the tests were commented
2290         out, oops.
2291
2292         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
2293         function work, should resolve #63426
2294         (gtk_text_iter_ends_line): return TRUE for the end iterator
2295
2296         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
2297         a couple things that might get cached in here.
2298
2299 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
2300
2301         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
2302         "model" construct property for language bindings.
2303
2304         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
2305         function to let you set the column types of a GtkTreeStore for
2306         language bindings.
2307
2308         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
2309
2310 2001-11-13  Havoc Pennington  <hp@redhat.com>
2311
2312         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
2313         including reference to bugzilla bug about how we should have 
2314         a better way of positioning children
2315
2316         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
2317
2318         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
2319         size to side rects if they don't exist, #63438
2320
2321 2001-11-13  Havoc Pennington  <hp@redhat.com>
2322
2323         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
2324         properly replace selection with Return or Tab
2325
2326         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
2327         that didn't locate the end of the line correctly, should fix #63800
2328
2329 2001-11-13  Havoc Pennington  <hp@redhat.com>
2330
2331         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
2332         to requisition, request non-anchored children
2333         (gtk_text_view_size_allocate): handle border width, allocate
2334         non-anchored children
2335         (text_view_child_new_window): set the child as object data
2336         (gtk_text_view_move_child): allow children at negative
2337         coordinates, no reason why not
2338         (gtk_text_view_forall): make it copy the list of children before
2339         walking it, to avoid reentrancy issues  
2340         (gtk_text_view_move_child): short-circuit if position is unchanged
2341         (changed_handler): only queue_resize if requisition has changed
2342         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
2343         a better job of invalidation ourselves
2344
2345         * tests/testtext.c: add tests for the fixed-position children
2346
2347 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
2348
2349         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
2350         with gdk threads macro.
2351
2352 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
2353
2354         * gtk/maketypes.awk: fix type utils generation on unix.
2355
2356         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
2357         registry.
2358
2359         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
2360         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
2361         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
2362         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
2363         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
2364         introduced ::accel_changed signal for change notification, and
2365         gtk_accel_group_connect/disconnect to connect closures to accel groups.
2366         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
2367         functions.
2368         deprecated gtk_accel_group_ref/unref.
2369
2370         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
2371         to accel group changed notification and basically operate on closures.
2372         removed gtk_accel_label_get_accel_object and
2373         gtk_accel_label_set_accel_object.
2374         introduced gtk_accel_label_set_accel_closure, and for convenience,
2375         gtk_accel_label_set_accel_widget.
2376
2377         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
2378         which mostly moved into gtkaccelmap.[hc].
2379         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
2380         and gtk_item_factory_print_func.
2381
2382         * gtk/gtkmain.c: call _gtk_accel_map_init().
2383
2384         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
2385         that associates an accelerator path with menu items, through which
2386         persistent accelerator settings on menu items are enabled.
2387
2388         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
2389         paths of menu item can be default constructed to allow installation
2390         of accelerators on menu items that don't come with an accelerator
2391         binding by default.
2392
2393         * gtk/gtksettings.c: fix STRING type rc settings by special casing
2394         them appropriately in the parser.
2395
2396         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
2397         gtk_signal_newv().
2398
2399         * gtk/gtkwidget.[hc]: accelerator API revamp.
2400         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
2401         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
2402         gtk_widget_(un)lock_accelerators.
2403         accelerators maintained through gtk_widget_add/remove_accelerator()
2404         are not runtime changable now, the correct sequence to setup a
2405         widget for runtime changable accelerators is now:
2406           gtk_accel_map_add_entry(accel_path, key, mods);
2407           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
2408
2409         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
2410         group changes (as well as mnemonic changes) through the new signal
2411         ::accels_changed.
2412
2413 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
2414
2415         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
2416         GString->string conversions.
2417
2418 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
2419
2420         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
2421         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
2422
2423 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
2424
2425         * gtk/gtktreeview.c: Documentation fixes. (#64377)
2426         
2427         * gtk/gtktreestore.c: Documentation fixes. (#64376)
2428
2429 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
2430
2431         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
2432         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
2433         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
2434         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
2435
2436 2001-11-10  Hans Breuer  <hans@breuer.org>
2437
2438         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
2439         we know what we are talking about when asked for MINMAXINFO.
2440         Also some cleaning for !HAVE_DIMM_H etc.
2441
2442 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
2443
2444         * gtk/gtktreeviewcolumn.c: Fix docs for 
2445         gtk_tree_view_column_set_sort_order. (#62647)
2446         
2447         * gtk/gtkcontainer.c: Fix docs for 
2448         gtk_container_set_border_width. (#64139)
2449
2450         * gtk/gtkcolorsel.c: Documentation fixes.
2451
2452 2001-11-10  Hans Breuer  <hans@breuer.org>
2453
2454         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
2455         don't have strcasecmp()
2456
2457         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
2458         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
2459         code duplication wrap it in its own function and use it in 
2460         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
2461
2462         * gdk/win32/gdkdrawable-win32.c : implement the finalize
2463         method like the X11 version does, allow to set_colormap NULL
2464         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
2465         set_colormap, also some adaption to X11 version :
2466         (gdk_window_hide) call _gdk_window_clear_update_area
2467         (gdk_window_reparent) call _gdk_window_init_position
2468
2469         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
2470         call gdk_window_resize() after all hints are set, because the
2471         window resizing process (WM_GETMINMAXINFO) takes all of them into 
2472         account
2473
2474         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
2475
2476         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
2477         sizeof (GdkVisualPrivate)
2478
2479         * gdk/gdk.def gtk/gtk.def : upated externals
2480
2481         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
2482           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
2483         from now on use make.msc from $(TOP)/glib/build/win32
2484
2485         * gtk/stock-icons/makefile.msc : add stock_missing_image
2486
2487 2001-11-08  Tor Lillqvist  <tml@iki.fi>
2488
2489         * README.win32: Add headers. Add section about ActiveIMM.
2490
2491         * configure.in: Add --with-ie55 flag to specify the location of
2492         the "IE55 libs and headers" package downloadable from Microsoft,
2493         which contains, among other things, the Active IMM header dimm.h
2494         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
2495         Require GLib 1.3.10.
2496         
2497         * config.h.win32.in: New version, produced by merging two
2498         configure-generated ones (for gcc and MSVC). Hopefully #defines
2499         the same flags that the previous, hand-written one, did.
2500
2501         * gdk/Makefile.am
2502         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
2503
2504         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
2505         stuff. Remove unused GdkIOClosure.
2506
2507         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
2508         available).
2509
2510         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
2511         for uuid.lib. (Does it really have to be this hard to use an
2512         existing library with libtool? Probably I am missing something.)
2513
2514 2001-11-08  Darin Adler  <darin@bentspoon.com>
2515
2516         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
2517         typo where it says LEFT instead of CENTER.
2518
2519 2001-11-07  Darin Adler  <darin@bentspoon.com>
2520
2521         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
2522         (gtk_dialog_set_default_response): Add g_return_if_fail.
2523
2524 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
2525
2526         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
2527         Add row_draggable() vfunc, and wrapper function.
2528
2529         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
2530         row_drop_possible take a GtkSelectionData, rather than
2531         model/row pair.
2532
2533         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
2534         new DND interfaces.
2535
2536         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
2537         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
2538         and rename them to enable_model_drag_source/dest.
2539
2540         * gtk/treeviewcolumn.c: Add DND of columns between rows.
2541         Still can't drop _to_ the left tree, but other places
2542         work.
2543
2544         * gtk/gtktreeview.c (unset_reorderable): Unset the
2545         reorderable property if unset/enable_model_drag_source/dest
2546         are called manually.
2547
2548         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
2549         Correct for change in depth count handling.
2550
2551         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
2552         Pass in a expose area to gtk_tree_view_column_cell_render()
2553
2554 2001-11-06  Havoc Pennington  <hp@redhat.com>
2555
2556         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
2557
2558 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
2559
2560         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
2561
2562 2001-11-05  Havoc Pennington  <hp@redhat.com>
2563
2564         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
2565         widgets in here
2566         (gtk_text_view_realize): set parent window of child widgets
2567         (gtk_text_view_size_request): use child req to decide whether
2568         to invalidate layout, not widget->requisition
2569
2570         * gtk/gtktextdisplay.c (render_layout_line): set
2571         shaped_width_pixels for NULL shape objects, so that we properly
2572         draw the "missing pixbuf/widget" thing
2573         (render_layout_line): don't draw the widget here
2574         (gtk_text_layout_draw): pass out a list of widgets that need exposing
2575
2576         * demos/gtk-demo/textview.c (insert_text): add demo of child
2577         widgets
2578
2579         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
2580
2581         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
2582
2583         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
2584         scroll offsets
2585         (gtk_text_view_value_changed): poke new X and Y into child allocations
2586
2587 2001-11-06  Tor Lillqvist  <tml@iki.fi>
2588
2589         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
2590         -specific directory on Windows, too (#63759).
2591
2592 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
2593
2594         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
2595         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
2596         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
2597         directly to Picture objects instead of using XftDraw.
2598         This fixes the problem where we weren't able to 
2599         properly destroy XftDraw objects before destroying
2600         the accompanying windows, and probably improves
2601         efficiency a bit too. (#50214)
2602
2603 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
2604
2605         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
2606         Clamp max window width/height to 32767, not 32768 since
2607         we have to be able to deal with a dx/y of -32768 without
2608         getting a width of 65536 when guffaw scrolling.
2609
2610         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
2611         for the guffaw scrolling case, fixing some problems with
2612         copy-area case as well. Fix BadValue bug with moving windows
2613         by large amounts.
2614
2615         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
2616         clip in window structue before calling gdk_window_invalidate_region
2617         since that trims new invalidations to the window's visible
2618         region.
2619
2620         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
2621         Really set the static window gravity on the children, not
2622         repeatedly on the window.
2623
2624         * gtk/testgtk.c: Add a torture test for big windows and 
2625         gdk_window_scroll().
2626
2627 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
2628
2629         * acconfig.h configure.in: sigsetjmp is macroized in some places,
2630         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
2631
2632 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
2633
2634         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
2635         in terms of pango_color_parse().
2636
2637         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
2638         gdk_color_parse() implementations.
2639
2640 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
2641
2642         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
2643         queue_resize_on_group with both the old and new mode, not
2644         just the new mode. (#60171, Nicolas Setton). Also, notify
2645         the "mode" property.
2646         
2647 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
2648
2649         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
2650         for use in "shallow invalidation" of a widget. (Windows belonging
2651         to the widget, but not to the widget's children)
2652
2653         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
2654         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
2655         up on ancestors up to the resize container on queue_resize. Size
2656         requests only actually take place if GTK_REQUEST_NEEDED, size
2657         allocations only take place if GTK_ALLOC_NEEDED or the size
2658         changed.
2659
2660         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
2661         container->resize_widgets and the RESIZE_NEEDED flag since the
2662         above flags are sufficient to figure out what needs to be
2663         resized/reallocated. Remove code manipulating
2664         container->resize_widget.
2665
2666         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
2667         allows widgets to turn off being automatically invalidated is when
2668         they are resized.
2669
2670         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
2671         a widget is resized or moved is "shallow" as described above -
2672         only the windows that need to be invalidated are invalidated.
2673
2674         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
2675         Make these widget's init functions call 
2676         gtk_widget_set_redraw_on_allocate(widget,FALSE).
2677
2678         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
2679         _gtk_container_queue_resize(), since we don't want
2680         redrawing. (Probably could be done for other 
2681         calls to gtk_widget_queue_resize() in gtkwindow.c,
2682         but this is the most important one.)
2683
2684         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
2685         gtk_widget_queue_draw() - size_allocate() handles
2686         that as appropriate.
2687
2688         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
2689         of queue_clear() to avoid invalidating children.
2690
2691 2001-11-04  jacob berkman  <jacob@ximian.com>
2692
2693         * gtk/gtkmain.c (find_module): don't free the module name until
2694         after we load the module
2695
2696 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
2697  
2698         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
2699         derivation instead of boxed derivation.
2700  
2701         * gtk/gtkmarshal.list: Remove some now unused marshallers.
2702  
2703 2001-11-04  Tor Lillqvist  <tml@iki.fi>
2704
2705         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
2706         include yesterday, without really thinking), as that defeats the
2707         working of correct_libdir_prefix() (it becomes a no-op.). Add
2708         comment mentioning that. Thanks to Hans Breuer for noticing.
2709         
2710 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
2711
2712         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
2713         signal argument (was GtkWidget*).
2714
2715         * gtk/gtkwindow.c (gtk_window_frame_event),
2716           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
2717         Fixed argument types as above, removed GTK_WINDOW casts and
2718         added some GTK_WIDGET casts instead.
2719
2720 2001-11-03  Hans Breuer  <hans@breuer.org>
2721
2722         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
2723         finalize to parent class to get removed from the toplevel_list.
2724         Should fix 'random' crashes of #63474.
2725
2726         * gtk/gtktreemodelsort.c : chain finalize() to parent class
2727
2728 2001-11-03  Tor Lillqvist  <tml@iki.fi>
2729
2730         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
2731         for .dll or .so as appropriate as module suffix.
2732
2733         * gtk-zip.sh.in: Use correct import library names.
2734
2735         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
2736
2737         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
2738         Windows to turn build-time paths from a gtk.immodules distributed
2739         as part of a binary package into runtime ones in the
2740         end-user-chosen installation directory.
2741         (gtk_im_module_init): Use it for module path and domain
2742         directory.
2743
2744 2001-11-02  Tor Lillqvist  <tml@iki.fi>
2745
2746         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
2747         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
2748         Windows.
2749
2750 2001-10-30  Tor Lillqvist  <tml@iki.fi>
2751
2752         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
2753         files. Configure on Win32 (running on Cygwin) thinks symlinks
2754         exist, but pkg-config is not necesarily a Cygwin program, and
2755         doesn't understand them.
2756
2757 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
2758
2759         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
2760         a bit.  I don't think it's completely correct yet, but it's
2761         getting there.
2762
2763 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
2764
2765         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
2766         random + 5 for width and height. If people want padding,
2767         they should add padding. (Note the +5 isn't padding
2768         that will always appear - it just appears in the case
2769         where the widget is allocated it's requisition.)
2770         (#51018, Janet Davis)
2771
2772 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
2773
2774         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
2775         the structure for future expansion.
2776
2777 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
2778
2779         Patch from HideToshi Tajima (#51922)
2780         
2781         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
2782
2783         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
2784         set_use_preedit().
2785         
2786         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
2787         to destroy the input context because we change the
2788         client window or use_preedit, make sure we empty
2789         the preedit string.
2790
2791 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
2792
2793         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
2794         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
2795         proposed ordering of buttons with [OK] in the lower
2796         right hand corner. Patch from Gregory Merchan,
2797         #56331.
2798
2799 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
2800
2801         * gtk/gtklabel.c (gtk_label_select_region_index): remove
2802         extraneous gtk_label_clear_layout (label)
2803
2804 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2805
2806         * tests/makefile.msc, gtk/makefile.msc.in: Removed
2807         -DGTK_DISABLE_COMPAT_H.
2808
2809         * docs/Changes-2.0.txt:
2810         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
2811
2812         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
2813
2814 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
2815
2816         * examples/**/Makefile.am: Convert to use pkg-config
2817         rather than gtk-config. (#53375, Skip Montanaro)
2818
2819 2001-11-02  Matt Wilson  <msw@redhat.com>
2820
2821         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
2822         broken unused, non-compiling, static function.
2823
2824 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
2825
2826         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
2827         Iterate through children of the action area, not of
2828         the vbox. (#58278, Sergey Kuzminov)
2829
2830 2001-11-01  Havoc Pennington  <hp@pobox.com>
2831
2832         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
2833         order to remove a workaround in Nautilus that forced
2834         GTK_ENABLE_BROKEN
2835
2836         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
2837
2838 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
2839
2840         * gtk/gtkrange.c: Patch from George Lebl to 
2841         fix division by zero for full scroll bars. (#62114)
2842
2843 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
2844
2845         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
2846         around gtk_widget_event() if we are going to
2847         set a flag afterwards. (#63464)
2848
2849 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
2850
2851         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
2852         Actually add the missing/broken image icon as the
2853         image for the "missing image" stock icon.
2854
2855 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
2856
2857         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
2858         Set a reasonable default height for the window.
2859
2860         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
2861         bug where subsequent '-' weren't converted to '_'.
2862         (#59550, Matthias Clasen)
2863
2864         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
2865         justify the Help menu - just include a comment on
2866         how to do it. (#63539,  Marius Andreiana)
2867
2868         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
2869         list GTK_ICON_SIZE_INVALID.
2870
2871         * demos/gtk-demo/stock_browser.c: Show the biggest available
2872         size, not a fixed size. (Often reported, including #63539, 
2873         Marius Andreiana)
2874
2875 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
2876
2877         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
2878         #59583
2879
2880         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
2881         warning.
2882
2883 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
2884
2885         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
2886         (Daniel Elstner).
2887
2888 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
2889
2890         * gtk/gtkimcontext.[ch]: Add:
2891           - A ::retrieve_surrounding signal that asks the widget for
2892             context around the insertion point.
2893           - A ::delete_surrounding signal that asks the widget to 
2894             delete context aroudn the insertion point.
2895           - gtk_im_context_set_context() for widgets to set context
2896             around the insertion point in response to ::retrieve_context.
2897           - gtk_im_context_get_context() for context to get context
2898             around the insertion point
2899
2900         * gtkmarshal.list: Add BOOL:INT,INT
2901
2902         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
2903         set_surrounding() methods, and the ::retrieve_surrounding /
2904         ::delete_surrounding signals.
2905
2906         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
2907         GtkIMContext::retrieve_surrounding / ::delete_surrounding
2908         signals.
2909
2910 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
2911
2912         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
2913         it's amazing how well things work sometimes, even when they're
2914         completely wrong.
2915
2916         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2917         where you could try to collapse a node w/o it having children.
2918
2919         (gtk_tree_view_class_init): remove Shift L<->R as they already
2920         existed for expand/collapse.
2921
2922 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
2923
2924         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
2925         found by Matt Wilson.
2926
2927 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
2928
2929         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
2930         Control, and Shift|Control L<->R, #63475
2931
2932 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
2933
2934         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
2935         infinite loop noticed by yosh.
2936
2937 2001-11-01  Michael Meeks  <michael@ximian.com>
2938
2939         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
2940         GTK_REALIZED flag so we don't re-enter when we are
2941         destroyed from the plug side.
2942
2943 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
2944
2945         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
2946         Add a "menu" property and notify on it. (#62798,
2947         Padraig O'Briain)
2948
2949         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
2950         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
2951         Fix set_text to take a gchar, not a guchar, and to have 
2952         a len argument.
2953
2954 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
2955
2956         * gtk/gtkstock.c: fix typo to make it compile
2957
2958 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
2959
2960         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
2961         the widget is insensitive, draw the text insensitively, #63306
2962
2963 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
2964
2965         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
2966
2967 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
2968
2969         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
2970         gtk_selection_data_set_tree_row, #60218
2971         (gtk_tree_get_row_drag_data): rename
2972         gtk_selection_data_get_tree_row, #60218
2973
2974         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
2975         get this right, after the third try, #63122.
2976
2977 2001-10-31  jacob berkman  <jacob@ximian.com>
2978
2979         * gdk/gdkselection.h (GDK_TARGET_STRING): 
2980         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
2981         for Xatoms (and not using the XA_* macros)!
2982
2983 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
2984
2985         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
2986         gtk_window_get_focus() getter to determine the currently
2987         focused widget within the window. (#63145, request
2988         from Damian Ivereigh)
2989
2990 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
2991
2992         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
2993
2994         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
2995         GTK_SELECTION_NONE enum.
2996         (_gtk_tree_selection_internal_select_node): ditto
2997
2998         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
2999         constness.
3000
3001         * gtk/gtkcellrenderertoggle.c: more yummy constness.
3002
3003         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
3004         if mode == GTK_SELECTION_NONE
3005
3006 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
3007
3008         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
3009         "cursor_changed" signal, #62850.
3010
3011 2001-10-31  Matt Wilson  <msw@redhat.com>
3012
3013         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
3014         allocating the treedatalist, zero it to make sure the values are
3015         cleared from any garbage that was in this chunk.
3016
3017 2001-10-31  Murray Cumming  <murrayc@usa.net>
3018
3019         * gtk/cellrenderertext.h: "edited" default signal handler
3020         gchar* args are now const.
3021         gtk/cellrenderertoggle.h: "toggled" default signal handler
3022         gchar* arg is now const.
3023         Also changed other signal handlers for "edited" and "toggled" to
3024         have the same signature.
3025
3026 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
3027
3028         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
3029         rewrite.  Static models now totally work.  I'm not 100% sure about
3030         row_inserted and row_changed, but I'll get those later.
3031
3032 2001-10-30  Sven Neumann  <sven@gimp.org>
3033
3034         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
3035         output for configure --help.
3036
3037 2001-10-30  Havoc Pennington  <hp@pobox.com>
3038
3039         * gtk/gtktextview.c (changed_handler): Update the IM spot location
3040         here, if text was invalidated in the visible area, because the
3041         scroll offset doesn't normally change in that case, and the mark
3042         isn't set, just implicitly moved over as text is added/removed
3043         
3044 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
3045
3046         * gtk/gtkseparatormenuitem.c: Code cleanup.
3047         (gtk_separator_menu_item_class_init): Fix bugs in this code.
3048
3049 2001-10-29  jacob berkman  <jacob@ximian.com>
3050
3051         * gdk/Makefile.am (LDFLAGS): 
3052         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
3053         LDFLAGS, so put win32 flags in here
3054
3055 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
3056
3057         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
3058         I can't believe this took this long to fix.
3059
3060 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
3061
3062         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
3063         reordered signal.
3064
3065 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
3066
3067         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
3068         the focus to the fileop entry for create dir / rename
3069         file. (#62838)
3070
3071 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
3072
3073         * configure.in: Don't use AC_CHECK_FILE to check for a 
3074         file since it always spits warnings about cross compilation,
3075         use -f instead. It's not like we cross compile properly
3076         anyways.
3077
3078         * configure.in (gtktargetlib): Move call to AC_PROG_CC
3079         to suppress autoconf warning.
3080
3081         * acconfig.h: Add some missing #undefs from recent
3082         Win32 additions.
3083
3084 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
3085
3086         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
3087         when we didn't find it. (#62944, Eric Lemings)
3088
3089         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
3090         sign in assignment. (#63209, Arkadiusz Miskiewicz)
3091
3092 2001-10-29  Anders Carlsson  <andersca@gnu.org>
3093
3094         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
3095         the buttons size request before using it. Fixes #61696.
3096
3097 2001-10-29  Tor Lillqvist  <tml@iki.fi>
3098
3099         * README.win32: Updates.
3100
3101         * gtk-zip.sh.in: New file, used to build distribution package for
3102         Windows.
3103
3104         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
3105         applicable with GDKVAR.
3106
3107         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
3108         Wintab library.
3109
3110         * gdk/win32/gdkwin32.h
3111         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
3112         X11 headers better, and to enable gdkwin32.h to be installed and
3113         included from applications, but not the *-win32.h headers.
3114
3115         * gdk/win32/*.c: Corresponding small changes, simplifications of
3116         #includes.
3117         
3118         * gdk/win32/gdkregion-win32.c: Remove.
3119
3120         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
3121
3122         * gdk/win32/gdkfont-win32.c
3123         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
3124
3125         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
3126         GDK_NONE values into hash table.
3127
3128         * gtk/gtk.def: Update.
3129
3130         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
3131         gethostname().
3132
3133         * gtk/gtkmain.c 
3134         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
3135         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
3136         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
3137         g_win32_get_package_installation_subdirectory() with the actual
3138         DLL name saved above. Redefine above directory name macros to call
3139         these functions. Remove some ifdefs.
3140
3141         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
3142         variable for export on Win32) also to the _vars file.
3143
3144         Changes for autoconfiscated build on Win32, and addition of Win32
3145         backend to the related files:
3146         
3147         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
3148         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
3149         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
3150         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
3151         win32 target, using pangowin32. Don't use the
3152         -export-symbols-regex option on Win32, we use .def files to list
3153         exported symbols. Check <winsock.h> (for gethostname() in
3154         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
3155         prevent premature m4 expansion.
3156
3157         * acconfig.h: Add HAVE_WINTAB.
3158
3159         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
3160         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
3161         MS_LIB_AVAILABLE, build MS import library. Install the import
3162         libraries. If HAVE_WINTAB, link with the Wintab library.
3163
3164         * gdk/win32/Makefile.am: Actually enable building the win32
3165         objects here, not just list all files in EXTRA_DIST. Link in the
3166         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
3167         copy the Wintab library into the .libs directory. 
3168
3169         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
3170         name of the GDK DLL when fetching the icon. Use the HMODULE saved
3171         in gdk_dll_hinstance by DllMain.
3172
3173         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
3174         build/win32/lt-compile-resource script.
3175
3176         * gdk/win32/rc/gdk.rc.in
3177         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
3178
3179         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
3180         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
3181         file. Install import libraries.
3182
3183 2001-10-29  Anders Carlsson  <andersca@gnu.org>
3184
3185         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
3186
3187 2001-10-28  Hans Breuer  <hans@breuer.org>
3188
3189         * gdk/gdk.c gdk/gdkevents.c
3190           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
3191           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
3192           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
3193           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
3194           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
3195           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
3196           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
3197         static correct-ness, underscore prefixing of library internal 
3198         functions
3199         (applied the undisputed and the win32 part. Of the latter 
3200          I'm probably the one who will change it back again, if Owen
3201          decides that the Gdk*Impl types should not be private to Gdk)
3202
3203         * gdk/gdk.def : added the remaining exported functions
3204
3205 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
3206
3207         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
3208         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
3209         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
3210
3211 2001-10-28  jacob berkman  <jacob@ximian.com>
3212
3213         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
3214         gtk_settings_get_default() here as that requires an X connection
3215         (which breaks doc building with no X connection) and is not
3216         multihead safe
3217         (gtk_color_selection_init): delay palette loading until realize
3218         time
3219         (gtk_color_selection_realize): load the palette, and initialize
3220         the global palette if it hasn't been already
3221
3222         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
3223         visual/cmap fields of klass->info since they are gone
3224         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
3225         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
3226         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
3227
3228         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
3229         cmap fields
3230         (gtk_preview_get_visual):
3231         (gtk_preview_get_cmap): mark as deprecated
3232
3233         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
3234         changes
3235
3236 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
3237
3238         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
3239         structure to have GObject not GtkObject as
3240         parent_instance. (Jeff Franks.)
3241
3242 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
3243
3244         * gdk/x11/gdkinput.c: Typo fix.
3245
3246 2001-10-26  Havoc Pennington  <hp@pobox.com>
3247
3248         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
3249         update_im_spot_location here explicitly
3250         (gtk_text_view_reset_im_context): don't update the spot location
3251         here
3252
3253 2001-10-27  Anders Carlsson  <andersca@gnu.org>
3254
3255         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
3256         This fixes #62942.
3257
3258         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
3259         Clarify that we're returning a spin button in the _new function.
3260         This fixes #54097.
3261         
3262 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
3263
3264         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
3265         Unfortunately, people apparently erroneously connect
3266         to ::clicked for GtkToggleButton and expect
3267         they know what happened in the default signal handler
3268         instead of appropriately connecting to notification
3269         signal ::toggled. When the revolution comes, such
3270         people will be first against the wall.
3271
3272         We'll just have to go back to the old less-reliable
3273         set-it-back hacks for handling model-view check
3274         buttons and radio buttons. :-(. 
3275
3276 2001-10-27  Hans Breuer  <hans@breuer.org>
3277
3278         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
3279           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
3280           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
3281           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
3282           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
3283           gtk/gtktreestore.c gtk/gtkvbbox.c : 
3284         to simplify parsing for exported functions:
3285         - made implementation signature static, when the local 
3286           prototype already was
3287         - put the functions return value on it's own line
3288         - added as space between the function name and the 
3289           opening bracket
3290
3291         * gtk/gtk.def : added the remaining exported functions
3292
3293 2001-10-27  Anders Carlsson  <andersca@gnu.org>
3294
3295         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
3296         Add note about width having to be greater than 0. This fixes
3297         #55574. 
3298
3299         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
3300         Fix docs to say previous instead of next.
3301         (gtk_text_iter_backward_word_start): Likewise.
3302         This fixes bug #62980.
3303
3304         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
3305         that the valid width is in range 0-65535 pixels. Fixes bug 
3306         #56754.
3307
3308         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
3309         a dot in the documentation. Fixes bug #62632.
3310
3311         * gdk/x11/gdkmain-x11.c: Replace int and guint with
3312         long and gulong in some places to make the code 64-bit
3313         clean.
3314         (_gdk_windowing_init_check): Replace gint with gulong.
3315         This patch was made by George Lebl and fixes bug #62113.
3316
3317         * tests/testgtk.c (create_range_controls): Don't set a 
3318         fixed height on the hscale widget. This fixes "bug" 
3319         #55840.
3320         (create_window_states): Set up destroy signals so that
3321         all windows will be destroyed when one is. This fixes 
3322         bug #58133.
3323
3324 2001-10-26  Anders Carlsson  <andersca@gnu.org>
3325
3326         * gtk/gtktreeview.c: 
3327         (gtk_tree_view_class_init): Create new "indent_expander"
3328         style property.
3329
3330         (gtk_tree_view_get_arrow_xrange): Add a tree argument
3331         to the function since the xrange can change depending
3332         on where in the tree we are. 
3333         
3334         (coords_are_over_arrow): Update function call to
3335         gtk_tree_view_get_arrow_xrange.
3336         (gtk_tree_view_draw_arrow): Likewise.
3337         
3338         (gtk_tree_view_real_expand_collapse_cursor_row):
3339         Call real_{expand|collapse}_row, so that we'll have an
3340         animation.
3341
3342 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
3343
3344         * tests/Makefile.am: fixed a small typo
3345
3346 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
3347
3348         * demos/gtk-demo/list_store.c (create_model): Anders
3349         Carlsson suggested to use G_N_ELEMENTS here
3350
3351 2001-10-26  Sven Neumann  <sven@gimp.org>
3352
3353         * gtk/gtkbutton.[ch]
3354         * gtk/gtkdnd.c: fixed inline comments
3355         
3356         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
3357
3358 2001-10-26  Hans Breuer  <hans@breuer.org>
3359
3360         * gdk-pixbuf/gdk_pixbuf.def : 
3361         * gdk/gdk.def : 
3362         * gtk/gtk.def : updated externals
3363
3364         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
3365         gdk_window_lookup implementation. It already was in
3366         gdk/win32/gdkwindow-win32.c
3367
3368         * gdk/win32/gdkproperty-win32.c : made it compile again
3369         after GdkAtom API change
3370
3371         * gtk/gtk/makefile.msc.in : updated
3372
3373 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
3374
3375         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
3376         require GLib 1.3.10.
3377
3378         * NEWS: updates.
3379
3380 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
3381
3382         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
3383         invalid nodes.
3384          (_gtk_rbnode_rotate_right): Ditto.
3385          (_gtk_rbtree_node_mark_invalid): New function.
3386          (_gtk_rbtree_node_mark_valid): New function.
3387
3388         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
3389         GObject, not a GtkObject.
3390         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
3391         correct.
3392         (gtk_tree_model_sort_row_deleted): ditto.
3393         (gtk_tree_model_sort_{un,}ref_node): Fix.
3394
3395         * gtk/gtktreeview.c: Protean incremental reflow support (commented
3396         out)
3397
3398         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
3399         to const char *key.
3400
3401         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
3402         Important 1 line fix to fix a lot of refcounting woes.
3403
3404 2001-10-25  Matt Wilson  <msw@redhat.com>
3405
3406         * gtk/gtktextview.c (gtk_text_view_destroy): call
3407         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
3408         now invalidates) so that we remove our idle functions.
3409         (gtk_text_view_destroy_layout): remove the first_validate_idle as
3410         well.
3411
3412         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
3413         the 'indent' property is G_MININT to G_MAXINT.  Don't use
3414         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
3415         instead.
3416
3417 2001-10-24  Anders Carlsson  <andersca@gnu.org>
3418
3419         * gtk/gtktreeview.c: 
3420         (gtk_tree_view_real_expand_row): add an animate argument
3421         (gtk_tree_view_real_collapse_row): likewise
3422         
3423         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
3424         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
3425         (gtk_tree_view_collapse_row): update functions that call
3426         real_{expand|collapse}_row to set the animate argument 
3427         accordingly.
3428         
3429 2001-10-24  Alex Larsson  <alexl@redhat.com>
3430
3431         * gdk/linux-fb/gdkfont-fb.c:
3432         Update to new Pango APIs
3433
3434         * gdk/linux-fb/gdkproperty-fb.c:
3435         Update to new GdkAtom APIs
3436
3437         * gdk/linux-fb/gdkwindow-fb.c:
3438         Remove warnings
3439
3440 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
3441
3442         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
3443
3444 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
3445
3446         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
3447         s_path as a child path
3448
3449 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
3450
3451         * gtk/gtktreemodelsort.c: more changes in an attempt to get
3452         it right. It's not yet ready for general consumption.
3453
3454         * tests/treestoretest.c: add a button and entry for the new
3455         iter_change function
3456         (iter_change): new function, to test
3457         the row_changed signal implementation of the GtkTreeModelSort
3458
3459         * tests/testtreesort.c: cleanups, changes to test more features
3460         of the GtkTreeModelSort at once
3461
3462 2001-10-24  Havoc Pennington  <hp@redhat.com>
3463
3464         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
3465         remove hack to strip off the bogus newline, since we killed the
3466         bogus newline; fixes #61779
3467
3468 2001-10-24  Havoc Pennington  <hp@redhat.com>
3469
3470         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
3471         create layout if we didn't have one
3472         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
3473         as appropriate, avoids blanking the screen 
3474         (gtk_text_view_invalidate): new function to do invalidation,
3475         containing old guts of invalidated_handler
3476
3477 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
3478
3479         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
3480         dreadful tooltips.
3481
3482 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
3483
3484         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
3485         set window->parent (except or the root window itself); if 
3486         the window's parent is not a GdkWindow, or is a window of 
3487         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
3488
3489         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
3490         windows of type GDK_WINDOW_FOREIGN.
3491
3492 2001-10-24  Havoc Pennington  <hp@pobox.com>
3493
3494         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
3495         the front of a segment, use the "slow" technique for moving
3496         backward, so we don't mess up the any_segment field in the iter. 
3497         Fixes #57707
3498
3499         * tests/testtextbuffer.c: add code to detect #57707, to avoid
3500         regression
3501
3502 2001-10-23  Havoc Pennington  <hp@redhat.com>
3503
3504         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
3505         if selection contains some editable text, #60975
3506         (gtk_text_view_scroll_to_iter): remove warning about scrolling
3507         prior to map; it should actually be OK to do so in many cases, 
3508         it would be nice to warn about scrolling when many lines have
3509         height 0, but I don't know what to do about that. Perhaps 
3510         move part of flush_scroll into this function? comment added 
3511         to consider this.
3512
3513 2001-10-23  Havoc Pennington  <hp@redhat.com>
3514
3515         * gtk/gtktextview.c (changed_handler): Correctly keep the same
3516         text on the top of the screen, considering that the changed region
3517         may have overlapped the first paragraph. Should fix msw's "text
3518         widget scrolled to wrong place on map" bug, and probably some
3519         other scrolling cases as well.
3520         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
3521         instead of some random value
3522
3523         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
3524         grab_focus, so #59708 is really fixed
3525
3526 2001-10-24  Anders Carlsson  <andersca@gnu.org>
3527
3528         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
3529         (popup_targets_received): Call append_action_signal with stock items
3530         
3531         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
3532         (gtk_label_do_popup): Call append_action_signal with stock items
3533         
3534         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
3535         (popup_targets_received): Call append_action_signal with stock items
3536
3537 2001-10-23  Havoc Pennington  <hp@redhat.com>
3538
3539         * gtk/gtktextview.c (changed_handler): queue a resize here; will
3540         temporarily slow down the widget a lot, until we figure out how to
3541         optimize to avoid full redraw everytime we queue a resize.
3542
3543 2001-10-23  Havoc Pennington  <hp@redhat.com>
3544
3545         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
3546         0 and char_len == 0, bug #61729
3547
3548 2001-10-23  Havoc Pennington  <hp@redhat.com>
3549
3550         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
3551         return value, #61714 (Vitaly Tishkov)
3552         (gtk_text_iter_backward_sentence_starts): ditto
3553         (gtk_text_iter_backward_word_starts): ditto
3554         (gtk_text_iter_forward_word_ends): ditto
3555         (gtk_text_iter_forward_sentence_ends): ditto
3556         (gtk_text_iter_backward_cursor_positions): ditto
3557
3558 2001-10-23  Havoc Pennington  <hp@redhat.com>
3559
3560         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
3561         fix from Dov Grobgeld, #61858
3562
3563 2001-10-23  Havoc Pennington  <hp@redhat.com>
3564
3565         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
3566         Update IM spot location at appropriate times, #50626
3567         (Hidetoshi Tajima)
3568
3569 2001-10-23  Havoc Pennington  <hp@redhat.com>
3570
3571         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
3572         on grab focus, unless it's caused by button click, #59708
3573
3574 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
3575
3576         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
3577
3578         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
3579         G_CONST_RETURN. (Murray Cumming)        
3580
3581         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
3582         Make G_CONST_RETURN.
3583
3584         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
3585         results of g_get_home_dir().
3586
3587         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
3588         copy. Storing the return from gtk_entry_get_text() is evil.
3589
3590         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
3591         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
3592         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
3593         gtk/gtksignal.c: Add const.
3594
3595         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
3596
3597         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
3598         if we are setting them on private widgets.
3599
3600         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
3601         Duplicate entry->text before setting it as object data.
3602
3603 2001-10-22  Havoc Pennington  <hp@redhat.com>
3604
3605         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
3606         up a char from the end iterator, fixes #61859 ("can't put cursor
3607         at the end of the buffer")
3608
3609         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
3610         to work with delimiters other than newline.
3611
3612         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
3613         get_bytes_in_line
3614
3615         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
3616         last line, since the newline is no longer counted.
3617         (gtk_text_iter_get_bytes_in_line): ditto
3618
3619 2001-10-22  Havoc Pennington  <hp@redhat.com>
3620
3621         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
3622         #58290 would trigger if it reappeared, I think
3623
3624 2001-10-22  Havoc Pennington  <hp@redhat.com>
3625
3626         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3627         add temporary code to dump btree contents on assertion failure
3628         described in #62656
3629         
3630         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
3631         assertions that we're getting the right end iter segment
3632
3633         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3634         verify that we aren't on the end iterator after moving 
3635         forward one segment - fixes return value in an obscure case. 
3636         Also, some trivial code cleanup/rearranging.
3637         
3638 2001-10-22  Havoc Pennington  <hp@redhat.com>
3639
3640         * gtk/gtktextlayout.h: add a #error unless you define
3641         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
3642
3643         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
3644         
3645 2001-10-22  Havoc Pennington  <hp@redhat.com>
3646
3647         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
3648         #62365
3649
3650 2001-10-22  Havoc Pennington  <hp@redhat.com>
3651
3652         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
3653         #62436
3654
3655 2001-10-22  Havoc Pennington  <hp@redhat.com>
3656
3657         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
3658         #62366
3659
3660 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
3661
3662         * gtk/gtklabel.c: Add cursor-position, selection-bound 
3663         properties. (#62148, reported by Padraig O'Briain)
3664
3665         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
3666         to cursor_position. (1.3.x addition, text_position is an awful
3667         name.) Make cursor_position read-only to avoid sticky questions
3668         of interaction with selection_bound. (#62636, reported by
3669         Padraig O'Briain)
3670
3671 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
3672
3673         Fixing popup menus to have "Paste" sensitized correctly. Original
3674         patches from Damian Ivereigh, much mangled.
3675
3676         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
3677         gtk_selection_data_targets_include_text(). (#60854)
3678
3679         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
3680         the clipboard has text" function gtk_clipboard_wait_is_text_available.
3681         (#60854)
3682
3683         * gtk/gtkentry.c: Only enable the paste item if the clipboard
3684         contains text. (#60973)
3685
3686         * gtk/gtktextview.c: Only enable the paste item if the clipboard
3687         contains text. (#60975)
3688
3689 2001-10-22  Havoc Pennington  <hp@redhat.com>
3690
3691         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
3692         "height_lines" and "width_columns" properties, it doesn't make
3693         sense to set the size request on a text view really. #62103
3694
3695 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
3696
3697         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
3698         g_node_depth is broken, and that it's not worth being consistent
3699         with it.
3700
3701 2001-10-22  Havoc Pennington  <hp@redhat.com>
3702
3703         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
3704         docs, #61777
3705         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
3706         change the two boolean args to a flags field, so we can extend 
3707         to add case insensitive, regexp searches later. #61852
3708
3709 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
3710
3711         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
3712         reflect reality, #62810
3713
3714 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
3715
3716         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
3717
3718         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
3719         system.  Instead of having a window the size of the tree, we have
3720         a window the size of widget->allocation, and simply draw with the
3721         offset.
3722         (coords_are_over_arrow): ditto.  Move to window coordinates.
3723         (do_prelight): ditto
3724         (do_unprelight): ditto
3725
3726         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
3727         Minor fix from Kristian Rietveld to fix unsorted case.
3728
3729 2001-10-22  jacob berkman  <jacob@ximian.com>
3730
3731         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
3732         a PIXMAP cell (fixes crash when using PIXTEXT cells)
3733
3734 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
3735
3736         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
3737         (#58768, Vitaly Tishkov)
3738         
3739         * gtk/gtkobject.h: Deprecate with abandon. 
3740         (#61942, Vitaly Tishkov, Matthias Clasen)
3741
3742         * gtk/gtksignal.h: Deprecate everything.
3743
3744         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
3745         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
3746         (#61942, Matthias Clasen)
3747
3748         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
3749         Havoc Pennington)
3750
3751         * gtk/gtkitemfactory.h: Deprecate compat functions
3752         for GtkMenuFactory code. (#62071)
3753
3754         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
3755         gdk_draw_text,gdk_draw_text_wc. (#62071)
3756
3757 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
3758
3759         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
3760         g_thread_init(), we don't want to link to -lgthread if we don't
3761         have to.
3762
3763 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
3764
3765         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
3766         Add a function, gdk_threads_init() that must be explicitely 
3767         called to enable the GDK thread mutex.
3768
3769 2001-10-22  Jakub Steiner <jimmac@ximian.com>
3770
3771         * gtk/stock-icons/stock_stop.png: no body parts
3772         
3773 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
3774
3775         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
3776         problem with g_return_if_fail return value.
3777
3778         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
3779         virtual atom code from the gdk-multihead branch, removing the per-display
3780         part. Virtualizing atoms needs to be done now to prevent compat
3781         breakage in direct Xlib accessing code in the future. (#62208)
3782  
3783         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
3784         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
3785  
3786         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
3787         an opaque pointer type so the compiler catches attempts
3788         to mingle it with X atoms.
3789
3790         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
3791           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
3792           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
3793           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
3794           tests/testdnd.c,tests/testselection.c: 
3795         Fix up for above atom changes.
3796
3797         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
3798         now have the ability to add custom predefines.
3799
3800         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
3801         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
3802         to gtk_clipboard_get().
3803
3804         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
3805         for GdkAtom => pointer change.
3806
3807         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
3808         atoms, fix for GdkAtom => pointer change.
3809
3810 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
3811
3812         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
3813         new function spin_button_get_arrow_size() instead.
3814
3815         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
3816         arrow was hardcoded, it's now variable.
3817
3818         Fixes bug #50200
3819
3820 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
3821
3822         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
3823         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
3824         for those
3825
3826 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
3827
3828         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
3829         in favor of g_signal_*, gtk_object_* in favor of 
3830         g_object_*.
3831
3832 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
3833
3834         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
3835         from GObject now, we have to use the g_object_* functions, not
3836         gtk_object_*.
3837
3838 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
3839
3840         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
3841         nailed down now (this code is not yet ready for general consumption)
3842
3843 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
3844
3845         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
3846         for use_align
3847
3848 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
3849
3850         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
3851
3852 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
3853
3854         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
3855         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
3856         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
3857         GObject, not GtkObject. (#62621)
3858
3859 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
3860
3861         * tests/testsocket.c: Remove now useless include of unistd.h,
3862         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
3863         
3864 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
3865
3866         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
3867         Pango font API. #61933. (Untested, even for compilation.)
3868
3869 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
3870
3871         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
3872         export gtk_disable_setlocale(). (Caught by Sven Neumann)
3873
3874 2001-10-18  Havoc Pennington  <hp@redhat.com>
3875
3876         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
3877
3878 2001-10-18  Havoc Pennington  <hp@redhat.com>
3879
3880         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
3881         to GTK_RUN_LAST, #50239
3882
3883 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
3884
3885         * gtk/gtkimmodule.c (match_locale):
3886         Support "*" for all locales with least priority
3887         when to select default im module, #58201
3888
3889 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
3890
3891         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
3892         Fix docs. (#61976)
3893  
3894         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
3895
3896         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
3897
3898         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
3899         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
3900         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
3901         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
3902         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
3903         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
3904         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
3905
3906         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
3907
3908         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
3909         Don't restrict the width of the spinbutton entry field 
3910         to 10 digits. (#58681)
3911
3912 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
3913
3914         * tests/testtreeflow.c: new test program for the tree.
3915
3916 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
3917
3918         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
3919         reported by (Oleg Maiboroda), #62600
3920
3921 2001-10-18  Michael Meeks  <michael@ximian.com>
3922
3923         * gtk/gtkentry.c (gtk_entry_set_property),
3924         (gtk_entry_get_property): impl 'text'
3925         (gtk_entry_class_init): add the 'text' prop.
3926         (gtk_entry_insert_text): notify 'text' changed.
3927         (gtk_entry_delete_text): ditto.
3928
3929 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
3930
3931         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
3932         Documentation updates.
3933
3934 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
3935
3936         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
3937         in truncating length of text to MAX_SIZE. (Found by 
3938         Padraig O'Briain, #62055)
3939
3940 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
3941
3942         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
3943         MNEMONIC_ACTIVATE; signal was changed a long time
3944         ago.
3945
3946         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
3947         Fix wrong return statement. (Reported by HideToshi
3948         Tajima and others.)
3949
3950         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
3951         left over select_all vfunc.
3952
3953 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
3954
3955         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
3956         a utility function to translate coordinates relative to
3957         one widget's allocation to coordinates relative to another
3958         widget's allocation.
3959
3960         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
3961         that:
3962          - only accepts external focus if there is no active
3963            member of the group or the button is active.
3964          - makes arrow keys move the active button as well
3965            as the focus
3966          - make tab tab out directly.
3967         This makes a radio button group act as a single focus location.
3968         (#53577).
3969         
3970         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
3971         it was only a small optimization that didn't matter and made
3972         things more complicated.
3973
3974         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
3975         sorter for FOCUS_TAB as we did for the other focus directions,
3976         sort by center of widgets, not upper-left corner. (Shouldn't
3977         matter in general.)
3978
3979         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
3980         from the different types of focusing: encapsulate sorting the
3981         widgets for the focus direction into one routine
3982         (gtk_container_focus_sort()) and then share the work of moving the
3983         focus between the different focus directions.
3984
3985         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
3986         work correctly with focus chains containing non-immediate
3987         children. Sorting was being done using allocation coordinates for
3988         each widget in the focus chain, and if there were intermediate
3989         window-widgets, these allocations would not be in the same
3990         coordinate system.
3991
3992 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
3993
3994         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
3995         mnemonic_activate function to option menu.
3996
3997 2001-10-15  Murray Cumming <murrayc@usa.net>
3998
3999         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
4000           Corrected the type names used in some calls to g_signal_new().
4001         
4002 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
4003
4004         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
4005         specs, use g_pattern_spec_equal() instead of direct field accesses.
4006         upon compressing two equal paths of the same type, the resulting
4007         priority has to be the maximum.
4008         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
4009         GtkPathPriorityType enum and make it a macro.
4010
4011 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
4012
4013         * gtk/gtkwidget.c: Fix some doc comments.
4014
4015 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
4016
4017         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
4018         on empty models.
4019
4020 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
4021
4022         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
4023         Remove stale gdk backend includes.
4024  
4025 2001-10-10  Michael Meeks  <michael@ximian.com>
4026
4027         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
4028         and value_in_list properties.
4029         (gtk_combo_set_value_in_list): notify change.
4030         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
4031
4032 2001-10-11  James Henstridge  <james@daa.com.au>
4033
4034         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
4035         that gtk+ can be built with automake 1.5 while not breaking
4036         things for automake 1.4.
4037
4038 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
4039
4040         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
4041         (#60606)
4042
4043         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
4044         to disable calling setlocale (LC_ALL, "").
4045
4046         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
4047         docs that this function is not typically useful.
4048
4049         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
4050         Automatically initialize GDK for the current locale
4051         on gdk_init(). Don't reset locale to C when
4052         XSupportsLocale() fails.
4053
4054         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
4055         useless checks for UTF-8 locale breakage that mattered
4056         only for X.
4057
4058         * examples/calendar/calendar.c
4059         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
4060         gtk_set_locale().
4061
4062         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
4063         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
4064
4065 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
4066
4067         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
4068
4069         Fixes bug #61904
4070
4071 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
4072
4073         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
4074         new function, #61923
4075         (gtk_tree_selection_path_is_selected): Ditto
4076
4077 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
4078
4079         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
4080         not a GtkObject.  Thanks andersca.
4081
4082         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
4083
4084 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
4085
4086         * gtk/gtktreeviewcolumn.c
4087         (gtk_tree_view_model_sort_column_changed): fix broken code.
4088
4089 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
4090
4091         * gtk/gtkselection.c: s/succesfully/successfully/g
4092
4093 2001-10-08  Havoc Pennington  <hp@pobox.com>
4094
4095         * demos/gtk-demo/stock_browser.c: remove unused enum
4096
4097         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
4098         pass the current selection state of the node in to the user
4099         selection func
4100
4101 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
4102
4103         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
4104         non-existent function gdk_x11_cursor_get_xid 
4105         by gdk_x11_cursor_get_xcursor.
4106
4107 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
4108
4109         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
4110         warning.
4111
4112         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
4113         unref nodes, #okay61676
4114
4115         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
4116         to the property; no need to clear the other columns.  Also, we go
4117         to 'unsorted' if the model supports it.
4118
4119 2001-10-05  Sven Neumann  <sven@gimp.org>
4120
4121         * demos/testpixbuf-save.c
4122         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
4123         feature.
4124
4125 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
4126
4127         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
4128         destroy the search dialog
4129
4130         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
4131         added check to prevent creation of a search dialog if there's
4132         already one around
4133
4134         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
4135         it instead of "search-dialog" (when getting/setting the search dialog
4136         widget).
4137
4138 2001-10-05  Jakub Steiner <jimmac@ximian.com>
4139
4140         * gtk/stock-icons/stock_broken_image.png: broken images icon
4141
4142 2001-10-04  Havoc Pennington  <hp@pobox.com>
4143
4144         Fix #56586
4145         
4146         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
4147         accelerator setting here...
4148
4149         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
4150         because we try to use it when a menu bar hasn't necessarily been 
4151         initialized.
4152
4153 2001-10-03  Havoc Pennington  <hp@redhat.com>
4154
4155         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
4156         it previously verified incorrect behavior
4157
4158         Fixes for #61565
4159         
4160         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
4161         off the end
4162         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
4163         the end
4164         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
4165         the end
4166         (gtk_text_iter_forward_lines): if on the last line, move to end of
4167         it
4168
4169         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
4170         don't return a line off the end
4171
4172 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
4173
4174         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
4175         functions to do_insert_text and do_delete_text, add signals
4176         insert_text, delete_text and changed
4177
4178         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
4179         and changed. Updates to match new situation.
4180
4181         * gtk/gtkspinbutton.c: updates to match new situation
4182
4183         * gtk/gtkoldeditable.h: remove signals changed, insert_text
4184         and delete_text
4185
4186         * gtk/gtkoldeditable.c: updates to match new situation
4187
4188         * gtk/gtktext.c: updates to match new situation
4189
4190         Fixes bug #59803
4191
4192 2001-10-03  Havoc Pennington  <hp@redhat.com>
4193
4194         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
4195         position
4196
4197         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
4198         changes
4199
4200         * tests/testtextbuffer.c (logical_motion_tests): updates
4201
4202 2001-10-03  jacob berkman  <jacob@ximian.com>
4203
4204         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
4205         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
4206         * gtk/gtksettings.c (apply_queued_setting): 
4207         * gtk/gtkmain.c (gtk_init_check): 
4208         * gtk/gtkcontainer.c (gtk_container_child_get_property):
4209         s/retrive/retrieve/
4210
4211 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
4212
4213         * gtk/gtktreemodelsort.[ch]: preparation for surgery
4214         * tests/testtreesort.c: ditto
4215
4216 2001-10-02  Havoc Pennington  <hp@redhat.com>
4217
4218         Throughout: assorted docs
4219         
4220         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
4221         gdk_window_set_geometry_hints() should be used instead.
4222
4223         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
4224         document them
4225
4226         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
4227         seem to exist in any .c files
4228
4229         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
4230         g_return_if_fail (pixel < colormap->size).
4231
4232 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
4233
4234         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
4235         NULL for @target_list to mean, use
4236         gtk_drag_dest_get_target_list (widget).
4237
4238         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
4239         drop could hang when calling gtk_drag_finish with 
4240         success == FALSE and del == TRUE.
4241
4242         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
4243         drops without a matching target found would propagate
4244         to the parent widget rather than being rejected.
4245
4246         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
4247         Use text_view->dnd_mark instead of mark name to be
4248         consistent with the rest of the code.
4249
4250         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
4251         pendantically correct for a drop-only-in-some-places
4252         widget. (Check whether you can insert in drag_drop,
4253         not just in drag_motion ... matters in theory, and
4254         for Motif drag and drop in practice.)
4255
4256         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
4257         Damian Ivereigh to not allow drops on non-editable
4258         entries. (#61124)
4259
4260         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
4261         text to be moved from a non-editable entry.
4262         
4263 2001-10-03  James Henstridge  <james@daa.com.au>
4264
4265         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
4266         s/width/fixed_width/ in order to get things to compile.
4267
4268 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
4269
4270         * gtk/gtkcelleditable.c: docs
4271
4272         * gtk/gtktreemodel.h: more docs.
4273
4274 2001-10-02  Havoc Pennington  <hp@redhat.com>
4275
4276         * gdk/x11/gdkwindow-x11.c: docs
4277
4278         * tests/testtextbuffer.c (logical_motion_tests): add sentence
4279         boundary tests
4280
4281 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
4282
4283         * demos/gtk-demo/Makefile.am: add editable_cells.c,
4284         list_store.c and tree_store.c
4285
4286         * demos/gtk-demo/appwindow.c: remove tearoff item from
4287         File menu, put menubar and toolbar in handle boxes.
4288
4289         * demos/gtk-demo/genincude.pl: various changes to support trees
4290
4291         * demos/gtk-demo/main.c: various changes to support trees
4292
4293         * demos/gtk-demo/stock_browser.c: changed name of demo
4294         to Stock Item and Icon Browser, so geninclude.pl doesn't see
4295         it as child
4296
4297         * demos/gtk-demo/editable_cells.c: new file/demo
4298         * demos/gtk-demo/list_store.c: new file/demo
4299         * demos/gtk-demo/tree_store.c: new file/demo
4300
4301 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
4302
4303         * gtk/gtkrc.c gtk/gtksettings.c: 
4304         g_string_printfa => g_string_append_printf.
4305
4306 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
4307
4308         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
4309         and destroy handler.
4310
4311         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
4312
4313         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
4314         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
4315         Singh <yosh@gimp.org>.
4316
4317 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
4318
4319         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
4320         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
4321
4322         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
4323
4324 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
4325
4326         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
4327         scroll_to_cell delayed code to happen in size_allocate.
4328
4329         * gtk/gtkstyle.c (gtk_default_draw_expander): change
4330         prelight/normal arrow drawing.
4331
4332         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
4333
4334         * gtk/gtktreestore.c: refactor.
4335
4336 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
4337
4338         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
4339         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
4340         centers the child in relation to the to indicator height.
4341
4342 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
4343
4344         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
4345         correct
4346
4347 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
4348
4349         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
4350         property code using g_param_spec_int and changed from
4351         g_value_get_enum to g_value_get_int instead. Probably a better way
4352         to fix the problem :-)
4353
4354 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
4355
4356     * gtk/gtkcellrenderertext.c changed "weight" property type from 
4357       g_param_spec_int to g_param_spec_enum.
4358
4359 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
4360
4361         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
4362         fix: s/Wether/Whether/ in reorderable property description
4363
4364 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
4365
4366         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
4367         start editing when you select with a keyboard.
4368
4369         (gtk_tree_view_button_press_event): much more graceful now.
4370
4371         * gtk/gtkstyle.c: Draw togglebutton better.
4372
4373 2001-09-26  Havoc Pennington  <hp@redhat.com>
4374
4375         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
4376         of passing non-stock label in to gtk_dialog_new_with_buttons
4377
4378         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
4379         debugging updates
4380
4381         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
4382         are private
4383
4384         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
4385         exist, fall back to mnemonic label, not plain label, bug #61184
4386         
4387 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
4388
4389         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
4390         stupid and emitting the signal every time.
4391
4392         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
4393
4394 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
4395
4396        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
4397
4398        * contrib/gdk-pixbuf-xlib/Makefile.am: install
4399        gdk-pixbuf-xlib-2.0.pc.
4400
4401 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
4402
4403         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
4404         problem where menmonic wasn't removed properly when
4405         setting a label when there already is a label.
4406         Also, handle setting the tab label back to the same
4407         value. (#61160, #61161)
4408
4409         * gtk/gtkentry.c (paste_received): Patch from 
4410         Damian Ivereigh to replace selection if there is 
4411         one. (#61121)
4412
4413 2001-09-25  Darin Adler  <darin@bentspoon.com>
4414
4415         * tests/.cvsignore: Ignore new test program.
4416
4417 2001-09-25  Havoc Pennington  <hp@redhat.com>
4418
4419         * gtk/gtktextview.c: fix for #50317
4420         
4421 2001-09-25  Havoc Pennington  <hp@redhat.com>
4422
4423         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
4424         gtk_text_iter_can_insert
4425         
4426         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
4427
4428         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
4429          (gtk_text_iter_can_insert): new function to fix #60282, should
4430         also fix msw's "can paste into empty buffer" bug.
4431
4432         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
4433         "event object,"  #59091
4434
4435         * gtk/gtktextbtree.c: indentation fixes
4436
4437         * gtk/gtktextiter.c (find_by_log_attrs): fixes
4438
4439 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
4440
4441         * configure.in: Version 1.3.9, interface age 0, binary age 0.
4442
4443         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
4444
4445         * NEWS: Updates.
4446
4447 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
4448
4449         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
4450         function for drawing cursors between gtkentry/gtklabel/gtktextview.
4451         Should this be public? It has a bit of an odd interface, but
4452         custom editing widgets probably should be using it.
4453         Function will draw with wider width for taller cursors, and
4454         draws a little indicator arrow to indicate directoin for split 
4455         cursors.
4456
4457         * gtk/gtktextview.c: Add a "cursor_color" property.
4458
4459         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
4460         gtk_text_layout_draw().
4461
4462         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
4463         _gtk_draw_insertion_cursor().
4464
4465 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
4466
4467         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
4468         the behavior where you could turn family_set (etc) back on
4469         and get back the values you had before.
4470
4471         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
4472         g_string_ascii_up() rather than looping through the
4473         string ourself.
4474
4475 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
4476
4477         * gtk/gtktreeviewcolumn.c
4478         (gtk_tree_view_column_set_cell_renderer): Removed
4479         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
4480
4481         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
4482         Patch from Detlef Reichl
4483
4484 2001-09-25  Havoc Pennington  <hp@redhat.com>
4485
4486         * tests/testtextbuffer.c (line_separator_tests): Add tests for
4487         line separators, addresses bug #57428
4488
4489 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
4490
4491         * gtk/gtkentry.c: Make a GtkCellEditable
4492         (get_widget_window_size): Change to let it honor size_allocate
4493         when a CellEditable.
4494
4495         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
4496         editable changes.
4497         (gtk_tree_view_set_cursor): Now you can set the cursor
4498         horizontally, as well as start editing.
4499
4500         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
4501         code to look more like the other check buttons.
4502
4503         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
4504         Change the way we calculate cell size.
4505
4506         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
4507
4508         * demos/gtk-demo/sizegroup.c: Add mnemonics.
4509
4510         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
4511         Fix logic.
4512
4513         * gtk/gtkcellrenderertext.c: Change to be editable.
4514
4515         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
4516
4517         * test/testtreesort.c: Fix misspelling
4518
4519         * test/testreecolumns.c: Add mnemonics.
4520
4521         * test/testreeedit.c: New test program.
4522
4523 2001-09-25  Havoc Pennington  <hp@pobox.com>
4524
4525         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
4526         etc. docs about how these are not going to do what you want for 
4527         the X/win32 ports. Futile attempt to avoid a FAQ...
4528
4529 2001-09-24  James Henstridge  <james@daa.com.au>
4530
4531         * gtk/gtkmarshal.list (VOID): add marshal function types.
4532
4533         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
4534         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
4535         GTK_TYPE_POINTER.
4536         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
4537         with no-op copy/free functions.
4538
4539         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
4540         GtkCTreeNode get_type function.
4541
4542 2001-09-24  Havoc Pennington  <hp@redhat.com>
4543
4544         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
4545         gtktextlayout.c:
4546         Get rid of the newline-that-could-not-be-deleted; buffers may 
4547         now be zero-length. Much easier to fix than expected, once 
4548         I figured out the right way to do it. However, there are 
4549         various subtle bugs introduced by this that will have to get 
4550         sorted out. Please use bugzilla.
4551
4552 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
4553
4554         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
4555         response back from the window manager if our size hasn't changed 
4556         since we won't get a response back from the window manager;
4557         there was code in there to do this, but it was in the wrong
4558         place so if the hints change and the size didn't we'd expect
4559         a response.
4560
4561         Also, optimize the position-only-changed case by running
4562         the resize queue immediately, and clean up some comments
4563         for the changes.
4564
4565 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
4566
4567         * gtk/gtknotebook.h: Add a compat macro that got lost.
4568
4569         * gtk/gtktreestore.c: Doc fixes.
4570
4571         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
4572         leak for windows that receive events after being destroyed.
4573         (#60863, Joshua N. Pritikin)
4574
4575         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
4576         rather than gtk_container_queue_resize().
4577
4578         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
4579         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
4580         gtk_container_child_composite_name. (#60217.)
4581
4582 2001-09-22  Hans Breuer  <hans@breuer.org>
4583
4584         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
4585
4586 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
4587
4588         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
4589         weight value should be an int
4590
4591 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
4592
4593         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
4594         to gtk_menu_scroll_item_visible(). Only call
4595         gtk_menu_scroll_item_visible() if the menu widget has been
4596         realized. Fixes bug #55310.
4597
4598 2001-09-21  Havoc Pennington  <hp@redhat.com>
4599
4600         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
4601         key press to IM context if cursor isn't in an editable location;
4602         bug #58425, patch from Hidetoshi Tajima
4603
4604 2001-09-21  Havoc Pennington  <hp@redhat.com>
4605
4606         Bug #60862
4607         
4608         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
4609         (_gtk_text_btree_unref): fix up mark memory management
4610
4611         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
4612
4613 2001-09-20  Havoc Pennington  <hp@redhat.com>
4614
4615         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
4616         try to handle alignment here, because it's done by PangoLayout
4617         after we set the layout width. Fix from Dov.
4618
4619 2001-09-21  Hans Breuer  <hans@breuer.org>
4620
4621         * gdk/gdk.def :
4622         * gtk/gtk.def : updated externals
4623
4624         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
4625         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
4626         Also handle that Win32 pathes cann't be hard-coded      
4627
4628         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
4629         module, themes etc directory calculations
4630
4631         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
4632         >16 bit right. The size limit within Win9x appears _not_ to be 32767
4633         but slightly smaller ...
4634
4635         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
4636         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
4637
4638         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
4639
4640         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
4641         handling. I'm not sure if it is better now, but at least not worse
4642
4643         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
4644
4645         * gdk/win32/gdkwin32.h : reflect recent API restrictions
4646
4647 2001-09-21  Matt Wilson  <msw@redhat.com>
4648
4649         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
4650         radio_menu_item->group to NULL after removing it from the list, as
4651         it is no longer in the group. (#60869)
4652
4653         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
4654
4655 2001-09-20  Havoc Pennington  <hp@pobox.com>
4656
4657         * configure.in (PANGO_REQUIRED_VERSION)
4658         (ATK_REQUIRED_VERSION): add variables and checks for specific 
4659         versions of dependencies. Previously we didn't verify the 
4660         Pango or ATk versions.
4661
4662 2001-09-09  Havoc Pennington  <hp@pobox.com>
4663
4664         * gtk/gtktextiter.c: fool with indentation
4665         (gtk_text_iter_in_range): add g_return_if_fail
4666
4667 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
4668
4669         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
4670         ref count on new tag to be 1.  Update doc.  (#60836)
4671
4672 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
4673
4674         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
4675         call to gdk_image_new_bitmap(). (#59094, reported by
4676         by Sven Neumann)
4677
4678 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
4679
4680         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
4681         day, as well as the current month and year.
4682         (#59047, reported by Vitaly Tishkov)
4683
4684 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
4685
4686         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
4687         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
4688         
4689 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
4690
4691         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
4692
4693         (build_option_menu): add func argument, connect ::changed
4694         signal to option menu instead of connecting the ::activate
4695         signal to the menu items,
4696
4697         (toplevel): get rid of RADIOMENUTOGGLED macro,
4698
4699         (list_toggle_sel_mode), (clist_toggle_sel_mode),
4700         (ctree_toggle_line_style), (ctree_toggle_expander_style),
4701         (ctree_toggle_justify), (ctree_toggle_sel_mode),
4702         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
4703         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
4704
4705         (notebook_type_changed): merged standard_notebook(),
4706         notabs_notebook(), scrollable_notebook() and borderless_notebook()
4707         into notebook_type_changed()
4708
4709         (create_list), (create_ctree), (create_notebook),
4710         (create_progress_bar): changed OptionMenuItem arrays into
4711         gchar * arrays. Removed "Extended" item where used.
4712
4713         Fixes bug #59885
4714
4715 2001-09-20  Sven Neumann  <sven@gimp.org>
4716
4717         * configure.in
4718         * gdk/Makefile.am
4719         * gtk/Makefile.am
4720         * gtk/gtkselection.c
4721         * gtk/gtktreeview.c
4722         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
4723
4724 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
4725
4726         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
4727         a missing pango_layout_iter_free ().
4728
4729 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
4730
4731         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
4732         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
4733
4734         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
4735         the function definition so we don't accidentally rely on
4736         the compat #define from gtk_radio_menu_item_group.
4737         (#60782, Jeff Franks)
4738
4739 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
4740
4741         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
4742         incorrect values for top, right and bottom due to cut-and-paste
4743         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
4744
4745 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
4746
4747         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
4748         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
4749         window, not just on the client leader. (#58463)
4750
4751 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
4752
4753         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
4754
4755         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
4756         non-public _gtk_menu_item_set_placement.
4757
4758         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
4759
4760 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
4761
4762         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
4763           gdk/linux-fb/gdkcolor-fb.c:
4764         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
4765         (#59723)
4766
4767 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
4768
4769         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
4770         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
4771         #59723)
4772
4773 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
4774
4775         Patch from Frank Belew #59037 for Solaris compilation.
4776
4777         * gtk/maketypes.awk: Change syntax slightly for a call
4778         to sub(), apparently making awk on Solaris happier.
4779
4780         * gtk/gtktreeview.c: Remove C++ comments.
4781
4782 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
4783
4784         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
4785         to handle '99% of the time. (#60473, reported by Christian Rose)
4786
4787         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
4788         which no longer exists. (#60379, reported by Vitaly Tishkov)
4789
4790 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
4791
4792         * Released 1.3.8.
4793
4794         * gdk/Makefile.am: kill EXTRA_DIST clearing.
4795         
4796 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
4797
4798         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
4799         as its broken in automake 1.4, add explicit object rule to
4800         generate this.
4801         
4802         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
4803         get rid of uneccessary stamps, group stuff more logically, and build
4804         sources due to object rules. fix srcdir!=builddir.
4805
4806 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
4807
4808         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
4809         incorrect parameter to compute_double_length
4810         (#58680, patch from Matthias Clasen)
4811
4812         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
4813
4814         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
4815
4816         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
4817         for GDK_RELEASE_MASK to avoid warnings with Forte.
4818
4819         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
4820         break; statements.
4821
4822 2001-09-18  Alex Larsson  <alexl@redhat.com>
4823
4824         * gtk/gtkcheckbutton.c:
4825         * gtk/gtkradiobutton.c:
4826         Don't draw with GTK_STATE_ACTIVE.
4827
4828         * gtk/gtkclist.c:
4829         * gtk/gtkctree.c:
4830         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
4831
4832         * gtk/gtktextdisplay.c:
4833         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4834         unfocused with base_gc [GTK_STATE_ACTIVE].
4835         
4836         * gtk/gtkentry.c:
4837         Add select all menu-item.
4838         Default cursor color is red.
4839         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4840         unfocused with base_gc [GTK_STATE_ACTIVE].
4841
4842         * gtk/gtklabel.[ch]:
4843         Add keynav + menu to selectable lables.
4844         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4845         unfocused with base_gc [GTK_STATE_ACTIVE].
4846
4847         * gtk/gtkfilesel.c:
4848         Add drag and drop support.
4849
4850         * gtk/gtkstyle.c:
4851         (This was checked in earlier)
4852         New default values for text/base SELECTED and ACTIVE
4853         
4854 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
4855
4856         * configure.in: up version to 1.3.8, interface age 0,
4857         binary age 0, depend on glib 1.3.8.
4858
4859         * NEWS: 1.3.8 updates.
4860
4861 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
4862
4863         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
4864         the editing code
4865
4866         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
4867         reason to call it beyond emiting the two signals.
4868
4869         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
4870         to GtkEntry.
4871
4872 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
4873
4874         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
4875           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
4876         PangoFontDescription.
4877
4878         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
4879         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
4880         structure.
4881   
4882         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
4883
4884         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
4885         direct access to style->font. Deprecate gtk_style_ref/unref.
4886   
4887         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
4888         Remove gtk_style_ref/unref with g_object_ref/unref.
4889   
4890         * gtk/gtkcalendar.c: Remove leftover macros accessing
4891         style->font.
4892   
4893         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
4894         variable.
4895   
4896         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
4897         style->font.
4898
4899 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
4900
4901         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
4902         "can_activate" properties in favor of
4903         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
4904         and GTK_CELL_RENDERER_MODE_EDITABLE
4905
4906 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
4907
4908         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
4909         editable widgets.  This function is private, and should only be
4910         used by GtkTreeView.
4911
4912 2001-09-18  Matt Wilson  <msw@redhat.com>
4913
4914         * docs/Makefile.am (EXTRA_DIST): don't use += before =
4915
4916         * docs/faq/Makefile.am (EXTRA_DIST): likewise
4917
4918         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
4919         
4920         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
4921         (EXTRA_HEADERS): likewise
4922
4923         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
4924         (EXTRA_HEADERS): likewise
4925         (EXTRA_DIST): likewise
4926         (CLEANFILES): likewise
4927
4928         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
4929
4930         * tests/Makefile.am (EXTRA_DIST): likewise
4931         
4932         * Makefile.am (install-data-local): changed to use
4933         install-data-hook, which runs after install-pkgconfigDATA, so that
4934         the pkgconfigdir will have been created and populated first.
4935
4936 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
4937
4938         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
4939         be the last big GtkTreeView API change.
4940
4941         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
4942         replace with "activate" and "start_editing".  Also, added a
4943         "can_activate" and "can_edit" property.
4944
4945         * gtk/gtktreeviewcolumn.c: modify to use above.
4946
4947 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
4948
4949         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
4950
4951 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
4952
4953         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
4954         icon instead of one with ugly white background.
4955
4956 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
4957
4958         * demos/gtk-demo/stock_browser.c (id_to_macro): make
4959         the uppercasing work. (#59550)
4960
4961 2001-09-14  Jakub Steiner <jimmac@ximian.com>
4962
4963         * gtk/stock-icons/dialog_error.png:
4964         * gtk/stock-icons/dialog_question.png: more road signs
4965
4966 2001-09-13  Jakub Steiner <jimmac@ximian.com>
4967
4968         * gtk/stock-icons/dialog_question.png:
4969         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
4970           like a road sign.
4971
4972 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
4973
4974         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
4975         signals to make them more clear.  Also, change ::range_changed to
4976         ::row_changed.
4977         * gtk/gtktreemodel.c: Adjust to interface change
4978         * gtk/gtktreemodel.h: ditto
4979         * gtk/gtktreemodelsort.c: ditto
4980         * gtk/gtktreestore.c: ditto
4981         * gtk/gtkliststore.c: ditto
4982         * gtk/gtktreeview.c: ditto
4983         * tests/testtreecolumns.c: ditto
4984         * gtk/gtkmarshal.list: Actually remove a marshaller!
4985
4986 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
4987
4988         * gtk/gtktextview.c
4989         Add support for Ctrl+Up/Down arrow to move cursor to beginning
4990         of previous/next paragraph. If within a paragraph cursor moves to
4991         beginning of that paragraph.
4992
4993 2001-09-12  Jakub Steiner <jimmac@ximian.com>
4994
4995         * gtk/stock-icons/dialog_question.png: replacing the shaky
4996           question mark with a sans-serif one.
4997         * gtk/stock-icons/stock_top.png, stock_bottom.png,
4998      stock_first.png, stock_last.png: using the new style arrows
4999         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
5000      colors.
5001         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
5002      color.
5003         * gtk/stock-icons/stock_zoom*: anti-aliased
5004         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
5005      '-' with a '_', removed the wrong files
5006
5007 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
5008  
5009         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
5010  
5011         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
5012         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
5013         than in gtk-2.0/major.minor.micro/<type>/. This
5014         works better for a search path for modules.
5015  
5016         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
5017         gtk_binary_version variable holding major.minor.(micro-binary_age).
5018  
5019         * modules/input/Makefile.am (moduledir): Fix installation
5020         directory to match change in lookup location.
5021  
5022         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
5023         suffixes. Needs to be handled in g_module_build_path().
5024
5025         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
5026         appropriate.
5027  
5028 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
5029
5030         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
5031         causing RC properties not to work.
5032
5033 2001-09-11  Jakub Steiner <jimmac@ximian.com>
5034
5035         * gtk/stock-icons/dialog-error.png: less drastic
5036         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
5037           "STOP" is international enough.
5038         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
5039         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
5040
5041 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
5042
5043         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
5044         (add|remove)_selection_clipboard symmetric. (bug #59836)
5045
5046         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
5047         Avoid SEGV for empty tree. (bug #60243)
5048
5049 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
5050
5051         * tests/testgtk.c (create_idle_test): slight fix for
5052         g_object_set() not usable for nesting anymore.
5053
5054         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
5055         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
5056         properties, supply ::shadow_type properties instead as most
5057         other widgets do.
5058
5059 2001-09-10  Alex Larsson  <alexl@redhat.com>
5060
5061         * demos/gtk-demo/stock_browser.c:
5062         * gdk/gdkcolor.c:
5063         * gdk/gdkfont.c:
5064         * gdk/gdkcursor.c:
5065         * gdk/gdkevents.c:
5066         * gdk/gdkrectangle.c:
5067         * gtk/gtktypeutils.c:
5068         Update to use the new g_boxed_type_register_static API.
5069
5070 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
5071
5072         * gtk/gtktreestore.c:
5073         Fix looping in gtk_tree_store_init() waiting for zero random int.
5074
5075 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
5076
5077         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
5078         behaviour which havoc broke. they have to default to 1.0 for
5079         expand behaviour.
5080
5081         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
5082
5083 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
5084
5085         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
5086         Amend previous change to avoid runtime error in g_param_spec_ref()
5087
5088 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
5089
5090         * gtk/gtkrc.c (insert_rc_property): Fix blank line
5091         in the wrong place.
5092
5093 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
5094
5095         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
5096         do a lookup immediately after creating style->property_cache,
5097         since bsearch crashes on zero length for Solaris.
5098         (Found by Padraig O'Briain.)
5099
5100 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
5101
5102         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
5103         Really return NULL if not set.
5104         (gtk_widget_init): Remove unused varaible.
5105         
5106 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
5107
5108         * configure.in:
5109         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
5110         in cvs.
5111
5112 2001-09-08  Havoc Pennington  <hp@pobox.com>
5113
5114         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
5115         people might want to use
5116
5117 2001-09-08  Havoc Pennington  <hp@pobox.com>
5118
5119         * gtk/gtkalignment.c (gtk_alignment_class_init): default
5120         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
5121
5122         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
5123
5124         * gtk/gtktextiter.c: fix docs
5125         (gtk_text_iter_spew): get rid of this
5126
5127         * gtk/gtklayout.c: docs
5128
5129         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
5130         to center image and label together, instead of having image on
5131         left and label centered, patch/suggestion from Jacob
5132
5133         * gtk/gtkdialog.c: docs
5134
5135 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
5136
5137         * gtk/gtkliststore.c: Write documentation
5138         * gtk/gtktreestore.c: Write documentation
5139
5140 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
5141
5142         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
5143         with GArray and bsearch(), to remove dependency on a still
5144         evolving interface that we want to keep private to glib/gobject. 
5145
5146 2001-09-08  Havoc Pennington  <hp@pobox.com>
5147
5148         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
5149         docs fixes
5150
5151         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
5152
5153         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
5154
5155         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
5156
5157         * gtk/gtkscrolledwindow.h: docs fixes
5158
5159         * gtk/gtkimage.c (gtk_image_new): docs fixes
5160
5161 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
5162
5163         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
5164         false alarm  constness warning with a cast.
5165
5166         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
5167         for the inside-gdk case.
5168
5169 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
5170
5171         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
5172         remove g_print.
5173
5174         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
5175         change models, #59899
5176
5177 2001-09-07  Havoc Pennington  <hp@pobox.com>
5178
5179         * gtk/gtkmain.c: move some docs inline
5180
5181 2001-09-07  Havoc Pennington  <hp@pobox.com>
5182
5183         * gtk/gtk.h: tsk tsk, jrb broke the build
5184
5185 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
5186
5187         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
5188         Removed 'fill' attribute.  It was silly b/c that was a property of
5189         the cell renderer, anyway.
5190         (gtk_tree_view_column_render): Actually render the packed
5191         renderers.
5192         * doc/tree-column-sizing.txt: initial devel documentation.
5193         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
5194         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
5195
5196         * tests/testtreefocus.c: fix up to reflect above changes.
5197         * tests/testtreeview.c: ditto
5198         * demos/gtk-demo/stock_browser.c: ditto
5199
5200 2001-09-07  Alex Larsson  <alexl@redhat.com>
5201
5202         * gdk/linux-fb/gdkcolor-fb.c:
5203         Removed unused function.
5204         
5205         * gdk/linux-fb/gdkdrawable-fb2.c
5206         * gdk/linux-fb/gdkfont-fb.c:
5207         Use PangoLanguage functions.
5208
5209         * gdk/linux-fb/gdkinput.c:
5210         * gdk/linux-fb/gdkselection-fb.c:
5211         Fix const warnings.
5212         
5213         * gdk/linux-fb/gdkwindow-fb.c:
5214         Fix warning. Implement gdk_window_set_icon_list() and
5215         gdk_window_get_frame_extents(). (No icon support yet though.)
5216
5217         * gtk/gtkwindow.c (gtk_window_get_position):
5218         If window->frame is set get the extents of it instead.
5219         
5220 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
5221
5222         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
5223         Make the default default colormap the GdkRGB colormap,
5224         not the system colormap.
5225
5226         * gtk/gtkinvisible.c (gtk_invisible_init) 
5227           gtk/gtkwindow.c (gtk_window_init): Set the current
5228         colormap, as returned by _gtk_widget_peek_colormap()
5229         on the widget.
5230
5231         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
5232         to GTK+. Make it return %NULL instead of the default
5233         colormap if no colormap has explicitely been pushed.
5234
5235         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
5236         colormaps on ancestral widgets before defaulting the
5237         the system default colormap.
5238
5239         * docs/Changes-2.0.txt: explain colormap changes.
5240
5241 2001-09-07  Havoc Pennington  <hp@redhat.com>
5242
5243         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
5244         #57424
5245
5246 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
5247
5248         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
5249         make gdk_set_use_xshm a noop. Remove --no-xshm command line
5250         option. If we aren't autodetecting properly, we need
5251         to fix the problem, or at least make it an environment
5252         variable setting, to avoid problems with propagating
5253         to embedded children, plugins, etc.
5254
5255         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
5256
5257         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
5258         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
5259         New function to render a pixmap and mask for a particular colormap.
5260
5261         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
5262         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
5263         of internal implementation of the same.
5264
5265 2001-09-07  Havoc Pennington  <hp@redhat.com>
5266
5267         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
5268         debug code that seems to have caused a breakpoint in valid cases
5269         
5270         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
5271         pointer on the first view when adding the second view, fixes
5272         crash when closing gtk-demo text test with active selection
5273
5274         * gtk/gtktextbuffer.c
5275         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
5276         clipboards in the list of clipboards - probably fixes #59836
5277
5278 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
5279
5280       Make gdkx.h the only installed header from gdk/x11.
5281       All structures in gdk/x11 are opaque.
5282
5283         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
5284         Don't install gdk{drawable,pixmap,window}-x11.h.
5285
5286         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
5287         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
5288         GdkVisualClass into C files.
5289
5290         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
5291
5292         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
5293         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
5294         Add public functions to replace previously exported direct
5295         structure access.
5296         gdk_x11_colormap_get_{xdisplay,xcolormap} 
5297         gdk_x11_cursor_get_{xdisplay,xcursor},
5298         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
5299         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
5300         gdk_x11_gc_get_{xdisplay,ximage}
5301         
5302         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
5303         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
5304
5305       Fix a number of variables and functions that were exported
5306       "accidentally" from GDK.
5307
5308         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
5309         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
5310         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
5311         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
5312         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
5313         gdk_event_queue_find_first, gdk_event_queue_remove_link,
5314         gdk_event_queue_append, gdk_event_button_generate,
5315         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
5316
5317         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
5318            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
5319         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
5320         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
5321         gdk_use_xshm, gdk_input_ignore_core.
5322
5323         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
5324         #defines to namespace functions into the private _gdk_ 
5325         namespace.
5326
5327         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
5328         to replace gdk_parent_root exported variable. Adjust and
5329         deprecate GDK_ROOT_PARENT().
5330
5331         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
5332         GDK_ROOT_PARENT usage, remove includes of port-specific
5333         headers.
5334
5335         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
5336         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
5337         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
5338
5339         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
5340         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
5341         gdk_wm_delete_window functions, gdk_wm_take_focus, 
5342         use gdk_atom_intern() instead.
5343
5344         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
5345           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
5346           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
5347           gtk/gtkselection.c 
5348         Unexport gdk_selection_property, just use 
5349         gdk_atom_intern ("GDK_SELECTION").
5350
5351         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
5352         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
5353         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
5354         GdkVisualprivate, gdk_x11_gc_flush.
5355
5356       Make a number of public exports of variables into functions
5357       to increase encapsulation.
5358
5359         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
5360         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
5361         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
5362
5363         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
5364         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
5365         gdk_error_warnings.
5366
5367         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
5368           docs/Changes-2.0.txt: 
5369         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
5370         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
5371         Add gdk_x11_get_default_xdisplay().
5372
5373         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
5374         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
5375         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
5376         Don't export gdk_progclass, move --class command line
5377         option and handling to common portion of GDK.
5378
5379       Miscellaneous fixes:
5380
5381         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
5382         g_return_val_if_fail that should have been g_return_if_fail.
5383
5384         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
5385         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
5386
5387         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
5388         X11 dependency.
5389
5390         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
5391         Remove unused gdk_key_repeat_disable/restore.
5392
5393         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
5394         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
5395         Remove unused gdk_null_window_warnings variable.
5396
5397         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
5398         it can be retrieved from the repository; it is too far
5399         from functional to be worth having people check out;
5400         it would be easier to start from scratch, I suspect.
5401
5402         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
5403
5404         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
5405         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
5406         Fix some accidentally global variables and unused global variables.
5407
5408         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
5409         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
5410         Fix some accidentally global variables and unused global variables.
5411
5412       Add some space for future expansion to multihead.
5413
5414         * gdk/gdkdrawable.h: Add four reserved function pointers
5415         for future expansion of GdkDrawableClass.
5416
5417         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
5418         where we can put a GdkScreen * later.
5419
5420 2001-09-07  Havoc Pennington  <hp@redhat.com>
5421
5422         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
5423         adjustments after validating destination yrange; fixes #53918
5424         (This may cause other issues, but I hope it won't)
5425         
5426 2001-09-05  Havoc Pennington  <hp@redhat.com>
5427
5428         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
5429         line into start line, update the character counts in parent nodes; 
5430         caused a bug when end and start line had different parent nodes.
5431
5432 2001-08-30  Havoc Pennington  <hp@redhat.com>
5433         
5434         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
5435         assertion that tag is in a table
5436
5437 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
5438
5439         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
5440         g_strcasecmp on NULL strings. (#59058)
5441
5442 2001-09-06  Alex Larsson  <alexl@redhat.com>
5443
5444         * gtk/gtkbin.c:
5445         * gtk/gtkfontsel.c:
5446         * gtk/gtkspinbutton.c:
5447         * gtk/gtktipsquery.c:
5448         Use GtkType/GType instead of uint.
5449
5450 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
5451
5452         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
5453         sort column.
5454
5455         * gtk/gtktreestore.c (gtk_list_store_init): ditto
5456
5457         * gtk/gtktreesortable.c: add docs.
5458
5459 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
5460
5461         * Version 1.3.7
5462
5463         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
5464         docs for gtk-config
5465
5466         * modules/input/Makefile.am (install-data-local): Don't
5467         run gtk-query-immodules if DESTDIR is set.
5468
5469         * NEWS: Various additions.
5470
5471 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
5472
5473         * NEWS: updates for 1.3.7 release.
5474
5475 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
5476
5477         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
5478         handle default sort feature
5479
5480         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
5481         new function to handle default sort.
5482         (gtk_tree_sortable_has_default_sort_func): check if default sort
5483         is set.
5484
5485         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
5486         handle default sort feature
5487
5488 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
5489
5490         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
5491         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
5492         #59731
5493
5494 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
5495
5496         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
5497         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
5498         time, #59727
5499
5500         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
5501         correctly.
5502
5503 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
5504
5505         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
5506         so that we don't eternally update the keymap after we
5507         get a change notification.
5508
5509         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
5510         incorrect cast.
5511
5512 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
5513
5514         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
5515         it working. It mostly works now, although there're still a few issues
5516         to be worked out.
5517
5518         * tests/testtreesort.c (main): changes to have a better test
5519         application for the GtkTreeModelSort.
5520
5521 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
5522
5523         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
5524         fix for bug #59222.
5525
5526         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
5527         gpointer search_data argument to function definition and
5528         prototype, to match GtkTreeViewSearchEqualFunc typedef.
5529
5530 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
5531
5532         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
5533         per jrb's request.
5534
5535 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
5536
5537         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
5538
5539         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
5540
5541 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
5542
5543         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
5544         Instead of always mirroring the selection to a single PRIMARY
5545         selection, allow it to be mirrored to any number of clipboards.
5546
5547         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
5548         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
5549
5550         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
5551         GtkClipboard argument, and for paste_clipboard, the
5552         @override_location argument from @paste_primary.
5553
5554         * gtk/gtktextview.c: Adapt to above change.
5555         
5556 2001-08-30  Havoc Pennington  <hp@redhat.com>
5557
5558         * gtk/gtktextview.c (invalidated_handler): put validate idle at
5559         resize - 2 just for flexibility
5560
5561 2001-08-30  Havoc Pennington  <hp@redhat.com>
5562
5563         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
5564         object from the empty-child-anchor case by drawing a little box.
5565         
5566         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
5567         if the child anchor has no anchored widgets - fixes #59328.
5568
5569         Also, remove bizarre deletion of preedit string that seems to have
5570         gotten in here somehow.
5571
5572 2001-08-30  Havoc Pennington  <hp@redhat.com>
5573
5574         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
5575         to #58420 from Hidetoshi Tajima and Matthias Clasen
5576
5577 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
5578
5579         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5580         change color when the GtkTreeView loses focus.
5581
5582         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
5583         ditto.
5584         
5585         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
5586
5587 2001-08-28  Havoc Pennington  <hp@pobox.com>
5588
5589         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
5590
5591 2001-08-28  Havoc Pennington  <hp@pobox.com>
5592
5593         * demos/gtk-demo/main.c (setup_default_icon): add default icon
5594
5595         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
5596         warning fix
5597         (gtk_radio_button_new_with_label): warning fix
5598
5599         * gtk/gtkdnd.c: used some random GtkImage private structs, 
5600         update to reflect GtkImage changes
5601
5602         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
5603         whether the hint is supported, just always set the icon. A task
5604         list might want to use it even if the WM doesn't, and the WM may
5605         change over time. Also, XDeleteProperty() if list == NULL.
5606
5607         * gtk/gtkwindow.c (gtk_window_set_icon_list)
5608         (gtk_window_get_icon_list)
5609         (gtk_window_set_icon)
5610         (gtk_window_get_icon)
5611         (gtk_window_set_default_icon_list)
5612         (gtk_window_get_default_icon_list):
5613         new functions
5614
5615         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
5616
5617         * gtk/gtkimage.c: Implement property support, bug #59408
5618
5619         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
5620         on reparent-without-removing-first a bit more helpful.
5621         Let's just destroy this FAQ.
5622
5623 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
5624
5625         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
5626         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
5627
5628 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
5629
5630         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
5631         of use_text_format to the end of the function. (#56447)
5632
5633 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
5634
5635         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
5636         only in response to an area_prepared signal.
5637
5638 2001-08-28  Alex Larsson  <alexl@redhat.com>
5639
5640         * gtk/gtkwidget.c (gtk_widget_class_init):
5641         Make unrealize GTK_RUN_LAST.
5642
5643 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
5644
5645         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
5646         with_label and with_mnemonic should create radio buttons, not
5647         check buttons
5648
5649 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
5650
5651         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
5652         * tests/treestoretest.c (make_window): ditto
5653         * demos/gtk-demo/main.c (create_tree): ditto
5654         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
5655
5656 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
5657
5658         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
5659         GTK selection types rather than GtkTreeSelectionMode.
5660
5661         * docs/Changes-2.0: Add comment about selection change.
5662
5663 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
5664
5665         * gtk/gtkenums.h (GtkSelectionMode): deprecate
5666         GTK_SELECTION_EXTENDED.
5667
5668         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
5669         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
5670
5671         * gtk/gtkctree.c: ditto
5672
5673         * gtk/gtklist.c: ditto
5674
5675         * gtk/gtktree.c: ditto
5676
5677 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
5678
5679         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
5680         of typos in compat macros. (#59624, Skip Montaro)
5681
5682 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
5683
5684         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
5685         macro.
5686
5687          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
5688  
5689         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
5690         interface to be a standard setter from gtk_menu_item_right_justify.
5691         (gtk_menu_item_get_right_justified): a getter to go with the setter
5692
5693         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
5694         gtk_menu_item_right_justify.
5695
5696         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
5697         gtk_menu_item_set_right_justified.
5698  
5699 2001-08-27  Jens Finke <jens@gnome.org>
5700
5701         * gtk+.spec.in: Updated to match gpp requirements, reworked the
5702         files section to make it work with 1.3.x releases.
5703
5704 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
5705
5706         * gtk/gtkbutton.[ch]:
5707         Add properties for labels, mnemonics and stock items.
5708         Added C accessor functions for the properties.
5709         Removed deprecated button->child.
5710
5711         * gtk/gtkradiobutton.c:
5712         * gtk/gtktogglebutton.c:
5713         Update to use the functions in GtkButton.
5714
5715         * gtk/gtkcheckbutton.c:
5716         Update to use the functions in GtkButton.
5717         Changed size allocation of child. Now only gets as much
5718         space as it requests.
5719
5720         * gtk/gtkclist.c:
5721         Don't use GtkButton->child
5722
5723         * gtk/gtklabel.c:
5724         Fixed typo in docs
5725         
5726 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
5727
5728         * tests/testgtk.c:
5729         * tests/Makefile.am:
5730         Ressurect the properties test.
5731         I don't care if it is inferior, I just want to test my property code.
5732
5733 2001-08-25  Chema Celorio  <chema@celorio.com>
5734
5735         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
5736         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
5737         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
5738
5739 2001-08-24  Havoc Pennington  <hp@pobox.com>
5740
5741         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
5742         these are already in gtkmenu.h, and the copies
5743         here were broken.
5744
5745         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
5746
5747         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
5748         special-case bitmaps to allow no colormap
5749         (bitmap1): implement no-colormap bitmap-getting
5750         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
5751         alpha
5752         (rgb8): indentation
5753         (rgb1a, rgb1): change the way we read the data out of the image, 
5754         old way didn't seem to work quite right.
5755
5756         I'm pretty sure a lot of the rgbconvert code is still broken.
5757         
5758         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
5759         above position constraint (I really intended to do this before,
5760         don't know what's up with that)
5761         (gtk_XParseGeometry): shut up gcc
5762
5763         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
5764         and "0" should have been. remove the attempted 4-bytes-at-once
5765         optimization, it was totally broken.
5766
5767 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
5768
5769         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
5770         on push to buttons (based on patch from Soeren Sandmann, #54720)
5771
5772           - Add child_displacement_x/y style properties to control how far the
5773             child moves when the button is depressed.
5774
5775           - Add non-exported function _gtk_button_set_depressed to clean
5776             up the handling of the in/out shadow and separate it frmo
5777             widget->state.
5778
5779           - Lots of code cleanup and simplification of state handling
5780             for GtkButton/GtkToggleButton.
5781  
5782         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
5783         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
5784
5785 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
5786
5787         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
5788         and make gtk_image_new() take no arguments. The compiler will
5789         catch it, and it is vastly more useful than having
5790         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
5791
5792         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
5793         to add tearoff-title property (#51319, Lee Mallabone)
5794
5795 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
5796
5797         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
5798         gtk_menu_item_configure(). (#58925)
5799
5800 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
5801
5802         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
5803         "use_align" to give people the option to just make a cell visible.
5804
5805         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
5806         we were scrolling past the end of the tree.
5807
5808         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
5809         rename gtk_tree_view_column_pack_start_cell_renderer to
5810         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
5811
5812 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
5813
5814         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
5815         a stray g_object_ref() left over from gtk_object_ref/sink.
5816         (Pointed out by Josh Pritikin.)
5817
5818 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
5819
5820         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
5821         to gtk_container_get_children. Added deprecated compatibility
5822         macro. (Suggested by Vitaly Tishkov, #59051)
5823
5824         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
5825         calls.
5826
5827 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
5828
5829         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
5830         gtk_menu_bar_append/prepend/insert, forgot to do this
5831         when we deprecated gtk_menu_append/prepend/insert.
5832
5833         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
5834         compat macros.
5835
5836         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
5837         renamed by compat macro.
5838
5839         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
5840         gtk_font_selection_dialog_get_font(). (Suggested by
5841         Vitaly Tishkov, #59383)
5842
5843 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
5844
5845         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
5846         Rename from gtk_text_tag_table_size(). (#59366)
5847
5848 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
5849
5850         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
5851         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
5852         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
5853         (#59173).
5854
5855 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
5856
5857         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
5858         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
5859         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
5860
5861 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
5862
5863         [ Patch from Sebastian Wilhelmi, 52790 ]
5864
5865         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
5866
5867         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
5868         Move compatibility macros from g[dt]kcompat.h to within 
5869         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
5870
5871         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
5872
5873         * demos/Makefile.am demos/gtk-demo/Makefile.am 
5874           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
5875           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
5876
5877         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
5878                  testpixbuf.c}: Fix usages of deprecated functions.
5879
5880 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
5881
5882         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
5883         when changing models.
5884
5885 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
5886
5887         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
5888         We check the current event for modifiers rather than try to trap
5889         all presses.
5890
5891 2001-08-22  Anders Carlsson  <andersca@gnu.org>
5892
5893         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
5894         It's LIST_STORE, not LISTSTORE.
5895
5896 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
5897
5898         * gtk/gtk.h: Remove commented out gtkpacker reference.
5899
5900 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5901
5902         * configure.in (all_loaders): Add tga loader, 
5903         patch by Nicola Girardi. (#56067)
5904
5905 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
5906
5907         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
5908         a little.  More needs to be done tomorrow.
5909
5910 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
5911
5912         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
5913
5914 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
5915
5916         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
5917         reported by Kristian Rietveld <kristian@planet.nl> to handle row
5918         == NULL.
5919         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
5920         <kristian@planet.nl> to change destroy order.
5921
5922 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
5923
5924         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
5925         correct marshaller.
5926
5927 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
5928
5929         * gtk/gtkliststore.c: Fix up warnings, #58928.
5930
5931         * gtk/gtktreeselection.h: Change signal prototype, #58647
5932
5933         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
5934         #59221.
5935
5936         * gtk/gtkstyle.c: Actually prelight arrow, #50981
5937         
5938 2001-08-18  Hans Breuer  <hans@breuer.org>
5939
5940         * gdk/gdk.def : updated externals
5941
5942         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
5943         is required to get (at least) visible in entry fields. Some selections
5944         are really handled now - even on win32 - but copying via middle
5945         mouse button into a different app needs to wait ... 
5946
5947         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
5948         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
5949
5950         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
5951         handling. I'm not sure if it is better now, but at least not worse
5952
5953         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
5954         with SetWindowPos () which allows more fine-tuning backing-store wise
5955
5956         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
5957         Also changed move/resize to be more like the X version.
5958
5959         * gtk/gtk.def : updated externals
5960
5961 2001-08-19  Sven Neumann  <sven@gimp.org>
5962
5963         * gtk/gtktooltips.c
5964         * tests/testtreesort.c
5965         * tests/treestoretest.c: inserted some casts to get rid of compiler
5966         warnings.
5967
5968 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
5969
5970         * gtk/gtktreeviewcolumn.c
5971         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
5972
5973         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
5974         (_gtk_tree_view_find_node): If *node is NULL,
5975         *tree should be NULL too.
5976
5977         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
5978         column/renderers.
5979         * tests/testtreecolumns.c: ditto
5980         * tests/testtreefocus.c: ditto
5981         * tests/testtreesort.c: ditto
5982         * tests/testtreeview.c: ditto
5983         * tests/treestoretest.c: ditto
5984
5985 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
5986
5987         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
5988         signals; is_expander/is_expanded.
5989
5990         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
5991         pixbufs.
5992
5993         * gtk/gtktreeview.c: set above properties.
5994
5995 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
5996
5997         * gtk/gtkwidget.h: Really remove set_default_style().
5998
5999         * docs/Changes-2.0.txt: added a note about
6000         gtk_widget_push/pop/set_default_style.
6001
6002 2001-08-18  Havoc Pennington  <hp@pobox.com>
6003
6004         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
6005         hints_changed in addition to the other cases.
6006         (gtk_window_move_resize): include last position from configure
6007         notify in debug spew
6008
6009 2001-08-18  James Henstridge  <james@daa.com.au>
6010
6011         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
6012         second argument to the weak ref notify, cleaning up some uglyness.
6013         (gtk_accel_group_attach): remove and add the weak notifier when
6014         changing the accel groups slist.
6015         (gtk_accel_group_detach): same here.
6016
6017 2001-08-17  Darin Adler  <darin@bentspoon.com>
6018
6019         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
6020         missing parameters to utf8 functions to make it compile.
6021
6022 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
6023
6024         * gtk/gtktreeprivate.h:
6025         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
6026         (gtk_tree_view_init), (gtk_tree_view_set_property),
6027         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
6028         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
6029         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
6030         (gtk_tree_view_set_destroy_count_func),
6031         (gtk_tree_view_set_enable_search),
6032         (gtk_tree_view_get_enable_search),
6033         (gtk_tree_view_get_search_column),
6034         (gtk_tree_view_set_search_column),
6035         (gtk_tree_view_get_search_equal_func),
6036         (gtk_tree_view_set_search_equal_func),
6037         (gtk_tree_view_search_dialog_destroy),
6038         (gtk_tree_view_search_position_func),
6039         (gtk_tree_view_interactive_search),
6040         (gtk_tree_view_search_delete_event),
6041         (gtk_tree_view_search_button_press_event),
6042         (gtk_tree_view_search_key_press_event),
6043         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
6044         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
6045         * gtk/gtktreeview.h:
6046         Add heavily modified patch from Kristian Rietveld to handle
6047         interactive searching.
6048
6049 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
6050
6051         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
6052         string parameter.
6053
6054         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
6055         GtkMenuShell::selection_done, now that we have it, instead of 
6056         ::deactivate so we're not tearing the menu apart and notify
6057         the user prematurely.
6058
6059 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
6060
6061         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
6062         window, clear window->need_default_position to avoid infinite loops.
6063         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
6064
6065 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
6066
6067         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
6068         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
6069         (gtk_tree_view_set_property): don't cast possible NULL objects.
6070         (gtk_tree_view_destroy): reset the model to NULL.
6071
6072         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
6073         parent_class handler.
6074
6075 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6076
6077         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
6078
6079 2001-08-17  Anders Carlsson  <andersca@gnu.org>
6080
6081         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
6082         point numbers so that the result will be floating point.
6083
6084 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6085
6086         * tests/testgtk.c (create_handle_box): 
6087         (create_toolbar): Replace gtk_window_set_policy calls by
6088         gtk_window_set_resizable.
6089
6090 2001-08-16  Jakub Steiner <jimmac@ximian.com>
6091
6092         * gtk/stock-icons/dialog_info.png: new style bulb
6093         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
6094         * gtk/stock-icons/dialog_warning.png: need a hand?
6095         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
6096           the aa border gets chopped off ok
6097         * gtk/stock-icons/stock_colorselector.png: using the new hand
6098         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
6099           this one is for, but the old icon was butt ugly.
6100         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
6101         * gtk/stock-icons/stock*_insert_object.png: "
6102         * gtk/stock-icons/stock_index.png: using new hand icon
6103         * gtk/stock-icons/stock*_new.png: the document template being used 
6104           elsewhere too
6105         * gtk/stock-icons/stock*_print*.png: new print and print preview 
6106           icons (panel/menu)  
6107         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
6108           icons based on Tuomas' floppy image.
6109         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
6110         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
6111         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
6112         * gtk/stock-icons/stock*_undelete.png: "
6113         * gtk/stock-icons/stock_preferences.png: I have a version with a 
6114           document base if the sliders are no good.
6115         * gtk/stock-icons/stock_properties.png: properties 
6116         
6117
6118         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
6119           (tigert@ximian.com) clipboard icons
6120         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
6121         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
6122         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
6123           little bigger IMHO
6124
6125 2001-08-16  Sven Neumann  <sven@gimp.org>
6126
6127         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
6128
6129 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
6130
6131         * gtk/gtkcellrenderertext.c:
6132         Avoid warning when specifying NULL for "attributes" property
6133
6134 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6135
6136         * docs/debugging.txt: Add a warning about --enable-debug=no,
6137         some editorial changes.
6138
6139 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6140
6141         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
6142         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
6143         debugging info, remove unused debug flags. (#58330)
6144
6145 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
6146
6147         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
6148         (gtk_tree_selection_select_all): Remove strict checking for rows.
6149
6150 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6151         
6152         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
6153         Don't remove the tooltip window when the tip text changes. (#15891)
6154
6155 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
6156
6157         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
6158         $(srcdir).
6159
6160 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
6161
6162         * Makefile.am (EXTRA_DIST): Fix problem with trying to
6163         dist files from intl/, which is no longer there.
6164
6165 2001-08-11  Hans Breuer  <hans@breuer.org>
6166
6167         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
6168           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
6169           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
6170           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
6171           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
6172           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
6173
6174         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
6175           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
6176         GDK_TYPE_EVENT signals
6177
6178         * gtk/gtkalignment.c : removed 'direct allocation bug',
6179         which Tim discovered while reading the patch
6180
6181 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
6182
6183         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
6184         compat macros for push/pop/set_visual that were supposed
6185         to be added a long time ago, but got dropped. 
6186
6187 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
6188
6189         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
6190         property notifies.
6191
6192 2001-08-07  Havoc Pennington  <hp@pobox.com>
6193
6194         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
6195
6196         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
6197         some fixage is needed here, but nothing simple. Owen understands
6198         it. ;-)
6199
6200         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
6201         sizing and positioning.  Also, fix bug in compute_geometry_hints
6202         (width/height confusion for setting min size). 
6203         (gtk_window_move): new function
6204         (gtk_window_resize): new function
6205         (gtk_window_get_size): new function
6206         (gtk_window_get_position): new function
6207         (gtk_window_parse_geometry): new function
6208         
6209         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
6210         (gtk_widget_get_size_request): new function
6211         (gtk_widget_get_usize): delete, that was a short-lived function
6212         ;-)
6213         (gtk_widget_set_usize): deprecate
6214         (gtk_widget_set_uposition): deprecate, make it a trivial 
6215         gtk_window_move() wrapper
6216         (gtk_widget_class_init): remove x/y/width/height properties,
6217         add width_request height_request
6218         
6219         * demos/*: update to avoid deprecated functions
6220         
6221         * gtk/gtklayout.c: add x/y child properties
6222
6223         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
6224         uses of "gint16"
6225
6226         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
6227         sizing test
6228
6229         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
6230         configure events on toplevel windows are always in root window
6231         coordinates, following ICCCM spec that all synthetic events 
6232         are in root window coords already, while real events are 
6233         in parent window coords. Previously the code assumed that 
6234         coords of 0,0 were parent window coords, which was 
6235         really broken.
6236   
6237         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
6238         warning
6239  
6240         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
6241         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
6242         hints in gtk_window_parse_geometry()
6243  
6244         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
6245         new USER_POS USER_SIZE hints    
6246
6247 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6248
6249         * tests/prop-editor.c (properties_from_type): Use 
6250         g_object_class_list_properties to get the param specs 
6251         for a given type. (#58609)
6252
6253 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6254
6255         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
6256         free the text_aa parts. (#57549)
6257
6258 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6259
6260         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
6261         not the foreground color. (#57621)
6262
6263 2001-08-09  Alexander Larsson <alexl@redhat.com>
6264
6265         * gdk/win32/gdkfont-win32.c:
6266         Update to the new pango win32 api.
6267
6268 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
6269
6270         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
6271         COMPOUND_TEXT instead of TEXT
6272         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
6273         interpret the return value of g_string_to_compound_text()
6274         (#55152)
6275
6276 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6277
6278         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
6279         fail if iter is NULL. (#58347)
6280
6281 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6282
6283         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
6284         some off-by-one issues, fixing selection of line-ends. (#50323)
6285
6286 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6287
6288         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
6289         functions in order to make mouse operation work again in the
6290         color wheel. (#58604)
6291
6292 2001-08-07  James Henstridge  <james@daa.com.au>
6293
6294         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
6295         the accelerator when the accel object is changed.  Fixes bug
6296         #58628.
6297
6298 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
6299
6300         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
6301         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
6302         (gnome bugzilla #58202)
6303
6304 2001-08-06  Havoc Pennington  <hp@pobox.com>
6305  
6306         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
6307         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
6308         it was expecting a GdkWindow, not a GdkWindowImplX11.
6309  
6310         Also, we were getting the window rect in screen coords 
6311         and the screen rect in window coords then intersecting 
6312         them; instead, get window rect in window coords.
6313  
6314         Finally, there were codepaths that resulted in a stuck server grab
6315         (when the window was fully onscreen, or on gdk_image_new()
6316         failure); make the server ungrab thing a bit more
6317         robust/consistent.
6318
6319 2001-08-06  Sven Neumann  <sven@gimp.org>
6320
6321         * gdk/gdkpango.c (gdk_pango_context_destroy): 
6322         check if info->colormap != NULL before unref'ing it. It might have
6323         been set to NULL using gdk_pango_context_set_colormap().
6324
6325 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
6326
6327         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
6328         Fix conversion from float to int so that we don't get
6329         skew in the int => float => int roundtrip. 
6330         (#58120, reported by Vitaly Tishkov). Also fix problem
6331         where if no alpha was set, the returned alpha
6332         from (say) set_current_alpha() was returned as 1, not 65535.
6333
6334 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
6335
6336         * gtk/gtklist.c (gtk_list_clear_items): Fix
6337         problem with selecting a new focus child.
6338
6339         * gtk/gtklist.c (gtk_list_clear_items): Clear 
6340         list->undo/list_focus_child after unparenting
6341         child, since unparenting the child can result
6342         in list->last_focus_child being set. (#58024)
6343
6344         * Makefile.am (SUBDIRS): Add target specific pc
6345         files to DISTCLEANFILES.
6346
6347         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
6348         (58327, Matthias Clasen)
6349
6350 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
6351
6352         * tests/testgtk.c: Patch from Hans (with various modifications),
6353         to add the ability to use testgtk as a rough-and-ready
6354         benchmark. Try, 'testgtk --bench all:5' (if you want decent
6355         numbers, run without a window manager)
6356
6357 2001-08-04 Alexander Larsson <alexl@redhat.com>
6358
6359         * gdk/win32/gdkinput.c:
6360         Add #ifdef HAVE_WINTAB around wintab.h include.
6361
6362         * gtk/gtk.def:
6363         Removed marshals that have been moved to glib.
6364         Commented out plug and socket. They didn't compile for me 
6365         on win32.
6366
6367 2001-08-04  Hans Breuer  <hans@breuer.org>
6368
6369         * gtk/stocks-icons/makefile.msc : new file
6370         * gtk/makefile.msc.in : use it
6371
6372         * gtk/gtkstyle.c : not all platforms do provide M_PI and
6373         friends, but luckily there is G_PI
6374
6375         * gtk/gtk.def : updated
6376
6377         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
6378         windows WS_POPUP, but only those without a parent. This fixes the 
6379         mis-alignment between the selectable (temp, input only) window and 
6380         the window text of GtkLabel.
6381
6382         (gdk_window_show) : respect private->state when actually showing
6383         the window.
6384
6385         (gdk_window_set_transient_for) : Implementation from Wolfgang 
6386         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
6387         error handling. Should fix #50586.
6388
6389         * gdk/win32/gdkevents-win32.c : beautify log output
6390
6391 2001-08-04  Michael Natterer  <mitch@gimp.org>
6392
6393         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
6394         Need to show the image after adding it to the GtkImageMenuItem.
6395         This used to work without in testgtk because of the
6396         gtk_widget_show_all() at the end of the function.
6397         (Closes #54978).
6398
6399 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
6400
6401         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
6402         (gtk_notebook_set_child_property): fix finding of child's page,
6403         since we have to validly deal with labels and menus here as well.
6404         (gtk_notebook_get_child_property): fix warning.
6405         (gtk_notebook_class_init): property tab_pack is of type
6406         GTK_TYPE_PACK_TYPE (enum) not boolean.
6407         (gtk_notebook_find_child): don't always warn, we might be looking
6408         for a label or menu child.
6409         (gtk_notebook_map): fix mapping of panel.
6410
6411         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
6412         widget's mapped state, regardless of the value being set equals
6413         old settings, since things like REALIZED(parent) or MAPPED(parent)
6414         may have changed since the old value was set. make it an error to
6415         invoke this function on a toplevel widget.
6416
6417 2001-07-31  Darin Adler  <darin@bentspoon.com>
6418
6419         * gdk/gdkprivate.h:
6420         * gdk/x11/gdkx.h:
6421         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
6422
6423         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
6424         GTK_OBJECT.
6425
6426 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
6427
6428         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
6429         scoping error pointed out by matthiasc@poet.de.
6430
6431 2001-07-31  Sven Neumann  <sven@gimp.org>
6432
6433         * demos/gtk-demo/appwindow.c
6434         * demos/gtk-demo/item_factory.c
6435         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
6436
6437 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
6438
6439         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
6440         argument order for g_signal_has_handler_pending.
6441
6442 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
6443
6444         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
6445         instead of long deprecated g_scanner_stat_mode().
6446
6447 2001-07-29  Hans Breuer  <hans@breuer.org>
6448
6449         * gdk/makefile.msc : build in the backend dir after
6450         auto-generating files
6451
6452         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
6453         with code from win32-production-branch.
6454
6455         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
6456         before calling DestroyWindow, which indirectly calls 
6457         gdk_window_destroy_notify ()
6458
6459         (performance patch merged from win32-production-branch)
6460         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
6461         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
6462         R2_COPYPEN rop). It is claimed to be much faster.
6463
6464 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
6465
6466         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
6467         add an "attributes" property to the text renderer for ATK.
6468
6469 2001-07-26  Alex Larsson  <alexl@redhat.com>
6470
6471         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
6472         Initialize image->bits_per_pixel from the drawable, not from
6473         the root window.
6474
6475         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
6476         Fix cast. argument is an IMPL already.
6477
6478 2001-07-15  James Henstridge  <james@daa.com.au>
6479
6480         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
6481         (gtk_window_remove_accel_group): same here.
6482         (gtk_window_key_press_event): same here.
6483
6484         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
6485         (gtk_widget_remove_accelerator): same here.
6486         (gtk_widget_remove_accelerators): same here.
6487
6488         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
6489
6490         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
6491         instead of GtkObject.
6492
6493         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
6494         now takes GObjects.
6495
6496         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
6497         pass a GObject to gtk_accel_group_entries_from_object.
6498         (gtk_item_factory_create_item): s/accel_widget/accel_object/
6499
6500         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
6501
6502         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
6503
6504         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
6505         GObjects can have accelerators set now.  Add compatibility
6506         defines.
6507
6508         * gtk/gtkmarshal.list: add missing marshallers.
6509
6510         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
6511         accelerators on plain GObjects.  gtk_accel_group_object_destroy
6512         has been converted into a weak reference, and
6513         gtk_accel_group_delete_entries is now a destroy notify for that
6514         piece of data.
6515
6516 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
6517
6518         * gdk/gdkdraw.c: Added a check on the colormap depth to
6519         gdk_drawable_set_colormap()
6520         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
6521         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
6522         for pixmaps without visuals (more specifically, bitmaps)
6523         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
6524         doesn't set a colormap with the wrong depth
6525
6526
6527 2001-07-22  Anders Carlsson  <andersca@gnome.org>
6528
6529         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
6530         expander_height and expander_width properties with a single
6531         property, expander_size.
6532         (gtk_tree_view_init): Set the tab_offset to expander_size
6533         plus some padding.
6534         (gtk_tree_view_unrealize): Remove the expand/collapse
6535         timeout if it exists.
6536         (coords_are_over_arrow): Fix a small bug.
6537         (gtk_tree_view_motion_draw_column_motion_arrow): Use
6538         expander_size.
6539         (gtk_tree_view_draw_focus): Use "treeview" instead of
6540         "add-mode" as detail when drawing the focus.
6541         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
6542         instead of "add-mode" as detail when drawing the focus.
6543         (gtk_tree_view_deleted): If we have a node currently being
6544         expanded or collapsed, remove the timeout and set the node 
6545         to NULL.
6546         (gtk_tree_view_queue_draw_arrow): New function that just
6547         redraws the arrow of a node.
6548         (gtk_tree_view_draw_arrow): Use expander_size instead of
6549         expander_width/expander_height, also pass a different
6550         expander_style to gtk_paint_expander depending on the 
6551         state of the node being drawn.
6552         (expand_collapse_timeout): New function for expanding 
6553         or collapsing a node depending on the previous state.
6554         (gtk_tree_view_real_expand_row): Add timeout and set 
6555         correct state for node being expanded.
6556         (gtk_tree_view_real_collapse_row): Add timeout and set
6557         correct state for node being collapsed.
6558
6559         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
6560         information about the node currently being expanded or
6561         collapsed, and also a timeout id.
6562
6563         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
6564         with expander_style for draw_expander.
6565
6566         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
6567         expander_style.
6568         (create_expander_affine): New function for creating an 
6569         expander affine.
6570         (apply_affine_on_point): New function for applying an 
6571         affine to a point.
6572         (gtk_default_draw_expander): Modified to take expander_style
6573         instead of is_open, and to draw the rectangle rotated differently
6574         depending on the expander style.
6575         (gtk_paint_expander): Replace is_open with expander_style.
6576
6577         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
6578
6579         * gtk/gtkenums.h: Add expander style enum.
6580
6581 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
6582
6583         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
6584         value from gtk_tree_model_get_iter, the model might be empty.
6585
6586 2001-07-20  Hans Breuer  <hans@breuer.org>
6587
6588         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
6589         gdk/gdkinput.c like the other backends
6590
6591         * gdk/win32/gdkinput-win32.h :
6592         * gdk/win32/gdkinput.c :
6593         * gdk/win32/gdkvisual-win32.c :
6594         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
6595         GdkVisual GObjectification. UNTESTED for pen-devices because
6596         I simply have none.
6597
6598         * gdk/gdk.def :
6599         * gtk/gtk.def : updated externals
6600
6601         * gtk/gtkiconfactory.c :
6602         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
6603         before passing &error to functions to avoid strange crashes
6604         
6605         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
6606
6607         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
6608
6609         * gtk/makefile.msc.in : updated
6610
6611 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
6612
6613         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
6614         Add property support. (#51858)
6615
6616 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
6617
6618         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
6619         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
6620         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
6621
6622 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
6623
6624         * gtk/gtkcolorsel.c: Add propery support (roughly
6625         based on patch from Lee Mallabone, #51014)
6626
6627         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
6628         deprecated, since we already g_warning() on it.
6629
6630 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
6631
6632         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
6633         typo that sometimes caused selection not to work properly.
6634
6635         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
6636         entry when tabbing in. (#57743)
6637         
6638         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
6639         user drags up above or down below the entry, move
6640         to the end or the beginning of the entry. (Suggestion
6641         from Jay Cox, #50940)
6642
6643         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
6644         a current selection, then when moving by chars or
6645         words, move to the end of the selection rather than
6646         from entry->current_pos. (Suggestion from Jay Cox,
6647         #50942)
6648         
6649 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
6650
6651         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
6652         set window->decorated. (Patch from Hidetoshi Tajima,
6653         #55846)
6654
6655 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
6656
6657         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
6658         the widget/child realization/mapping invariants.
6659
6660         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
6661         gtk_widget_[get/set]_child_visible() to control
6662         whether visible children of a mapped window are
6663         mapped.
6664
6665         * docs/widget_system.txt: Updated for changes in
6666         container contract, and addition of GTK_CHILD_VISIBLE.
6667
6668         * gtk/gtkcontainer.c: Add generic map()/unmap()
6669         functions that work for almost all containers.
6670
6671         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
6672         gtk_widget_set_child_visible() where necessary.
6673
6674         * gtk/*.c: Remove excess map(), unmap(), and 
6675         realization/mapping invariant enforcing code
6676         from many containers.
6677
6678 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
6679
6680         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
6681         Get the foreground color from 'text', nor 'fg'. (#57568)
6682
6683 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
6684
6685         * gtk/*.c: Patch from Matthias Clasen to remove remove
6686         all instances of g_return_if_fail (foo != NULL); that are
6687         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
6688         since the second check catches the NULL anyways.
6689
6690 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
6691
6692         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
6693         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
6694         GDK_THREADS_ENTER()/LEAVE() pairs.
6695
6696         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
6697         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
6698         pairs. (Problem found by M. Meeks)
6699
6700 2001-07-18  Darin Adler  <darin@bentspoon.com>
6701
6702         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
6703         that we don't get a g_warning message every time we register a new
6704         icon size.
6705
6706         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
6707         using pixel variable of the correct type.
6708         
6709 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
6710
6711         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
6712         so that using X functions on a GdkWindow is possible, if
6713         a little hairy.
6714
6715         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
6716         and ts_origin of a GC, so that external parties can offset/restore
6717         a GC, when using gdk_window_get_internal_paint_info().
6718
6719 2001-07-17  Darin Adler  <darin@bentspoon.com>
6720
6721         * .cvsignore: Ignore the sgml directory made by gtkdoc.
6722         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
6723         instead of the deprecated gtk_window_set_policy.
6724         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
6725         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
6726         function to get rid of warning and some code too.
6727         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
6728         missing const.
6729         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
6730         unused local.
6731         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
6732         const.
6733         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
6734         (gdk_utf8_to_compound_text): Add missing const.
6735         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
6736         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
6737         cast and get rid of an unnecessary one.
6738         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
6739         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
6740         local.
6741         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
6742         Remove unused local.
6743         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
6744         missing const.
6745         * tests/testsocket.c: (add_child): Add cast so the printf format
6746         doesn't make us implicitly depend on what integer type
6747         gtk_socket_get_id returns.
6748         * tests/testtextbuffer.c: Add missing const.
6749         * tests/testtreefocus.c: (main): Remove unused local.
6750         * tests/treestoretest.c: (iter_remove): Remove unused local.
6751         (uppercase_value): Remove unused function.
6752         (make_window): Add statement to quiet the compiler's uninitialized
6753         variable warning.
6754
6755 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
6756
6757         * gtk/gtkrange.c:
6758         (second_timeout): 
6759         (initial_timeout): 
6760         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
6761         (gtk_range_calc_layout): compute the new layout based on an
6762         adjustment->value being passed in as argument.
6763         (gtk_range_button_press): for button2 slider warps, first recalc
6764         the layout, then adjust the value. also, use update_slider_position()
6765         for adjusting the value, so we keep pixel quantisation at which we
6766         usually operate (upon motion or button releases). the reason for this
6767         is that, we can't change the adjustment upon button2 presses to a non
6768         quantised value and upon button2 release re-quantise the value since
6769         that'd alter the value even if we didn't get any motion events (causing
6770         unexpected scroll area warps upon release and/or slider pixel-jitter).
6771         (gtk_range_motion_notify): update the slider position from queried
6772         coordinates, not event coordinates.
6773
6774 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
6775
6776         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
6777         the default gc values are: width=0, CapBut, JoinMiter.
6778
6779 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
6780
6781         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
6782         into account the xpad and ypad when calculating the width and the
6783         height of the pixbuf cel.
6784
6785 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
6786
6787         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
6788         Rename to gtk_radio_menu_item_get_group(), add deprecated
6789         alias. (#57044)
6790
6791         * gtk/gtkfilesel.c: Indentation fix.
6792
6793 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
6794
6795         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
6796         Hasselmann to fix warnings in compat macros. 
6797         (#56773)
6798
6799         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
6800         stupid wrong cast added in last patch.
6801
6802 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
6803
6804         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
6805         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
6806
6807 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
6808
6809         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
6810         missing cast.
6811
6812         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
6813         NULL/FALSE return value confusion.
6814
6815         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
6816         problem when scrollbar completely fills range. (Patch
6817         from  Matthias Clasen, #57047)
6818
6819 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
6820
6821         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
6822         clean up when handling events for move-resize emulation.
6823         (Problem traced down by Matthias Clasen, #57271)
6824
6825 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
6826
6827         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
6828           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
6829           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
6830           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
6831           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
6832           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
6833           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
6834         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
6835
6836 2001-07-09  Peter Williams  <peterw@ximian.com>
6837
6838         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
6839         for when srcdir != builddir
6840
6841 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
6842
6843         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
6844         gtk_tree_model_get_iter_root.
6845
6846         * gtk/gtkliststore.c: Add a bunch of g_return statements.
6847         (gtk_list_store_iter_n_children): Fix up.
6848
6849         * gtk/gtktreestore.c: Add a bunch of g_return statements.
6850
6851 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
6852
6853         * gtk/gtkwidget.c (gtk_widget_class_init):
6854         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
6855         restore some workingness.
6856
6857         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
6858         handle of window type for input-only windows.
6859
6860 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
6861
6862         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
6863         Patch from Gregory Merchan to add 
6864         gtk_button_box_set_secondary(), which separates
6865         the child into a separate group from the normal
6866         buttons. (#56331)
6867
6868         * gtk/gtkdialog.c: Make help buttons secondary by
6869         default.
6870
6871         * gtk/gtkbbox.c: Added a child property "secondary".
6872
6873         * gtk/testgtk.c: Turn on the help button for the 
6874         color selector to check that it properly appears
6875         as secondary.
6876
6877 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
6878  
6879         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
6880         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
6881         Add gdk_set_pointer_hooks() to allow pointer-querying to
6882         be hooked by an event record/playback system like GERD.
6883         (#56914)
6884         
6885 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
6886
6887         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
6888         in the right value of initial_emission to
6889         gtk_widget_set_style_internal (#57091)
6890
6891 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
6892
6893         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
6894         Make compile.
6895
6896         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
6897         with calling gtk_widget_set_style_internal() with
6898         the old style, not the new style. (#56989)
6899
6900 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
6901
6902         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
6903           gtk/gtkwidget.c:
6904         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
6905         not GTK_WIDGET_GET_ANCESTOR ... see 
6906         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
6907         Indicate the best practice in the docs for gtk_widget_get_toplevel().
6908
6909         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
6910         so GtkPlug can give the correct signals when transforming
6911         from a child to a toplevel.
6912         
6913         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
6914         reparentation correctly.
6915
6916         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
6917         Propagate the previous_toplevel argument down properly.
6918
6919         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
6920         of wrong atr list.
6921
6922         * gtk/gtkplug.[ch]: Add an "embedded" signal.
6923
6924         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
6925         signals.
6926
6927         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
6928         functions gtk_plug_get_id(), gtk_socket_get_id(),
6929         to avoid the user having to worry about realization,
6930         and gdkx.h.
6931
6932         * tests/testsocket.c: Extend to try out the new signals
6933         and gtk_plug/socket_get_id().
6934
6935         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
6936         setting of underline attributes.
6937
6938         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
6939         DestroyNotify events from SubstructureNotifyMask
6940
6941         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
6942         Switch GDK_WINDOW_TYPE (window) as needed.
6943
6944         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
6945         allow creation of toplevel windows as children of
6946         foreign windows.
6947
6948         * gtk/gtkplug.c: Remove hacks involving changing private
6949         fields of GdkWindow.
6950
6951         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
6952         exactly the same signals and notification
6953         be emitted for local embedding as for inter-process
6954         embedding.
6955
6956 2001-07-04  James Henstridge  <james@daa.com.au>
6957
6958         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
6959
6960 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
6961
6962         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
6963         XEMBED embedding add a _XEMBED_INFO property to the
6964         client with version number and a "mapped" flags.
6965         Use the mapped flag instead of the racy MapRequestEvent
6966
6967         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
6968         code to reliably set things (when the child is a passive
6969         embedder participating in the XEMBED protocol) intead
6970         of just being a hack for embedding non-participating
6971         programs. Fix various bugs and race conditions.
6972         
6973         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
6974         work by simply making the GtkSocket the gtk parent
6975         of the GtkPlug. Set a flag in this case and make
6976         the GtkPlug work like a normal container by overriding
6977         methods such as check_resize and "chaining past" GtkWindow
6978         to GtkBin.
6979
6980         * gtk/gtkentry.c (gtk_entry_real_activate)
6981           gtk/gtkmain.c (gtk_propagate_event): 
6982         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
6983         
6984         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
6985         gtk_widget_get_ancestor):
6986         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
6987         might not give the expected result and recommend
6988         an alternative.
6989
6990         * tests/testsocket.c tests/testsocket_child.c
6991         tests/testsocket_common.c tests/Makefile.am: Extended
6992         to test different type of adding plugs to sockets
6993         (local,active,passive), and to test mapping/unmapping
6994         the plug.
6995
6996         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
6997         mark the window as destroyed until after we
6998         called _gdk_windowing_window_destroy().
6999         (_gdk_windowing_window_destroy() may use GDK functions
7000         on the window.)
7001
7002         * gdk/x11/gdkinput.c: Remove the check for finalization - 
7003         devices can be finalized under some circumnstances.
7004  
7005         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
7006         small problem with GDK_TYPE_DEVICE.
7007  
7008 2001-07-02  Havoc Pennington  <hp@pobox.com>
7009
7010         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
7011         use constants not atoms.
7012
7013 2001-07-02  James Henstridge  <james@daa.com.au>
7014
7015         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
7016         PANGO_TYPE_TAB_ARRAY.
7017
7018         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
7019         for PANGO_TYPE_TAB_ARRAY.
7020
7021         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
7022         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
7023
7024         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
7025         the file.  Remove Pango types from defs -- they are now defined in
7026         libpango.
7027
7028 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
7029
7030         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
7031
7032         * gtk/gtkobject.c (gtk_object_destroy): invoke
7033         g_object_run_dispose().
7034
7035         * gtk/gtkwindow.c: 
7036         * gtk/gtkwidget.c: 
7037         * gtk/gtkobject.c:
7038         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
7039         method.
7040
7041 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
7042
7043         * gtk/gtktypeutils.c (gtk_type_class): Remove
7044         change check for GTK_TYPE_OBJECT derivation to
7045         G_TYPE_OBJECTS - it's Tim-approved to use this 
7046         for arbitary objects.
7047
7048         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
7049         prefix gtk_container_dequeue_resize_handler().
7050
7051         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
7052         to the hierarachy_changed signal, since you otherwise
7053         have to always keep that around.
7054
7055         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
7056         for extra argument to hierarchy_changed.
7057
7058 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
7059
7060         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
7061         for style to mean "revert to default style"
7062
7063         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
7064           gtk_widget_restore_default_style): Make this functions
7065         deprecated aliases for gtk_widget_set_style (widget, NULL).
7066
7067         * gtk/gtkwidget.[ch]: Remove:
7068            gtk_widget_set_default_style ()
7069            gtk_widget_push_style ()
7070            gtk_widget_pop_style ()
7071         These functions interact are overriden by RC files, and
7072         thus virtually useless, and complicated.
7073
7074 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
7075
7076         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
7077         most of the previous global variables in gtkrc.c. This is
7078         in preparation for multi-head, since each screen can
7079         have different GtkSettings and RC information.
7080
7081         * gtk/gtkrc.[ch]: 
7082
7083         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
7084         GtkSettings parameter to GtkRcStyle::parse.
7085
7086         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
7087         Add two new settings gtk-theme-name, gtk-key-theme-name,
7088         for RC files that are loaded by name after reading
7089         the default RC files.
7090         
7091         * gtk/gtkrc.c: Allow priorities for styles, as wll as
7092         bindings.
7093
7094         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
7095         and use it by default for RC files loaded via 
7096         gtk-theme-name, gtk-key-theme-name.
7097
7098         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
7099         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
7100         tests/testgtkrc: Require pathnames to be absolute.
7101
7102         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
7103         the source when parsing, since the operation of looking up a
7104         pixmap from an RC file depends on the parsing context.
7105
7106         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
7107         reset RC styles on all widgets when files are reparsed.
7108
7109         * tests/testgtk.c (create_rc_file) 
7110           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
7111         Simplify, now that gtk_rc_reparse_all() resets styles on
7112         all widgets itself.
7113
7114         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
7115         return value.
7116
7117         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
7118         GtkSettings argument.
7119
7120         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
7121         gtk_settings_get_global().
7122
7123         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
7124         to get the appropriate GtkSettings for a widget. (For now,
7125         just gets the default GtkSetttings.) 
7126
7127         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
7128           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
7129         changes.
7130
7131         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
7132         getting a style for a path without actually having a widget.
7133         (Allows using a style for a subpart of a widget, for
7134         example.)
7135
7136         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
7137         the RC files to be reloaded for just one GtkSettings
7138         (not sure how useful this really is.)
7139
7140         * gtk/gtkrc.h: Deprecate
7141         gtk_rc_add_widget_name/widget_class/class_style
7142
7143 2001-06-30  Alex Larsson  <alexl@redhat.com>
7144
7145         * gdk/linux-fb/gdkinput-none.c:
7146         * gdk/linux-fb/gdkinput.c:
7147         * gdk/linux-fb/gdkinputprivate.h:
7148         Convert GdkDevice to a GObject.
7149
7150         * linux-fb/gdkprivate-fb.h:
7151         * linux-fb/gdkvisual-fb.c:
7152         Convert GdkVisual to a GObject.
7153
7154 2001-06-29  Alex Larsson  <alexl@redhat.com>
7155
7156         * gdk/gdkvisual.h:
7157         * gdk/gdkcolor.c:
7158         * gdk/x11/gdkx.h:
7159         * gdk/x11/gdkvisual-x11.c:
7160         Convert GdkVisual to a GObject.
7161
7162         * gdk/gdkinput.h:
7163         * gdk/gdkevents.c:
7164         * gdk/x11/gdkinputprivate.h:
7165         * gdk/x11/gdkinput-gxi.c:
7166         * gdk/x11/gdkinput-none.c:
7167         * gdk/x11/gdkinput-x11.c:
7168         * gdk/x11/gdkinput-xfree.c:
7169         * gdk/x11/gdkinput.c:
7170         Convert GdkDevice to a GObject.
7171
7172 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
7173
7174         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
7175         to just plain new, fixing the number of columns, and column types
7176         at creation time.
7177
7178         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
7179
7180         * gtk/gtkcellrenderertext.c
7181         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
7182         height to a specific font.
7183
7184         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
7185
7186         * tests/*c: change to work with new store models.
7187
7188 2001-06-29  Havoc Pennington  <hp@redhat.com>
7189
7190        * Throughout: fixes to compile with G_DISABLE_COMPAT
7191         (s/g_signal_connectc/g_signal_connect/,
7192         s/g_signal_newc/g_signal_new/,
7193         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
7194
7195 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@redhat.com>
7196
7197         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
7198         add path argument to selection callbacks.
7199
7200 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
7201
7202         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
7203         walk through a model in a depth first manner, with the option to
7204         break out.
7205
7206 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
7207
7208         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
7209         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
7210         column and follow it when draged, rather than a location in the
7211         view. "expander_column" property and drawing functions changed
7212         accordingly.  Fixes bug #55942.
7213
7214         (gtk_tree_view_{set,get}_expander_column): Now works with a
7215         GtkTreeViewColumn* instead of int.
7216
7217 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
7218
7219         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
7220
7221 2001-06-28  Havoc Pennington  <hp@pobox.com>
7222
7223         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
7224         image data to the screen, using a server grab to avoid race
7225         conditions.
7226
7227         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
7228         check for NULL return from gtk_image_new_from_stock(), it never
7229         returns NULL.
7230         (gtk_item_factory_create_item): fix bug where we parsed the stock
7231         ID as an inline pixbuf
7232
7233         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
7234
7235         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
7236         support (should be using binding set here)
7237
7238         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
7239         support (should be using binding set here)
7240
7241         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
7242         support
7243
7244         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
7245
7246         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
7247
7248         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
7249
7250         * gtk/gtkimcontextsimple.c
7251         (gtk_im_context_simple_filter_keypress): keypad
7252
7253         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
7254
7255         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
7256
7257         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
7258
7259         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
7260         should be binding-setted)
7261
7262         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
7263
7264         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
7265
7266         * gtk/gtkcalendar.c: numeric keypad fixes
7267
7268         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
7269         support
7270
7271         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
7272         screwup
7273
7274         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
7275         clip the render area to the drawable's clip region in advance,
7276         so we don't get data from the server that we don't need.
7277
7278         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
7279         check return value of gdk_pixbuf_get_from_drawable(), fall back 
7280         to bilevel alpha if we can't get the pixbuf to composite against.
7281
7282         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
7283
7284         * gdk/gdkimage.c (gdk_image_get_colormap): add
7285         gdk_image_set_colormap, gdk_image_get_colormap
7286
7287         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
7288         take a region of the image, instead of converting the entire
7289         image.
7290
7291         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
7292         keybinding signal. Add default bindings for it. Add default
7293         handler for show_help that shows the tooltip for the widget.
7294
7295         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
7296         "close" keybinding signal, remove key press handler.
7297
7298         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
7299         it's not our usual practice to leave a deprecated function around
7300         with a runtime warning, plus we don't want it to appear in docs,
7301         plus if we make them yellow no one will want to change them
7302         anyhow.
7303
7304 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
7305
7306         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
7307         GTK_WIDGET_REALIZE() for resize queueing.
7308
7309         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
7310         GTK_WIDGET_REALIZE() for post event delivery destruction upon
7311         GDK_DESTROY.
7312         
7313         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
7314         sompensate for former (pre-2.0) connect_after() facility.
7315         (gtk_widget_send_expose): 
7316         (gtk_widget_event): assert the widget is realized, since event delivery
7317         to non-realized widgets is essentially a bug. event handlers should
7318         be able to unconditionally rely on widget->window (unless they
7319         emit events on their own which can trigger widget destruction).
7320         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
7321         logic. event delivery happens as follows:
7322         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
7323         b) if !was_handled in (a) and the widget is still realized, emit event-
7324            specific signal (RUN_LAST handler). returns was_handled.
7325         c) emission of GtkWidget::event-after for notification if the widget is
7326            still realized (regardless of was_handled from previous stages, no
7327            class handler). no return value.
7328         d) was_handled gets passed on to caller, to determine further
7329            propagation. if the widget got unrealized meanwhile, was_handled
7330            is returned as TRUE.
7331
7332         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
7333         gdk_event_get_coords().
7334
7335 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
7336
7337         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
7338         age 0, binary age 0. depend on glib 1.3.7.
7339
7340         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
7341
7342         * gtk/gtkmenubar.c: same here.
7343         
7344         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
7345
7346         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
7347
7348         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
7349         
7350         * gtk/gtkmenubar.c (add_to_window): likewise.
7351         
7352         * gtk/gtktextbtree.c: and here...
7353         
7354         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
7355         
7356         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
7357         
7358         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
7359         
7360         * gtk/gtktreeviewcolumn.c:
7361         (_gtk_tree_view_column_set_tree_view): yet again.
7362
7363         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
7364         signal connections without g_signal_connect_data().
7365         
7366         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
7367         demo of the matter.
7368         
7369         * demos/testpixbuf.c (main): running out of equality phrases for the
7370         ChangeLog, but had to adapt connections here as well.
7371         
7372         * demos/testanimation.c (progressive_timeout): and for the fun of it,
7373         tackled this the same way.
7374         
7375         * tests/testtext.c (create_view): ok, it's becoming a pain at this
7376         point, but had enough enery for one more fix.
7377
7378         * tests/testtreecolumns.c (main): stand up man, do your work!
7379
7380         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
7381         fix, either that's been all of it or CVS gtk is broken yet again.
7382         
7383 2001-06-29  James Henstridge  <james@daa.com.au>
7384
7385         The following changes correspond to bug #56812
7386
7387         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
7388         code for GdkDevice.
7389
7390         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
7391         GdkCursor.
7392
7393 2001-06-19  Havoc Pennington  <hp@pobox.com>
7394
7395         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
7396         for mapping a window without fooling with stacking order, but
7397         updating the "withdrawn" flag
7398
7399         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
7400         filtering as soon as possible, moving move resize and wmspec_check
7401         handling after the event filter.  Make default filter apply to all
7402         events, not just those with no GdkWindow wrapped around the X
7403         window. Fix a FIXME about how the window could be a pixmap using 
7404         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
7405
7406         Also, be robust against events not on a known GdkWindow.
7407
7408         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
7409         gdk_x11_ungrab_server): export reference-counted server grabs, so
7410         other people can grab server over a GDK function that also does
7411         so.
7412
7413 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
7414
7415         * gtk/gtktreeviewcolumn.c
7416         (gtk_tree_view_column_pack_start_cell_renderer): New function to
7417         reflect that you can (hypothetically) pack cell renderers into a
7418         column.
7419         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
7420         (gtk_tree_view_column_cell_is_visible): Move more functionality to
7421         the column.
7422         (gtk_tree_view_column_cell_can_focus): Move more functionality to
7423         the column.
7424
7425         * gtk/gtktreeview.c: Move to use new column-packing code.
7426         (gtk_tree_view_real_expand_row): remove totally braindead code.
7427         (gtk_tree_view_real_collapse_row): ditto.
7428
7429 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
7430
7431         * gtk/gtktreeviewcolumn.c: Fix a typo.
7432         
7433 2001-06-26  Joel Becker  <jlbec@evilplan.org>
7434
7435         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
7436           at the end of the file
7437
7438 2001-06-26  Havoc Pennington  <hp@redhat.com>
7439
7440         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
7441
7442 2001-06-26  Havoc Pennington  <hp@redhat.com>
7443
7444         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
7445         property
7446
7447 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
7448
7449         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
7450         stupid missing statement
7451
7452         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
7453         private function for ATK.  It notifies you of how many _visible_
7454         children are deleted when a node is deleted.  Should be used by
7455         atk only.
7456
7457 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
7458
7459         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
7460         Use new pango_context_get_metrics() to fix problems
7461         with font lists in descriptions. (#56184, reported by
7462         Jonas Borgström)
7463
7464 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
7465
7466         * gtk/gtkiconfactory.c:
7467         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
7468         item factory so inlined pixbufs actually work.
7469
7470 2001-06-25  Havoc Pennington  <hp@redhat.com>
7471
7472         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
7473         s/RESIZEABLE/RESIZABLE/
7474
7475         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
7476
7477 2001-06-25  Alexander Larsson  <alexl@redhat.com>
7478
7479         * configure.in:
7480         Added --enable-fbmanager. This is some experimental code
7481         that lets several GtkFB apps coordinate their access to the
7482         framebuffer.
7483         
7484         * acconfig.h:
7485         Added ENABLE_FB_MANAGER.
7486
7487         * gdk/linux-fb/Makefile.am:
7488         Added gdkfbmanager and gdkfbswitch.
7489
7490         * gdk/linux-fb/gdkkeyboard-fb.c:
7491         * gdk/linux-fb/gdkmouse-fb.c:
7492         * gdk/linux-fb/gdkprivate-fb.h:
7493         Split device init and open so that
7494         they can be opened and closed while switched
7495         away.
7496
7497         * gdk/linux-fb/gdkmain-fb.c:
7498         Add the basic manager communication.
7499
7500         * gdk/linux-fb/gdkrender-fb.c:
7501         Don't update to the shadow fb if we're
7502         blocked by the fb manager.
7503
7504 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
7505
7506         * docs/Changes-2.0.txt: Add note about child property
7507         changes.
7508
7509 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
7510
7511         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
7512         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
7513
7514         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
7515         with un'reffing wrong list reported by Jeff Franks.
7516
7517         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
7518
7519         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
7520         for the default icon. Remove inline XPM.
7521
7522         * gtk/gtkstock.h gtk/gtkiconfactory.c:
7523         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
7524         is used for GTK_STOCK_DND, but it is a bit too small.)
7525
7526         * gtk/stock-icons/stock_dnd_multiple.png
7527         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
7528
7529         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
7530         TRUE when starting a drag. In other cases, we are
7531         just observing. (#52995)
7532
7533         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
7534         function to set the icon for a drag from a GdkPixbuf
7535         or stock ID.
7536
7537         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
7538         Likewise, for drag sources.
7539
7540         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
7541         (Now should be done using the stock system.)
7542
7543 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
7544
7545         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
7546         Removed - didn't work and not particularly useful anyways
7547         if it did. 
7548
7549 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
7550
7551         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
7552         introduced last night that was making things decidedly not work.
7553
7554         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
7555         so that we have getter/setter pairing everywhere it makes
7556         sense. (#55767)
7557
7558         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
7559         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
7560         deprecated compat macro. (#55516)
7561
7562         * gtk/gtklabel.[ch]: Add functions
7563         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
7564         gtk_label_set_label(), which mirror the property API for GtkLabel.
7565         Make gtk_label_get_attributes() only reflect the attributes
7566         set by gtk_label_set_attributes.
7567
7568         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
7569         from gtk_notebook_set_page().
7570
7571 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
7572
7573         * configure.in: Fix tests for XShm.h.
7574
7575         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
7576         gdk_image_new() by use of goto, properly use g_object_unref().
7577
7578 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
7579
7580         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
7581         calls, as GdkImage is an object. these should be g_obejct_unref()
7582         instead but that won't work because of the g_error() statement
7583         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
7584         to spot these places.
7585
7586 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
7587
7588         * modules/input/gtkimcontextxim.c: Fixup some problems with 
7589         text length handling in error cases.
7590
7591         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
7592         a bit to make test actually warn on attempt to allocation
7593         a negative size. (#56101, Matthias Clasen)
7594
7595 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
7596
7597         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7598         noticed by Brian Cameron.
7599         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
7600         Cameron.
7601
7602 2001-06-22  Hans Breuer  <hans@breuer.org>
7603
7604         * gdk/gdk.def : updated externals
7605
7606         * gdk/win32/gdkdrawable-win32.c : corrected some casts
7607         in GDK_NOTEs
7608
7609         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
7610         to translate coordinates to the internal > 16 bit system
7611         Try to handle WM_WINDOWPOSCHANGED to get better performance for
7612         when moving/resizing
7613
7614         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
7615         and gdk_keymap_get_direction (). The latter is untested for
7616         the RTL case
7617
7618         * gtk/gtk.def : updated externals
7619
7620         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
7621         from pango_language_from_string (), not an already freed pointer
7622
7623         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
7624         binary (-kb) to be useable on windoze
7625  
7626 2001-06-21  Alexander Larsson  <alexl@redhat.com>
7627
7628         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
7629         Update to new PangoLanguage changes.
7630         
7631         * gtk/gtkwindow-decorate.c:
7632         * gtk/gtkwindow.[ch]:
7633         Added setting argument to gtk_window_set_has_frame ()
7634         
7635 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
7636
7637         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
7638         the case without XKB properly.
7639
7640         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
7641         unused gtk_rc_auto_parse variable.
7642
7643         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
7644         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
7645         longer needed with GdkPixbuf.
7646
7647         * gtk/gtkrc.c (_gtk_rc_init): Make private.
7648
7649 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
7650
7651         * gtk/gtkentry.h: Mark deprecated functions with
7652         GTK_DISABLE_DEPRECATED.
7653
7654 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
7655
7656         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
7657
7658         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
7659
7660         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
7661           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
7662           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
7663           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
7664           to recent changes in Pango.
7665
7666         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
7667           to test whether the basic engine honors them.
7668
7669 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
7670
7671         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
7672         gtk_container_child_get_property().
7673
7674 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
7675
7676         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
7677         (gtk_tree_view_move_cursor_page_up_down): implement.
7678
7679 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
7680
7681         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
7682         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
7683         don't use automatic fixed size buffer for printf-ing floats, doubles
7684         can expand to really _huge_ strings, use g_strdup_printf() instead.
7685
7686 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
7687
7688         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
7689         construct property in 1.2 and still needs to be.
7690
7691         * gtk/gtkwidget.c: "composite_child" is not a settable property.
7692
7693 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
7694
7695         * gtk/gtkliststore.c (gtk_list_store_clear): 
7696         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
7697         clear a model.
7698
7699 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
7700
7701         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
7702
7703         * gtk/Makefile.am:
7704         * gtk/gtk.h: disabled GtkPacker compilation.
7705
7706         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
7707
7708         * gtk/gtknotebook.c:
7709         * gtk/gtktable.c:
7710         * gtk/gtkbox.c: ported this over to child properties.
7711
7712         * gtk/gtksettings.c: fetch class properties via
7713         g_object_class_list_properties().
7714
7715         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
7716         child arg interface. use gobjectnotifyqueue.c for child property
7717         notification.
7718
7719         * gtk/gtkwidget.[hc]: provide necessary means for container child
7720         properties, i.e. ::child_notify signal,
7721         gtk_widget_freeze_child_notify(),
7722         gtk_widget_child_notify(),
7723         gtk_widget_thaw_child_notify().
7724
7725         * tests/testgtk.c: removed inferior property handling code, for
7726         property editing, a generic module should be used, and GLE
7727         coincidentally fullfills that purpose.
7728
7729         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
7730         needs to be adapted to g_object_class_list_properties() before this
7731         builds again.
7732
7733 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
7734
7735         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
7736         test if a node is expanded.
7737
7738 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
7739
7740         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7741         where collapsing a selected row would result in the cursor/anchor
7742         getting screwed up.
7743
7744 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
7745
7746         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
7747         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
7748         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
7749         Now I can really reorder/sort all Store widgets.  treesorttest
7750         seems to just work now.
7751         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
7752         testtreesort worked through a big coincidence all this time.
7753         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
7754         code.
7755         * tests/testtreecolumns.c: Big 'ol warning at the top letting
7756         people know that this code should never ever ever be copied.
7757
7758 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
7759
7760         * gtk/gtkwindow.h: Fixed a small typo, it should be
7761         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
7762         on line 134.
7763
7764 2001-06-14  Havoc Pennington  <hp@redhat.com>
7765
7766         Docs fixups, and:
7767         
7768         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
7769         GTK_DISABLE_DEPRECATED
7770
7771 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
7772
7773         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
7774         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
7775         finish it off tonight, though it basically works now when it's a
7776         list.  Also, I have a sinking feeling neither GtkTreeStore or
7777         GtkListStore actually resort when adding a new item.  I'll look
7778         into it.
7779
7780 2001-06-14  Havoc Pennington  <hp@redhat.com>
7781
7782         * demos/gtk-demo/main.c (load_file): fix bug identified by
7783         warnings I just added to gtktextbuffer
7784
7785 2001-06-14  Havoc Pennington  <hp@redhat.com>
7786
7787         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
7788
7789         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
7790
7791         * gtk/gtktextbtree.c: don't leak node data all over the place.
7792
7793         * demos/gtk-demo/main.c (main): create fontify tags for the right
7794         buffer
7795
7796         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
7797         to mention tags in the same table can't have the same name,
7798         suggested by Skip Montanaro
7799
7800 2001-06-11  Havoc Pennington  <hp@redhat.com>
7801
7802         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
7803         for trying to add two tags with same name to the tag table
7804
7805         * demos/gtk-demo/main.c (main): fix colors ;-)
7806
7807 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
7808
7809         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
7810         that allows grouping together multiple windows so that grabs
7811         within that set of windows only affect those windows.
7812
7813         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
7814         signal for notification when a widget becomes shadowed
7815         by a grab or is no longer shadowed by a grab.
7816
7817         * gtk/gtkwidget.c (gtk_widget_propagate_state)
7818           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
7819         insenstive widgets to maintain a grab.
7820
7821 2001-06-14  Alexander Larsson  <alexl@redhat.com>
7822
7823         * docs/README.linux-fb:
7824         Add some example config files that can be used with the URW fonts.
7825         
7826         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
7827         Set up the color ramps for DirectColor mode.
7828
7829 2001-06-11  Havoc Pennington  <hp@redhat.com>
7830
7831         * Release 1.3.6
7832          
7833 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
7834
7835         * gdk/linux-fb/gdkwindow-fb.c:
7836         Unify shaped window code and make it repaint the area that used
7837         to be part of the shape, but isn't anymore.
7838
7839 2001-06-11  Havoc Pennington  <hp@redhat.com>
7840
7841         * NEWS: Updates
7842
7843         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
7844
7845         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
7846         
7847 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
7848
7849         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
7850         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
7851         passes zero instead, so do we.
7852         
7853 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
7854
7855         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
7856         Deep copy dash_list too.
7857         (_gdk_fb_gc_new): Set default cap_style before
7858         setting values.
7859
7860 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
7861
7862         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
7863         gdk_keymap_get_direction): New functions.
7864
7865 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
7866
7867         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
7868         gtk_tree_model_get_flags by adding a second flag for atk.
7869
7870         * gtk/gtktreemodel.c: make cursor behavior interact better with
7871         mouse presses.
7872
7873 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
7874
7875         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
7876         expand_row/collapse_row to be 2 signals each -- test_expand_row
7877         and row_expanded as well as test_collapse_row and row_collapsed.
7878
7879 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
7880
7881         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
7882         signal name to be changed instead of selection_changed.
7883
7884 2001-06-08  Havoc Pennington  <hp@redhat.com>
7885
7886         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
7887         "scroll_offset" property for notification when the layout offsets
7888         may have changed
7889         (gtk_entry_adjust_scroll): add notify for scroll_offset
7890         (gtk_entry_layout_index_to_text_index): function to compensate for
7891         preedit string when doing coordinate stuff on the entry's layout
7892         (gtk_entry_text_index_to_layout_index): inverse function
7893         (gtk_entry_get_layout_offsets): hook to get current position of
7894         the layout      
7895         (gtk_entry_get_layout): hook to get the layout itself.
7896
7897         * gtk/gtklabel.c (gtk_label_get_layout): new function
7898
7899 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
7900
7901         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
7902         keybinding.
7903         (gtk_tree_view_focus): Fix merge conflict.
7904
7905 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
7906
7907         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
7908         clean up cursor handling.
7909
7910 2001-06-08  Havoc Pennington  <hp@redhat.com>
7911
7912         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
7913         function
7914
7915         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
7916         this function
7917
7918 2001-06-08  Alex Larsson  <alexl@redhat.com>
7919
7920         * gtk/gtkcompat.h.in:
7921         Added compat macros for all old GTK_TYPE_GDK_xxx types.
7922         Fixes bug #52892
7923
7924 2001-06-08  Havoc Pennington  <hp@redhat.com>
7925         
7926         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
7927         parent still
7928
7929 2001-06-08  Havoc Pennington  <hp@redhat.com>
7930
7931         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
7932         don't call g_list funcs on GSList
7933
7934         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
7935         gtk_container_focus(), since some widgets have focusable locations
7936         which are not other widgets. These widgets should not have to be 
7937         containers just to manage the focus. For example, GtkHSV is
7938         currently a container for no good reason. Also, this cleans
7939         up the "if (is_container && is_sensitive && is_drawable)
7940         container_focus ()" mess in widget implementations.
7941
7942         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
7943         function, and have it just call gtk_widget_child_focus().
7944
7945         * gtk/gtkhsv.c: derive from widget not container
7946         
7947         Throughout: fix to reflect GtkContainer::focus change
7948         
7949 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
7950
7951         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
7952         range.  Fix bug #55921
7953
7954         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
7955         (#55920).
7956
7957 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
7958
7959         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
7960         and gdk_keymap_get_current_direction().
7961
7962         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
7963           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
7964         the current locked group, use it to set the keymap
7965         direction.
7966
7967         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
7968         to determine whether we draw a split cursor or use
7969         a jumping cursor based on the current direction.
7970
7971         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
7972         Obey the split cursor setting. 
7973
7974 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
7975
7976         * gtk/gtkimmulticontext.c (activate_cb): Only activate
7977         when toggling on, not when toggling off... (#55906)
7978
7979 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
7980
7981         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
7982         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
7983         in docs. (#55812, Vitaly Tishkov)
7984
7985 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
7986
7987         * demos/gtk-demo/main.c (create_tree): Changed signal name from
7988         selection_changed to changed in signal connection to GtkTreeSelection,
7989         also used g_signal_connectc since GtkTreeSelection is now a GObject.
7990
7991 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
7992
7993         * gtk/gtktreeselection.c: Now it's a GObject instead of a
7994         GtkObject.  The GtkTreeSelection::selection_changed signal is now
7995         the GtkTreeSelection::changed signal.
7996
7997         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
7998         object.
7999
8000         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
8001         object.
8002
8003 2001-06-07  Havoc Pennington  <hp@redhat.com>
8004
8005         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
8006
8007 2001-06-07  Havoc Pennington  <hp@redhat.com>
8008         
8009         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
8010         (not tested yet because with absolute path to srcdir I can't build
8011         atk, but it was broken anyway so this may help) 
8012
8013 2001-06-07  Havoc Pennington  <hp@redhat.com>
8014
8015         * configure.in: output m4macros/Makefile
8016         
8017 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
8018
8019         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
8020         buttons.  Fixes #55460 reported by matthiasc@poet.de.
8021
8022 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
8023
8024         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
8025         expansion/collapsing so it only happens in one place.
8026         (gtk_tree_view_real_expand_row): ditto.
8027
8028 2001-06-07  Havoc Pennington  <hp@redhat.com>
8029
8030         * tests/Makefile.am: add missing -I flag
8031
8032         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
8033
8034         * configure.in: use pkg-config to see if GModule is
8035         supported; fix to properly turn on included loaders 
8036         when GModule isn't supported; don't use AC_CHECK_LIB 
8037         when libs are not installed yet
8038
8039         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
8040
8041         * Makefile.am (SUBDIRS): add m4macros subdir
8042
8043         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
8044         dependencies also.
8045
8046 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
8047
8048         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
8049         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
8050
8051 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
8052
8053         * gtk/gtktreeview.c
8054         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
8055         bindings to expand and collapse rows.
8056         (gtk_tree_view_real_select_cursor_parent): New key binding.
8057         (gtk_tree_view_real_toggle_cursor_row): New key binding.
8058
8059         * gtk/gtkmarshal.list: new
8060         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
8061
8062 2001-06-06  Havoc Pennington  <hp@redhat.com>
8063
8064         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
8065
8066         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
8067         Down to move visually rather than logically, since it confuses 
8068         people. Add -/+ and Ctrl--/+ bindings for logical movement.
8069
8070 2001-06-06  Alex Larsson  <alexl@redhat.com>
8071
8072         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
8073         Fix up error messages.
8074
8075 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
8076
8077         * gtk/gtktooltips.h: Include gtkwidget.h 
8078         (#55798, Karl Nelson)
8079
8080         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
8081         a valid latin-1 character. (Marc Lehmann, #35467)
8082
8083         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
8084         (Marc Lehmann, #35467)
8085         
8086 2001-06-05  Alex Larsson  <alexl@redhat.com>
8087
8088         * demos/gtk-demo/appwindow.c (do_appwindow):
8089         Don't swap the order of the args to gtk_widget_destroyed.
8090
8091         * tests/testgtk.c (destroy_properties):
8092         Don't crash when the properties window is destroyed.
8093
8094         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
8095         Use with_mnemonics to handle the case of stock items with
8096         underscores in them.
8097
8098 2001-06-05  Havoc Pennington  <hp@redhat.com>
8099
8100         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
8101         gtk_text_iter_reorder
8102
8103 2001-06-05  Havoc Pennington  <hp@redhat.com>
8104
8105         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
8106
8107 2001-06-05  Havoc Pennington  <hp@redhat.com>
8108
8109         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
8110         to the range that was set
8111
8112         * gtk/gtkrange.c: add value_changed signal, primarily 
8113         intended for use with GtkScale
8114         (gtk_range_set_increments): new function
8115         (gtk_range_set_range): new function with weird name
8116         (gtk_range_set_value): new function
8117         (gtk_range_get_value): new function
8118
8119         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
8120         from gtk_spin_button_get_value_as_float(). Compat #define
8121         added for get_value_as_float.
8122
8123         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
8124
8125         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
8126
8127 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
8128
8129         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
8130
8131 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
8132
8133         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
8134
8135         * tests/testgtk.c (create_tooltips): Remove usage of
8136         gtk_widget_set().
8137
8138 2001-06-05  Havoc Pennington  <hp@redhat.com>
8139
8140         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
8141
8142         Applying patch from Jeff Franks, with function docs added.
8143         
8144         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
8145         remove call to set_mnemonic_widget, change docs a bit.  
8146
8147         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
8148         new function
8149
8150         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
8151         new function
8152
8153         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
8154
8155         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
8156         function
8157         (gtk_radio_button_new_with_mnemonic_from_widget): new function
8158
8159         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
8160         new function
8161
8162         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
8163         function        
8164
8165         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
8166         auto-selection of mnemonic widget.
8167
8168 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
8169
8170         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
8171         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
8172         (gtk_tree_view_column_set_min_width): ditto.
8173
8174 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
8175
8176         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
8177         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
8178
8179 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
8180
8181         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
8182         gtk_clist_thaw().
8183
8184 2001-06-04  Havoc Pennington  <hp@pobox.com>
8185
8186         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
8187 r       eleases for buttons 6, 7
8188
8189 2001-06-04  Havoc Pennington  <hp@redhat.com>
8190
8191         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
8192         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
8193         #55562
8194
8195 2001-06-04  Havoc Pennington  <hp@redhat.com>
8196
8197         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
8198         where text_view->layout == NULL by assuming its size is 0, 
8199         i.e. same as if we haven't done any reflow. Reported by 
8200         Hidetoshi Tajima #55448 
8201
8202 2001-06-04  Havoc Pennington  <hp@redhat.com>
8203
8204         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
8205         and 7 for scroll left/right, from Thomas Broyer
8206
8207 2001-05-10  Havoc Pennington  <hp@redhat.com>
8208
8209         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
8210         we need to parse the xsetting as if it were an RC file string.
8211
8212         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
8213         value of palette from settings, not from static variable
8214
8215         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
8216         xsettings translation table
8217
8218         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
8219         hardcoding the toolbar style conflicts with new customizable 
8220         toolbar style philosophy
8221         (gtk_toolbar_class_init): add settings for default toolbar style;
8222         these are used unless the app specifically forces a toolbar style
8223
8224         * gtk/gtksettings.c (settings_install_property_parser): only
8225         return at the start if we warn and parser == NULL
8226
8227         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
8228         palette changed handler so we don't notify dead color selections
8229
8230         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
8231         xthickness/ythickness of 0 or 1 properly 
8232         (gtk_default_draw_resize_grip): clear the background behind the
8233         resize grips, and align to bottom right if we square the 
8234         area to be drawn.
8235
8236         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
8237         statusbar label to 1, so it doesn't make toplevels resize oddly
8238         (gtk_statusbar_size_request): add grip size to request
8239         (gtk_statusbar_size_allocate): hack so the hbox still works with 
8240         the grip size in the request
8241
8242         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
8243         bug where showing all on a toplevel makes the toolbar 
8244         button text appear despite the toolbar mode
8245
8246         * gtk/gtkmenubar.c: add internal padding style property
8247
8248         * gtk/gtktoolbar.c: Add internal padding style property; add
8249         shadow type style property
8250
8251         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
8252         state; and put Container::border_width outside the frame
8253
8254         * gtk/gtktextview.c: don't draw focus rectangle if we're in
8255         interior focus mode, we just use blinking cursor
8256
8257 2001-06-04  Havoc Pennington  <hp@redhat.com>
8258
8259         * configure.in: Make gdk-pixbuf have same version number as GTK
8260
8261 2001-06-04  Havoc Pennington  <hp@redhat.com>
8262
8263         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
8264         digits greater than 6. If there actually are limits (which there
8265         likely aren't), should clamp to them not warn.
8266         (gtk_spin_button_new_with_range): don't take log of 0
8267         (gtk_spin_button_size_request): use digits to compute size
8268         request, rather than step increment.
8269
8270         * tests/testgtk.c (create_spins): test larger values of digits
8271         
8272         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
8273         font on map not expose, so we don't get weirdness during scrolling
8274
8275 2001-06-04  Havoc Pennington  <hp@redhat.com>
8276
8277         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
8278         Sam Solon, bug #54577, update value even if not drawable.
8279
8280 2001-06-04  Havoc Pennington  <hp@redhat.com>
8281
8282         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
8283         SCROLL_LEFT, reported by Thomas Broyer.
8284
8285 2001-06-04  Havoc Pennington  <hp@redhat.com>
8286
8287         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
8288         Process updates immediately, to prevent funny lag effect
8289         when scrolling, at some mild potential efficiency cost.
8290
8291 2001-06-04  Havoc Pennington  <hp@redhat.com>
8292
8293         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
8294         slider on the click.
8295
8296 2001-06-03  Havoc Pennington  <hp@pobox.com>
8297
8298         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
8299         hscale/vscale details, so we can use it for scrollbar as well.
8300
8301         * tests/testgtk.c (reformat_value): honor digits from GtkScale
8302
8303         * gtk/gtkenums.h (GtkTroughType): Remove this enum
8304         (GtkScrollType): add START and END from GtkTroughType
8305
8306         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
8307         its x/y arguments
8308
8309         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
8310         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
8311         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
8312         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
8313         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
8314
8315         Notable changes in the process:
8316          
8317         - stepper_size style property is the height for vertical 
8318           ranges, width for horizontal; the other dimension matches
8319           the trough size
8320         - add ability to do NeXT-style steppers (and several other styles
8321           that don't make any sense)
8322         - added min_slider_length, fixed_slider_length properties to
8323           GtkScrollbar
8324         - cleaned some private (or at least useless) functions out of
8325           gtkscale.h    
8326         - moved bindings to GtkScale from subclasses, even arrow keys,
8327           since blind users don't know scale orientation.
8328         - change move_slider action signal to use new GtkScrollType,
8329           remove GtkTroughType argument
8330         - digits rounds the values a range will input to the given 
8331           number of decimals, but will not try to force adjustment 
8332           values set by other controllers. That is, we no longer
8333           modify adjustment->value inside a value_changed handler.
8334         - added getters for GtkScale setters
8335         - middle-click begins a slider drag
8336         
8337 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
8338
8339         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
8340         getting the focus code to work.
8341         (gtk_tree_view_class_init): Add a bunch of keybindings.
8342
8343         * gtk/gtktreeviewcolumn.c
8344         (gtk_tree_view_column_set_cell_data_func):
8345         s/GtkCellDataFunc/GtkTreeCellDataFunc.
8346         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
8347         of "properties_changed" to help justify the death of the latter
8348         signal. (-:
8349
8350         * tests/testtreefocus.c (main): Let some columns be focussable to
8351         test focus better.
8352
8353 2001-06-01  Havoc Pennington  <hp@redhat.com>
8354
8355         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
8356         
8357         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
8358         overwrite in overwrite mode if we already deleted the selection
8359         and replaced it with new text.  
8360
8361         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
8362         selection to an empty range, clear the clipboard if we owned it.
8363         (gtk_label_set_selectable): give up selection if we become
8364         unselectable.
8365         (gtk_label_state_changed): override state changed to unselect text
8366         when insensitive
8367         (get_text_callback): add paranoia check that indexes aren't
8368         outside of label->text
8369         (gtk_label_select_region): make -1 for start_offset mean "end of
8370         label," for consistency with GtkEditable
8371
8372         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
8373         GTK_DIALOG_NO_SEPARATOR flag
8374
8375 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
8376
8377         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
8378         notifications on non-existant "enable_arrow_keys".
8379         (#53753, Skip Montanaro)
8380
8381 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
8382
8383         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
8384         GDK_TYPE_RECTANGLE.
8385
8386         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
8387         of allocation argument be GDK_TYPE_RECTANGLE.
8388
8389 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
8390
8391         * gtk/gtkoptionmenu.c: Account for the fact that the border
8392         width is _outside_ the window. (Fixes #54585, bug found
8393         by Bastien Nocera.)
8394
8395 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
8396
8397         * gtk/gtksettings.c (gtk_settings_get_property): Validate
8398         value from GDK settings against parameter spec.
8399
8400         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
8401         to temporary values and use g_value_transform(), since
8402         thinking that GValue was going to be easy or efficient
8403         to use was, of course, a mistake.
8404
8405         * gtk/gtksettings.c: Add cursor blink setting.
8406         
8407         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
8408
8409         * gtk/gtkentry.c: Add cursor blinking.
8410
8411         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
8412         cursor blink global settings.
8413
8414         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
8415         for :text_position in places where it is missing.
8416
8417 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
8418
8419         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
8420
8421 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
8422
8423         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
8424         not pkg-config. (#51032)
8425
8426         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
8427         (fixes #51952, James Henstridge)
8428         
8429 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
8430
8431         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
8432         Rename to the more correct gtk-go-up.
8433
8434         * gtk/stock-icons/stock_menu_sort_ascending.png:
8435         Added new file.
8436         
8437         * gtk/stock-icons/stock_menu_sort_descending.png:
8438         Changed to show descending instead of ascending.
8439
8440         * gtk/gtkiconfactory.c:
8441         Added menu size icon to sort ascending.
8442
8443         * gtk/stock-icons/Makefile.am:
8444         Added stock_menu_sort_ascending.png.
8445         
8446         * gtk/gtkseparatormenuitem.c:
8447         Use correct typenames.
8448
8449 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
8450
8451         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
8452         gulong as in GSignal.
8453
8454 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
8455
8456         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
8457         instances of GtkCellRenderer in code (all but dnd icon code).
8458         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
8459         there, and I can do multiple Cells per column.
8460
8461         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
8462
8463         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
8464         when model was unreffed prior to removing the row reference.
8465
8466 2001-05-25  Havoc Pennington  <hp@redhat.com>
8467
8468         * gtk/gtkiconfactory.c: fix so that default icons are created if 
8469         you call gtk_stock_list_ids()
8470
8471         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
8472         in list
8473
8474 2001-05-25  Havoc Pennington  <hp@redhat.com>
8475
8476         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
8477         set can render without falling back to missing image icon
8478
8479         * gtk/gtktextview.c (gtk_text_view_size_request): request full
8480         size of text, instead of random values
8481
8482         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
8483         size of tree view, instead of random values
8484
8485         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
8486         image in an appropriate size
8487
8488         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
8489         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
8490
8491         Throughout: fix GTK_STOCK_BUTTON_ instances
8492         
8493         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
8494         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
8495         Add a bunch of new stock items/icons
8496
8497         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
8498         new function, convenience for inserting columns with a data func
8499
8500         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
8501         (_gtk_icon_factory_list_ids): use list of all factories to
8502         generate a list of all known IDs
8503
8504         * gtk/gtkstock.c (gtk_stock_list_ids): replace
8505         gtk_stock_list_items() with a function that returns all IDs known
8506         including those for GtkIconFactory.
8507
8508 2001-05-25  Hans Breuer  <hans@breuer.org>
8509
8510         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
8511         work -> check boxes and radio buttons are drawn now, even on win9x.
8512         Improved line settings a bit, still no clue how to get really dotted
8513         lines on win9x, on NT it's PS_ALTERNATE.
8514
8515         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
8516         GDK_HINT_MIN_SIZE as well
8517
8518         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
8519
8520         * gtk/gtk.def : updated
8521
8522         * gtk/gtktreeprivate.h : change column_drop_func to be a function
8523         pointer not a function pointer pointer
8524
8525         * tests/testdnd.c : include <stdlib.h> for putenv prototype
8526
8527         * tests/testsocket.c : made it compile on win32 again
8528
8529         * tests/makefile.msc : one more test-app uses prop-editor.obj
8530
8531 2001-05-22  Havoc Pennington  <hp@pobox.com>
8532
8533         * gtk/gtkbin.c (gtk_bin_get_child): New function
8534
8535 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
8536
8537         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
8538         to ignore when doing compose processing.
8539
8540 2001-05-22  Joe Shaw  <joe@ximian.com>
8541
8542         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
8543         Simplify as suggested by Havoc. Just get the last iter and work
8544         backward to the tag instead of getting a line and working back from
8545         there. Fixes passing in an invalid offset to
8546         iter_init_from_byte_offset().
8547
8548 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
8549
8550         * gtk/gtktreeview*.h: 
8551         * gtk/gtkcell*.h:
8552         * gtk/gtk*store.h:
8553         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
8554         macros to all objects.
8555
8556 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
8557
8558         * gtk/gtkcellrenderertext.c
8559         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
8560         with very large (TM) amounts of text.  May be moved to
8561         GtkCellRenderer in the future, though I'm not sure it wants to be
8562         this accessible.
8563
8564         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
8565         More sanity brought to this class.  I like it.
8566
8567         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
8568         case.  Kids, don't try this at home.
8569
8570         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
8571         convenience function.
8572
8573         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
8574
8575 2001-05-21  Alexander Larsson  <alexl@redhat.com>
8576
8577         * gtk/gtkfontsel.c:
8578         Added properties. Based on patch by Lee Mallabone.
8579
8580         * gtk/gtkruler.c:
8581         * gtk/gtkhruler.c:
8582         * gtk/gtkvruler.c:
8583         * gtk/gtktext.c:
8584         * gtk/gtktextview.c:
8585         Converted GtkArg to GParam. Based on patches by John Margaglione.
8586
8587         * tests/Makefile.am:
8588         * tests/testtext.c:
8589         Add a property editor to testtext.
8590         
8591 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
8592
8593         * gtk/gtk{h,v,}paned.c: Only show the separator if 
8594
8595         * configure.in: Fixed reversed conditional causing all image
8596         libraries to be linked in.
8597
8598 2001-05-21  Joe Shaw  <joe@ximian.com>
8599
8600         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
8601         that top_y needs to be >= 0.
8602
8603 2001-05-11  Havoc Pennington  <hp@pobox.com>
8604         
8605         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
8606         losing connection to the X server.
8607
8608 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
8609
8610         * configure.in: Start checks for X from pangox/pangoxft
8611         CFLAGS to avoid duplicate libraries.
8612
8613         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
8614
8615         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
8616         to include gobject.
8617         
8618 2001-05-18  Alexander Larsson  <alexl@redhat.com>
8619
8620         * gtk/gtkspinbutton.c:
8621         Convert GtkArgs to GParams. Based on patch by John Margaglione.
8622         Also do size request reasonable for MAXDOUBLE. Previously it printed
8623         the limits to a buffer and overran it. Instead do it using log10() and
8624         limit the width to 10 digits.
8625         
8626         * gtk/gtkwidget.c (gtk_widget_get_property):
8627         Correctly handle setting the parent property to NULL.
8628
8629 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
8630
8631         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
8632         style attributes even if the widget isn't realized.
8633
8634         * demos/gtk-demo/main.c: Use a slightly smaller font.
8635
8636 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
8637
8638         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
8639         This is something that only a widget writer would ever want
8640         to change.
8641
8642         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
8643         gtk_signal_emit_by_name().
8644
8645         * gtk/gtkviewport.c: Fix some warnings.
8646
8647         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
8648         allowing the requisitions of multiple widgets to be grouped
8649         together.
8650
8651         * tests/testgtk.c: Add GtkSizeGroup test
8652
8653         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
8654
8655         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
8656         warnings.
8657
8658         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
8659
8660 2001-04-28  Martin Baulig  <baulig@suse.de>
8661
8662         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
8663         to gtk_image_menu_item_set_icon() and made it work if there's already
8664         an image.
8665         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
8666         (gtk_image_menu_item_new_with_label): New function.
8667
8668 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
8669
8670         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
8671         highlighting code!!!!  The result is okay so long as you don't try
8672         to stress it.  It also highlights a bug in the TextView so it's in
8673         an unproportional font right now until it's fixed.
8674
8675         *demos/gtk-demo/*.c: Clean up code a bit to make it
8676         ugly-parser(TM) friendly. (-:
8677
8678 2001-05-17  Joe Shaw  <joe@ximian.com>
8679
8680         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
8681         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
8682         if it is only partially onscreen.
8683
8684 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
8685
8686         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
8687         not by characters.
8688
8689         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
8690         are not zero or one; that is, when graphemes of multiple characters
8691         are involved.
8692
8693         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
8694         FIXME.
8695
8696 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
8697         
8698         * gtk/gtkbbox.c:
8699         Add properties, based on patch by Lee Mallabone.
8700
8701         * gtk/gtknotebook.c:
8702         * gtk/gtktoolbar.c:
8703         Convert from GtkArg to GParam, based on patch by John Margaglione.
8704         
8705         * gtk/gtkhscale.c:
8706         * gtk/gtkvscale.c:
8707         * gtk/gtkhscrollbar.c:
8708         * gtk/gtkvscrollbar.c:
8709         * gtk/gtkrange.c:
8710         Move adjustment property to GtkRange.
8711
8712         * gtk/gtklabel.c:
8713         Setup mnemonics on property changes
8714
8715         * gtk/gtkwidget.c (gtk_widget_get_property):
8716         GdkExtensionMode is an enum, not a flag. Set it with
8717         g_value_set_enum ().
8718
8719         * tests/prop-editor.c:
8720         Better propery editor.
8721
8722         * tests/testgtk.c:
8723         Add new property test. Pass zero to the property editor to
8724         get properties from all derived types.
8725         
8726 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
8727
8728         * autogen.sh (have_automake): Require libtool-1.4,
8729         automake-1.4p1.
8730
8731         * acinclude.m4: Remove libtool macros.
8732
8733         * gdk-pixbuf/Makefile.am: Add dependencies to loade
8734         modules.
8735
8736         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
8737         for libgdk.
8738
8739         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
8740         libgdk.la for libgtk.
8741
8742         * modules/input/Makefile.am: Make modules have full
8743         dependencies.
8744
8745 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
8746
8747         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
8748         #54699 where paths weren't being checked for correctness.
8749
8750 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
8751
8752         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
8753         in any order you wan, whether or not the column is added to the
8754         tree, or the tree is realized.  Yay!
8755
8756         * gtk/gtktreeviewcolumn.c
8757         (gtk_tree_view_column_setup_sort_column_id_callback): handle
8758         sorting columns a lot saner
8759
8760         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
8761         new function to actually set wether or not a column is
8762         reorderable.
8763
8764         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
8765         if we have 'em.
8766
8767         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
8768         Fix nasty bug where we were showing the button just before
8769         realizing it.  As a result, the parent window was
8770         tree_view->window instead of tree_view->priv->header_window.
8771
8772         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
8773         to let you easily reorder a list or tree.
8774
8775 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
8776
8777         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
8778         from args to properties.
8779
8780 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
8781
8782         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
8783         from args to properties. (#51957)
8784
8785         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
8786         calls to after ->set_property call.
8787
8788 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
8789
8790         * tests/prop-editor.c: Block against redundant changes.
8791
8792         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
8793         properties.
8794
8795 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
8796
8797         * gdk/gdkpixmap.h: Remove creative formatting.
8798
8799 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
8800
8801         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
8802         property API. (#51669)
8803
8804         * gtk/gtkscale.c: Patch from John Margaglione converting to
8805         property API. (#51891)
8806
8807         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
8808         to property API. (#50985)
8809
8810 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
8811
8812         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
8813         buffering state across expose event, so we still call end_paint().
8814
8815 2001-05-11  Alexander Larsson  <alexl@redhat.com>
8816
8817         * gtk/gtkhsv.c (paint_triangle):
8818         Expose the ring in the triangle at the correct place when
8819         exposing just a part of the triangle.
8820
8821         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
8822         Return FALSE, or window focusing will not work.
8823
8824 2001-05-11  Havoc Pennington  <hp@pobox.com>
8825
8826         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
8827         #54144
8828
8829         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
8830         bug #54330
8831
8832 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
8833
8834         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
8835         propagate exposes to NULL child.
8836
8837         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
8838         against not having one of the scrollbars.
8839
8840         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
8841         we don't keep a mnemonic window if we have no mnemonic installed.
8842
8843 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
8844
8845         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
8846         it has the _important_ side effect of initializing a class.
8847
8848 2001-05-10  Alexander Larsson  <alexl@redhat.com>
8849
8850         * gdk/linux-fb/gdkprivate-fb.h:
8851         Make sure you can compile out the implementation/wrapper assert
8852         macros.
8853
8854         * gdk/linux-fb/gdkdrawable-fb2.c:
8855         Check implementation/wrappers, initialize type for pixmap dummys.
8856
8857         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
8858         Hide the cursor if reading from the screen.
8859
8860         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
8861         Fix sign bug in tiling code.
8862
8863         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
8864         Handle background pixmaps.
8865
8866 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
8867
8868         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
8869         function to let user control where columns are dragged.
8870
8871         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
8872         Escape is pressed.
8873
8874 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
8875
8876         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
8877         "columns_changed" signal.
8878         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
8879         motion code to draw arrows to the side if indicator is outside the
8880         widget.
8881         (gtk_tree_view_map_expanded_rows): Implement.
8882
8883 2001-05-07  Alexander Larsson  <alexl@redhat.com>
8884
8885         * demos/testpixbuf-save.c: 
8886         * demos/testpixbuf-drawable.c:
8887         Include gdkfb.h on linux-fb.
8888
8889 2001-05-07  Alexander Larsson  <alexl@redhat.com>
8890
8891         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
8892         New function for getting toplevel window at position.
8893         (gdk_drag_find_window): Use get_toplevel_window () instead
8894         of gdk_window_get_pointer(). (gdk_drag_status): Use
8895         correct context for getting window.
8896
8897         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
8898         g_strdup the atom name.
8899
8900         * gdk/linux-fb/gdkwindow-fb.c:
8901         Costmetic fix.
8902
8903         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
8904         Add code for changing cursor on linux-fb backend (same as
8905         win32).
8906
8907 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
8908
8909         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
8910         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
8911         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
8912         report was not for the development branch of GTK+, but it applies
8913         anyways).
8914
8915 2001-05-04  Havoc Pennington  <hp@redhat.com>
8916
8917         * configure.in: fix some shell typos
8918
8919         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
8920
8921         * gtk/gtkimage.c: handle animations
8922
8923         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
8924         border_width * 2, not just border_width
8925
8926         * gtk/gtkscale.c: add "format_value" signal to allow people
8927         to override the way values are drawn.
8928         (gtk_scale_get_value_size): fix width/height mistake,
8929         and compute size from actual displayed text, not 
8930         from made-up text.
8931
8932         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
8933         signal registration
8934
8935         * tests/testtext.c: Add "Remove all tags" menu item for testing
8936
8937         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
8938
8939         * demos/gtk-demo/main.c (main): add hack so we can find modules
8940         without installing gtk
8941
8942         * demos/gtk-demo/textview.c (insert_text): demo font scaling
8943
8944         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
8945         factor)
8946         (gtk_cell_renderer_text_set_property): remove some bogus
8947         g_object_notify
8948
8949         * gtk/gtktexttag.c: add "scale" property which is a font scaling
8950         factor
8951
8952         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
8953         to layout
8954
8955         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
8956         gtk_text_iter_is_first
8957
8958 2001-01-06  Hans Breuer  <hans@breuer.org>
8959
8960         * gdk/gdk.def : updated exports
8961
8962         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
8963         gdk won't compile anymore
8964  
8965         * gdk/win32/gdkevents-win32.c : initialize ret_val when
8966         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
8967         Improved gdk_flush () to not only do pending drawing operations
8968         but also process all currently pending events. This should make
8969         the behaviour more similar to the X11 version.  
8970
8971         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
8972         option needs to be set even if there is no GDK_GC_BACKGROUND.
8973         (gdk_win32_hdc_get) : use predraw_set_background () independent
8974         of value_mask. This allows to draw dashed lines leaving the original
8975         background intact.
8976
8977         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
8978         after processing, because we can't reuse it as the X11 version does.
8979
8980         * gtk/gtk.def : updated exports
8981
8982         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
8983         would like to get rid of this file again, and use straight
8984         makefile.msc again, as the other Gtk+ subdirs do)
8985
8986         * test/makefile.msc (new file) : build the test apps here
8987
8988 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
8989
8990         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
8991         strike-through setting
8992         (gdk_draw_layout_line_with_colors): Render strike-through
8993
8994 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
8995
8996         * Release 1.3.5
8997
8998         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
8999
9000         * NEWS: Updated
9001
9002         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
9003         Makefile breakage.
9004
9005 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
9006
9007         * demos/gtk-demo/images.c (progressive_timeout): Fix
9008         typo in filename.
9009
9010         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
9011         out FIXME warning; just too annoying.
9012
9013 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
9014
9015         * gdk/linux-fb/gdkcolor-fb.c:
9016         Better error messages.
9017
9018         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
9019         Initialize abs_x and abs_y.
9020         
9021         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
9022         Correct handling of stipple offset.
9023
9024         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
9025         Treat directcolor framebuffers as truecolor.
9026         
9027 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
9028
9029         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
9030         dependency on Atk for accessibility support.
9031
9032         * configure.in **/Makefile.am: Major reworking of substituted
9033         variables for CFLAGS/LIBS to make a lot more sane and 
9034         keep the the compile/link lines a bit shorter.
9035
9036         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
9037
9038 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
9039
9040         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
9041         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
9042         use _gtk_boolean_handled_accumulator.
9043
9044 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
9045
9046         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
9047         to fix things so clicking inside selection leaves cursor
9048         at point where clicked. (#50324)
9049
9050         * gtk/gtksettings.c (gtk_settings_class_init): Restore
9051         sane value for default double click time.
9052
9053         * tests/testtext.c (test_init): Really path to input modules.
9054
9055 2001-05-03  Sven Neumann  <sven@convergence.de>
9056
9057         * demos/testpixbuf-save.c: include target-specific headers as
9058         done in testpixbuf-drawable.c
9059
9060 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
9061
9062         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
9063         new_text_length appropriately when we run into the 
9064         size limit for the entry. (#53445, reported by Jeff Franks)
9065
9066         * tests/testgtk.c (create_entry): Remove most of the
9067         property toggle buttons. Replace with a "Props" button
9068         that brings up a property editor.
9069
9070         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
9071         Split the property editor code out for reuse, improve.
9072
9073 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
9074
9075         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
9076         trap errors around calls to XSetInputFocus since we have
9077         no way of knowing reliably whether we are viewable or
9078         not. (#53947)
9079
9080 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
9081
9082         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
9083         fix bug in dropping columns.  Moving columns now basically works
9084         modula some fine tuning.
9085
9086 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
9087
9088         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
9089         autoscroll support.  It mostly works, but could use some fine
9090         tuning.
9091         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
9092         Actually move the column.
9093
9094 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
9095
9096         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
9097           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
9098           New default theme! A slighly improved version of the 2.0 Raleigh
9099           theme, with Windows-esque focus/drawing default. 
9100           (GtkWidget::interior_focus defaults to TRUE.)
9101
9102         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
9103
9104 2001-04-30  Havoc Pennington  <hp@pobox.com>
9105
9106         * tests/testtext.c (line_numbers_expose): fix to work with
9107         gtk_paint_layout change
9108
9109 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
9110
9111         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
9112           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
9113           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
9114           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
9115
9116         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
9117           with GtkWidget::interior_focus = TRUE better.
9118
9119         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
9120         ::default_outside_border for more flexibility.
9121
9122         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
9123         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
9124         change that had to be made with g_object_get.
9125
9126 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
9127
9128         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
9129         (gtk_tree_view_move_column_after): Clean up interface. 
9130
9131 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
9132
9133         * gtk/gtkpacker.h:
9134         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
9135          to gtkenum.h.
9136
9137         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
9138         handled in switch).
9139
9140         * gtk/Makefile.am:
9141         (gtk.defs): generate enum portions with  glib-mkenums.
9142         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
9143         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
9144         
9145         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
9146         addition.
9147
9148         * docs/Changes-2.0.txt: keep a note on signal handlers now
9149         not getting emitted during the emission they were connected within.
9150
9151 2001-04-28  Havoc Pennington  <hp@pobox.com>
9152
9153         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
9154
9155 2001-04-24  Havoc Pennington  <hp@redhat.com>
9156
9157         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
9158         (gtk_text_layout_move_iter_to_next_line): fix these two for
9159         invisible text, lots of other stuff still hosed.
9160
9161         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
9162         new function, replaces the get/set palette stuff. This function 
9163         is intended for use by libgnomeui which should set the hook to a
9164         thing which sets the palette in GConf, and we need the
9165         GConf-to-xsettings proxy which will result in the change being
9166         propagated back to the GTK app.
9167
9168         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
9169         about unusable signals that it may be because the signal has 
9170         parameters.
9171
9172         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
9173         style, otherwise gtkrc.c won't know to create a new GtkStyle for
9174         it.
9175         (gtk_widget_modify_color_component): call
9176         gtk_widget_modify_style() so the rc style will get copied.
9177         (gtk_widget_modify_font): ditto
9178
9179         * gtk/gtkrc.c: make a couple variables static
9180
9181         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
9182         help button by default, since it does nothing
9183
9184         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
9185         around with UI
9186
9187         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
9188         so we can have tooltips
9189
9190         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
9191         can have tooltips
9192
9193         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
9194         GDK_ENABLE_BROKEN, because its memory behavior is completely
9195         hosed.
9196
9197         * gtk/gtknotebook.c: remove key press handler, replace with
9198         binding set, add numeric keypad support
9199
9200         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
9201
9202         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
9203
9204         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
9205         addition to plain Delete
9206
9207         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
9208         GDK_KP_Enter in addition to GDK_Return
9209
9210         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
9211         activate on entry instead of key press
9212         (gtk_font_selection_on_clist_key_press): get
9213         rid of this signal handler, not needed with new font sel.
9214
9215         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
9216         no-longer-needed emit_stop_by_name(), just return TRUE
9217
9218         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
9219         cruft, this widget is no longer focusable.
9220
9221         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
9222         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
9223         move_slider action signal, add binding set for vscale/hscale, in
9224         the process support numeric keypad
9225
9226         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
9227         make GDK_Return and GDK_KP_Enter activate the entry via 
9228         binding set, instead of hardcoded.
9229
9230 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
9231
9232         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
9233         code.  Some documentation added.
9234
9235 2001-04-27  Havoc Pennington  <hp@redhat.com>
9236
9237         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
9238
9239         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
9240
9241         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
9242         line/para separators
9243         (gtk_entry_create_layout): set single paragraph mode on the layout
9244
9245         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
9246         spacing between the image and label; instead, inside a button box 
9247         the button will get extra space that will go there, but if people 
9248         configure button box for 0 chubbiness, then there's no spacing.
9249
9250         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
9251         and min/max size style properties, so people can tune their
9252         chubbiness.
9253
9254         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
9255         functions
9256
9257         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
9258         space_style, and button_relief into style properties, remove
9259         functions for setting them
9260         
9261         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
9262         it back down
9263
9264         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
9265         types from gtk_widget_style_get
9266
9267         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
9268         with a style property.
9269
9270         * gdk/x11/gdkevents-x11.c: namespace the settings
9271
9272         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
9273
9274         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
9275         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
9276         be used. Also, translate doc strings for settings. Also, namespace
9277         the double-click-time property. Also, remove bell properties crap.
9278
9279 2001-04-27  Sven Neumann  <sven@gimp.org>
9280
9281         * Makefile.am: before creating links, check if pkg-config files
9282         exist for the default target. Otherwise link to the pkg-config files
9283         that got installed with this build.
9284
9285 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
9286
9287         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
9288         dragging code.  Revealed some (potential) GdkWindow bugs.
9289
9290         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
9291         _gdk_window_init_position to the end of reparent to fix the case
9292         of reparenting when new_x != old_x and new_y != old_y.
9293
9294 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
9295
9296         * gtk/gtkentry.c (strstr_len): Fix optimization that
9297         was correct for the use here, but completely incorrect
9298         in general.
9299
9300 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
9301
9302         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
9303         until patch adding gtk_window_set_size() is recommitted. 
9304
9305         * **Makefile.am configure.in gdk/x11/gdkim-11.c
9306           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
9307           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
9308           (#10784)
9309
9310 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
9311
9312         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
9313         window == NULL in a number of cases.
9314
9315         * tests/testdnd.c: Set module path for gdk-pixbuf.
9316
9317 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
9318
9319         * gtk/Makefile.am xembed.h: File containing #defines
9320         for XEMBED protocol.
9321
9322         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
9323
9324         - Change protocol from old plug/socket specific protocol
9325           to XEMBED draft
9326         - Various fixes to work with GTK+-2.0
9327
9328         Still quite a bit of work to do here to handle initiation
9329         from the socket side (as specified by XEMBED), to handle
9330         the more advanced features of XEMBED, and to figure out
9331         a good way to handle same-app embedding with less overhead
9332         than using full XEMBED.
9333
9334 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
9335
9336         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
9337         track of whether the toplevel has the focus; only send
9338         focus-in events to the focus widget when the window
9339         actually has the focus.
9340
9341 2001-04-25  Havoc Pennington  <hp@pobox.com>
9342
9343         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
9344         were still in the header
9345
9346 2001-04-24  Alexander Larsson  <alexl@redhat.com>
9347
9348         * gtk/gtkclist.[ch]:
9349         * gtk/gtkctree.c:
9350         When there is a row highlighted for D'n'D it must alse
9351         be painted hightlighted on exposes. Otherwise exposes from
9352         the icon being dragged will mess up the hightlight.
9353
9354         * gtk/gtkfontsel.c:
9355         Don't recenter selected font when exposing the font family
9356         clist. This means you can now actually scroll the font family
9357         list.
9358
9359         * gtk/gtknotebook.c:
9360         Fix focus movement on scrolling tabs that are placed on the left
9361         and right.
9362
9363 2001-04-21  Havoc Pennington  <hp@pobox.com>
9364
9365         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
9366         empty/invisible lines.
9367
9368         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
9369         (gtk_text_iter_set_visible_line_index): new functions to set
9370         indexes excluding invisible text
9371
9372         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
9373         index
9374
9375         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
9376         (gtk_text_iter_get_visible_line_offset): new functions to 
9377         get indexes excluding invisible text
9378
9379         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
9380         bunch of extra padding that served no purpose
9381
9382         * gtk/gtkdialog.c: Make all the spacings configurable via style
9383         properties, for chubbiness configuration in themes
9384
9385         * tests/testtext.c: fix path to the immodules.
9386         
9387 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
9388
9389         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
9390         got munched by #endif.
9391
9392         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
9393
9394         * gtk/gtktreeview.c: Refactored code to clean up a number of
9395         events.
9396
9397         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
9398         values to make consistent with other functions.  Spotted by Jeff
9399         Franks <jcf@tpg.com.au>.
9400
9401         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
9402         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
9403
9404 2001-04-23  Sven Neumann  <sven@gimp.org>
9405
9406         * gtk/Makefile.am
9407         * gtk/gtkplug.c
9408         * gtk/gtksocket.c: on request of Owen, reverted my last change 
9409         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
9410
9411 2001-04-23  Sven Neumann  <sven@gimp.org>
9412
9413         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
9414         compile for non-X11 targets again
9415
9416 2001-04-20  Alexander Larsson  <alexl@redhat.com>
9417
9418         * gtk/gtkcolorsel.[ch]:
9419         API Change. Take GdkColor arguments instead of gdouble *.
9420         Leave the old gtk_color_selection_set_color for compatibility,
9421         but marked deprecated.
9422         Do correct rounding when converting RGB <-> HSV.
9423         
9424         * gtk/gtkcolorseldialog.c:
9425         * tests/testgtk.c:
9426         Use new GtkColorSelection API.
9427
9428         * gtk/gtkhsv.c:
9429         Fix problem selecting colors in triangle when Hue is 330.
9430         Fix some black dots around the HSB triangle.
9431         
9432         * gtk/gtkfilesel.c:
9433         return FALSE from the focus_in_event handler to fix focus problems.
9434
9435 2001-04-18  Havoc Pennington  <hp@redhat.com>
9436
9437         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
9438         set, so keybindings are configurable    
9439         (gtk_window_activate_default): Change to activate the focus widget
9440         instead if there's a focus widget, to be consistent with the
9441         behavior that previously existed in key_press_event
9442
9443 2001-04-18  Havoc Pennington  <hp@redhat.com>
9444
9445         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
9446
9447 2001-04-18  Havoc Pennington  <hp@redhat.com>
9448
9449         Close bug #50615:
9450         
9451         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
9452         the layout
9453
9454         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
9455
9456         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
9457
9458         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
9459         
9460         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
9461         to blue for base, in addition to bg
9462         
9463 2001-04-18  Havoc Pennington  <hp@redhat.com>
9464
9465         * tests/testgtk.c (create_image): allow shrinking the image window
9466         to test that we clip to allocation.
9467
9468         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
9469         #9845
9470
9471         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
9472
9473 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
9474
9475         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
9476         mode on shm segments to 0600. We'll see who complains.
9477
9478         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
9479         _gdk_windowing_window_destroy() AFTER recursing through
9480         children.
9481
9482         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
9483         testsocket_child on X.
9484
9485         * tests/testsocket[_child].c: Fix uses of
9486         gtk_window_get_default_accel_group().
9487
9488         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
9489
9490         * gdk/gdkimage.c: (gdk_image_get):
9491         Deal with the possibility that XGetImage() might return NULL.
9492         Allocate the GdkImagePrivate structure only after XGetImage()
9493         succeeds in order not to dereference a NULL ximage pointer.  This
9494         prevents a core dump when XGetImage() fails - which is unlikely,
9495         but can happen due to race conditions accessing the geometries of
9496         drawables.  An x error will still be triggered, but the gdk image
9497         wrapper at least wont seg fault.
9498         
9499 2001-04-18  Havoc Pennington  <hp@redhat.com>
9500
9501         * gtk/gtkimage.c: fix to properly queue resizes when the image is
9502         set
9503
9504         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
9505         if the insertion point isn't editable
9506
9507         * demos/gtk-demo/images.c: Added a GtkImage demo
9508
9509         * demos/gtk-demo/drawingarea.c: drawing area demo
9510         
9511         * demos/gtk-demo/menus.c (create_menu): cleanups
9512
9513 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
9514
9515         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
9516           gdk/x11/gdkevents-x11.c: Introduce an extra child
9517         of toplevel windows that serves to hold the focus to
9518         avoid events being delivered to embedded windows.
9519
9520         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
9521         some extra variables to clean up code and reduce the
9522         number of casts.
9523
9524         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
9525         guint for 1 bit bit fields, not gboolean.
9526
9527 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
9528
9529         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
9530         not TRUE. (Fixes #52925)
9531
9532 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
9533
9534         * Released 1.3.4
9535
9536         * NEWS: Updated
9537
9538         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
9539         use GTK_TYPE_ENUM.
9540
9541 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
9542
9543         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
9544
9545         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
9546         names to compatibility #defines so docs work.
9547
9548         * gtk/gtkenums.h: Remove GtkMenuFactoryType
9549
9550         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
9551
9552         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
9553
9554         * tests/testgtkrc: No magenta cursors, please.
9555
9556         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
9557
9558         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
9559         
9560 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
9561
9562         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
9563         grabs, since they are no longer necessary.
9564
9565         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
9566         by signal_connect() and call gtk_button_pressed() rather
9567         than signal_connect_after().
9568
9569         * tests/testgtk.c: Restore radio menu items to combos 
9570         since they'll look OK with Raleigh, and it is easier
9571         than finishing the process of removing them that was
9572         started earlier.
9573
9574 2001-04-16  Hans Breuer  <hans@breuer.org>
9575
9576         * gdk/gdk.def :
9577         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
9578
9579         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
9580         we are interested in the functions return value not the function address
9581         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
9582
9583         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
9584
9585 2001-04-14  Hans Breuer  <hans@breuer.org>
9586
9587         * gdk/gdk.def :
9588         * gdk/makefile.msc : updated
9589
9590         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
9591         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
9592         (the testgtk::text backgound pixmap is drawn again)
9593         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
9594         Win32 Pango change
9595         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
9596
9597         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
9598         Not sure if the returned settings have the right unit, because I couldn't
9599         find any docs for the X version ...
9600
9601         * gtk/gtk.def :
9602         * gtk/makefile.msc.in : updated
9603
9604 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
9605
9606         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
9607         wording problems. (Compared to version from Johannes Stezenbach to
9608         check correctness.)
9609
9610 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
9611
9612         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
9613         this to compile.
9614
9615 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
9616
9617         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
9618         not pixbufpos.
9619
9620         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
9621
9622         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
9623         are unsigned insts, therefore use g_value_set_uint.
9624         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
9625
9626 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
9627
9628         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
9629
9630         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
9631         GTK_TYPE_STRING.
9632
9633         * gtk/gtktreeview.c: New functions to allow initial column
9634         dragging work.
9635
9636         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
9637
9638         * tests/testtreefocus.c: give dave some love.
9639
9640         * tests/testtreesort.c: Modify test to check really long samples.
9641
9642 2001-04-11  Alexander Larsson  <alexl@redhat.com>
9643
9644         * gtk-2.0.m4: Pass pkg-config options
9645         before the other args so it works even if
9646         POSIXLY_CORRECT is set.
9647
9648 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
9649
9650         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
9651         0, interface 0).
9652
9653 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
9654
9655         * gtk/gtkcalendar.c (gtk_calendar_button_press):
9656         check for action_func != NULL
9657
9658 2001-04-04  Sven Neumann  <sven@gimp.org>
9659
9660         * tests/testgtk.c (test_init): corrected path to gtk.immodules
9661
9662 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
9663
9664         * Released Gtk+-1.3.3.
9665
9666 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
9667
9668         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
9669
9670 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
9671
9672         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
9673         files to/from source dir. (if we don't stay in builddir, we
9674         can't reach make-inline-pixbuf.
9675
9676         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
9677         deps.
9678
9679         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
9680         ages 0).
9681
9682 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
9683
9684         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
9685         moved to the GtkTreeSortable interface.
9686
9687         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
9688         Make more efficient (fixes #50262).
9689
9690 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
9691
9692         * NEWS: Updated.
9693
9694         * configure.in: Remove support for uninstalled glib.
9695
9696         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
9697         so as not to stop emission.
9698
9699         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
9700         is no longer supported.
9701
9702         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
9703         into tests, change build order to build modules before
9704         gtk/.
9705
9706         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
9707         to here.
9708
9709 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
9710
9711         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
9712         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
9713         GPatternSpec. this is actually unlikely to cause breakage in
9714         third-party apps since except for gle, pretty much ever caller
9715         passes NULL here.
9716
9717         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
9718
9719         * *.c: use g_pattern_*() API.
9720
9721         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
9722
9723         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
9724         directions aren't passed in.
9725
9726         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
9727         functionality to be usable from gtkstyle.c as well, give precedence
9728         for conversion to user-supplied parsers.
9729         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
9730
9731         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
9732         _gtk_settings_parse_convert() for rcporperty value conversion.
9733
9734 2001-04-03  Alexander Larsson  <alexl@redhat.com>
9735
9736         * gdk/linux-fb/gdkevents-fb.c:
9737         Add empty gdk_setting_get().
9738
9739 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
9740
9741         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
9742         variable names.
9743         
9744         * gtk/makeenums.pl: touch this so enum files get remade.
9745
9746 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
9747
9748         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
9749         work again when not sorted.
9750
9751         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
9752         and "expand_row" signal, closing bug 52578.
9753
9754         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
9755         support.
9756
9757         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
9758         support.
9759
9760 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
9761
9762         * gdk/gdkevents.h: Add GdkEventSetting event for notification
9763         of changes to system settings, gdk_setting_get() to retrieve
9764         a single system setting.
9765
9766         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
9767         to the draft XSETTINGS mechanism.
9768
9769         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
9770         XSETTINGS.
9771
9772         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
9773         of GDK settings changes to the GtkSettings object.
9774
9775         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
9776         double-click-timeout property to GDK.
9777
9778         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
9779         Define GDK boxed types here.
9780
9781         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
9782         gdk/gdkenumtypes.[ch] for enum definitions.
9783
9784         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
9785         * gtk/gtk-boxed.defs: Comment out GDK types
9786         * gtk/gtktypeutils.h: Remove GDK types
9787         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
9788
9789 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
9790
9791         * Applied patch from Ron Steinke to add signal accumulators
9792         so that signals with the convention 'TRUE return means
9793         handled' stop emission on a TRUE return.
9794
9795         * gtk/gtkmain.[ch]: Add private accumulator 
9796         _gtk_boolean_handled_accumulator, used throughout GTK+.
9797         
9798         * gtk/gtkspinbutton.c: Add accumulator for ::output.
9799
9800         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
9801         
9802         * gtk/gtkwidget.c: Add accumulators for event signals,
9803         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
9804         for ::mnemonic-activate.
9805
9806         * gtk/gtkwindow.c: Add accumulator for ::frame_event
9807
9808 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
9809
9810         * gtk/gtkwidget.c: Add missing include.
9811
9812 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
9813
9814         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
9815         marshaller.
9816
9817         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
9818         "changed" signal to "range_changed".
9819
9820         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
9821         removing a tree from one model would remove all trees from that
9822         model.
9823         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
9824         changed signal instead.
9825
9826 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
9827
9828         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
9829         chaining up to parent impl, since we have a INPUT_ONLY
9830         window.
9831
9832         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
9833         foreground color for the cursor.
9834
9835 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
9836
9837         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
9838         param spec when caching property values, since we unref it
9839         later when we free the style.
9840
9841         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
9842         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
9843
9844 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
9845
9846         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
9847         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
9848         stupidity.
9849
9850 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
9851
9852         [ First pass at adding style properties. Still needs some definite
9853         fine-tuning. ]
9854
9855         * gtk/gtkbutton.c: Add ::default_spacing style property.
9856          
9857         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
9858         ::indicator_spacing style properties.
9859
9860         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
9861         style properties.
9862
9863         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
9864         rather than a normal property.
9865
9866         * gtk/gtkwidget.c: Add an ::interior_focus style property to
9867         draw focus inside buttons, in the Windows/Java Metal/etc. style.
9868
9869         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
9870         Honor ::interior_focus.
9871         
9872         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
9873         TRUE.
9874
9875         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
9876         Add ::slider_width, ::trough_border, ::stepper_size,
9877         ::stepper_spacing style properties.
9878
9879         * gtk/gtkscale.[ch] Add ::slider-length style property.
9880
9881 2001-04-02 Alexander Larsson   <alexl@redhat.com>
9882
9883         * gdk/linux-fb/gdkwindow-fb.c:
9884         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
9885         warnings that were spewed on startup.
9886
9887         * gtk/gtkwindow-decorate.c:
9888         gtk_window_reposition -> _gtk_window_reposition
9889
9890 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
9891
9892         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
9893         Add boxed type for GtkRequistion. Use it for ::size-request.
9894
9895         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
9896         Add a new GtkBorder structure useful for geometry properties
9897         for widgets. Add corresponding GTK_TYPE_BORDER.
9898         
9899         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
9900         Support automatic parser selection like
9901         gtk_settings_install_property_parser().
9902
9903         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
9904         functionality for use by gtk_widget_class_install_style_property.
9905         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
9906
9907 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
9908
9909         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
9910         g_param_spec_unichar(). 
9911
9912 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
9913
9914         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
9915         _NET window managers.
9916
9917         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
9918
9919 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
9920
9921         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
9922         bad needs to be nuked, not just deprecated.
9923
9924         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
9925         gtk_widget_popup().
9926
9927         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
9928         
9929         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
9930         widget.
9931         
9932         * docs/Changes-2.0.txt: updates.
9933         
9934 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
9935
9936         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
9937         for (i = 0; i < 100; i ++)
9938           g_print ("I will confirm it compile before committing\n");
9939
9940 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
9941
9942         * gtk/gtktreestore.c: Initial work on implementing the
9943         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
9944
9945 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
9946
9947         * gtk/gtkwidget.c: fixed a bunch of notifications, added
9948         reference counts around emissions where the widget is used afterwards.
9949         added freeze/thaws around multiple properties being notified.
9950         (_gtk_widget_get_aux_info): cleanups.
9951         
9952         * gtk/gtksettings.c (gtk_settings_install_property): provide
9953         default parsing functions for gdkcolor, enums and flags.
9954
9955         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
9956         applied by owen.
9957         backed out gtk_window_get_location(), gtk_window_set_location(),
9958         gtk_window_get_size() and gtk_window_set_size(), these
9959         have to be sorted out wrg x/y/width/height/default_with/default_height
9960         properties.
9961         kept a flag in GtkWindowGeometryInfo to handle user
9962         resetting default sizes.
9963         cleaned up ZVT comments.
9964         bunch of assorted bug fixes, notification fixes.
9965         (_gtk_window_reposition): make this a really internal function.
9966         
9967         * gtk/testgtk.c: fixups.
9968         
9969 2001-03-31  Hans Breuer  <hans@breuer.org>
9970
9971         * config.h.win32.in : disable USE_MMX for msvc build cause
9972         the assembler doesn't fit and is out of my scope. Disable
9973         USE_GMODULE for msvc build as wel. The right way to share
9974         binaries on win32 would be to use libtiff.dll etc. To reduce
9975         installation hassles IMO it's better to include all fileformats
9976         builtin to gdk-pixbuf
9977
9978         * gdk-pixbuf/makefile.msc : new file
9979
9980         * gdk/gdk.def : updated
9981
9982         * gdk/win32/gdkevents-win32.c : don't erase the background if
9983         .no_bg is set. It improves the scrolling (e.g. of testgtk main
9984         buttons
9985         * gdk/win32/gdkgeometry-win32.c : added comment about the above
9986
9987         * gdk/win32/gdkwindow-win32.c : added three new functions like
9988         the X version. Only one is implemented, because the other two
9989         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
9990         be default behaviour on win32 anyway ...
9991
9992         * gtk/gtk.def : updated
9993
9994         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
9995         from where it was built and add an additional rule to automagically
9996         build gtkmarshal.[hc]
9997
9998         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
9999         before array access for the current entry isn't finished
10000
10001         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
10002         use g_return_val_if_fail
10003
10004         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
10005         for the static array, but let the compiler calculate it. It
10006         makes me wonder if gcc isn't capable to catch bugs like this ...
10007
10008 2001-03-31  James Henstridge  <james@daa.com.au>
10009
10010         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
10011         constant "-1" in the aux info structure.
10012
10013 2001-03-30  Alexander Larsson  <alexl@redhat.com>
10014
10015         * gtk/gtkbutton.c (gtk_button_get_property):
10016         * gtk/gtklabel.c:
10017         Remove leaks.
10018         
10019         * gtk/gtkcontainer.c:
10020         * gtk/gtkhscale.c:
10021         * gtk/gtkhscrollbar.c:
10022         * gtk/gtklayout.c:
10023         * gtk/gtkmisc.c:
10024         * gtk/gtkprogress.c:
10025         * gtk/gtkprogressbar.c:
10026         * gtk/gtkrange.c:
10027         * gtk/gtktable.c:
10028         * gtk/gtkviewport.c:
10029         * gtk/gtkvscale.c:
10030         * gtk/gtkvscrollbar.c:
10031         * gtk/gtkwidget.c:
10032         Property patches, based on patches from John Margaglione and Lee Mallabone.
10033
10034 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
10035
10036         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
10037         adjustment. Cleaned redundant preconditions (spin != NULL). Added
10038         inline API function docs.
10039         (gtk_spin_button_new_with_range): New convenience constructor.
10040         (gtk_spin_button_set_increments): New adjustment helper.
10041         (gtk_spin_button_set_range): New adjustment helper.
10042
10043         * gtk/testgtk.c : added test of the new convenince constructor and
10044         value_changed signals.
10045
10046 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
10047
10048         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
10049         listen to the reorder signal.
10050
10051 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
10052
10053         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
10054         to get the aux info structure fo the widget.
10055
10056         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
10057         above function.
10058
10059         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
10060
10061         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
10062         to get the size of the window manager frame, basically the same
10063         code that gdk_window_get_root_origin() had
10064         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
10065
10066         * gtk/gtkwindow.c (gtk_window_set_default_size): use
10067         gdk_window_resize() if the window is realized and resizeable
10068
10069         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
10070         typo so that setting gravity works
10071
10072         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
10073         allocation if auto_shrink is on, even if the default size
10074         has not changed.
10075
10076         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
10077         g_return_if_fail
10078
10079 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
10080
10081         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
10082         reordering/sorting work.  Now pretty much works.
10083
10084         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
10085         reorder mostly work.  Still need to get the parity correct.
10086
10087         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
10088         signal, so I can listen for the sort_column_changed signal so I
10089         can change my "sort_indicator" property.  Cool.
10090
10091 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
10092
10093         [ Patch from Havoc Pennington, hp@redhat.com ]
10094
10095         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
10096         Add functions gdk_window_begin_resize_drag/begin_move_drag
10097         to start resizing or moving a toplevel window. This
10098         is done either using the _NET_WM_MOVERESIZE protocol,
10099         or, if that isn't present, by emulation.
10100
10101         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
10102         to export the above to GTK+-land.
10103
10104         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
10105         
10106         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
10107         Move this function into gdkwindow, since we need it
10108         when implementing fallback resizing.
10109
10110         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
10111         Fix typo when setting gravity.
10112
10113         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
10114         Add an optional (but on by default) resize grip for resizing 
10115         the parent window.
10116
10117 01-03-29  Alexander Larsson  <alexl@redhat.com>
10118
10119         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
10120         Don't return TRUE from the event handler, that blocks all
10121         event signals on the tooltip widget. Now you can press buttons
10122         in toolbars again.
10123
10124 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
10125
10126         * gtk/testtext.c (create_buffer): Add missing NULL on
10127         valist.
10128
10129         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
10130         c-n-p problem with INCONSISTENT property.
10131
10132         [ Patch from Havoc Pennington  <hp@redhat.com> ]
10133
10134         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
10135         hook.
10136
10137         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
10138         signal as a hook for extending the default popup menu
10139
10140         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10141         use radio menu items for the input method menuitems
10142
10143         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
10144         inserted unicode from Ctrl-Shift-hex input method
10145
10146         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
10147         validatation here, already done at GtkTextBuffer level.
10148
10149         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
10150         popup_menu run action signal and Shift+F10 and Menu keybindings.
10151
10152         * gtk/gtkentry.c: implement a default handler for popup_menu
10153
10154         * gtk/gtktextview.c: implement a default handler for popup_menu
10155
10156         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
10157         from a key event
10158         
10159         * gtk/gtklabel.c: remove "trailer" cruft
10160
10161 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
10162
10163         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
10164         handle reordering of trees.  Seems to mostly work w/ the exception
10165         of the parity flag.
10166
10167         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
10168         signal.
10169
10170 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
10171
10172         * gtk/gtkwidget.h: c++ fixes.
10173
10174 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
10175
10176         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
10177         memory.
10178
10179 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
10180
10181         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
10182         Nils Barth fixing event return values. (#51041)
10183
10184         * gtk/gtkwidget.c: Fix some return values for default
10185         functions.
10186
10187         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
10188         return values for trough_keys functions.
10189
10190         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
10191         value for add_accelerator (shoudl have been a void
10192         return.)
10193
10194         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
10195         Fix return type of EVENT.
10196
10197         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
10198         signal return a boolean.
10199
10200 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
10201
10202         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
10203         reordered signal.
10204
10205         * tests/testtreesort.c (main): fix spelling.
10206
10207 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
10208
10209         * gtk/gtkliststore.c: More work on implementing sortable
10210         interface.
10211
10212 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
10213
10214         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
10215         reference the widgets in the resulting list. (#11821)
10216         This makes this consistent with gtk_container_children.
10217
10218         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
10219         uses of gtk_window_list_toplevels.
10220
10221 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
10222
10223         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
10224         a virtual function to set whether the IM context should use 
10225         the preedit string. (#51922)
10226         
10227 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
10228
10229         * gdk/gdkpango.h: Remove stale FIXME comment.
10230
10231 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
10232
10233         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
10234         Fixed bug that returned NULL if a filename was selected.
10235
10236 2001-03-24  Havoc Pennington  <hp@pobox.com>
10237
10238         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
10239         to contain the word "theme"
10240
10241 2001-03-24  Havoc Pennington  <hp@pobox.com>
10242
10243         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
10244         slower but finer-grained
10245         (gtk_hsv_focus): get initial focus on the ring or triangle 
10246         according to tab direction
10247
10248         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
10249
10250 2001-03-23  Havoc Pennington  <hp@pobox.com>
10251
10252         * gtk/gtkhsv.c: make this somewhat key-navigable
10253
10254         * gtk/gtkfontsel.c: mnemonics
10255
10256         * gtk/gtkgamma.c: mnemonics
10257
10258         * gtk/gtkcolorsel.c: add mnemonics to labels
10259
10260 2001-03-22  Havoc Pennington  <hp@pobox.com>
10261
10262         Applied big patch from Seth Lytle to fix event handler return
10263         values, slightly modified.
10264
10265         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
10266         handled.
10267         (gtk_calendar_key_press): return TRUE for GDK_space triggers
10268         select_day
10269
10270         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
10271         (gtk_clist_button_release): return TRUE if handled
10272
10273         * gtk/gtkcolorsel.c (mouse_release):
10274         (palette_activate): 
10275         (palette_press): 
10276         (palette_new): 
10277         (mouse_press): 
10278         (get_screen_color): 
10279         fixed return type (void to gboolean), return TRUE,
10280         added GTK_SIGNAL_FUNC cast
10281
10282         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
10283         (void to gboolean), and return TRUE
10284         (gtk_combo_button_release): changed return value to TRUE after
10285         gtk_grab_add on combo->popwin
10286
10287         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
10288         collapse or expand
10289
10290         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
10291         button/motion
10292
10293         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
10294         press/release and motion that trigger act
10295
10296         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
10297
10298         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
10299         for GDK_Return
10300         
10301         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
10302         (gtk_list_button_release): return TRUE if selection
10303
10304         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
10305         press
10306
10307         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
10308         (gtk_menu_shell_button_release): chain parent_menu_shell retval
10309
10310         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
10311         nothing triggered
10312         (gtk_notebook_button_release): return TRUE if we do anything
10313
10314         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
10315         (gtk_spin_button_button_release): return TRUE or chained retval
10316
10317         * gtk/gtktext.c (gtk_text_button_press): 
10318         (gtk_text_button_release): return TRUE
10319         (gtk_text_key_press): remove redundant retval code
10320         
10321         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
10322         and sensitive
10323         (gtk_tree_item_subtree_button_click): changed type to gint, and return
10324         TRUE if sensitive
10325
10326         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
10327         return TRUE
10328
10329 2001-03-23  Havoc Pennington  <hp@redhat.com>
10330
10331         * gtk/testgtk.c: fix warnings
10332
10333         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
10334
10335         * gtk/gtktextview.c: fix warnings
10336
10337         * gtk/gtktext.c (find_cursor_at_line): fix warning
10338
10339         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
10340
10341         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
10342         of this function
10343
10344         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10345         fix warning
10346
10347         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
10348
10349         * gtk/gtkfontsel.c: fix warning
10350
10351         * gtk/gtkcolorsel.c: fix warnings
10352
10353 2001-03-23  Havoc Pennington  <hp@redhat.com>
10354
10355         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
10356
10357         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
10358
10359         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
10360         and deprecated gtk_check_menu_item_set_show_toggle().
10361         
10362         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
10363
10364         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
10365
10366         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
10367
10368 2001-03-23  Havoc Pennington  <hp@redhat.com>
10369
10370         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
10371         some docs
10372
10373 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
10374
10375         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
10376         this.
10377
10378         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
10379         set_cell to set_value
10380
10381         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
10382         set_cell to set_value
10383
10384 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
10385
10386         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10387         fix braino.
10388         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
10389         support.
10390
10391         * gtk/gtktreeview.c: Addition of initial sortable support.
10392
10393         * gtk/gtktreestore.c: Addition of initial sortable support.
10394
10395         * gtk/gtkliststore.c: Addition of initial sortable support.
10396
10397         * gtk/gtkmarshal.list: yet another marshaller.
10398
10399         * gtk/gtktreedatallist.[ch]: shared code between the store models
10400         for handling sorting headers.
10401
10402 2001-03-22  Havoc Pennington  <hp@redhat.com>
10403
10404         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
10405         (gtk_container_unset_focus_chain): Add ability to override the 
10406         focus chain for a container explicitly
10407
10408 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
10409
10410         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
10411         added PROP_MNEMONIC_WIDGET.
10412
10413         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
10414         (gtk_window_remove_mnemonic): 
10415         (gtk_window_add_mnemonic): fixed assertions.
10416         (gtk_window_activate_mnemonic): constrain modifier checks to those
10417         permitted by gtk_accelerator_get_default_mod_mask().
10418         got rid of gtk_window_get_default_accel_group().
10419
10420         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
10421         activatable widgets either by focussing or a warning.
10422         added a signal accumulator to ::activate_mnemonic which stops the
10423         emission once a handler returned TRUE.
10424
10425 2001-03-22  Havoc Pennington  <hp@pobox.com>
10426
10427         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
10428         the stock item label
10429
10430         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
10431
10432         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
10433
10434         * demos/gtk-demo/*.c: Add mnemonics all over the place
10435
10436         * gtk/gtklabel.h: mark parse_uline deprecated
10437
10438 2001-03-21  Alexander Larsson  <alexl@redhat.com>
10439
10440         * gtk/gtkitemfactory.[ch]:
10441         Add support for stock and normal imagemenuitems.
10442         
10443         * gtk/testgtk.c:
10444         Add some tests for mnemonics, stock toolbars, stock
10445         and image menuitems in itemfactory and gdk_window_scroll.
10446
10447 2001-03-21  Alexander Larsson  <alexl@redhat.com>
10448
10449         * gtk/gtkbutton.[ch]:
10450         * gtk/gtkdialog.c:
10451         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
10452         removed accel_group argument. Renamed gtk_button_new_accel() to
10453         gtk_button_new_with_mnemonic() and removed accel_group argument.
10454
10455         * gtk/gtkcheckbutton.[ch]:
10456         New function gtk_check_button_new_with_mnemonic().
10457
10458         * gtk/gtkentry.c:
10459         Override activate_mnemonic and just grab focus.
10460
10461         * gtk/gtkitemfactory.c:
10462         Don't add menu uline accel group, instead use mnemonics support.
10463
10464         * gtk/gtklabel.[ch]:
10465         New support for mnemonics.
10466
10467         * gtk/gtkmarshal.list:
10468         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
10469
10470         * gtk/gtkmenu.[c]:
10471         * gtkmenushell.c:
10472         Use mnemonics instead of accel groups for uline
10473         support in menu items.
10474         Removed gtk_menu_get_uline_accel_group() and
10475         gtk_menu_ensure_uline_accel_group().
10476
10477         * gtk/gtkmenuitem.c:
10478         Override activate_mnemonic to handle switching between
10479         menu items if there are collisions.
10480         
10481         * gtk/gtknotebook.c:
10482         Connect to activate_mnemonic on the tab_label, so that
10483         activating it switches to that notebook page.
10484
10485         * gtk/gtkwidget.[ch]:
10486         Add activate_mnemonic signal. New function
10487         gtk_widget_activate_mnemonic() to emit it.
10488         Default implementation does activate/grab_focus.
10489
10490         * gtk/gtkwindow.[ch]:
10491         Add support for mnemonics in windows.
10492         New functions:
10493         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
10494         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
10495
10496         * gtk/testgtk.c:
10497         Update to function name changes.
10498         
10499 2001-03-21  Alexander Larsson  <alexl@redhat.com>
10500
10501         * gtk/gtkimagemenuitem.[c]:
10502         Add gtk_image_menu_item_new_from_stock()
10503
10504 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
10505
10506         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10507         Fix buglet in meeting.
10508
10509 2001-03-19  Havoc Pennington  <hp@redhat.com>
10510
10511         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
10512         add a bunch of accessor functions. This is because we have
10513         reasonable expectations of extending what fields it contains in
10514         the future.
10515
10516         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
10517         changes
10518
10519         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
10520         GtkIconSource   
10521
10522 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
10523
10524         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
10525         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
10526
10527         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
10528           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
10529           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
10530           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
10531         Change float to double everywhere with the exception of 0<->1.0 alignment
10532         and GtkCurve.
10533
10534 2001-03-19  Tor Lillqvist  <tml@iki.fi>
10535
10536         * gdk/win32/gdkdrawable-win32.c
10537         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
10538         output.
10539
10540         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
10541         gdkwin32.h.
10542
10543 2001-03-18  Tor Lillqvist  <tml@iki.fi>
10544
10545         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
10546         print_event_state, print_event): Use preprocessor macro to make
10547         code more compact. Print also GDK_WINDOW_STATE events.
10548         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
10549         
10550         * gtk/gtk.def
10551         * gtk/makefile.mingw.in: Update.
10552
10553         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
10554         to catch also Cygwin.
10555
10556 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
10557
10558         * gtk/gtkspinbutton.[hc]: added rc-style argument
10559         GtkSpinButton::shadow_type.
10560         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
10561         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
10562         rc-style settings.
10563
10564         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
10565
10566         * gtk/gtkwidget.c: quark cleanups.
10567
10568         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
10569         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
10570         to create_rc_style() (we don't do cloning in standard OO sense).
10571         added per rc style properties.
10572         
10573         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
10574         property values and for caching those. some cleanups.
10575         
10576         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
10577         
10578         * gtk/gtksettings.[hc]: new file for global rc-file properties
10579         (at least currently, should get extended to support X properties
10580         and other communication mechanisms).
10581         
10582         * gtk/gtkwidget.[hc]: added style property support:
10583         (gtk_widget_class_install_style_property_parser): install style
10584         property pspec with parser function for rc-file values other
10585         than LONG, DOUBLE or STRING.
10586         (gtk_widget_class_install_style_property): same as above without
10587         parser (parsers are going to be needed quite infrequently).
10588         (gtk_widget_style_get_property): retrive style property value.
10589         (gtk_widget_style_get_valist): same as above with varargs support,
10590         has NOCOPY semantics.
10591         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
10592
10593 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
10594
10595         * demos/gtk-demo/main.c (row_activated_cb): modified to use
10596         "row_activated" signal.
10597
10598         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
10599         stupidity.  Lets actually pass in the row with this signal...
10600
10601 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
10602
10603         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
10604
10605         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
10606
10607         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
10608         everything into the ::destroy function, and freed a lot more.
10609
10610 2001-03-16  Havoc Pennington  <hp@redhat.com>
10611
10612         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
10613         instead of gint16, to avoid overflow issues, since sizes > 16-bit
10614         are now allowed.
10615
10616 2001-03-16  Havoc Pennington  <hp@redhat.com>
10617
10618         * Applied patch from Nils Barth (bug # 51041) to 
10619         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
10620         in various places.
10621
10622 2001-03-15  Havoc Pennington  <hp@redhat.com>
10623         
10624         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
10625         for properties to set on the tag.
10626
10627         * gtk/testtext.c: fixups to reflect create_tag change
10628         
10629         * gtk/gtktexttag.c (gtk_text_tag_set_property):
10630         background/foreground stipple are objects, not boxed.
10631
10632         * demos/gtk-demo/textview.c: intellihancing
10633
10634 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
10635
10636         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
10637         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
10638
10639 2001-03-16  Alexander Larsson  <alexl@redhat.com>
10640
10641         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
10642         Fix sign error with queued region translations.
10643
10644 2001-03-15  HideToshi Tajima  <tajima@happy>
10645
10646         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
10647         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
10648         * gtk/gtkentry.c (update_im_cursor_location): 
10649         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
10650         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
10651         set_cursor_pos to set_cursor_location in GtkInputContext class
10652
10653 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
10654
10655         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
10656         the location of the cell relative to its area.
10657         * gtk/gtkcell*: modified for above change
10658         * gtk/gtktreeview.c: modified for above change.
10659
10660 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
10661
10662         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
10663          (gtk_tree_view_finalize): actually unref the model.  Thanks to
10664         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
10665
10666 2001-03-14  Havoc Pennington  <hp@redhat.com>
10667
10668         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
10669         
10670         * gtk/gtk.h: remove gtkdata.h
10671
10672         * gtk/Makefile.am: remove gtkdata
10673         
10674         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
10675         not "disconnect" on the adjustments.
10676         
10677         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
10678         GtkData
10679
10680         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
10681         not GtkData
10682
10683         * configure.in: handle case where X render exists, but Pango lacks
10684         Xft support.
10685
10686 2001-03-15 Alexander Larsson  <alexl@redhat.com>
10687
10688         * gtk/gtktoolbar.[ch]:
10689         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
10690         to add stock items to toolbars.
10691
10692         * gtk/Makefile.am:
10693         Remove ../gdk/gdkim.h from gdk_headers.
10694
10695 2001-03-15  Sven Neumann  <sven@gimp.org>
10696
10697         * gdk/gdkim.h: removed
10698         
10699         * gdk/gdkprivate.h
10700         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
10701
10702 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
10703
10704         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
10705         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
10706         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
10707         set_cursor_pos() virtual method
10708
10709         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
10710         (gtk_im_context_xim_set_cursor_pos): add implementation for
10711         set_cursor_pos() method
10712
10713         * gtk/gtkentry.c (recompute_idle_func): set current cursor
10714         position to input methods
10715
10716 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
10717
10718         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
10719         code a lot.
10720
10721         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
10722         g_mem_chunk.
10723         (_gtk_tree_data_list_alloc): use g_mem_chunk.
10724         (_gtk_tree_data_list_node_to_value): Fix to switch on
10725         G_TYPE_FUNDAMENTAL.
10726         (_gtk_tree_data_list_value_to_node): Fix to switch on
10727         G_TYPE_FUNDAMENTAL.
10728         (_gtk_tree_data_list_node_copy): Fix to switch on
10729         G_TYPE_FUNDAMENTAL.
10730
10731 2001-03-12  Havoc Pennington  <hp@redhat.com>
10732
10733         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
10734         to convert to new property API. Also, change default_width and
10735         default_height get_property to return 0 as the flag value for
10736         "unset"; -1 is not a valid value for these fields.
10737
10738 2001-03-12  Havoc Pennington  <hp@redhat.com>
10739
10740         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
10741         enum with registration for icon sizes, instead of strings.
10742
10743         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
10744         gtkwidget.c: Fix to reflect GtkIconSize
10745         
10746 2001-03-12  Alexander Larsson  <alexl@redhat.com>
10747
10748         Make GtkFB compile and link.
10749         
10750         * gdk/linux-fb/gdkdrawable-fb2.c:
10751         window->mapped to GDK_WINDOW_IS_MAPPED(). 
10752         
10753         * gdk/linux-fb/gdkwindow-fb.c:
10754         window->mapped to GDK_WINDOW_IS_MAPPED(). 
10755         Added gdk_window_shape_combine_region.
10756         Added assorted placeholders for unimplemented new GdkWindow API calls.
10757
10758 2001-03-12  Alexander Larsson  <alexl@redhat.com>
10759
10760         * gtk/gtkfilesel.c:
10761         Add more test when converting filenames from/to utf-8.
10762         Don't allow entering text in the filename entry which isn't allowed in
10763         a filename. Just beep instead.
10764
10765 2001-03-12  Alexander Larsson  <alexl@redhat.com>
10766
10767         * gtk/gtkclist.c:
10768         Scroll using gdk_window_scroll(). Don't wait for exposes.
10769         Move the column headers in an order that makes them flash less.
10770
10771 2001-03-10  Hans Breuer  <hans@breuer.org>
10772
10773         * gdk/gdk.def : updated
10774
10775         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
10776         to offseting the clip_mask at the right place
10777
10778         * gdk/win32/gdkwindow-win32.c : don't create background brushes
10779         for all the gdkClasses, especially not for the input_only case.
10780         Otherwise flickering wont be avoidable, because we don't get
10781         WM_ERASEBKGND message for these windows.
10782
10783         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
10784         and fixed massive redraw problems apparently triggered by Alexanders 
10785         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
10786         but it seems to work quite well :-)
10787
10788         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
10789         prototype
10790
10791 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
10792
10793         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
10794         (gtk_list_store_set_cell): Fix a stupid typo.
10795
10796 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
10797
10798         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
10799         select_all not work if you're in SINGLE mode (it doesn't make that
10800         much sense, anyway.)
10801
10802         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
10803         handle types more sanely.
10804         (_gtk_tree_data_list_value_to_node): handle types more sanely.
10805         (_gtk_tree_data_list_node_copy): handle types more sanely.
10806
10807         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
10808         GValue better. Converts the type as well.
10809
10810         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
10811         GValue better. Converts the type as well.
10812
10813 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
10814
10815         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
10816         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
10817         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
10818         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
10819
10820         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
10821         gdk_im/gdk_ic.
10822
10823 2001-03-09  Hans Breuer  <hans@breuer.org>
10824
10825         * gdk/gdk.def : updated
10826
10827         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
10828         for their palette
10829
10830         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
10831         removing
10832
10833         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
10834         removing and implemented Havoc's GdkWindow state functions; 
10835         stick/unstick only as no-op, cause I don't know how to emulate 
10836         on win32 ...
10837
10838         * gtk/gtk.def : updated
10839
10840         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
10841
10842         * gtk/gtktypeutils.c : #include <string.h>
10843
10844         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
10845
10846 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
10847
10848         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
10849         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
10850         not a boxed.
10851
10852 2001-03-09  Alexander Larsson  <alexl@redhat.com>
10853
10854         * docs/Changes-2.0.txt:
10855         Document expose event->region change and that gtk_widget_event
10856         doesn't allow passing expose events.
10857
10858         * gdk/gdkevents.h:
10859         Add region to expose event.
10860         
10861         * gdk/gdkevents.c:
10862         Handle event->region in gdk_event_copy() and gdk_event_free().
10863
10864         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
10865         Generate expose_event->region when creating expose events.
10866
10867         * gdk/x11/gdkevents-x11.c:
10868         Generate expose events with regions when translating X events.
10869
10870         * gtk/gtkcontainer.[ch]:
10871         Default expose handler that propagates expose events to NO_WINDOW
10872         children. New function gtk_container_propagate_expose()
10873
10874         * gtk/gtkwidget.[ch]:
10875         Moved gtk_widget_event implementation to gtk_widget_event_internal.
10876         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
10877         expose events. New function gtk_widget_send_expose() to send expose
10878         events. New function gtk_widget_region_intersect() to calculate
10879         window/region intersections.
10880         
10881         * gtk/gtkmain.c (gtk_main_do_event):
10882         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
10883         Use gtk_widget_send_expose() to send expose events.
10884         
10885         * gtk/gtkbin.c:
10886         * gtk/gtkbox.c:
10887         * gtk/gtkfixed.c:
10888         * gtk/gtkimagemenuitem.c:
10889         * gtk/gtklist.c:
10890         * gtk/gtkpacker.c:
10891         * gtk/gtktable.c:
10892         * gtk/gtktree.c:
10893         Remove expose handler, using the default container implementation
10894         instead.
10895         
10896         * gtk/gtkbutton.c:
10897         * gtk/gtkcheckbutton.c:
10898         * gtk/gtkeventbox.c:
10899         * gtk/gtkfixed.c:
10900         * gtk/gtkhandlebox.c:
10901         * gtk/gtklayout.c:
10902         * gtk/gtklistitem.c:
10903         * gtk/gtkmenu.c:
10904         * gtk/gtkmenubar.c:
10905         * gtk/gtkmenuitem.c:
10906         * gtk/gtknotebook.c:
10907         * gtk/gtkoptionmenu.c:
10908         * gtk/gtkpaned.c:
10909         * gtk/gtkscrolledwindow.c:
10910         * gtk/gtktogglebutton.c:
10911         * gtk/gtktoolbar.c:
10912         * gtk/gtktreeitem.c:
10913         * gtk/gtkviewport.c:
10914         Chain expose handler to parent class handler. Use
10915         gtk_container_propagate_expose() to propagate exposes.
10916
10917         * gtk/gtkclist.c (check_exposures):
10918         * gtk/gtktext.c (process_exposes):
10919         Use gtk_widget_send_expose instead of gtk_widget_event.
10920
10921 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
10922
10923         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
10924
10925 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
10926
10927         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
10928         unref the nodes.   Fixes bug #50058.
10929
10930         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
10931         "::ref_iter" to "::ref_node".
10932         (gtk_tree_model_unref_node): change "::unref_iter" to
10933         "::unref_node". Fixes bug #50064.
10934
10935 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
10936
10937         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
10938         support for invisible cells.
10939          (gtk_tree_view_bin_expose): ditto
10940
10941 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
10942
10943         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
10944         on gobjects.
10945
10946         * tests/testtreefocus.c (main): New test file.
10947
10948         * tests/testtreeview.c: update to latest glib changes.
10949
10950         * tests/testtreecolumns.c: update to latest glib changes.
10951
10952 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
10953
10954         * gtk/testgtk.c: re-enabled event watcher emission hooks.
10955
10956 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
10957
10958         * *.c: added accumulator data argument to g_signal_newc()
10959         functions.
10960
10961         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
10962         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
10963         * gtk/treestoretest.c (make_window):
10964         s/g_signal_connect/g_signal_connectc/.
10965
10966         * gtk/gtktextbuffer.c: completed signal arg fixups,
10967         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
10968
10969 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
10970
10971         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
10972         G_CONST_RETURN.
10973
10974         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
10975         ::hierarchy-changed signal when a widget changes
10976         from anchored to unanchored or vice versa.
10977         (anchored means 
10978          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
10979         Use a private flag to keep track of this efficiently.
10980
10981 2001-03-07  Havoc Pennington  <hp@redhat.com>
10982
10983         * gtk/testgtk.c (create_spins): uglify so that size request gets
10984         tested.
10985
10986         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
10987         request on values for upper/lower, completes #6152
10988
10989 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
10990
10991         * Makefile.am: Remove gtk-config-2.0 again.
10992         (Grrrr, pkg-config. And stops make loops.)
10993
10994 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
10995
10996         * gtk/gtksignal.[hc]: removed old emission hook API.
10997         
10998         * docs/Changes-2.0.txt: fixed sections.
10999         
11000         * gtk/gtktextbuffer.c: signal arg fixups.
11001
11002 2001-03-07  Havoc Pennington  <hp@redhat.com>
11003
11004         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
11005
11006         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
11007         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
11008         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
11009         validation and the redraw which is higher priority than the
11010         validation.
11011
11012 2001-03-07  Havoc Pennington  <hp@redhat.com>
11013
11014         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
11015         (gtk_entry_set_property): remove trailer
11016
11017         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
11018         (gtk_entry_get_width_chars): new functions, to set size request to 
11019         a given number of characters
11020
11021         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
11022
11023         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
11024         (gtk_dialog_get_has_separator): new function
11025         (run_delete_handler): fix to not emit "response" signal
11026         because we already did in the delete event handler installed
11027         at dialog creation time.
11028         
11029         * gtk/gtkdialog.h: add a has_separator property,
11030         add GTK_DIALOG_NO_SEPARATOR flag
11031
11032 2001-03-07  Havoc Pennington  <hp@redhat.com>
11033
11034         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
11035         off decorations for a window.
11036
11037         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
11038         changes
11039
11040         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
11041         to get location of PangoLayout inside the label, closes #51198
11042
11043         * gtk/testgtk.c (create_bbox): fix up button box usage
11044
11045         * gtk/testcalendar.c (create_calendar): fix up button box usage
11046
11047         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
11048
11049         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
11050
11051         * gtk/gtkhbbox.h: deprecations
11052
11053         * gtk/gtkvbbox.h: deprecations
11054
11055         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
11056         emulate deprecated gtk_button_box_get_spacing
11057
11058         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
11059         the "set global default" functions
11060         (struct _GtkButtonBox): remove "spacing" field, use the one from 
11061         GtkBox base class
11062
11063         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
11064
11065         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
11066         render the icon, return the missing image icon.
11067
11068         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
11069         image icon if the load fails.   
11070
11071         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
11072         when no image is found; should be the Netscape "missing image"
11073         icon eventually but for now is a random image
11074
11075         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
11076         role for the session manager
11077
11078         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
11079
11080         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
11081         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
11082
11083         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
11084
11085 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
11086
11087         * gtk/*.c: marshaller fixes.
11088         
11089         * gtk/gtkmarshal.list: extreme cleanup.
11090
11091         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
11092         param spec for now.
11093
11094         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
11095         where appliable.
11096
11097         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
11098         special cased autogenerated boxed types from gtktypebuiltins_ids.c
11099         which are not reference counted:
11100         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
11101         PangoFontDescription, GtkTreeIter and GtkTreePath.
11102
11103 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
11104
11105         * gtk/gtktreeselection.h: 
11106         * gtk/gtktreemodel.c:
11107         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
11108         file should be included directly, and gobject/gmarshal.h
11109         as well as gtk/gtkmarshal.h even can't be included directly.
11110
11111         * Makefile.am: grr, install gtk-config-2.0.
11112
11113         * gtk/testgtk.c:
11114         * gtk/simple.c:
11115         * gtk/gtkmenu.c:
11116         * gtk/gtkitemfactory.c: use g_object_connect() instead of
11117         passing "*signal*::*" args to gtk_widget_set().
11118         
11119         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
11120         
11121         * gtk/*.c: removed trailer arg from property setters and getters.
11122         macro fixups.
11123
11124 2001-03-07  Alexander Larsson  <alexl@redhat.com>
11125
11126         * gtk/gtklabel.c (set_markup): Removed warning
11127
11128 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
11129
11130         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
11131         field to allow you to hide cell renderers.
11132
11133         * gtk/gtkcellrenderer.c: Add support for invisible cells.
11134
11135         * gtk/gtktreeview.c: Add support for invisible cells.
11136
11137 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
11138
11139         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
11140         Add "clicked" signal back to columns.
11141
11142         * ChangeLog: remove conflict markers.
11143
11144 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
11145
11146         * gtk/gtkbutton.c: Add animation of activation by, on 
11147         activate, pressing the button, and adding a timeout that 
11148         releases the button after 250ms or on key release and
11149         emits ::clicked. (#51501)
11150
11151         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
11152         action area, we connect to ::clicked instead of ::activate
11153         so the dialog stays up through the animation.
11154
11155 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
11156
11157         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
11158         check the ignore_enter flag for the menu shell that
11159         the item is actually a child of, not for attached
11160         submenus. (#51536)
11161
11162 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
11163
11164         * gtk/gtkmain.c (gtk_propagate_event): Only do special
11165         special key-press grab handling for widgets within
11166         GtkWindows. Otherwise, fall through to normal case.
11167
11168         This prevents key events being sent twice to GtkInvisible
11169         widgets, which can cause all sorts of mischief.
11170
11171 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
11172
11173         * gtk/gtkmain.c (gtk_propagate_event): When a grab
11174         widget is in effect, give the grab widget a first
11175         crack at KEY_PRESS/RELEASE events. (#424)
11176
11177 2001-03-06  James Henstridge  <james@daa.com.au>
11178
11179         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
11180         offset for the window_state_event to point at window_state_event
11181         rather than no_expose_event.
11182
11183 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
11184
11185         * gtk/gtkimmodule.h: fix busted /* comment */
11186
11187 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
11188
11189         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
11190         object properties.
11191
11192 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
11193
11194         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
11195         add object properties.
11196
11197         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
11198         to add object properties.
11199
11200         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
11201         object properties.
11202
11203         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
11204         add object properties.
11205
11206         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
11207         object properties.
11208
11209 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
11210
11211         * gtk/gtktreemodel.c: renamed "child_toggled" to
11212         "has_child_toggled".
11213
11214         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
11215         handle new signal name.
11216
11217         * gtk/gtktreestore.c: Updated to handle new signal name.
11218         * gtk/gtklisttore.c: Updated to handle new signal name.
11219         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
11220
11221 2001-03-05  Alexander Larsson  <alexl@redhat.com>
11222
11223         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
11224         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
11225
11226 2001-03-05  Michael Natterer  <mitch@gimp.org>
11227
11228         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
11229         pixbuf-engine coincidentially also failed to make one of it's
11230         parent_class pointers static, causing overwriting of GtkLabel's
11231         parent_class pointer in pixbuf_style_class_init().
11232         (Will commit the fix to the pixbuf-engine too).
11233
11234 2001-03-05  Alexander Larsson  <alexl@redhat.com>
11235
11236         * gdk/gdkwindow.h:
11237         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
11238         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
11239         gdk_window_set_icon_list for net wmspec functionality.
11240
11241         * gdk/x11/gdkwindow-x11.c:
11242         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
11243         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
11244         gdk_window_set_icon_list.
11245         Added gdk_wmspec_change_state helper function and used it in the code.
11246         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
11247
11248         * gtk/gtkdialog.c (gtk_dialog_init):
11249         Set GDK_WINDOW_TYPE_HINT_DIALOG.
11250
11251         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
11252         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
11253
11254         * gtk/gtkwindow.c:
11255         new function gtk_window_set_type_hint.
11256         On realize, set type hint and modal hint.
11257
11258         * gtk/gtkwindow.h:
11259         Added type_hint field and gtk_window_set_type_hint.
11260
11261 2001-03-05  Alexander Larsson  <alexl@redhat.com>
11262
11263         * gtk/gtklabel.[ch]:
11264         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
11265         New function gtk_label_get_accel_keyval () to get the underline accelerator
11266         of the label. Setting the label pattern overrides other attributes.
11267
11268 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
11269
11270         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
11271         Added missing initializers to gtk_rc_style_init().
11272
11273 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
11274
11275         * gtk/gtktextview.c: fixed bug #51097 about setting 
11276         gtk_text_view_set_border_window_size() if the widget is 
11277         already realized.
11278
11279 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
11280
11281         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
11282
11283         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
11284         comment. Won't do to have duplicated doc comments between
11285         the platform subdirs.
11286
11287 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
11288
11289         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
11290           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
11291
11292         Detectable auto-repeat - make a repeating key generate
11293         press/press/press/release instead of press/release pairs.
11294
11295         If we have Xkb and XkbSetDectableAutoRepeat supports
11296         that, we do it that way. Otherwise, when we get
11297         a release event, we check ahead with XPending to see
11298         if the next key is a KeyPress with the same keycode
11299         and timestamp. (Not 100% reliable, but pretty close.)
11300           
11301 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
11302         
11303         * gtk/gtkmain.c (gtk_propagate_event): Only do special
11304         special key-press grab handling for widgets within
11305         GtkWindows. Otherwise, fall through to normal case.
11306  
11307         This prevents key events being sent twice to GtkInvisible
11308         widgets, which can cause all sorts of mischief.
11309  
11310 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
11311  
11312         * gtk/gtkmain.c (gtk_propagate_event): When a grab
11313         widget is in effect, give the grab widget a first
11314         crack at KEY_PRESS/RELEASE events. (#424)
11315  
11316 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
11317
11318         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
11319         to extend the selection. (Roughly based on patch
11320         from Jay Cox, #50939)
11321
11322         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
11323         to properly handle previous GDK_BUTTON_PRESS. 
11324         (Patch from Jay Cox, #50938)
11325
11326         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
11327         '\0' back along with the deleted text. (#51148)
11328
11329 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
11330
11331         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
11332         the group when extracting it from the X keyboard event.
11333
11334         * modules/input/Makefile.am modules/input/imipa.c: 
11335         Simple module for entering IPA. (Do we need a 
11336         gtk-stupid-input-tricks CVS module?)
11337
11338 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
11339
11340         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
11341         const.
11342
11343         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
11344
11345         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
11346         is no focus widget for the dialog currently, grab the focus as well
11347         as the default.
11348
11349         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
11350         the action area's children to iterate through, not the
11351         dialog's children.
11352
11353 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
11354
11355         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
11356         Add plug-socket tests. (Won't work worth a darn until I commit
11357         the rest of the plug-socket changes, but no reason these
11358         can't go into CVS now.)
11359
11360 2001-03-02  Havoc Pennington  <hp@redhat.com>
11361
11362         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
11363         _gdk_region_get_xrectangles()
11364
11365         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
11366
11367         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
11368
11369         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
11370         function, contributed by Ron Steinke    
11371
11372         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
11373         gdk_net_wm_supports
11374
11375         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
11376         New function, contributed by Ron Steinke
11377
11378         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
11379         used to line up the text in the entry when using the entry for
11380         editable sheet cell hacks
11381
11382         * gtk/testgtk.c (create_entry): test the activate_default setting
11383         on GtkEntry
11384
11385         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
11386         cause the entry to activate the default button for a dialog when 
11387         activated
11388         (gtk_entry_get_activates_default): new function
11389
11390 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
11391
11392         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
11393         Hwang to move call to sync_selection() up a few lines
11394         to before the row list is modified, to fix crash when
11395         removing rows in the undo_selection list.
11396
11397         (Test case provided by Daniel Elstner:
11398
11399         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
11400
11401 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
11402
11403         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
11404         of tree->root_tree in parent_set rather than _map(), 
11405         fixing #50892 in a bit better manner.
11406
11407 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
11408
11409         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
11410
11411 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
11412
11413         * gtk/gtkstyle.c : Remove duplicate fwd decl for
11414         gtk_default_draw_shadow.
11415
11416 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
11417
11418         * gdk/gdkimage.c (gdk_image_new): Remove excess 
11419         warning, make warnings more verbose, treat a error
11420         in shmat as permanent, and don't try again.
11421         (#51163, Ed Randall.)
11422
11423 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
11424
11425         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
11426         delay for the first click before starting to scroll.
11427         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
11428
11429         * gtk/gtktext.c: GtkText should have I-beam cursor. 
11430         (based on gtk-enf-990513-1.patch, Eric Fisher.)
11431
11432 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
11433
11434         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
11435         cleanup to remove some references to unused
11436         ->xoffset, ->yoffset.
11437
11438 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
11439
11440         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
11441         mask. (#51039, fix from Martin Maierhofer)
11442
11443 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
11444
11445         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
11446         for unshifted + and shifted = for non-us keyboards.
11447         Make <Control>+ and <Control>- work as well as 
11448         <Control>KP_Plus, <Control>KP_Minus for recursive
11449         open/close.  (#2682, René Seindal)
11450
11451 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
11452
11453         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
11454         the active menu item before deactivating the menu,
11455         so gtk_menu_popdown doesn't change the history. (#50964)
11456         
11457 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
11458
11459         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
11460         draw lines with text_gc rather than black_gc.
11461         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
11462
11463 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
11464
11465         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
11466         Move handling of buttons fully in gtktreeviewcolumn.  This code is
11467         less interrelated then it was, but it still requires the
11468         GtkTreeView to map it.
11469
11470         * test/testtreecolumn.c: Now I can add a column to one view,
11471         remove it, add it to the another view, remove it, then re-add it
11472         to the first.  Nifty.
11473
11474 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
11475
11476         * docs/tutorial/gtk-tut.sgml: Minor corrections
11477
11478 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
11479
11480         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
11481         GtkRowReference.
11482
11483 2001-02-28  Havoc Pennington  <hp@redhat.com>
11484
11485         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
11486         draw_default
11487         (gtk_widget_draw_focus): remove this function; we could instead
11488         make it just gtk_widget_draw(), but in most cases I think the
11489         result would be broken user code, so think it's better to have
11490         that code not compile and get fixed
11491         (gtk_widget_draw_default): ditto
11492
11493         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
11494         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
11495         
11496         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
11497         widgets lose/get the default, instead of calling draw_default
11498         
11499         * docs/Changes-2.0.txt: note about all this
11500
11501         Then fixed every widget in GTK, I won't list all the filenames.
11502
11503 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
11504
11505         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
11506         _gtk_tree_row_reference_deleted.
11507         (inserted_callback): Proxy out to
11508         _gtk_tree_row_reference_inserted.
11509         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
11510         get around signal emission ordering problem.
11511
11512         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
11513         fix to work with SINGLE 
11514         (_gtk_tree_selection_internal_select_node): Major sanitization on
11515         selections.  SINGLE now seems to work.
11516
11517         * tests/Makefile.am: add testtreecolumn.c:
11518
11519         * tests/testtreecolumn.c: New test.  Mostly points out selection
11520         bugs currently, but will test columns later.
11521
11522         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
11523         selection bug.  I hate touching this code -- it's scary.
11524
11525 2001-02-26  Havoc Pennington  <hp@redhat.com>
11526
11527         * gtk/testgtk.c: test the window state stuff
11528
11529         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
11530         window come to the user's attention as if it were just created
11531         (gtk_window_iconify): new function
11532         (gtk_window_deiconify): new function
11533         (gtk_window_stick): new function
11534         (gtk_window_unstick): new function
11535         (gtk_window_maximize): new function
11536         (gtk_window_unmaximize): new function
11537
11538         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
11539
11540         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
11541
11542         * gdk/x11/gdkevents-x11.c: create window state events when
11543         appropriate
11544         (gdk_wmspec_supported): new function
11545
11546         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
11547         iconification before showing the window
11548         (gdk_window_deiconify): new function
11549         (gdk_window_stick): new function
11550         (gdk_window_unstick): new function
11551         (gdk_window_maximize): new function
11552         (gdk_window_unmaximize): new function
11553
11554         * gdk/gdkwindow.c: store the window state in the window; 
11555         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
11556         window->mapped.
11557         (gdk_window_get_state): return the current window state
11558
11559         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
11560         (gdk_event_get_state): handle GDK_WINDOW_STATE
11561         (gdk_synthesize_window_state): function to create the window state
11562         events
11563
11564         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
11565         event, for changes to "window state" such as maximized, sticky, 
11566         etc.
11567         
11568         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
11569         focuses a window
11570
11571         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
11572         finds out if we support a given WM spec hint
11573
11574 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
11575
11576         * docs/faq/gtk-faq.sgml: New question re memory leaks.
11577
11578 2001-02-25  Hans Breuer  <hans@breuer.org>
11579
11580         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
11581         cause we want to loose those prototypes only in the latter case
11582
11583         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
11584         GdkPixmapImplWin32 because it itsn't derived from it. Use the
11585         impl member variable instead
11586
11587         * gtk/gtk.def : updated
11588
11589         * gtk/gtklist.c : 
11590         * gtk/gtkmenus.c : include <string.h> for memset ()
11591
11592         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
11593         for everthing built here, but for gtk-x.x.dll only. This solves
11594         problem of indifferent gtk type definitions
11595
11596 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
11597
11598         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
11599
11600 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
11601
11602         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
11603         column that is exposed.
11604
11605         (_gtk_tree_view_update_size): Changed name from set_size, and
11606         changed function to do more work, and not force people calling it
11607         to figure out the size.  Simplifies a lot of code elsewhere.
11608
11609 2001-02-23  Alexander Larsson  <alexl@redhat.com>
11610
11611         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
11612         return solid masks for xpms that have no transparent color.
11613         This makes the ..._create_from_xpm... API backwards
11614         compatible.
11615
11616 2001-02-23  Tor Lillqvist  <tml@iki.fi>
11617
11618         * README.win32: Update. Mention the gtk-1-3-win32-production
11619         branch.
11620
11621         * gdk/win32/bdfcursor.c: New file. A program that generates
11622         xcursors.h. Thanks to Stefan Ondrejicka.
11623
11624         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
11625         compact format.
11626
11627         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
11628
11629         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
11630         function, uses xcursors.h.
11631         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
11632         cursor from inline data instead of using LoadCursor() to generate
11633         it from a resource.
11634
11635         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
11636         event, must check the Windows message for mouse button state, as
11637         the GDK event state might not have been built if it is
11638         undelivered. Remove one goto.
11639
11640         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
11641         SetCursor() if the current cursor as returned by GetCursor() is
11642         the window's previous cursor. The ChildWindowFromPoint() test
11643         apparently didn't work correctly.
11644
11645         * gdk/win32/rc/*.cur: Remove.
11646
11647         * gdk/win32/rc/gdk.rc.in: Remove cursors.
11648
11649         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
11650
11651         * gtk/makefile.{mingw,msc}.in: Updates.
11652
11653 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
11654
11655         * gtk/gtktreemodel.h: add functions for signal emission.
11656
11657         * gtk/gtktreestore.c: move to use above functions instead of
11658         g_signal_emit.
11659
11660         * gtk/gtkliststore.c: ditto
11661
11662 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
11663
11664         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
11665         GObject instead of GtkObject.
11666
11667         * gtk/gtkliststore.c: ditto.
11668
11669         * gtk/gtktreemodelsort.c: ditto.
11670
11671         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
11672         GtkTreeModelIface, instead of in each model.
11673
11674 2001-02-21  Havoc Pennington  <hp@redhat.com>
11675
11676         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
11677         unbreak this function
11678
11679         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
11680         properties
11681
11682         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
11683         properties
11684
11685         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
11686         properties
11687
11688         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
11689         mean unset the max length
11690
11691 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
11692
11693         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
11694         Changed name to be set_cell_data_func to make it clear what
11695         the functino does.  Close bug #51069.
11696
11697 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
11698
11699         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
11700         have memory actually freed.  Keeps box running longer.
11701
11702 2001-02-21  Alexander Larsson  <alexl@redhat.com>
11703         
11704         * gtk/gtkseparatormenuitem.[ch]:
11705         Added new menu separator item. The drawing and size handling
11706         is still done in GtkMenuItem, but the API is a bit more sane.
11707         
11708         * gtk/Makefile.am:
11709         Add gtkseparatormenuitem.[ch].
11710
11711         * gtk/gtk.h:
11712         Add gtkseparatormenuitem.h.
11713         
11714         * gtk/gtkentry.c:
11715         * gtk/gtkmenufactory.c:
11716         * gtk/gtktextview.c:
11717         Use the new API for menu separators.
11718         
11719         * demos/gtk-demo/menus.c (create_menu):
11720         Add some GtkSeparatorMenuItem demo code.
11721
11722 2001-02-20  Havoc Pennington  <hp@redhat.com>
11723
11724         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
11725         Lee Mallabone
11726
11727         * gtk/gtkarrow.c: Convert to new property API, patch from 
11728         Lee Mallabone
11729
11730 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
11731
11732         * tests/testtreeview.c (toggled_callback): fix to reflect change
11733         in GtkTreeModelStore.
11734
11735 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
11736
11737         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
11738         function to create an icon set from a pixbuf.
11739
11740 2001-02-20  Alexander Larsson  <alexl@redhat.com>
11741
11742         * gtk/gtkcellrenderertext.[ch]:
11743         Add a "markup" property.
11744
11745         * gtk/treestoretest.c:
11746         Use the markup property, remove some leftover stuff from
11747         GtkTreeModelMapping.
11748
11749 2001-02-20  Alexander Larsson  <alexl@redhat.com>
11750
11751         * gtk/gtklabel.c (gtk_label_set_selectable):
11752         Queue a redraw if the selectable setting was changed.
11753
11754 2001-02-20  Alexander Larsson  <alexl@redhat.com>
11755
11756         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
11757         Actually copy the whole gc, not just the public parts.
11758         
11759         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
11760         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
11761         labels.
11762
11763 2001-02-19  Havoc Pennington  <hp@pobox.com>
11764
11765         * gdk/gdkwindow.c: docs
11766
11767         * gdk/gdkrgb.c: docs
11768
11769         * gdk/gdkregion-generic.c: docs
11770
11771         * gdk/gdkgc.c (gdk_gc_set_values): docs
11772
11773         * gdk/gdkdraw.c: docs
11774
11775         * gdk/gdkdrawable.h: deprecate drawable get/set data
11776
11777 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
11778
11779         * demos/gtk-demo/dialog.c: Add simple new demo.
11780
11781 2001-02-19  Havoc Pennington  <hp@redhat.com>
11782
11783         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
11784         insert_child_anchor signal, bug #50245
11785
11786         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
11787         from create_child_anchor, so the anchor is passed in
11788
11789         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
11790         (_gtk_widget_segment_new): have the child anchor object passed in, 
11791         instead of creating it.
11792
11793         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
11794         to gtk_text_buffer_get_modified
11795
11796 2001-02-19  Havoc Pennington  <hp@redhat.com>
11797
11798         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
11799         changed GLib without fixing GTK
11800
11801         * gtk/gtkrange.h: Rename all the stupid implementation detail 
11802         functions to have an underscore in front. Most of them should 
11803         probably just go away, but for starters don't export them.
11804         Bug #50482
11805
11806 2001-02-19  Havoc Pennington  <hp@redhat.com>
11807
11808         * gdk/gdkcolor.h: test was backward, so deprecated functions were
11809         excluded by default
11810
11811         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
11812         clean up the old code a bit
11813
11814         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
11815         inconsistent state
11816
11817         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
11818         draw inconsistent state
11819
11820         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
11821         (create_menu): add inconsistent test
11822
11823         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
11824         new function
11825         (gtk_check_menu_item_get_inconsistent): new function
11826         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
11827         state (using etched in for now)
11828
11829         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
11830         draw inconsistent state
11831
11832         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
11833         function, used when the user has selected a range of stuff in
11834         different states
11835         (gtk_toggle_button_get_inconsistent): accessor for that
11836         (gtk_toggle_button_paint): draw inconsistent state (etched in?
11837         don't know what else to do)
11838
11839 2001-02-19  Hans Breuer <hans@breuer.org>
11840
11841         * gtk/gtk.def : updated exported symbols
11842
11843         * gtk/makefile.msc.in : updated
11844
11845         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
11846         a colormap, when invoked from testgtk::entry. I'm not sure where
11847         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
11848         avoids immediate crashing ...
11849
11850         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
11851         any objections ?
11852
11853         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
11854         0 parameter. At least msvc doesn't like macros with var args. 
11855         I simply removed the extra 0, was it a feature or a typo ?
11856
11857         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
11858         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
11859         because the value assignment to the internal struct wasn't working.
11860         I'm not absolutely sure. The problem could have been resolved by
11861         changing the "func" declartion in the struct, but was the pointer
11862         to the function pointer intended ?
11863
11864         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
11865
11866         * gdk/gdk.def : updated exported symbols
11867
11868         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
11869         only use SetDIBitsToDevice if there is a palette at the drawable
11870         and the image is GDK_VISUAL_PSEUDO_COLOR
11871
11872         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
11873
11874         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
11875
11876         * gdk/*/makefile.msc : updated
11877
11878 2001-02-19  Havoc Pennington  <hp@redhat.com>
11879
11880         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
11881         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
11882
11883         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
11884         (gdk_key_repeat_restore): nuke
11885
11886         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
11887         (gdk_init_check): no atexit func
11888
11889         * gdk/gdkrgb.h: mark some stuff deprecated
11890
11891         * gdk/gdkcolor.h: mark some stuff deprecated
11892         
11893         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
11894
11895         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
11896
11897 2001-02-16  Havoc Pennington  <hp@redhat.com>
11898
11899         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
11900         scroll steps.
11901
11902         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
11903         steps, and add Ctrl-arrow shortcuts for paging visually as with
11904         HScale, since Page Up and Page Down move logically.
11905
11906         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
11907         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
11908         
11909         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
11910         steps
11911         (gtk_range_scroll): handle the visual steps
11912
11913         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
11914         scroll steps
11915
11916         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
11917         steps, not the logical ones.
11918
11919         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
11920         (scroll_vertical): handle up/down steps
11921
11922 2001-02-19 Alexander Larsson  <alexl@redhat.com>
11923
11924         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
11925         Copy data and free data with free().
11926
11927         * gdk-pixbuf/gdk-pixbuf.c:
11928         * gdk-pixbuf/io-jpeg.c:
11929         * gdk-pixbuf/io-png.c:
11930         Use g_try_malloc/g_free instead malloc/free.
11931         
11932         * gdk-pixbuf/test-gdk-pixbuf.c:
11933         Must... initialize... gobject...
11934         
11935         * gdk-pixbuf/pixops/timescale.c:
11936         * gtk/gtkcalendar.c:
11937         Use g_malloc instead of malloc.
11938         
11939 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
11940
11941         * gtk/testgtkrc:
11942         Comment out property assignments, these don't work yet.
11943
11944 2001-02-17  Havoc Pennington  <hp@pobox.com>
11945
11946         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
11947         bit.
11948
11949 2001-02-17  Havoc Pennington  <hp@pobox.com>
11950
11951         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
11952         shadowed variables that had broken size request in some cases,
11953         leading to bogus tooltips (#50996)
11954
11955 2001-02-06  Jon K Hellan  <hellan@acm.org>
11956
11957         Implement fast browsing of tooltips, bug #50619
11958         
11959         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
11960         and last_popdown
11961         
11962         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
11963         use_sticky_delay and last_popdown.
11964         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
11965         time of popdown.
11966         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
11967         is NULL.
11968         (gtk_tooltips_recently_shown): New static function.  Return true
11969         if < sticky_delay has elapsed since last popdown.
11970         (gtk_tooltips_event_handler): Display window after sticky_delay
11971         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
11972         since last popdown.
11973         
11974 2001-02-17  Havoc Pennington  <hp@pobox.com>
11975
11976         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
11977         instead of (). #6394
11978
11979         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
11980         G_CONST_RETURN, make it return by reference, #50473
11981         
11982 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
11983
11984         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
11985         generated ENTER_NOTIFY event with 0, otherwise not explicitely
11986         setup fields contain garbage (e.g. subwindow, breaking
11987         gdk_drawable_ref() upon event copy).
11988         (gtk_menu_stop_navigating_submenu_cb): same here.
11989
11990         * gtk/gtklist.c (gtk_list_vertical_timeout): 
11991         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
11992         * gtk/gtkclist.c (vertical_timeout): 
11993         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
11994         default-zero-intialization for unions to memset(,0,), as unions are
11995         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
11996         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
11997
11998         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
11999         g_closure_sink() warning.
12000
12001         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
12002         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
12003         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
12004         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
12005         
12006 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
12007
12008         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
12009         gtk_*_store_get, and moved to GtkTreeModel.
12010
12011         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
12012
12013         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
12014
12015         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
12016
12017         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
12018         set the func.
12019
12020         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
12021         freeze/thaw notify between setting all the properties for a cell.
12022
12023         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
12024
12025 2001-02-15  Havoc Pennington  <hp@redhat.com>
12026
12027         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
12028         the X coordinates so they're with respect to the line, rather than 
12029         with respect to the layout.
12030
12031         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
12032         Mallabone
12033
12034         * gtk/testgtk.c (create_range_controls): add vscale tests, 
12035         and inverted test
12036
12037         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
12038         #50806
12039
12040         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
12041
12042         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
12043         gtk_text_iter_is_end
12044
12045         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
12046         rename gtk_text_buffer_get_end_iter
12047
12048         * gtk/testgtk.c (create_labels): Add test for selectable
12049
12050         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
12051         the selection stuff. This code is kind of broken since it doesn't 
12052         use the theme engine.
12053
12054         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
12055         fix infinite loop and y offset problem
12056         (gdk_draw_layout_line_with_colors): fix foreground color handling
12057
12058         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
12059         that makes the label selectable.
12060         
12061         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
12062         layout when the style is set, since fonts etc. could have changed.      
12063
12064 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
12065
12066         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
12067
12068         * gtk/gtktreemodelsimple.[ch]: removed.
12069
12070 2001-02-16  Alexander Larsson  <alexl@redhat.com>
12071
12072         * gtk/gtktreemodelmapping.[ch]:
12073         New files. Implement GtkTreeModelMapping.
12074         
12075         * gtk/Makefile.am:
12076         Add gtktreemodelmapping.[ch].
12077         
12078         * gtk/gtk.h:
12079         Add gtktreemodelmapping.h
12080
12081         * gtk/treestoretest.c:
12082         Test the GtkTreeModelMapping
12083
12084 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
12085
12086         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
12087         have a demo, we might as well pass in real values.  Thanks to
12088         clahey for pointing this out.
12089
12090 2001-02-14  Havoc Pennington  <hp@pobox.com>
12091
12092         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
12093         "static" to a private function
12094         (gtk_image_menu_item_class_init): remove destroy handler,
12095         add "image" object property
12096
12097 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
12098
12099         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
12100         Add a shortcut if the window and the current clip_region doesn't
12101         overlap. This is needed when there are a lot of windows in a
12102         window. The layout test in testgtk is a good test.
12103
12104         * gdk/linux-fb/gdkwindow-fb.c:
12105         Whitespace fix.
12106
12107 2001-02-13  Sven Neumann  <sven@convergence.de>
12108
12109         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
12110
12111 2001-02-13  Alexander Larsson  <alexl@redhat.com>
12112
12113         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
12114         Don't reference last_cursor if it is null. Fixes crash when rotating
12115         the screen before having moved the mouse.
12116
12117         * gdk/linux-fb/gdkcc-fb.c: Zapp!
12118
12119         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
12120
12121         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
12122         when using 90 or 270 degrees rotation.
12123
12124 2001-02-12  Havoc Pennington  <hp@pobox.com>
12125
12126         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
12127         it always set the foreground, even if we were only using
12128         a stipple.
12129         (gdk_draw_layout_line_with_colors): new function, allow
12130         override colors
12131         (gdk_draw_layout_with_colors): new function, allow override
12132         colors
12133         (gdk_pango_layout_line_get_clip_region): function to get the clip
12134         region for a logical text range
12135         (gdk_pango_layout_get_clip_region): get the clip region for a
12136         logical text range
12137
12138         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
12139         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
12140         the right number of arguments.
12141
12142         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
12143         enhance the function to check that node data corresponds to a 
12144         view still belonging to the tree.
12145
12146         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
12147         GtkTreePath
12148         (gtk_tree_view_inserted): ditto
12149         (gtk_tree_view_child_toggled): ditto
12150
12151         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
12152         simplify this code.
12153
12154         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
12155         a PangoAttrList
12156
12157         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
12158
12159         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
12160
12161         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
12162         size in the size request 
12163         (gtk_menu_bar_size_allocate): consider toggle size here
12164
12165         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
12166         that displays a widget in the toggle slot
12167
12168         * gtk/testgtk.c: test GtkImageMenuItem
12169
12170         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
12171         
12172         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
12173         request and allocation
12174
12175         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
12176
12177         * gtk/gtkcheckmenuitem.c
12178         (gtk_check_menu_item_toggle_size_request): ditto
12179         
12180 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
12181
12182         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
12183         reference.
12184
12185         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
12186         and refuse to initialize GTK+ if they fail.
12187
12188 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
12189
12190         * configure.in: Add check for gtk-doc version.
12191
12192 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
12193
12194         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
12195         where the xpad/ypad was only being used on one side!
12196
12197 2001-02-11  Tor Lillqvist  <tml@iki.fi>
12198
12199         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
12200         function, copied from X11 version.
12201
12202         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
12203         DestroyCursor failures. The reason for the problem (despite the
12204         inconsistent messages from GetLastError()) was that
12205         DestroyCursor() cannot be called while a cursor is set in a
12206         window. Set the new cursor first and then destroy the old one.
12207         Thanks to jpe@archaeopteryx.com.
12208
12209         * gdk/win32/gdkcc-win32.c: Remove.
12210
12211         * gdk/win32/Makefile.am: Remove from here, too.
12212         
12213         * gdk/gdk.def
12214         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
12215
12216         * gtk/gtk.def
12217         * gtk/makefile.mingw.in: Updates.
12218
12219 2001-02-08  Havoc Pennington  <hp@redhat.com>
12220
12221         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
12222         add a widget to a bin that already has a child.
12223
12224         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
12225
12226         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
12227         
12228         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
12229
12230         * gdk/gdk.h: remove gdkcc.h
12231
12232         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
12233
12234         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
12235         GdkPixbuf, since the previous implementation was GdkColorContext
12236         dependent.
12237
12238         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
12239         
12240 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
12241
12242         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
12243         a sane value!
12244
12245 2001-02-08  Havoc Pennington  <hp@redhat.com>
12246
12247         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
12248         lighten them.
12249
12250 2001-02-08  Havoc Pennington  <hp@redhat.com>
12251
12252         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
12253         validation idle
12254
12255         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
12256         cell renderer
12257
12258         * demos/pixbuf-demo.c (timeout): remove deprecated
12259         gtk_widget_draw
12260
12261         * demos/testpixbuf-save.c (main): remove deprecated
12262         gtk_drawing_area_size
12263
12264         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
12265         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
12266         at the start of the allocation.
12267         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
12268         unsetup or NULL model.
12269
12270         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
12271         even/odd/sorted cells in the tree view.
12272
12273         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
12274         bugfixes
12275
12276         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
12277         backgrounds with draw_flat_box using different detail for even/odd
12278         rows.
12279
12280         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
12281         row, so we can draw the alternating colors thing
12282
12283         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
12284         property from a synonym property, notify for the synonym.
12285         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
12286         (gtk_text_tag_get_property): Always return the font, even if
12287         all its fields aren't set
12288
12289         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
12290         store the attr list; it leaves us with no way to change attributes
12291         in _render according to the render flags, and no way to implement
12292         get_property. Instead store all the specific text attributes. 
12293         Separate whether an attribute is enabled from its value. Sync all
12294         properties with GtkTextTag, make them all consistent, etc.
12295
12296         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
12297         renderers can highlight the sort row/column     
12298
12299         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
12300         accessor functions to get values; this has the side effect of
12301         showing up which accessor functions were missing. Added those.
12302
12303         * gtk/gtktreeviewcolumn.h: Replace set_justification with
12304         set_alignment, to be consistent with GtkLabel, GtkMisc
12305
12306         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
12307         arrow.
12308
12309         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
12310
12311         * gtk/gtktreesortable.h: updates in here
12312
12313 2001-02-07  Sven Neumann  <sven@convergence.de>
12314
12315         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
12316         pango dimensions after painting the background. We used to draw
12317         gigantic flat boxes here.
12318
12319 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
12320
12321         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
12322         error introduced with earlier commit) (pointed out by
12323         Ollie Lho)
12324
12325 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
12326
12327         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
12328         which are no longer necessary.
12329
12330 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
12331
12332         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
12333
12334 2001-02-04  Tor Lillqvist  <tml@iki.fi>
12335
12336         * gdk/gdk.def
12337         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
12338         Provide dummy implementations.
12339
12340 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
12341
12342         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
12343
12344         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
12345         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
12346         deprecated this function.
12347
12348         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
12349         argument.
12350
12351 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
12352
12353         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
12354
12355 2001-02-03  Havoc Pennington  <hp@pobox.com>
12356
12357         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
12358         Mikael Hermansson with patch from Mikael (if there was a toggle
12359         start one after the first character in the range, this function
12360         was broken). Bug #50380
12361
12362 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
12363
12364         * configure.in: Remove confusing comment about X11.
12365
12366 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
12367
12368         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
12369         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
12370         
12371 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
12372
12373         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
12374         it breaks things on BSD. If you want to compile GTK+ with
12375         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
12376         when configuring, since GTK+ simply can't be "pure ANSI" 
12377         in the header files it uses. (#8170, Greg Hudson)
12378
12379 2001-02-02  Havoc Pennington  <hp@redhat.com>
12380
12381         * gtk/gtkwindow.c: docs
12382
12383         * gtk/gtkwidget.c: docs
12384         (gtk_widget_set_colormap): add a reference to the colormap
12385         (gtk_widget_get_default_colormap): add a reference to the colormap
12386
12387         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
12388
12389         * gtk/gtktextiter.c: docs
12390
12391         * gtk/gtkmain.c (gtk_propagate_event): docs
12392
12393         * gtk/gtkpaned.c (gtk_paned_get_position): docs
12394         (gtk_paned_set_position): docs
12395
12396         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
12397         sort interface, no implementation yet.
12398
12399         * demos/testpixbuf.c (new_testrgb_window): replace
12400         gtk_drawing_area_size() with gtk_widget_set_usize()
12401
12402         * demos/testpixbuf-drawable.c (main): ditto
12403         
12404         * gtk/testgtk.c: remove use of GtkStatusbarMsg
12405
12406         * gtk/gtktextbuffer.c: docs
12407
12408         * gtk/gtkstock.c: docs
12409
12410         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
12411
12412         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
12413
12414         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
12415         
12416         * gtk/gtkimage.c: add some docs in here
12417         (gtk_image_size_request): change name of
12418         gtk_widget_render_stock_icon
12419         (gtk_image_get_icon_set): don't dup returned string
12420         (gtk_image_get_icon_set): don't dup returned string
12421
12422         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
12423         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
12424         and gtkiconfactory.h functions
12425
12426         * gtk/gtkiconfactory.c: add some docs in here
12427
12428         * gtk/gtkmain.c (gtk_get_default_language): document
12429         (gtk_get_current_event): document
12430         (gtk_get_current_event_state): document
12431         (gtk_get_event_widget): document
12432
12433         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
12434
12435         * gtk/gtkcontainer.c: Add some documentation
12436         (gtk_container_add): give a more explanatory warning on adding an
12437         already-parented widget, this is kind of a FAQ and also a common
12438         typo that's easier to debug with a nice warning 
12439
12440         * gtk/gtkcellrenderertoggle.c
12441         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
12442         adding this, it's useless
12443         (gtk_cell_renderer_toggle_set_active): remove
12444         (gtk_cell_renderer_toggle_get_radio): add
12445
12446         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
12447         the NULL cell renderer, that doesn't make any sense to me. 
12448
12449         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
12450         demo code should never use deprecated features.
12451
12452         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
12453         code should never use deprecated features.
12454
12455         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
12456         gtk_widget_queue_clear_area deprecated
12457
12458         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
12459         deprecated
12460
12461         * gtk/gtklabel.h: mark gtk_label_get() deprecated
12462
12463         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
12464         a GdkImage deprecated, replaced by new consistently-named
12465         functions       
12466
12467         * gtk/gtkmain.h: Mark gtk_exit() deprecated
12468
12469         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
12470
12471         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
12472         deprecated
12473
12474         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
12475         so it won't appear in docs and confuse people.
12476
12477         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
12478
12479         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
12480         macros deprecated. (can't mark the type itself deprecated, since
12481         GtkProgressBar is not deprecated and we need the type decl to use
12482         GtkProgressBar)
12483
12484         * gtk/gtkpixmap.h: Mark deprecated
12485
12486         * gtk/gtkoldeditable.h: Mark deprecated
12487
12488         * gtk/gtklist.h: Mark deprecated
12489
12490         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
12491         for anything anymore.
12492
12493         * gtk/gtkctree.h: Mark deprecated
12494
12495         * gtk/gtkclist.h: Mark deprecated
12496
12497         * gtk/gtkpreview.h: Mark deprecated
12498
12499         * gtk/gtkpacker.h: Mark deprecated
12500
12501         * gtk/gtktipsquery.h: Mark deprecated
12502
12503         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
12504
12505         * gtk/gtkvruler.h: Add comment that it will move out of GTK
12506
12507         * gtk/gtkhruler.h: Add comment that it will move out of GTK
12508
12509         * gtk/gtkruler.h: Add comment that it will move out of GTK
12510
12511         * gtk/gtkgamma.h: Add comment that it will move out of GTK
12512
12513         * gtk/gtkcurve.h: Add comment that it will move out of GTK
12514
12515 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
12516
12517         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
12518         gdk_colormap_sync private since it was never exported
12519         in a header file.
12520
12521         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
12522         colormap->colors[] for StaticGray, StaticColor colormaps.
12523
12524         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
12525         was being used as if it was image->bits_per_pixel.
12526
12527         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
12528         for the image in the GdkImage structure since it isn't
12529         reconstructable, and we need it to handle packed types
12530
12531         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
12532         the assumption that on Win32 image->bits_per_pixel == image->depth,
12533         always.
12534
12535         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
12536
12537         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
12538         warning message if no converter can be found. 
12539
12540 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
12541
12542         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
12543         chars to isupper() / tolower(). (#567)
12544
12545         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
12546         to clear up 64-bit warnings. (#567)
12547
12548 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
12549
12550         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
12551         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
12552
12553         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
12554         since some people set $(libdir) separately. (#1290, David Kaelbling)
12555
12556 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
12557
12558         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
12559         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
12560         MAXPATHLEN, but the code here depends on a fixed value.)
12561         (#4524)
12562
12563 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
12564
12565         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
12566         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
12567
12568 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
12569
12570         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
12571         viewable there is no way that moving the node will cause the 
12572         focus row to become not viewable, so omit check on the visibility
12573         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
12574
12575 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
12576
12577         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
12578         selection before inserting new text.
12579
12580 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
12581
12582         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
12583         Make the sensitivity of the reparented child track that of
12584         the original parent menu item. (#34218, David Hodson)
12585
12586         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
12587         the case where the current item is destroyed properly.
12588
12589         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
12590         some edge cases with child-less menuitems.
12591         
12592 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
12593
12594         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
12595         key pop down window. (#12074, Jon K Hellan)
12596
12597 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
12598
12599         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
12600         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
12601         The solution here isn't perfect - you get an extraneous
12602         emission of "toggle", which could conceivably confuse an app,
12603         but better than the current situation. LXR search seems to
12604         indicate that no apps in GNOME CVS connect to "toggle".
12605
12606 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
12607
12608         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
12609         gtk_public_h_sources to directly here to avoid warning when
12610         building srcdir != builddir. (#9656)
12611
12612 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
12613
12614         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
12615         handlers in gtkrange.c return the proper values (TRUE == handled)
12616         (#10316).
12617
12618         This is just the tip of the iceberg, but gtkrange.c is the
12619         most common place where the propagation is problematical,
12620         and also a place where it is almost certainly safe to change
12621         this in the stable branch.
12622
12623         (You don't want right click popups on a range control or anything...)
12624
12625 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
12626
12627         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
12628         area on focus out, even if a background pixmap isn't set.
12629         (#13941)
12630         
12631 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
12632
12633         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
12634         to deal with setting the shape properly when scrolling arrows are
12635         turned on, but not visible because there is sufficient space.
12636         (#13432)
12637
12638 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
12639
12640         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
12641         items with submenus, destroy the item along with the submenu.
12642         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
12643         properly.
12644
12645         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
12646         later.
12647
12648 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
12649
12650         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
12651         the focus widget sometimes wasn't drawn with the default if there
12652         was no default widget.
12653
12654         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
12655         unreference pixmaps. 
12656
12657         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
12658         for some extra safety.
12659
12660 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
12661
12662         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
12663         the text of a cell to the old pointer value better, by
12664         copying the new text before freeing the old text. Some code
12665         cleanup. (#8079, Karl Nelson)
12666
12667 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
12668
12669         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
12670         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
12671
12672 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
12673
12674         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
12675         item from a menu, check to see if it matches 
12676         menu->old_active_menu_item, and if so, unref and clear
12677         old_active_menu_item (Patch from Pavel Cisler)
12678
12679         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
12680         menu_shell->active_menu_item, if it is the child being
12681         removed. (Patch based on that of Gene Ragan, #50337)
12682
12683 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
12684
12685         * gdk/linux-fb/gdkselection-fb.c: 
12686         * gdk/linux-fb/gdkcolor-fb.c: 
12687         * gdk/linux-fb/gdkdrawable-fb2.c: 
12688         * gdk/linux-fb/gdkfont-fb.c: 
12689         * gdk/linux-fb/gdkim-fb.c: 
12690         * gdk/linux-fb/gdkinput.c: 
12691         * gdk/linux-fb/gdkkeyboard-fb.c: 
12692         * gdk/linux-fb/gdkmain-fb.c: 
12693         * gdk/linux-fb/gdkrender-fb.c: 
12694         A bunch of whitespace cleanup.
12695         
12696 2001-01-30  Havoc Pennington  <hp@pobox.com>
12697
12698         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
12699         #ifdef GTK_ENABLE_BROKEN.
12700
12701         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
12702         GTK_ENABLE_BROKEN just before including the broken headers.
12703         
12704         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
12705         deprecated types registered.
12706
12707         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
12708         we have to test the broken stuff.
12709
12710         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
12711         
12712 2001-01-30  Havoc Pennington  <hp@redhat.com>
12713
12714         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
12715         here where prev pointer was set to the wrong thing
12716
12717         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
12718         (gtk_tree_path_is_descendant): new function
12719
12720         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
12721         cached length
12722         (gtk_list_store_get_iter): don't modify iter if we can't get the
12723         path.
12724
12725         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
12726         
12727         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
12728         GtkTreeDragDest
12729
12730         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
12731         was causing segfault
12732
12733         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
12734         pointer to NULL
12735
12736         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
12737
12738         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
12739         on returning FALSE
12740         (gtk_list_store_iter_children): ditto
12741         (gtk_list_store_iter_nth_child): ditto
12742         (gtk_list_store_iter_nth_child): ditto
12743         (gtk_list_store_iter_parent): ditto
12744
12745         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
12746         on iter->user_data != NULL instead of silently accepting it.
12747         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
12748         we are returning TRUE.
12749         (gtk_tree_store_iter_children): ditto
12750         (gtk_tree_store_iter_nth_child): ditto
12751         (gtk_tree_store_iter_parent): ditto
12752         (gtk_tree_store_insert): remove handling of parent->user_data ==
12753         NULL, replace with parent == NULL       
12754
12755         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
12756         and a comment explaining things
12757
12758         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
12759         interface support to GtkTreeStore.
12760
12761         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
12762         FALSE if no prev, fix
12763
12764         * gtk/gtktreeview.c (set_source_row): use a row reference
12765         (set_dest_row): use a row reference
12766
12767 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
12768
12769         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
12770         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
12771         (gtk_tree_selection_select_iter): The same as above.
12772
12773 2001-01-26  Havoc Pennington  <hp@redhat.com>
12774
12775         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
12776         which holds a handle to a specific row (particular set of values
12777         in the model, i.e. pointer-identity row).
12778
12779         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
12780         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
12781         Still need to use it for the src/dest row saved on the drag context.
12782
12783 2001-01-26  Havoc Pennington  <hp@redhat.com>
12784
12785         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
12786
12787         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
12788         not offset by TREE_VIEW_HEADER_HEIGHT
12789         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
12790         TREE_VIEW_HEADER_HEIGHT
12791
12792         * configure.in (included_loaders): for me, --with-included-loaders
12793         generates the error "the specified loader yes does not exist",
12794         i.e. the arg defaults to "yes", so change test for value ""
12795         to test for value "yes", and include all loaders in that case.
12796
12797         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
12798
12799         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
12800         handle TREE_VIEW_VERTICAL_SEPARATOR
12801         (gtk_tree_view_bin_expose): fix to consider the row offset as
12802         pointing halfway into vertical separator.       
12803         (gtk_tree_view_draw_node_focus_rect): ditto
12804
12805         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
12806         --gtk-debug=updates, which causes gdk_window_set_debug_updates
12807         (TRUE) to be called.
12808
12809         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
12810         debug mode where the invalid region is colored in on invalidate,
12811         so you can see the flicker and know whether your redraw code is 
12812         doing a good job.
12813
12814         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
12815         tree window coordinates (clip rect is in tree window coords)
12816
12817         * gtk/Makefile.am: add gtktreednd.[hc]
12818
12819         * gtk/gtkliststore.c: implement gtktreednd interfaces.
12820
12821         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
12822         drag-and-drop data operations on a model (so we can set up tree
12823         drag-and-drop automatically)
12824
12825         * gtk/testgtk.c: Add a window to change sensitivity in the
12826         GtkLabel test; add a way to change the entry frame in GtkEntry
12827         test
12828
12829         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
12830         (gtk_entry_get_has_frame): new functions to remove the frame
12831         around an entry
12832         (gtk_entry_size_request): shrink requisition if no frame
12833         (gtk_entry_draw_focus): don't draw frame if no frame
12834
12835         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
12836         checks inside a cell renderer
12837         (gtk_default_draw_option): ditto for options
12838
12839         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
12840         children from the alignment, not the button
12841         (gtk_tree_view_column_init): ref/sink the column, to emulate
12842         GObject refcounting.
12843
12844         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
12845         
12846         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
12847         Use theme functions to draw the toggles 
12848
12849         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
12850
12851         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
12852         GdkPangoAttrEmbossed to use in rendering insensitive text
12853
12854         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
12855
12856         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
12857         using new GDK features
12858         
12859 2001-01-24  Alexander Larsson  <alexl@redhat.com>
12860
12861         * gtk/gtkimage.c:
12862         Splitted gtk_image_clear into gtk_image_clear() and
12863         gtk_image_reset(). Call gtk_image_clear() in ::destroy
12864         to avoid leaks.
12865
12866         * gtk/gtklabel.c (set_markup):
12867         Don't leak text.
12868
12869         * gtk/gtktextlayout.c:
12870         Always free display->shaped_objects.
12871
12872         * gtk/testgtk.c (create_clist):
12873         Don't leak custom style.
12874
12875 2001-01-23  Alexander Larsson  <alexl@redhat.com>
12876
12877         * gtk/gtkcolorsel.c (grab_color_at_mouse):
12878         Don't leak image. Simplify using gdk_colormap_query_color().
12879         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
12880
12881         * linux-fb/gdkcolor-fb.c:
12882         Implemented gdk_colormap_query_color.
12883
12884 2001-01-23  Alexander Larsson  <alexl@redhat.com>
12885
12886         * linux-fb/gdkcursor-fb.c:
12887         Don't leak built-in cursors.
12888
12889         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
12890         Don't leak tmp_points.
12891
12892         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
12893         Don't modify desc. Don't leak font if the PangoFont
12894         isn't found.
12895         
12896         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
12897         Free dash_list.
12898
12899         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
12900         Don't leak string.
12901         
12902 2001-01-20  Havoc Pennington  <hp@pobox.com>
12903
12904         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
12905         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
12906         me, matches Pango
12907
12908 2001-01-22  Havoc Pennington  <hp@redhat.com>
12909
12910         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
12911
12912         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
12913
12914         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
12915         Remove, move back to gdk-pixbuf
12916
12917         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
12918         to all the word functions
12919
12920         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
12921         before doing anything on NULL layout or if we don't have the focus
12922
12923         * gtk/testtext.c (fill_example_buffer): "justification"
12924
12925         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
12926         to be called "justification" not "justify"
12927
12928         * demos/gtk-demo/textview.c (create_tags): "justification"
12929         
12930         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
12931
12932 2001-01-22  Alexander Larsson  <alexl@redhat.com>
12933
12934         * gdk/gdkwindow.c (gdk_window_invalidate_region):
12935         Don't leak visible_region. Use visible_region instead of region.
12936         
12937         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
12938         Don't do extra gdk_drawable_ref(). This is not X.
12939         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
12940         gdk_fb_focused_window is ref:ed.
12941         (gdk_fb_window_send_crossing_events): Watch out for destroyed
12942         windows.
12943
12944 2001-01-22  Alexander Larsson  <alexl@redhat.com>
12945
12946         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
12947         Don't leak the PangoFontDescriptor.
12948
12949 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
12950
12951         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
12952         when not realized.
12953         (gtk_tree_view_scroll_to_cell): Make work when not realized.
12954         (gtk_tree_view_realize): add scroll_to support
12955         (gtk_tree_view_finalize): add a finalize method.  Populate.
12956         (gtk_tree_view_insert_column): ref and sink the column.
12957         (gtk_tree_view_append_column): ref and sink the column.
12958         (gtk_tree_view_queue_draw_node): New function to handle redrawing
12959         individual nodes.  Should make the code much more efficient, if
12960         actually used.
12961
12962 2001-01-19  Havoc Pennington  <hp@redhat.com>
12963
12964         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
12965         byte_offset variable was being used to mean both "offset into
12966         layout" and "offset into buffer line" which was no longer true
12967         with addition of preedit string; fix
12968
12969 2001-01-19  Havoc Pennington  <hp@redhat.com>
12970
12971         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
12972
12973         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
12974         function
12975
12976         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
12977         implement
12978
12979         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
12980         scroll_to_cell, matches TextView scroll functions better
12981         (gtk_tree_view_tree_to_widget_coords): new function
12982         (gtk_tree_view_widget_to_tree_coords): new function
12983         (gtk_tree_view_get_visible_rect): new function
12984         (gtk_tree_view_get_path_at_pos): accept negative coordinates
12985         (gtk_tree_view_draw_node_focus_rect): new function moved from
12986         draw_focus, also, use width of bin_window as width of the focus
12987         rect
12988         (gtk_tree_view_expand_row): fix bug where it didn't recognize
12989         already-expanded rows
12990         (gtk_tree_view_get_cell_rect): new function
12991         (gtk_tree_view_get_path_at_pos): return the click position
12992         relative to the passed-in cell
12993         (gtk_tree_view_set_expander_column): new function
12994
12995         * configure.in: remove gtk-config-2.0 chmod
12996
12997         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
12998         and properly handle drags with targets we don't understand
12999         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
13000         scrolling anyway
13001         (gtk_text_view_drag_drop): stop scrolling here though, and set the
13002         mark invisible
13003
13004         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
13005         function
13006         (gtk_drag_dest_get_target_list): new function
13007         (gtk_drag_dest_set_target_list): new function
13008         
13009         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
13010
13011         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
13012         related to drag-and-drop
13013
13014 2001-01-19  Alexander Larsson  <alexl@redhat.com>
13015
13016         * gdk/linux-fb/gdkprivate-fb.h:
13017         Define EMULATE_GDKFONT.
13018         Add extra pango_font stuff to GfkFontPrivate.
13019         
13020         * gdk/linux-fb/gdkdrawable-fb2.c:
13021         * gdk/linux-fb/gdkfont-fb.c:
13022         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
13023         emulation using PangoFont.
13024
13025 2001-01-17  Havoc Pennington  <hp@pobox.com>
13026
13027         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
13028         all the non-deprecated set_foo functions. Added missing object
13029         properties, and added g_object_notify() to setters. 
13030         Wrote docs.
13031         
13032 2001-01-18  Tor Lillqvist  <tml@iki.fi>
13033
13034         * gtk/gtkmain.c
13035         * gtk/gtkrc.c: (Win32) Use the new
13036         g_win32_get_package_installation_(sub)directory() functions.
13037
13038         * config.h.win32.in: New file.
13039         
13040         * config.h.win32: Removed.
13041
13042         * configure.in: Output config.h.win32.
13043
13044         * Makefile.am: Add it to EXTRA_DIST.
13045
13046         * gtk/gtk.def: Update.
13047
13048 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
13049
13050         * gtk/gtklabel.c (gtk_label_size_request): Set the
13051         attributes onto the PangoLayout even if they are newly
13052         created from label->pattern.
13053
13054 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
13055
13056         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
13057
13058         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
13059         structures in functions. Fixes bug where gtk_dataset_*
13060         was accidentally still being used in one place, causing
13061         every dest side event to be treated independently.
13062
13063         * gtk/gtkdnd.c: Remove last vestages of handling
13064         ::draw (fixes warning)
13065         
13066         * gtk/gtkentry.[ch]: Add drag and drop support.
13067
13068         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
13069         new function gtk_check_drag_threshhold() for checking
13070         to check if (dx,dy) has exceeded the threshhold for starting
13071         a drag and use it everywhere.
13072
13073 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
13074
13075         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
13076         add -I{includedir}/gtk-2.0.
13077
13078         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
13079         gdk/gdk-pixbuf.h: Doc fixups.
13080         
13081         * gtk/gtkobject.h: Remove trailing , from enum
13082
13083 2001-01-17 Alexander Larsson <alexl@redhat.com> 
13084
13085         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
13086         Doh! Mixed up x and y.
13087
13088         * gdk/linux-fb/gdkglobals-fb.c:
13089         Removed gdk_fb_pointer_grab_window_events,
13090         added _gdk_fb_pointer_grab_owner_events and
13091         _gdk_fb_keyboard_grab_owner_events.
13092
13093         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
13094         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
13095         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
13096         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
13097         Send crossing events after ungrab finished.
13098         (gdk_keyboard_grab): Set ..._owner_events
13099         (type_masks): Move out of function.
13100         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
13101         gdk_fb_keyboard_event_window): New functions, return the
13102         window an event should be targeted at. Handles grabs and
13103         event propagation. Can return NULL.
13104         (gdk_event_make): Remove event_mask checking. Now always
13105         returns an event.
13106                 
13107         * gdk/linux-fb/gdkkeyboard-fb.c:
13108         * gdk/linux-fb/gdkproperty-fb.c:
13109         * gdk/linux-fb/gdkselection-fb.c:
13110         Use new event_window/gdk_event_make() behaviour.
13111         
13112         * gdk/linux-fb/gdkmouse-fb.c:
13113         Use new event_window/gdk_event_make() behaviour.
13114         Only send motion events if in the same window.
13115         If grabbed, use cursor from window if sibling of grabbed
13116         window, and cursor from grabbed window otherwise.
13117
13118         * gdk/linux-fb/gdkprivate-fb.h:
13119         Update gdk_fb_window_send_crossing_events, gdk_event_make
13120         and grab varaible declarations. Add gdk_fb_*_event_window().
13121
13122         * gdk/linux-fb/gdkwindow-fb.c:
13123         Use new event_window/gdk_event_make() behaviour.
13124         Keep correct track of focus window.
13125         (gdk_window_set_events): Set all specific button motion masks
13126         if GDK_BUTTON_MOTION_MASK set.
13127
13128         * gtk/gtkdnd.c (gtk_drag_update):
13129         Free info->last_event if gdk_drag_motion returned FALSE.
13130
13131 2001-01-16  Tor Lillqvist  <tml@iki.fi>
13132
13133         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
13134         Eliminate redraws when input-only windows are shown or
13135         hidden. Thanks to jpe@archaeopteryx.com.
13136
13137 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
13138
13139         * docs/faq/gtk-faq.sgml: FAQ update:
13140           - Update to bugzilla
13141           - Add GTK+ and security/SUID/SGID
13142           - Add DnD question
13143
13144 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
13145
13146         * gdk/linux-fb/gdkdnd-fb.c:
13147         Some cleanups.
13148         
13149 2001-01-15  Havoc Pennington  <hp@pobox.com>
13150
13151         * tests/testtreeview.c: add test stuff for CellRendererToggle
13152
13153         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
13154         accessor
13155
13156         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
13157         only toggle on button press (would do release like GtkButton, but
13158         we'd need implicit grab code for treeview cells)
13159
13160 2001-01-16  Tor Lillqvist  <tml@iki.fi>
13161
13162         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
13163
13164         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
13165         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
13166
13167         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
13168         to g_{locale,filename}_{to,from}_utf8 to match current API.
13169
13170         * gtk/makefile.msc.in (gtk_OBJECTS)
13171         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
13172
13173         * gtk/gtk.def: Update.
13174
13175 2001-01-15  Tor Lillqvist  <tml@iki.fi>
13176
13177         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
13178         implementaion that more closely mimics the events that an X server
13179         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
13180         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
13181         with nested preview widgets, for instance, more responsive when
13182         you move the mouse quickly into them.
13183         (find_window_for_pointer_event): Make it actually compile.
13184         (gdk_event_translate): Set send_event to the value of
13185         InSendMessage (). This doesn't really mean the same as X11's
13186         send_event flag, but is close enough, says jpe@archaeopteryx.com
13187
13188 2001-01-15  Alexander Larsson  <alexl@redhat.com>
13189
13190         * gdk/linux-fb/gdkdnd-fb.c:
13191         Implemented drag and drop.
13192         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
13193         when it tries to free and then copy the same event (info->last_event).
13194         I am not sure about why this happens, but will continue looking.
13195
13196 2001-01-15  Alexander Larsson  <alexl@redhat.com>
13197
13198         * gdk/linux-fb/gdkwindow-fb.c:
13199         Use gdk_window_invalidate_rect instead of
13200         gdk_window_invalidate_rect_clear to minimise flashing.
13201         When hiding windows you need to clear the root window though.
13202
13203 2001-01-15  Alexander Larsson  <alexl@redhat.com>
13204
13205         * gdk/linux-fb/gdkdrawable-fb2.c:
13206         For optization, add an full_shapes argument to gdk_fb_clip_region.
13207         If this is false, only the cliprects of the shapes are used.
13208
13209         * gdk/linux-fb/gdkprivate-fb.h:
13210         Export gdk_fb_window_peek_shape.
13211         Add full_shapes to gdk_fb_clip_region.
13212
13213         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
13214         When moving a window, don't clear everything under the it, just the
13215         root window. Makes stuff faster and flash less.
13216         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
13217         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
13218         offset of the shape.
13219         
13220
13221 2001-01-12  Havoc Pennington  <hp@redhat.com>
13222
13223         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
13224         current invalid region, fixes redraw bug while scrolling the 
13225         text widget
13226
13227         * gtk/gtktextview.c, gtk/gtktextview.h:
13228         Rearrange the scrolling/validation/etc. code in a major way, 
13229         so it seems to make sense to me. Probably isn't genuinely that
13230         much better, but...
13231
13232         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
13233         notifies
13234
13235         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
13236
13237 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
13238
13239         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
13240         Hide mouse pointer while rotation. Show it afterwards.
13241
13242 2001-01-12  Alexander Larsson  <alexl@redhat.com>
13243
13244         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
13245         windows in consideration when generating clip region.
13246
13247         * gdk/linux-fb/gdkfb.h:
13248         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
13249
13250         * gdk/linux-fb/gdkprivate-fb.h:
13251         Add shape to GdkWindowFBDatat.
13252         exported gdk_fb_window_get_abs_shape().
13253         removed gdk_fb_draw_lines declaration.
13254
13255         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
13256         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
13257         send focus changes when there is a grabbed window.
13258         (gdk_window_get_pointer): Handle shaped windows.
13259         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
13260         (gdk_fb_window_peek_shape): Returns the shape for a window,
13261         handles GDK_FB_USE_CHILD_SHAPE.
13262         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
13263         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
13264         (gdk_window_shape_combine_mask): Implement.
13265
13266         * gtk/gtkwindow-decorate.c:
13267         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
13268         setting the shape of a window makes the window transparent.
13269
13270 2001-01-11  Havoc Pennington  <hp@redhat.com>
13271
13272         * gtk/gtktreemodelsimple.h: Oops, broke some macros
13273
13274 2001-01-10  Havoc Pennington  <hp@redhat.com>
13275
13276         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
13277         add this function, bug 40251
13278
13279         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
13280         of type macro   
13281
13282 2001-01-11  Alexander Larsson  <alexl@redhat.com>
13283
13284         * acconfig.h:
13285         Added ENABLE_SHADOW_FB
13286
13287         * configure.in:
13288         Added --disable-shadowfb
13289
13290         * gdk/linux-fb/gdkcursor-fb.c:
13291         Update shadowfb when updating cursor
13292
13293         * gdk/linux-fb/gdkdrawable-fb2.c:
13294         Added wrappers for shadowfb that calls  the normal drawable
13295         methods, but calls gdk_shadow_fb_update(bounding box) when
13296         GdkWindows are drawed to.
13297         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
13298         which also returns the bounding box.
13299
13300         * gdk/linux-fb/gdkfb.h:
13301         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
13302
13303         * gdk/linux-fb/gdkgeometry-fb.c:
13304         Update shadowfb when scrolling window.
13305
13306         * gdk/linux-fb/gdkglobals-fb.c:
13307         Add _gdk_fb_screen_angle.
13308         
13309         * gdk/linux-fb/gdkkeyboard-fb.c:
13310         Test code for screen rotation. Shift-F2 in the xlate driver
13311         rotates the screen.
13312
13313         * gdk/linux-fb/gdkmain-fb.c:
13314         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
13315
13316         * gdk/linux-fb/gdkmouse-fb.c:
13317         Use fb_width/height instead of modeinfo.xres/yres.
13318
13319         * gdk/linux-fb/gdkprivate-fb.h:
13320         Added fb_men, fb_width, fb_height & fb_stride. When using
13321         shadow fb these can differ from the framebuffer stuff.
13322         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
13323         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
13324         _gdk_fb_screen_angle. Removed CM, RP.
13325
13326         * gdk/linux-fb/gdkrender-fb.c:
13327         Added code for shadowfb handling and screen rotation using
13328         shadowfb.
13329
13330         * gdk/linux-fb/gdkwindow-fb.c:
13331         Use fb_mem, fb_stride, fb_width, fb_height.
13332         Added recompute_rowstride to reset the rowstride of all windows.
13333         Added gdk_fb_recompute_all() which recomputes rootwindow size,
13334         window abs positions and window rowstrides. Usefull when the
13335         rotation has changed.
13336
13337 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
13338
13339         * docs/faq/gtk-faq.sgml: update to make web site updating easier
13340
13341 2001-01-10  Havoc Pennington  <hp@redhat.com>
13342
13343         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
13344         where sibling == iter
13345         (gtk_tree_store_insert_after): handle sibling == iter
13346         (gtk_tree_store_prepend): remove stamp checks
13347         (gtk_tree_store_insert_before): ditto
13348         (gtk_tree_store_append): ditto
13349         (gtk_tree_store_get_path): ditto
13350         (gtk_tree_store_get_value): ditto
13351         (gtk_tree_store_iter_has_child): ditto
13352         (gtk_tree_store_iter_n_children): ditto
13353         (gtk_tree_store_iter_nth_child): ditto
13354         (gtk_tree_store_insert_after): ditto
13355         (gtk_tree_store_is_ancestor): ditto
13356         (gtk_tree_store_iter_depth): ditto
13357         (gtk_tree_store_insert_before): assert that sibling's parent is
13358         the same as the passed-in parent
13359         (gtk_tree_store_insert_after): assert that sibling's parent is
13360         the same as the passed-in parent
13361
13362         
13363         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
13364         function to get the first iterator in a model
13365         
13366         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
13367         conventionally the "root" in this sense is just NULL afaict.
13368
13369         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
13370         where sibling == iter
13371         (gtk_list_store_insert_after): handle case where sibling == iter
13372
13373         * tests/testtreeview.c (run_automated_tests): fairly lame basic
13374         automated tests for ListStore, TreeStore
13375
13376         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
13377         (gtk_list_store_insert): update tail pointer, and fix it to work
13378         (gtk_list_store_insert_before): update tail pointer, and fix it to work
13379         (gtk_list_store_append): use tail to be faster
13380         (gtk_list_store_prepend): fix it, update tail pointer
13381         (gtk_list_store_insert_after): fix it, update tail pointer
13382
13383         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
13384         the list
13385
13386 2001-01-09  Havoc Pennington  <hp@redhat.com>
13387
13388         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
13389         is NULL due to a pending resize
13390
13391         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
13392         column width to values less than 1
13393
13394         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
13395         width to be between min/max width, and still set the width 
13396         even if autosize is turned on, so the tree view can use this 
13397         function in order to autosize.
13398         (gtk_tree_view_column_init): set initial width to 1 not 0
13399
13400         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
13401         setter function to modify column width, so we get notification
13402         (gtk_tree_view_insert_iter_height): ditto
13403         (gtk_tree_view_calc_size): ditto
13404         (gtk_tree_view_check_dirty): ditto
13405
13406         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
13407         properties to change all the interesting attributes of the tree
13408         view column.
13409         (gtk_tree_view_column_set_header_clickable): rename set_clickable
13410         (gtk_tree_view_column_get_clickable): add
13411         (gtk_tree_view_column_set_cell_renderer): don't unset the current
13412         attributes; assume a cell renderer with equivalent object
13413         properties has been swapped in. Do g_object_notify().
13414         (gtk_tree_view_column_set_visible): g_object_notify
13415         (gtk_tree_view_column_get_sizing): rename from get_col_type
13416         (gtk_tree_view_column_set_sizing): g_object_notify
13417         (gtk_tree_view_column_set_width): add g_object_notify
13418         (gtk_tree_view_column_set_min_width): ditto
13419         (gtk_tree_view_column_set_max_width): ditto
13420         (gtk_tree_view_column_set_title): ditto
13421         (gtk_tree_view_column_set_clickable): ditto
13422         (gtk_tree_view_column_set_widget): ditto
13423         (gtk_tree_view_column_set_justification): ditto
13424
13425 2001-01-09  Havoc Pennington  <hp@redhat.com>
13426
13427         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
13428         there are no rows in the model
13429
13430         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
13431         NULL, then return the start of the list
13432
13433         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
13434         if we can't get any rows from an empty model 
13435
13436         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
13437         extraneous * after function pointer typedef usage
13438
13439         * Makefile.am: don't specify full path to cp and rm
13440
13441         * gtk/gtkcellrenderertextpixbuf.c
13442         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
13443         NULL before dereferencing, fixes a segfault that happened from
13444         time to time
13445
13446         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
13447         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
13448         and reindent the function
13449         (gtk_cell_renderer_pixbuf_get_size): indentation
13450
13451         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
13452         we quit it
13453         (gtk_dialog_add_buttons_valist): add g_return_if_fail
13454         (gtk_dialog_set_default_response): New function, to set default
13455         button
13456         (gtk_dialog_set_response_sensitive): New function, to set 
13457         sensitivity of buttons
13458
13459         * gtk/gtkcellrendererpixbuf.c
13460         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
13461         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
13462
13463         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
13464         handle any G_TYPE_OBJECT subclass, not just the base class, and 
13465         also boxed types.
13466         (_gtk_tree_data_list_value_to_node): ditto
13467
13468         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
13469         --gtk-debug=tree
13470
13471         * gtk/gtkmain.c: add GTK_DEBUG_TREE
13472
13473         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
13474
13475 2001-01-09  Tor Lillqvist  <tml@iki.fi>
13476
13477         * gdk/win32/gdkevents-win32.c: Implement better mouse
13478         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
13479         (find_window_for_pointer_event): New function.
13480         (gdk_event_translate): Use it when handling mouse events.
13481
13482 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
13483
13484         * configure.in:
13485         Added --with-included-loaders option
13486
13487         * gdk-pixbuf/Makefile.am:
13488         * gdk-pixbuf/gdk-pixbuf-io.c:
13489         Add support for including selected gdk-pixbuf loaders only.
13490
13491         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
13492         gtk_window_set_has_frame):
13493         Added inline documentation.
13494
13495         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
13496         * docs/reference/gdk/tmpl/windows.sgml:
13497         Added inline documentation.
13498
13499 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
13500
13501         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
13502         realizing buttons that have already been realized.
13503
13504 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
13505
13506         * tests/testtreeview.c (main): Show menu items before adding to
13507         option menu.
13508
13509         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
13510         around if we kill them.
13511
13512         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
13513         Return if we pass in a NULL model.
13514
13515 2001-01-08  Havoc Pennington  <hp@redhat.com>
13516
13517         * tests/testtreeview.c: hack on this some
13518
13519         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
13520         gtk_tree_store_set_valist, v is for arrays, valist for varargs
13521         list
13522         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
13523
13524         * gtk/gtkliststore.h: Add varargs set() and get() convenience
13525         functions
13526
13527 2001-01-08  Alexander Larsson  <alexl@redhat.com>
13528
13529         * gtk/gtkwindow-decorate.[hc]:
13530         * gtk/Makefile.am:
13531         New files. Contains an implementation of a minimal WM for
13532         linux-fb.
13533
13534         * gtk/gtkwindow.h:
13535         Add the possibility for GtkWindows to specify a frame. This
13536         is used for the window decoration code, but could concievably
13537         be used for X programs too (xmms style windows).
13538         GtkWindow->frame is the toplevel window if the window is framed.
13539         The signal frame_event gets all events that are targeted to
13540         GtkWindow->frame.
13541         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
13542         
13543         * gtk/gtkwindow.c:
13544         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
13545         Call out to gtkwindow-decorate.c for WM support in linx-fb.
13546
13547 2001-01-08  Alexander Larsson  <alexl@redhat.com>
13548
13549         * docs/README.linux-fb:
13550         Correct filename ~/.pangoft2_aliases
13551
13552         * gdk/gdkwindow.h:
13553         Added new function gdk_window_get_decorations.
13554
13555         * gdk/linux-fb/gdkfb.h:
13556         Removed _gdk_window_get_decorations declaration.
13557         Renamed _gdk_window_set_child_handler to
13558         gdk_fb_window_set_child_handler.
13559
13560         * gdk/linux-fb/gdkwindow-fb.c:
13561         Renamed _gdk_window_set_child_handler to
13562         gdk_fb_window_set_child_handler.
13563
13564         * gdk/x11/gdkwindow-x11.c:
13565         New function gdk_window_get_mwm_hints().
13566         Implemented gdk_window_get_decorations.
13567
13568         * docs/reference/gdk/tmpl/windows.sgml:
13569         * docs/reference/gdk/gdk-sections.txt:
13570         Added gdk_window_get_decorations docs.
13571         
13572 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
13573
13574         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
13575         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
13576         gdk_fb_window_send_crossing_events):
13577         Possibly send focus events when the mouse moves from one
13578         window to another.
13579
13580 2001-01-07  Tor Lillqvist  <tml@iki.fi>
13581
13582         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
13583         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
13584         to match current API.
13585
13586         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
13587         environment variable is set, don't call g_error when on a
13588         palettized (PseudoColor) display. Some people want to use GTK+ 
13589         in 256-colour mode even though works only partially.
13590
13591         * gdk/gdk.def
13592         * gtk/gtk.def
13593         * gtk/makefile.mingw.in: Update.
13594
13595 2001-01-05  Havoc Pennington  <hp@redhat.com>
13596
13597         * tests/testtreeview.c: hack on this a bit
13598
13599         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
13600         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
13601
13602         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
13603         was spelled incorrectly
13604         (GTK_IS_TREE_MODEL_SIMPLE): ditto
13605
13606         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
13607         from gtk_tree_view_set_headers_active   
13608
13609         * gtk/gtktexttag.c:
13610         (gtk_text_tag_get_property): handle PROP_DIRECTION
13611         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
13612         properties, bug 40235
13613
13614         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
13615         forward_to_line_end
13616
13617 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
13618
13619         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
13620         modules/input/gtkimcontextxim.c: Adapt to new prototypes
13621         for unicode,locale,filename conversion functions.
13622
13623 2001-01-05  Havoc Pennington  <hp@redhat.com>
13624
13625         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
13626         broken if called on the first position in the buffer.
13627
13628         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
13629         forward_to_delimiters to be called only if we aren't already at
13630         the delimiters.
13631
13632 2001-01-05  Havoc Pennington  <hp@redhat.com>
13633
13634         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
13635
13636 2001-01-05  Alexander Larsson  <alexl@redhat.com>
13637
13638         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
13639         colormap in here. Sync from X port.
13640         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
13641         Sync from X port.
13642         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
13643         This happens now and then, and i don't think it is a bug.
13644         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
13645         != endpoint.
13646         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
13647         GDK_LINE_SOLID.
13648
13649         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
13650         some of the fields filled in at least.
13651
13652         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
13653         miLineArcD is no more, remove it from the function definition.
13654
13655 2001-01-04  Havoc Pennington  <hp@redhat.com>
13656
13657         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
13658         this
13659
13660         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
13661         user_data instead of tree_node
13662
13663         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
13664         TREE_VIEW_COLUMN_SIZE
13665
13666         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
13667         "size" field to "width" finishes bug 40061
13668
13669         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
13670         for bitfields, bug 40268
13671
13672 2001-01-04  Havoc Pennington  <hp@redhat.com>
13673
13674         Rename some stuff:
13675         
13676         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
13677
13678         s/GtkModelSimple/GtkTreeModelSimple/g;
13679         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
13680         s/gtk_model_simple/gtk_tree_model_simple/g;
13681         s/gtkmodelsimple/gtktreemodelsimple/g;
13682
13683         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
13684
13685         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
13686         s/column_set_col_type/column_set_sizing/g;
13687
13688         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
13689         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
13690
13691         s/GtkCellRendererType/GtkCellRendererState/g;
13692         
13693         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
13694         (gtk_cell_renderer_toggle_class_init): change "state" property to
13695         "active", to match GtkToggleButton
13696         (gtk_cell_renderer_toggle_get_active): new function, bug
13697         40269
13698         (gtk_cell_renderer_toggle_set_active): new function
13699         (gtk_cell_renderer_toggle_set_property): route changes to toggle
13700         state through gtk_cell_renderer_set_active
13701
13702 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
13703
13704         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
13705         temporarily until they work again.  Brought up to date with
13706         changes in the model.
13707         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
13708         model.
13709
13710 2001-01-04  Havoc Pennington  <hp@redhat.com>
13711
13712         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
13713         equal to the line length, then position iterator before paragraph 
13714         separators. Fixes crash reported by Mikael Hermansson when
13715         pressing left arrow from the start of a line.   
13716
13717         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
13718         about byte indexes off the end
13719         (iter_set_from_char_offset): add g_error about char offsets
13720         off the end
13721
13722 2001-01-03  Havoc Pennington  <hp@redhat.com>
13723
13724         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
13725
13726         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
13727         of private functions; remove inclusion of private headers.
13728
13729         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
13730         function, so we don't need private functions in gtktextdisplay.c
13731
13732         * gtk/gtktextiterprivate.h: underscore-ification
13733
13734         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
13735         to instead say "only useful to implement widgets"
13736
13737         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
13738         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
13739         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
13740
13741         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
13742         This function was completely broken
13743
13744         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
13745
13746         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
13747
13748         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
13749
13750         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
13751
13752         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
13753
13754         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
13755
13756         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
13757         gtk_paint_layout
13758
13759         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
13760         gtk_paint_layout
13761
13762         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
13763         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
13764         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
13765         which were not implemented.     
13766
13767         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
13768         insert_pixbuf signal. Rename delete_text to delete_range since it
13769         also deletes pixbufs and child anchors. This almost closes bug
13770         40245 (still need to deal with child anchors)
13771
13772         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
13773         insert_pixbuf, change signal names as appropriate, change types of
13774         signals taking marks/tags to have the specific type, not just
13775         G_TYPE_OBJECT
13776         
13777         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
13778         closes bug 40051
13779
13780         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
13781         unnecessary remove_contents() call
13782         (gtk_option_menu_class_init): add a "changed" signal, closes
13783         bug 40039
13784         (gtk_option_menu_update_contents): emit "changed" if the 
13785         active menu item changes
13786
13787         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
13788         cast to GtkObject, reported by Jonas Borgstrom
13789         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
13790         we can't do stuff with side effects in finalize. Instead, spew a
13791         warning if the loader isn't closed.
13792
13793         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
13794         colormap in here, non-X ports probably need to sync to this change
13795
13796         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
13797         assertion that colormap != NULL, you can set the colormap to NULL
13798         if you like.
13799         
13800         * Makefile.am: remove gtk-config-2.0
13801
13802         * configure.in: Use pkg-config to locate GLib. Remove
13803         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
13804         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
13805         Use pkg-config to locate Pango. Output correct Pango libs to
13806         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
13807
13808         * Makefile.am (pkgconfig_DATA): install only target-specific pc
13809         files
13810         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
13811         X11 pc files
13812
13813         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
13814         unref from here
13815
13816 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
13817
13818         * configure.in:
13819         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
13820
13821 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
13822
13823         * gtk/gtktextlayout.c
13824         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
13825         variable when moving back onto a single line.
13826
13827 2001-01-01  Havoc Pennington  <hp@redhat.com>
13828
13829         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
13830
13831         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
13832
13833         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
13834         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
13835
13836 2001-01-01  Havoc Pennington  <hp@redhat.com>
13837
13838         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
13839
13840         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
13841         GtkTextAttributes
13842
13843         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
13844         #40246
13845         (gtk_text_attributes_copy_values): rename from 
13846         gtk_text_attributes_copy
13847         (gtk_text_attributes_copy): a more standard GTK copy function, 
13848         which returns a new object
13849
13850 2001-01-01  Havoc Pennington  <hp@redhat.com>
13851
13852         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
13853         
13854         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
13855         don't fill in tree_view->priv->selection, kind of an unexpected
13856         side effect
13857
13858         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
13859         gtkintl.h
13860         
13861         * gtk/gtkcellrenderer.c: Remove definition of _ and include
13862         gtkintl.h
13863         (gtk_cell_renderer_get_property): remove calls to g_value_init
13864
13865         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
13866         gtkintl.h
13867
13868         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
13869         and include gtkintl.h
13870         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
13871         property names
13872
13873         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
13874         GtkTreeSelection
13875         (_gtk_tree_selection_new_from_with_view): rename, return
13876         GtkTreeSelection
13877         (_gtk_tree_selection_set_tree_view): rename with uscore
13878         (gtk_tree_selection_get_selected): fill in the "model" out param
13879         first, so it gets filled in even if we return at the top of the 
13880         function
13881         (gtk_tree_selection_real_select_all): add a comment and an else{}
13882         to clarify this a bit
13883         (gtk_tree_selection_real_unselect_all): add the same else{}
13884
13885         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
13886         set_tree_view to have underscore prefixes, move them to the
13887         private header, fix return type of new_with_tree_view
13888         (struct _GtkTreeSelection): mark struct
13889         fields private  
13890
13891         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
13892         GtkTreeModelFlags, not a guint
13893         (gtk_tree_path_prev): return gboolean not gint
13894         (gtk_tree_path_up): return gboolean not gint
13895
13896         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
13897         return GtkTreeModelFlags, not a guint
13898
13899         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
13900         that child model is non-null before unrefing it
13901         (g_value_int_compare_func): make this a qsort compare func, not 
13902         a boolean predicate
13903
13904         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
13905         (add -umn to the end), and mark it unimplemented
13906         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
13907         I don't see what it's for - doesn't the model always sort itself?
13908         (gtk_tree_model_sort_set_compare): this had the wrong signature
13909
13910         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
13911         Fix the docs to say that it destructively replaces existing
13912         attributes (previously said that it added attributes).
13913         (gtk_tree_view_column_set_visible): canonicalize bool before
13914         equality testing. Also, check for realization before
13915         hiding/showing the tree_column->window; if this window could exist
13916         before realization, then it's busted and needs fixing, we can't 
13917         create GDK resources pre-realization. Also, remove
13918         superfluous queue_resize(), since set_size() does that for us.
13919         (gtk_tree_view_column_set_col_type): check realization before 
13920         using tree_column->window
13921
13922         * gtk/gtktreedatalist.c: fix filename in copyright notice
13923
13924 2000-12-31  Havoc Pennington  <hp@pobox.com>
13925
13926         * gtk/gtktextview.c: Rearrange all the
13927         scroll-while-dragging-or-selecting code to be different, not
13928         necessarily better. ;-)
13929         (gtk_text_view_scroll_to_mark): Change this
13930         function to take within_margin as a fraction instead of a pixel
13931         value, and to take alignment arguments (indicating where to align 
13932         the mark inside the visible area)
13933         
13934         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
13935         to GtkObject
13936
13937         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
13938         behavior so that offsets past the end of the line are not 
13939         allowed, and an offset equal to the line length moves the iterator
13940         to the next line
13941         (gtk_text_iter_set_line_index): make parallel change
13942         (gtk_text_iter_get_bytes_in_line): add this function
13943         
13944         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
13945         of byte indexes off the end of the line; byte index at the end of
13946         the line now returns FALSE and doesn't fill in the requested
13947         values, byte index past the end of the line is an error.  Also,
13948         don't allow -1 offset anymore, since its meaning is unclear.
13949
13950         This change exposes some bug in visual cursor motion, where we
13951         end up with a huge invalid byte index; needs fixing. Symptom of 
13952         bug is a crash when you hit up arrow.
13953         
13954         (_gtk_text_line_char_locate): match the change to byte_locate
13955
13956         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
13957         from start of line properly. fixes bug reported by Mikael
13958         Hermansson where backspace would delete all text before the
13959         cursor.
13960
13961 2000-12-30  Tor Lillqvist  <tml@iki.fi>
13962
13963         * gdk/win32/gdkwindow-win32.c
13964         (gdk_window_impl_win32_get_visible_region): New function, as in
13965         the X11 backend.
13966         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
13967         instead of duplicating the same code here.
13968
13969         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
13970         GDK_COLORMAP macro.
13971
13972         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
13973         destroy function.
13974         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
13975         access that.
13976
13977         * gtk/gtk.def: Update.
13978
13979         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
13980
13981 2000-12-30  Havoc Pennington  <hp@pobox.com>
13982
13983         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
13984         colormap on input only windows, to avoid special cases all over
13985         the code for these windows.
13986
13987 2000-12-26  Tor Lillqvist  <tml@iki.fi>
13988
13989         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
13990         we are on a palettized display ("PseudoColor" in X11), as the code
13991         for that doesn't work anyway, and never has.
13992
13993 2000-12-22  Alexander Larsson  <alexl@redhat.com>
13994
13995         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
13996         Don't use isprint() for chars > 255.
13997
13998 2000-12-21  Havoc Pennington  <hp@redhat.com>
13999
14000         * tests/testtreeview.c: more work
14001
14002 2000-12-21  Alexander Larsson  <alexl@redhat.com>
14003
14004         * docs/README.linux-fb:
14005         Update the docs to the new pangoft2 way.
14006
14007 2000-12-21  Alexander Larsson  <alexl@redhat.com>
14008
14009         * configure.in:
14010         For linux-fb get the pangoft2 cflags and libs. This needs a recent
14011         pango version.
14012         Remove modules/linux-fb/Makefile.
14013
14014         * gdk/linux-fb/gdkdrawable-fb2.c:
14015         Render glyphs using freetype.
14016
14017         * gdk/linux-fb/gdkfb.h:
14018         Add new fb-specific functions needed for managing windows.
14019
14020         * gdk/linux-fb/gdkmain-fb.c:
14021         Remove gdk_font_init/fini() calls.
14022
14023         * gdk/linux-fb/gdkpango-fb.c:
14024         Remove old implementation. Use pangoft2 instead.
14025
14026         * gdk/linux-fb/gdkprivate-fb.h:
14027         Remove PangoFBFont and related stuff.
14028
14029         * gdk/linux-fb/gdkwindow-fb.c:
14030         Implement drawable->get_visible_region.
14031         Implement support for _gdk_window_set_child_handler () and
14032         _gdk_window_get_decorations().
14033
14034         * modules/Makefile.am:
14035         Remove linux-fb subdir.
14036
14037         * modules/linux-fb/*:
14038         Removed all.
14039         
14040 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
14041
14042         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
14043         calls, as they are no longer needed.
14044
14045         * gtk/gtktreemodelsort.c: Fix up the comparison code.
14046         
14047         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
14048         figure out how to emit a signal on an interface.
14049
14050 2000-12-20  Havoc Pennington  <hp@redhat.com>
14051
14052         * tests: new directory to contain tests, gtk/test* should move
14053         here sometime (with appropriate on-cvs-server hackery)
14054
14055         * tests/testtreeview.c, tests/Makefile.am: a test
14056         
14057         * configure.in (AC_OUTPUT): add tests/Makefile
14058
14059         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
14060         and "invisible_set" which were missing
14061
14062         * gtk/gtkrbtree.h: some cheesy indentation fix
14063         
14064 2000-12-20  Alexander Larsson  <alexl@redhat.com>
14065
14066         * gtk/gtkinvisible.c (gtk_invisible_realize):
14067         Attach the style to the window so that the style it is not
14068         leaked when unrealizing the window.
14069
14070 2000-12-18  Havoc Pennington  <hp@redhat.com>
14071
14072         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
14073         begin/end user action where appropriate
14074         (gtk_text_view_commit_handler): add begin/end user action
14075
14076         * gtk/gtktextbuffer.c: add begin/end user action signals, and
14077         bracket interactive operations with begin/end user action pair.
14078         
14079         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
14080         "interactive" arg from insert_text and delete_text signals.
14081         Add begin_user_action, end_user_action signals
14082         (gtk_text_buffer_begin_user_action): 
14083         (gtk_text_buffer_end_user_action): New functions to delimit 
14084         a user-visible action
14085
14086         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
14087         signals.
14088         
14089 2000-12-18  Havoc Pennington  <hp@redhat.com>
14090
14091         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
14092         was pretty non-working.
14093
14094         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
14095         by passing the length to g_utf8_validate().
14096
14097 2000-12-16  Havoc Pennington  <hp@pobox.com>
14098
14099         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
14100         Port to GObject, can go back in gdk-pixbuf after setting up 
14101         a gdk-pixbuf-marshal.h header over there.
14102
14103         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
14104         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
14105         args
14106         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
14107         set
14108         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
14109         here, do it when we create the buttons later
14110         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
14111         (gtk_tree_view_map): paranoia checks that column->button is shown 
14112         and unmapped
14113         (gtk_tree_view_size_request): only request visible children.
14114         Move header size calculation in here, for cleanliness, and 
14115         to maintain invariants for child widgets if we eventually 
14116         let users set different children inside the buttons
14117         (gtk_tree_view_map_buttons): factor out code to map buttons,
14118         since it was being called several times
14119         (gtk_tree_view_size_allocate_buttons): move_resize the drag
14120         windows instead of just moving them; their height may change 
14121         if we allow random widgets in there, or the theme changes.
14122         (gtk_tree_view_size_allocate): move button size allocation 
14123         above emitting the scroll signals, to ensure a sane state when we
14124         hit user code
14125         (gtk_tree_view_button_release): remove queue_resize after
14126         tree_view_set_size(), set_size() will handle any resize queuing
14127         that's needed
14128         (gtk_tree_view_focus_in): just queue a draw, don't fool with
14129         draw_focus goo
14130         (gtk_tree_view_focus): use gtk_get_current_event() and
14131         gdk_event_get_state()
14132         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
14133         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
14134         semicolon
14135         (gtk_tree_view_create_button): show the button here
14136         (gtk_tree_view_button_clicked): actually emit the clicked signal
14137         on the column
14138         (_gtk_tree_view_set_size): return right away if the size is
14139         unchanged, as a cheesy optimization
14140         (gtk_tree_view_setup_model): rename set_model_realized to 
14141         setup_model to match the flag that indicates whether we've 
14142         called it
14143         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
14144         exist, because set_scroll_adjustment does that and it shouldn't
14145         matter what order you call these in
14146         (gtk_tree_view_get_vadjustment): ditto
14147         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
14148         for paranoia
14149         (gtk_tree_view_set_headers_visible): call
14150         gtk_tree_view_map_buttons() instead of using cut-and-paste code
14151         (gtk_tree_view_append_column): clarify whether the return value
14152         is the count of columns before or after, and do the increment 
14153         separately from the return statement so you can tell from the code.
14154         (gtk_tree_view_remove_column): ditto
14155         (gtk_tree_view_insert_column): ditto
14156         (gtk_tree_view_get_column): remove g_return_if_fail for columns
14157         outside the existing range, the docs say that outside-range
14158         columns are allowed, so we handle them as documented. (Presumably
14159         this allows a nice loop with column != NULL as test.)
14160         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
14161         mean (left/right/center etc.).
14162         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
14163         (gtk_tree_view_expand_row): add docs
14164         (gtk_tree_view_collapse_row): add docs
14165
14166         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
14167         function to emit the clicked signal on a column
14168         
14169         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
14170         state of an event
14171         (gdk_event_get_time): don't treat GDK_SCROLL 
14172         as a button event, remove default case from switch so gcc 
14173         will whine if we don't explicitly handle all event types
14174
14175         * gtk/gtktreeselection.h: added some FIXME 
14176         
14177         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
14178         "columns" to "n_columns" and "column" to "columns" for clarity
14179
14180 2000-12-16  Havoc Pennington  <hp@pobox.com>
14181         
14182         * gtk/gtktextiter.c: General cleanup of the log attr iteration
14183         stuff. This should make e.g. the delete key work again in the
14184         text widget...
14185         (gtk_text_iter_forward_cursor_positions): handle negative count
14186         (gtk_text_iter_backward_cursor_positions): handle negative count
14187         (gtk_text_iter_forward_word_ends): handle negative count
14188         (gtk_text_iter_backward_word_starts): handle negative count
14189
14190         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
14191         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
14192         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
14193         GObject. No doubt will cause breakage.
14194
14195         * demos/gtk-demo/textview.c: remove hacks around
14196         non-GObject-ification of the text objects
14197
14198         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
14199         the text tag
14200         
14201 2000-12-14  Havoc Pennington  <hp@pobox.com>
14202
14203         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
14204         that we have Xrender
14205
14206 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
14207
14208         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
14209         Add two virtualized functions gdk_drawable_get_clip_region - to
14210         get the clip region when drawing.
14211         
14212         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
14213         use invalidate_region.
14214
14215         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
14216         region.
14217
14218         * acconfig.h configure.in: Check for Xft. For now, assume
14219         that if Xft is found, Pango was compiled with Xft support
14220         as well.
14221
14222         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
14223         gdk_colormap_query_color().
14224         
14225         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
14226         with Xft if appropriate.
14227
14228         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
14229         a pangoxft context if we have XFT and the environment
14230         variable GD_USE_XFT is set.
14231         
14232         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
14233         and also possibly an XftDraw structure.
14234
14235         * gtk/gtkfontsel.c: Handle the case where the font from the
14236         style doesn't match any of the fonts a bit better.
14237         
14238         * gtk/testgtk.c: Add tabs between directional segments for
14239         hebrew/arabic test. (Not really necessary, just a little
14240         prettier.)
14241
14242 2000-12-14  Havoc Pennington  <hp@redhat.com>
14243
14244         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
14245         reading a file
14246
14247 2000-12-14  Havoc Pennington  <hp@redhat.com>
14248
14249         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
14250         unused call to get_last_line()
14251
14252         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
14253         here until boxed is working (and maybe after that - we should
14254         really not gratuitously break old code)
14255
14256         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
14257         specific types for font_desc and tabs args, move them to
14258         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
14259         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
14260
14261         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
14262         use GTK_TYPE_POINTER for signal signatures as a hack-around
14263
14264         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
14265         PangoTabArray
14266
14267         * gtk/gtktextlayout.c (line_display_iter_to_index): 
14268         make static
14269         (line_display_index_to_iter): make static
14270
14271         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
14272         to marshal a string not a boxed
14273
14274         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
14275
14276         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
14277         since the UTF-8 isn't validated yet
14278
14279         * gtk/gtktextsegment.c (char_segment_check_func): don't require
14280         lines to end in '\n'
14281         
14282         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
14283         forward_to_delimiters, and grapheme boundaries
14284         (gtk_text_view_delete_from_cursor): properly handle non-newline
14285         delimiters, and grapheme boundaries
14286
14287         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
14288         to gtk_text_iter_forward_to_delimiters, and make it work properly
14289         if empty lines end with a character other than '\n'
14290
14291         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
14292         position
14293
14294 2000-12-15  Tor Lillqvist  <tml@iki.fi>
14295
14296         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
14297
14298         * gtk/gtk.def
14299         * gdk/gdk.def: Update.
14300
14301         * gdk/win32/gdkmain-win32.c
14302         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
14303         gdkmain-win32.c here.
14304
14305         * gdk/win32/makefile.mingw.in (all): No need to make
14306         gdk-win32res.o here, the makefile one step up will call us to make
14307         it.
14308
14309         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
14310         gdkkeys-win32.
14311
14312         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
14313
14314         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
14315         call to g_source_add().
14316
14317         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
14318         leak. Thanks to Andreas Kemnade.
14319
14320 2000-12-13  Havoc Pennington  <hp@pobox.com>
14321
14322         * gtk/gtktextbtree.h: Remove double _ in front of some functions
14323
14324         * gtk/gtktext*.[hc]: update accordingly
14325         
14326 2000-12-13  Havoc Pennington  <hp@pobox.com>
14327
14328         * gtk/gtktextbtree.h: Put _ in front of every function in this 
14329         header file
14330
14331         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
14332
14333 2000-12-13  Alex Larsson  <alexl@redhat.com>
14334
14335         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
14336         Add support for ps2 intellimouse.
14337
14338         * gdkkeyboard-fb.c:
14339         Move shift-F1 repaint handling to xlate handler only.
14340         
14341         * docs/README.linux-fb:
14342         Add imps2 to docs.
14343         Document the new refresh keys.
14344         
14345 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
14346
14347         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
14348
14349         * gtk/gtkbox.c: change property types from (u)long to (u)int for
14350         ::position and ::padding.
14351
14352         * gtk/gtkcontainer.c: make ::border_width an INT property.
14353
14354         * gtk/gtkpacker.c: make ::position an INT property.
14355
14356         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
14357         guard against NULL h/v scrollbars, since this is used at construction
14358         time.
14359
14360         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
14361         internal gtk_clist_constructor().
14362
14363         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
14364         gtk_ctree_constructor().
14365
14366         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
14367         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
14368
14369         * docs/reference/Makefile.am: fun stuff, disabled docs generation
14370         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
14371
14372         * gtk/gtkwidget.[hc]:
14373         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
14374         and gtk_widget_get().
14375         (gtk_widget_new): use g_object_new_valist().
14376         (gtk_widget_set): use g_object_set_valist().
14377
14378         * gtk/gtkobject.[hc]:
14379         removed gtk_object_arg_get_info(), gtk_object_getv(),
14380         gtk_object_query_args(), gtk_object_newv(),
14381         gtk_object_class_add_signals(),
14382         gtk_object_class_user_signal_new(),
14383         gtk_object_class_user_signal_newv(),
14384         gtk_object_arg_set(), gtk_object_arg_get(),
14385         gtk_object_args_collect(),
14386         gtk_object_default_construct(),
14387         gtk_object_constructed(),
14388         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
14389         removed nsignals, signals and n_args members from GtkObjectClass.
14390         (gtk_object_new): use g_object_new_valist().
14391         (gtk_object_set): use g_object_set_valist().
14392         (gtk_object_get): use g_object_get_valist().
14393         
14394         * gtk/gtkcompat.h: define gtk_object_default_construct().
14395         
14396         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
14397         g_object_new().
14398
14399         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
14400         fucntions, cleaned up method assignments (make sure your structures
14401         are setup properly before calling out). removed all GTK_CONSTRUCTED
14402         hacks ;)
14403
14404 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
14405
14406         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
14407         off-by-one error in checks. (Dave Lambert)
14408
14409 2000-12-12  Alexander Larsson  <alexl@redhat.com>
14410
14411         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
14412         Don't free gdk_fb_keyboard twice.
14413
14414 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
14415
14416         * gtk/testgtk.c:
14417         (create_tooltips): 
14418         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
14419         use GObject swapped_signal:: properties instead.
14420
14421         * gtk/gtkcellrenderertoggle.c: 
14422         * gtk/gtkcellrenderertextpixbuf.c: 
14423         * gtk/gtkcellrenderertext.c: 
14424         * gtk/gtkcellrendererpixbuf.c: 
14425         * gtk/gtkcellrenderer.c:
14426         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
14427         missing warnings for invalid property ids, install properties
14428         with g_object_class_install_property() now.
14429         
14430         * gtk/gtksignal.c:
14431         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
14432         
14433 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
14434         
14435         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
14436         to determine if a window is the focus widget within
14437         its toplevel.
14438
14439         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
14440         to be boolean.
14441
14442         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
14443         of the case where the container CAN_FOCUS to here instead
14444         of having it in each individual move-the-focus place.
14445
14446         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
14447         focusing to be geometric in a much more obvious sense. Arrowing
14448         around is still non-intuitive because it isn't perfect and
14449         because entries, etc, grab the arrow keys, but it at least
14450         usually will do what you expect now.
14451         
14452         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
14453         file.
14454
14455         * gtk/gtknotebook.c: Change tabs to be a single item in
14456         the focus chain. Make movement of focus on tabs with arrow
14457         keys wrap around.
14458         
14459         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
14460         CHECK_FIND_CHILD macro to give informative error messages
14461         instead of silent returns.
14462
14463         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
14464         flag since we handle GdkReturn on the tabs.
14465
14466         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
14467         windows rather than sending expose events directly.
14468
14469         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
14470         definition for GtkNotebookPage into .c file, since it is private.
14471
14472         * gtk/testgtk.c (create_notebook): Add option for 
14473         testing borderless notebook.
14474
14475         * gtk/testgtk.c (page_switch): Removed egregious poking
14476         around in GTK+ internals.
14477
14478         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
14479
14480         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
14481         properly through gtk_clist_focus. Make the title headers a
14482         single item in the tab-focus chain, and make left-right wrap
14483         around.
14484
14485         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
14486         focus method so that wrapping around works properly.
14487
14488         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
14489         that is handled for the widget now. 
14490
14491 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
14492
14493         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
14494         widgets as TOPLEVEL.
14495
14496         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
14497         TOPLEVEL widgets are containers.
14498
14499         * gtk/gtkinvisible.h: Remove useless include.
14500
14501 2000-12-11  Havoc Pennington  <hp@redhat.com>
14502
14503         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
14504         Handle chopping off \r\n and 0x2029 in addition to \n before
14505         passing to PangoLayout
14506
14507         * gtk/gtkimcontextsimple.c
14508         (gtk_im_context_simple_get_preedit_string): 
14509         return an empty string if no match is pending
14510
14511         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
14512         assertion that the returned preedit string was sane
14513
14514         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
14515         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
14516         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
14517
14518 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
14519
14520         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
14521         Fix up finalizer to chain to its parent.
14522
14523 2000-12-11  Alexander Larsson  <alexl@redhat.com>
14524
14525         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
14526         Clearified the difference between the keyboard types. Wrote a note
14527         about the magic sysrq key to get out of raw mode.
14528
14529 2000-12-09  James Henstridge  <james@daa.com.au>
14530
14531         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
14532         member to hold masks for detecting the start of a protocol packet.
14533         (mouse_devs): add packet start masks for ps2 and ms device types.
14534         Left the mask for fidmour blank, as I have no idea what it should
14535         be.
14536         (handle_mouse_io): skip bytes until we get to the start of a
14537         packet.  My Logitech mouse seems to be passing an extra NULL pad
14538         byte, and GPM does a similar thing here.
14539         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
14540         this is the ms mouse driver.
14541         (gdk_fb_mouse_ms_packet): fix up button handling, which was
14542         completely broken except for button1.  It was checking the wrong
14543         bit in the packet for the status of the right mouse button, and
14544         wrongly assuming right == button2 rather than 3.  I fixed that and
14545         also added support for middle button (button2).
14546
14547 2000-12-08  Havoc Pennington  <hp@redhat.com>
14548
14549         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
14550         that cause a segfault on text insertion
14551
14552         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
14553         warning
14554
14555         * gtk/gtktextiter.c (test_log_attrs): use
14556         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
14557
14558         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
14559         Get log attrs for a line, using a cache stored on the buffer
14560         
14561         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
14562         reported by Jeff Franks
14563
14564 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
14565
14566         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
14567         /dev/ttyS0 -> /dev/mouse
14568
14569 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
14570
14571         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
14572         Added dummy gdk_fontset_load.
14573
14574 2000-12-08  Alexander Larsson  <alexl@redhat.com>
14575
14576         * docs/README.linux-fb:
14577         * docs/Makefile.am:
14578         Initial GtkFB docs.
14579         
14580         * gdk/linux-fb/Makefile.am:
14581         Define GDK_DATA_PREFIX.
14582
14583         * gdk/linux-fb/gdkmain-fb.c:
14584         Fix typo.
14585         Change default display to /dev/fb0.
14586
14587         * gdk/linux-fb/gdkpango-fb.c:
14588         Add $(prefix)/share/fonts/ to font path.
14589         
14590 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
14591
14592         * gdk/linux-fb/gdkkeyboard-fb.c:
14593         New file containing the abstracted keyboard driver. Most code
14594         taken from gdkinput-ps2.c
14595
14596         * gdk/linux-fb/gdkinput-ps2.c:
14597         Removed file.
14598         
14599         * gdk/linux-fb/Makefile.am:
14600         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
14601
14602         * gdk/linux-fb/gdkcolor-fb.c:
14603         display->fb was renamed to display->fb_fd.
14604
14605         * gdk/linux-fb/gdkcursor-fb.c:
14606         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14607
14608         * gdk/linux-fb/gdkinput.c:
14609         Moved gdk_input_init here from gdkinput-ps2.c
14610
14611         * gdk/linux-fb/gdkmain-fb.c:
14612         display->fb was renamed to display->fb_fd.
14613         Now the tty and the console is opened here instead
14614         of in the keyboard driver. Also check GDK_VT to see what
14615         tty to open.
14616         Move gdk_beep () here from gdkinput-ps2.c
14617         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14618
14619         * gdk/linux-fb/gdkmouse-fb.c:
14620         Add header.
14621         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14622         Return correct keyboard modifiers.
14623         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
14624
14625         * gdk/linux-fb/gdkprivate-fb.h:
14626         Add tty and vt info to display.
14627         Add orignal modeinfo storage to display
14628         Update global functions
14629
14630         * gdk/linux-fb/gdkwindow-fb.c:
14631         Added gdk_fb_window_find_focus().
14632         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14633
14634 2000-12-07  Havoc Pennington  <hp@pobox.com>
14635
14636         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
14637         function, noticed by Alex
14638
14639 2000-12-06  Elliot Lee  <sopwith@redhat.com>
14640
14641         * configure.in: Detect freetype properly
14642
14643         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
14644         above.
14645
14646 2000-12-06  Alexander Larsson  <alexl@redhat.com>
14647
14648         * gdk/linux-fb/Makefile.am:
14649         Add gdkmouse-fb.c
14650         
14651         * gdk/linux-fb/gdkmouse-fb.c:
14652         New file. Abstracted the mouse drivers a bit.
14653
14654         * gdk/linux-fb/gdkcursor-fb.c:
14655         The cursor hide/show functions was moved here from gdkinput-ps2.c.
14656
14657         * gdk/linux-fb/gdkinput-ps2.c:
14658         Removed old mouse handling code. Moved cursor handling code
14659         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
14660         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
14661         gdk_mouse_get_info.
14662
14663         * gdk/linux-fb/gdkmain-fb.c:
14664         Pass NULL pointers for x,y in gdk_mouse_get_info call.
14665
14666         * gdk/linux-fb/gdkprivate-fb.h:
14667         Removed public gdk_fb_find_common_ancestor, added and renamed
14668         functions for the new mouse handling code.
14669
14670         * gdk/linux-fb/gdkwindow-fb.c:
14671         Moved gdk_fb_window_send_crossing_events here. added global
14672         variable gdk_fb_window_containing_pointer. made
14673         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
14674         renamed to gdk_mouse_get_info.
14675
14676 2000-12-06  Alexander Larsson  <alexl@redhat.com>
14677
14678         * gdk/linux-fb/gdkevents-fb.c:
14679         Update to match latest gmain/gsource changes.
14680
14681         * gdk/linux-fb/gdkinput-ps2.c:
14682         Bogus gdk_keymap_get_entries_for_keycode implementation so that
14683         it links. Will be implemented later.
14684
14685 2000-12-03  Havoc Pennington  <hp@pobox.com>
14686
14687         * gdk/Makefile.am: add gdkkeys.[hc]
14688
14689         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
14690         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
14691
14692         * acconfig.h, configure.in: add checks and command line options
14693         for XKB
14694
14695         * gdk/x11/gdkkeys-x11.c: Implement the above functions
14696         
14697         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
14698         and group in the key event
14699
14700         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
14701         field with the low-level hardware key code, and a group
14702         field with the keyboard group
14703
14704         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
14705         and declare a couple globals used for keymap handling
14706         
14707         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
14708         hold down Shift-Control and type a hex number to get a Unicode 
14709         character corresponding to the hex number
14710         (gtk_im_context_simple_get_preedit_string): Fix cursor position
14711         (return bytes not chars)
14712
14713 2000-12-05  Elliot Lee  <sopwith@redhat.com>
14714
14715         * gdk/gdkcolor.h: Make GdkColor specify element sizes
14716         to avoid waste on 64-bit platforms.
14717
14718 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
14719
14720         * INSTALL: Fix link to PNG home, remove reference
14721         to fribidi.
14722
14723         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
14724         
14725         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
14726         tested.)
14727
14728         * gtk/gtkcheckmenuitem.c: Permanently turn on
14729         always_show_toggle.
14730
14731         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
14732         be NULL. (Vladimir Klebanov, #26545)
14733
14734         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
14735         some signed/unsigned comparison problems. (#6510,
14736         David Kaelbling)
14737
14738         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
14739         return type to boolean (Oskar Liljeblad, #18648)
14740
14741 2000-12-05  Alexander Larsson  <alexl@redhat.com>
14742
14743         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
14744         Remove bogus colormap setting.
14745
14746 2000-12-05  Alexander Larsson  <alexl@redhat.com>
14747
14748         * gdk/linux-fb/gdkcolor-fb.c:
14749         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
14750
14751         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
14752         Must set colormap.
14753         
14754 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
14755
14756         * docs/tutorial/gtk-tut.sgml: DND updates
14757
14758 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
14759
14760         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
14761         Remove old debug g_warning().
14762         (gdk_fb_draw_drawable): The src argument can be either a wrapper
14763         or an implementation, just pass the implementation to draw_drawable_2.
14764         
14765         * gdk/linux-fb/gdkprivate-fb.h:
14766         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
14767
14768         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
14769         clear and invalidate area when window is destroyed.
14770         (send_map_events): Remove old commented out code.
14771
14772 2000-12-05  Alexander Larsson  <alexl@redhat.com>
14773
14774         * gdk/linux-fb/gdkpango-fb.c:
14775         Use italic instead of oblique in font aliases.
14776         
14777         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
14778         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
14779         other unsupported functions.
14780
14781 2000-12-04  Havoc Pennington  <hp@redhat.com>
14782
14783         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
14784
14785         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
14786
14787         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
14788
14789         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
14790         hack to avoid infinite loops (synthetic expose event) - 
14791         Owen has more appropriate fixes in a branch he'll check in later.
14792
14793         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
14794         separator, CR, and CRLF as line ends
14795
14796         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
14797         into lines using pango_find_paragraph_boundary(); other bits of
14798         the widget are still going to be broken if the boundary isn't '\n'
14799         though
14800
14801 2000-12-04  Alexander Larsson  <alexl@redhat.com>
14802
14803         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
14804         multiply.
14805
14806         * gdk/linux-fb/gdkpango-fb.c:
14807         Copied some 26.6 scaling macros from pango to clean up the rounding.
14808         (pango_fb_font_get_glyph_info): Correct sign on x value.
14809
14810         * gdk/linux-fb/gdkprivate-fb.h:
14811         Removed unreferenced external functions.
14812
14813         * modules/linux-fb/Makefile.am: Use ` instead of '.
14814
14815         * modules/linux-fb/basic.c:
14816         Remove dead code. In particular the dummy lang engine which broke all
14817         pango layouts in GtkFB. Don't include tables-big.i anymore.
14818
14819         * modules/linux-fb/tables-big.i:
14820         Upgrade to latest version from pango. Left for reference, basic_ranges
14821         moved to basic.c.
14822         
14823 2000-12-04  Havoc Pennington  <hp@redhat.com>
14824
14825         Fix bugs Alex found:
14826         
14827         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
14828         to "draw"
14829
14830         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
14831
14832         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
14833
14834         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
14835         implementation in here, apparently the expose() implementation was
14836         dead code.
14837
14838 2000-12-04  Alexander Larsson  <alexl@redhat.com>
14839
14840         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
14841         Return positive descent.
14842
14843 2000-12-02  Havoc Pennington  <hp@pobox.com>
14844
14845         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
14846         method and signal
14847         
14848         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
14849         calls gdk_window_process_updates() to push the exposes through
14850         (gtk_widget_class_init): No more draw signal, no
14851         gtk_widget_real_draw()  
14852         
14853         * gtk/gtkbin.c (gtk_bin_draw): remove
14854
14855         * gtk/gtkbox.c (gtk_box_draw): remove
14856
14857         * gtk/gtkbutton.c (gtk_button_draw): remove
14858
14859         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
14860
14861         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
14862
14863         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
14864
14865         * gtk/gtkclist.c (gtk_clist_draw): remove
14866
14867         * gtk/gtkentry.c (gtk_entry_draw): remove
14868
14869         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
14870
14871         * gtk/gtkfixed.c (gtk_fixed_draw): remove
14872
14873         * gtk/gtkframe.c (gtk_frame_draw): remove
14874
14875         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
14876
14877         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
14878
14879         * gtk/gtklayout.c (gtk_layout_draw): remove
14880
14881         * gtk/gtklist.c (gtk_list_draw): remove
14882
14883         * gtk/gtklistitem.c (gtk_list_item_draw): remove
14884
14885         * gtk/gtkmenu.c (gtk_menu_draw): remove
14886
14887         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
14888
14889         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
14890
14891         * gtk/gtknotebook.c (gtk_notebook_draw): remove
14892
14893         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
14894
14895         * gtk/gtkpacker.c (gtk_packer_draw): remove
14896
14897         * gtk/gtkrange.c (gtk_range_draw): remove
14898
14899         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
14900
14901         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
14902
14903         * gtk/gtktable.c (gtk_table_draw): remove
14904
14905         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
14906
14907         * gtk/gtktext.c (gtk_text_draw): remove
14908
14909         * gtk/gtktextview.c (gtk_text_view_draw): remove
14910
14911         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
14912
14913         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
14914
14915         * gtk/gtktree.c (gtk_tree_draw): remove
14916
14917         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
14918
14919         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
14920
14921         * gtk/gtkviewport.c (gtk_viewport_draw): remove
14922
14923         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
14924
14925         * gtk/gtkvscale.c (gtk_vscale_draw): remove
14926
14927         * gtk/gtkwindow.c (gtk_window_draw): remove
14928
14929 2000-20-01  Anders Carlsson  <andersca@gnu.org>
14930
14931         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
14932         a GtkToggleButton is both insensitive and active, it was being
14933         drawn by the GtkButton draw handler which doesn't check the
14934         state. Now it's calling gtk_toggle_button_paint instead.
14935         
14936 2000-12-01  Havoc Pennington  <hp@redhat.com>
14937
14938         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
14939         dangling pointers to the appearance attributes from the 
14940         line display
14941
14942         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
14943         width/height to mean "full width/height of drawable"
14944
14945         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
14946         click to select word/line
14947         
14948         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
14949         when getting log attrs. Get a slice, so that pixmaps and stuff
14950         are properly handled.
14951
14952         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
14953         paste into the selection (replaces selection now, previously
14954         crashed or added to selection). Reveals longstanding btree bug -
14955         select multiple lines, middle-click on the selection, boom. This
14956         isn't related to my changes though.
14957
14958         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
14959         PangoLogAttrs changes
14960         (gtk_entry_move_backward_word): ditto
14961
14962         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
14963         functions return bool whether the iter moved onto a
14964         dereferenceable position.
14965  
14966         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
14967         functions for motion in terms of display lines.
14968
14969         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
14970         get the buffer a mark is inside
14971         
14972 2000-12-01  Alexander Larsson  <alexl@redhat.com>
14973
14974         * gdk/linux-fb/Makefile.am:
14975         * modules/linux-fb/Makefile.am:
14976         Freetype 2 final uses freetype-config
14977
14978         * gdk/linux-fb/gdkpango-fb.c:
14979         Upgrade to use Freetype 2 final.
14980         More flexible support for font aliases, this also fixes a bug with
14981         GtkFontSelector, as the aliases must be visible in the font/family list,
14982         or GtkFontSelector reads uninitialized memory.
14983
14984 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
14985
14986         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
14987         XGetIMValues to properly terminate variable argument list, and do
14988         NULL return check for ic_values and xim_styles.
14989
14990         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
14991         Restore preedit state after XmbResetIC().
14992         
14993         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
14994         XvaCreateNestedList() should take XvaNestedList, but not
14995         XvaNestedList*.
14996
14997         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
14998         preedit_draw_callback, preedit_caret_callback): Match
14999         "preedit-changed" signal name to "preedit_changed" to be
15000         consistent to the spec.
15001
15002         * gtk/gtkimcontextsimple.c (check_table):
15003         Match "preedit-changed" to "preedit_changed" to be consistent
15004         to the spec.
15005
15006 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
15007
15008         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
15009         gc->clip_region == NULL>
15010
15011 2000-11-30  Tor Lillqvist  <tml@iki.fi>
15012
15013         Changes by Hans Breuer:
15014         
15015         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
15016         Dont't use negative width and height as max_hints. This fixes
15017         Owen's recent testgtk changes for win32.
15018
15019         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
15020         gdk_win32_hdc_release): These are exported and may be called with
15021         other drawable types than our GdkDrawableImplWin32 (?).
15022
15023         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
15024         so always #define USE_BACKING_STORE.
15025
15026         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
15027         of printf for debugging output.
15028
15029         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
15030         
15031         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
15032
15033         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
15034         declaration.
15035
15036         * gtk/gtktexttypes.h: Ditto.
15037
15038         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
15039         (GDK_VoidSymbol) also if in case of arg check failure.
15040
15041         * gtk/gtkimcontextsimple.c
15042         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
15043         position to the pointer, but to the variable it points to.
15044
15045         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
15046
15047         * gtk/gtk.def: Updates.
15048
15049 2000-11-29  Elliot Lee  <sopwith@redhat.com>
15050
15051         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
15052         GTK_TYPE_TREE_MODEL.
15053
15054 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15055
15056         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
15057         Set the size of the font from the description.
15058         (gdk_text_width): Gross hack that calculates the width
15059         of text by text_length * size/2. This is necessary because
15060         GtkLabel does some ugly gtk_string_width call to calculate
15061         an good size.
15062         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
15063
15064 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
15065
15066         * docs/tutorial/gtk-tut.sgml: DND updates
15067
15068 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15069
15070         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
15071         If you pass width or height == 0 to gdk_window_clear_area they
15072         should be calculated from the window size.
15073
15074 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15075
15076         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
15077         a grab, but no grab-cursor, use the cursor from the grabbed
15078         window. (gdk_fb_window_send_crossing_events): Send normal
15079         enter/leave notifications if grab and owner_events == TRUE.
15080
15081 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15082
15083         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
15084         Do implicit button grabs, even if the window doesn't
15085         want the event.
15086         (gdk_fb_window_send_crossing_events): If there is a
15087         grab, only the grabbed window gets normal enter/leave
15088         notifications. On ungrab go from grabbed window to current.
15089         Don't send any notification to b when propagating from c -> b.
15090         If setting a grab on window, don't set prev_window.
15091         (handle_mouse_input): Send enter/leave events to the window the
15092         mouse is over, not the grabbed one.
15093         
15094 2000-11-28  Elliot Lee  <sopwith@redhat.com>
15095
15096         * gdk/gdkregion-generic.c: Zap warning.
15097         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
15098         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
15099
15100 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
15101
15102         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
15103         The cursor should be hidden if it is part of either the
15104         source or destination region. Not only if it is in both.
15105         (gdk_window_set_transient_for): Silence warnings.
15106
15107 2000-11-28  Alexander Larsson  <alexl@redhat.com>
15108
15109         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
15110         The default mode in X is Pie Arcs, therefore that is
15111         what Gtk+ uses.
15112
15113 2000-11-28  Alexander Larsson  <alexl@redhat.com>
15114
15115         * gdk/linux-fb/gdkinput-ps2.c:
15116         Implement correct EnterNotify/LeaveNotify:
15117         (gdk_fb_window_send_crossing_events): New function that sends
15118         all GdkCrossingEvents from the last mouse-window to the specified
15119         destination.
15120         (gdk_fb_window_visibility_crossing): Removed function.
15121         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
15122         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
15123         instead of gdk_window_get_pointer() for better readability.
15124
15125         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
15126         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
15127
15128         * gdk/linux-fb/gdkprivate-fb.h:
15129         removed gdk_fb_window_visibility_crossing, added
15130         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
15131
15132         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
15133         New function that finds the least common ancestor of two windows.
15134         (gdk_window_show, gdk_window_hide):
15135         Use gdk_fb_window_send_crossing_events.
15136         (gdk_fb_window_move_resize): Send configure events to toplevel
15137         windows. Use gdk_fb_window_send_crossing_events.
15138
15139 2000-11-27  Havoc Pennington  <hp@redhat.com>
15140
15141         * gtk/gtkprivate.h (enum): Remove a trailing comma
15142
15143 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
15144
15145         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
15146         the "changed" callback of the adjustment.  We need to redraw the
15147         spin button's arrows when the adjustment's range changes.
15148         (adjustment_changed_cb): Draw the arrows.
15149         (gtk_spin_button_value_changed): Draw the arrows.
15150
15151 2000-11-23  Alexander Larsson  <alexl@redhat.com>
15152
15153         * gdk/linux-fb/gdkselection-fb.c:
15154         Initial selection implementation.
15155
15156         * gtk/gtkselection.c:
15157         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
15158         requestor in gtk_selection_request.
15159         
15160         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
15161         Added gdk_selection_property atom.
15162
15163         * gdk/linux-fb/gdkprivate-fb.h:
15164         Export _gdk_selection_window_destroyed.
15165         Removed mask_off_x/y from GdkCursorPrivateFB.
15166         Removed hbearing, added top, left to PangoFBGlyphInfo.
15167
15168         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
15169         Call _gdk_selection_window_destroyed
15170         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
15171         the root window has been created.
15172         (static_dx_hack, static_dy_hack, compare_draw_rects,
15173         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
15174         in region. They are already sorted. Instead just traverse them in
15175         reverse if draw_direction < 0.
15176         
15177         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
15178         Double-clicks must be sent after the normal button_press.
15179         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
15180         
15181         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
15182         Pass _gdk_fb_screen_gc instead of NULL.
15183
15184         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
15185         Initialize gdk_selection_property.
15186         (gdk_event_make): Remove unused code.
15187
15188         * gdk/linux-fb/gdkcursor-fb.c:
15189         Make the pixmap for the cursor the same size as the mask. Also remove
15190         the mask_off_x/y fields in GdkCursorPrivateFB and combine
15191         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
15192         Now the whole cursor is visible.
15193
15194         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
15195         Fix bug where xdest+height instead of ydest+height was used
15196         to calculate if the source and dest overlapped. This fixes the
15197         redraw bug when the main window in testgtk was scrolled when
15198         partially covered by a tall window.
15199         Copy rectangles in region in order depending on draw_direction.
15200         Also moved the draw_direction flipping of start_y and end_y into
15201         the gc functions, as this might not be what all of them want.
15202         (gdk_fb_draw_lines): Support dashed lines.
15203         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
15204         so that the text is positioned correctly (was 1 pixel high).
15205
15206         gdk/linux-fb/gdkgc-fb.c:
15207         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
15208         all lines were drawn a pixel to short. Also checked the default of
15209         the rest of the values, and they're the same as X now.
15210
15211         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
15212         Clean up pixel positioning of the glyphs. Just use bgy->top and
15213         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
15214         to all divisions to get correct rounding behaviour.
15215
15216         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
15217         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
15218         Moved start_y/end_y flip into draw_drawable implementations.
15219         Flip also x rendering when draw_direction < 0.
15220         Remove unneccesary multiply with draw_direction.
15221
15222 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
15223
15224         * docs/tutorial/gtk-tut.sgml:
15225           - get rid of gtk_toggle_button_toggled FUD
15226           - start DND section - needs work - based on:
15227                 http://wolfpack.twu.net/docs/gtkdnd/
15228
15229 2000-11-22  Alexander Larsson  <alexl@redhat.com>
15230
15231         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
15232         Correct calculation of font metrics. Now GtkEntrys have sane
15233         size.
15234
15235 2000-11-22  Alexander Larsson  <alexl@redhat.com>
15236
15237         * gdk/gdktypes.h:
15238         Add new type GdkSpan
15239         
15240         * docs/reference/gdk/gdk-sections.txt,
15241         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
15242         gdk/gdkregion.h:
15243         Implement and document gdk_region_spans_intersect_foreach.
15244
15245         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
15246         Add new file gdkrender-fb.c which contains all core
15247         rendering code.
15248         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
15249         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
15250         (optimized rectangle fillers).
15251
15252         * gdk/linux-fb/gdkdrawable-fb2.c:
15253         Move all rendering code to gdkrender-fb.c.
15254         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
15255         Use the new span intersection functions in gdk_fb_fill_spans.
15256         gdk_fb_draw_rectangle() clips filled rectangles and calls
15257         gc->fill_rectangle with the result.
15258         gdk_fb_fill_spans() gets extra argument "sorted".
15259
15260         * gdk/linux-fb/gdkevents-fb.c:
15261         Remove unused includes and defines.
15262         New function gdk_fb_get_time() to get correct time for events.
15263
15264         * gdk/linux-fb/gdkinput-ps2.c:
15265         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
15266         Make sure to set the time of all events.
15267
15268         * gdk/linux-fb/gdkmain-fb.c:
15269         Use gdk_fb_get_time ().
15270
15271         * gdk/linux-fb/gdkprivate-fb.h:
15272         New virtual GC calls: fill_span & fill_rectangle.
15273         Export gdk_fb_get_time().
15274         gdk_fb_fill_spans() gets extra argument "sorted".
15275
15276         * gdk/linux-fb/mi*.c:
15277         Use GdkSpan instead of GdkRectangle.
15278         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
15279         from XFree 4 source)
15280         
15281 2000-11-22    <jrb@redhat.com>
15282
15283         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
15284         reversing the order in an if statement will do.  Doing so managed
15285         to make the treemodelsort half work.  Other half will follow after
15286         I get the insert function fully fixed.
15287
15288 2000-11-21  Elliot Lee  <sopwith@redhat.com>
15289         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
15290         more than 2 bits. Besides, I need to implement an evil hack. :)
15291
15292 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
15293
15294         * docs/tutorial/gtk-tut.sgml: minor corrections
15295
15296 2000-11-20  Jonathan Blandford <jrb@redhat.com>
15297         * gtk/gtktreemodelsort.h: Add convertion functions to let you
15298           convert to and from relative path's and iters.
15299
15300         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
15301           testing sorting functions a bit better.  Currently broken -- will
15302           fix in morning.
15303
15304 2000-11-20  Havoc Pennington  <hp@redhat.com>
15305
15306         * gtk/gtkwidget.c: Documented a bunch of functions in here
15307         (gtk_widget_realize): Warn if you try to realize
15308         a widget with no parent that isn't a toplevel
15309         (gtk_widget_intersect): return a gboolean
15310
15311 2000-11-20  Havoc Pennington  <hp@redhat.com>
15312
15313         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
15314         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
15315         scrolling to be implemented in GDK to finish. Also, right now
15316         we just size_allocate all children on every layout change,
15317         which is pretty lame. Test commented out of testtext.c, 
15318         until it works better.
15319
15320 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
15321
15322         * gdk/linux-fb/gdkdrawable-fb2.c:
15323         Removed unused arguments from gdk_fb_drawable_get_pixel().
15324
15325         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
15326         Renamed fidur specific mouse packet data in MouseDevice to
15327         generic. Used it in ps2 mouse handling code to avoid blocking
15328         reads.
15329
15330 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
15331
15332         * demos/gtk-demo/main.c: Changed to have the list become
15333         non-italic when the demo window is destroyed through an external
15334         event (like a close button).  Doing so found three bugs in the
15335         widget.
15336
15337         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
15338
15339         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
15340         we actually set the cell.
15341
15342         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
15343
15344         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
15345         free a leaked path.  Thanks memprof.
15346
15347 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
15348
15349         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
15350         off-by-one error when destroying allocated segments
15351         on failure. (Elliot)
15352
15353 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
15354
15355         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
15356         memleaks found by Evan Martin.
15357
15358 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
15359
15360         * Released 1.3.2
15361         
15362         * NEWS: Updates for 1.3.2
15363
15364 2000-11-17  Tor Lillqvist  <tml@iki.fi>
15365
15366         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
15367         but in general for window system specific events.
15368
15369         * gtk/gtk.def
15370         * gtk/makefile.mingw.in
15371         * gtk/makefile.msc.in: Update.
15372         
15373         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
15374
15375 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
15376
15377         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
15378         distribute gtk.immodules.
15379
15380         * gtk/Makefile.am (install-data-local): Don't install the
15381         gtk.immodules file created for the uninstalled modules;
15382         instead run gtk-query-immodules after install
15383
15384 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
15385
15386         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
15387         -rpath to the right install location.
15388
15389         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
15390         -export-dynamic.
15391
15392         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
15393         properly.
15394
15395 2000-11-15  Havoc Pennington  <hp@pobox.com>
15396
15397         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
15398         patch from Mikael Hermansson to temporarily stop blinking while
15399         the user is using the keyboard to type or navigate. 
15400
15401         Also, when blinking, stay on for longer than we stay off. Also,
15402         return from start_cursor_blink if !cursor_visible, to save
15403         checking that flag all over the place before we call
15404         start_cursor_blink.
15405
15406 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
15407
15408         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
15409         only contain a "fontset" line, which is now ignored.
15410
15411         * gtk/gtkentry.c (gtk_entry_button_release): Make 
15412         double-click-to-select-word work.
15413         
15414 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
15415
15416         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
15417         Don't move back one char when we are actually at the end of the 
15418         paragraph.
15419
15420 2000-11-15  Robert Brady  <robert@suse.co.uk>
15421
15422         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
15423         'o' < 'p'.
15424         
15425         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
15426         bind_textdomain_codeset.
15427
15428         (gtk_init_check): Make the warning about translating default:LTR
15429         sterner.
15430         
15431 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
15432
15433         * **/Makefile.am : remove unecessary rules for win32-specific
15434         config-substituted targets. If you want these rules, use
15435         --enable-maintainer-mode (called automatically by autogen.sh).
15436         Stops a lot of unneccessary make-time warnings.
15437
15438         * gtk/gtktext{layout,display}.c: Factor in total width as
15439         well as screen when figuring alignment for word-wrap as well as
15440         no wrap; this is necessary to handle lines that cannot be wrapped
15441         at all.
15442
15443 2000-11-15  Havoc Pennington  <hp@redhat.com>
15444
15445         * gtk/testtext.c: Implement essential color cycling feature
15446
15447 2000-11-15  Havoc Pennington  <hp@redhat.com>
15448
15449         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
15450         when we invalidate the main window.
15451
15452         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
15453         GtkTextView will now invalidate the side windows for us when text
15454         changes.
15455
15456 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
15457
15458         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
15459         unconditionally, since we may need to update the horizontal
15460         scrollbars even if the height didn't change.
15461
15462         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
15463         the extra attrs, since some of them affect size.
15464
15465         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
15466         x_offset correctly.
15467
15468 2000-11-15  Havoc Pennington  <hp@redhat.com>
15469
15470         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
15471         don't move the first line out into the margin, instead move the
15472         whole paragraph in order to make space for the first line within 
15473         the margin
15474
15475 2000-11-15  Havoc Pennington  <hp@redhat.com>
15476
15477         * gtk/gtktextview.c (changed_handler): offset redraw rect by
15478         xoffset in addition to yoffset, so horizontal scrolling doesn't
15479         break redraws
15480
15481 2000-11-15  Havoc Pennington  <hp@redhat.com>
15482
15483         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
15484         from the cursor
15485         (render_layout_line): fix reversed test that caused weird
15486         underlines to get drawn
15487
15488 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
15489
15490         * gdk/linux-fb/gdkprivate-fb.h:
15491         Fix debug macros.
15492         
15493 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
15494
15495         * gdk/linux-fb/gdkprivate-fb.h:
15496         Added virtual functions set_pixel, get_color,
15497         fill_span and draw_drawable to the GC.
15498         Added global _gdk_fb_screen_gc to use instead of
15499         NULL when drawing to the screen.
15500         Added _gdk_fb_gc_calc_state() prototype.
15501
15502         * gdk/linux-fb/gdkgc-fb.c:
15503         Call _gdk_fb_gc_calc_state() on any gc state change.
15504
15505         * gdk/linux-fb/gdkglobals-fb.c:
15506         Add _gdk_fb_screen_gc
15507                 
15508         * gdk/linux-fb/gdkdrawable-fb2.c:
15509         _gdk_fb_gc_calc_state() calculates best functions
15510         for the GC state and depth.
15511         Moved bpp specialized code to separate functions.
15512         Added optimized 24 bpp AA draw_drawable.
15513
15514         * gdk/linux-fb/gdkevents-fb.c:
15515         Silence gcc warning.
15516
15517         * gdk/linux-fb/gdkimage-fb.c:
15518         Use _gdk_fb_screen_gc
15519
15520         * gdk/linux-fb/gdkwindow-fb.c:
15521         Init and use _gdk_fb_screen_gc
15522
15523         * gdk/linux-fb/mitypes.h:
15524         Remove unused types.
15525
15526 2000-11-14  Havoc Pennington  <hp@pobox.com>
15527
15528         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
15529         to pixels
15530
15531 2000-11-14  Havoc Pennington  <hp@pobox.com>
15532
15533         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
15534
15535         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
15536         unknown char, no real reason we were using a variable. 
15537         Remove gtk_text_unknown_char variable. Fix all the text widget
15538         files accordingly.
15539
15540         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
15541         since the Unicode spec seems to prefer that character for our
15542         purposes.
15543
15544 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
15545
15546         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
15547         value of g_getenv() isn't freeable, so g_strdup it.
15548
15549         * modules/input/inuktitut.c: Inuktitut input method.
15550
15551         * modules/input/Makefile.am: Build this.
15552         
15553 2000-11-14  Elliot Lee  <sopwith@redhat.com>
15554
15555         * gtk/Makefile.am: Install gtk.immodules, needed for operation
15556         of gtk programs.
15557
15558 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
15559
15560         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
15561         reversed > that was causing Home to go to end of previous line.
15562
15563         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
15564         modified-keypresses (leave for bindings.)
15565
15566         * modules/input/Makefile.am: Remove useless -export-dynamic
15567         from module LDFLAGS.
15568
15569 2000-11-14  Havoc Pennington  <hp@redhat.com>
15570
15571         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
15572         higher.
15573
15574         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
15575         account. Also, render rise, underline, background, etc. for
15576         pixbufs as well as text. Also, draw underlines one pixel higher.
15577
15578         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
15579         PangoAttribute for the rise, so it gets drawn properly. Also,
15580         add the GtkTextAppearance attribute for pixbuf/widget segments
15581         as well; we should go ahead and have rise, underline, background,
15582         stipple work for those
15583
15584         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
15585         Pango
15586
15587 2000-11-15  Tor Lillqvist  <tml@iki.fi>
15588
15589         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
15590
15591         * gtk/gtk.def: Update.
15592
15593         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
15594         included.
15595         (gtk_rc_get_im_module_file): Use run-time installation directory
15596         on Win32.
15597
15598         * gdk/win32/rc/gdk.rc: Remove.
15599         * gdk/win32/rc/gdk.rc.in: New file.
15600         * gdk/win32/rc/Makefile.am: New file
15601         * gdk/win32/Makefile.am: Corresponding changes.
15602
15603         * gtk/gtk.rc: Remove.
15604         * gtk/gtk-win32.rc.in: New file.
15605         * gtk/Makefile.am: Corresponding changes.
15606
15607         * configure.in: Corresponding changes.
15608
15609         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
15610         has a built gtkcompat.h. Developers using CVS code on Win32 can
15611         hand-edit it from gtkcompat.h.in.
15612
15613         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
15614         gtkcompat.h from gtkcompat.h.win32.
15615
15616 2000-11-14  Havoc Pennington  <hp@redhat.com>
15617
15618         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
15619         to default to GDK_ACTION_MOVE if the drag is within a single
15620         widget. Defaults to GDK_ACTION_COPY between widgets.
15621
15622 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
15623
15624         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
15625
15626         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
15627
15628         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
15629         srcdir != builddir
15630
15631         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
15632
15633         * configure.in (GTK_VERSION): Up to 1.3.2
15634
15635         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
15636         gtkimcontextxim.h
15637
15638         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
15639         missing doc comment.
15640
15641 2000-11-14  Alexander Larsson  <alexl@redhat.com>
15642
15643         * modules/linux-fb/basic.c:
15644         Use the glib iconv wrappers.
15645
15646 2000-11-13  Havoc Pennington  <hp@pobox.com>
15647
15648         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
15649         still more bugs.
15650
15651         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
15652         scroll the GdkWindows before realization.
15653
15654 2000-11-13  Havoc Pennington  <hp@redhat.com>
15655
15656         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
15657         where GC didn't always get updated properly
15658
15659         * demos/gtk-demo/textview.c (create_tags): Use subattributes
15660         of fonts instead of setting the entire font
15661
15662         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
15663         setting entire font
15664
15665         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
15666
15667         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
15668         a bunch of individually-settable font attributes. You can still 
15669         use the "font" and "font_desc" args, they just set all the font
15670         attributes at once.
15671
15672 2000-11-13 Elliot Lee <sopwith@redhat.com>
15673
15674         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
15675
15676 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
15677
15678         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
15679         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
15680
15681         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
15682         work better.
15683
15684 2000-11-13  Havoc Pennington  <hp@redhat.com>
15685
15686         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
15687         the module file.
15688
15689         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
15690         dest->language
15691
15692         * gtk/testtext.c: Test pixels above/below/inside paragraphs
15693         settings
15694
15695         * gtk/gtktextview.c: Implement object args and setters/getters for
15696         all the aspects of the GtkTextAttributes that are not set from
15697         GtkWidget attributes. This is spacing, justification, margins,
15698         etc.
15699
15700         (gtk_text_view_set_arg)
15701         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
15702         args
15703         (gtk_text_view_class_init): Add args for justify, left_margin,
15704         right_margin, indent, and tabs
15705         
15706
15707         * gtk/gtktextlayout.c (set_para_values): fix to display indent
15708         attribute properly
15709
15710         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
15711         replace with indent attribute
15712
15713         * gtk/gtktextlayout.c (set_para_values): multiply indent by
15714         PANGO_SCALE
15715
15716         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
15717         rearranging code to do that
15718         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
15719         i.e. don't subtract the top_margin first, just to keep
15720         all margin-futzing in one place.
15721
15722         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
15723
15724         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
15725         special case of last line, Pango now handles this itself.
15726         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
15727         Y coordinate
15728         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
15729         (find_display_line_above): wasn't moving the byte index as it
15730         iterated over lines, so always returned byte 0. Also, port to use
15731         PangoLayoutIter.
15732         (find_display_line_below): same problem as
15733         find_display_line_above. Also, port to use PangoLayoutIter.
15734
15735 2000-11-13  Alexander Larsson  <alexl@redhat.com>
15736
15737         * gdk/linux-fb/*.[ch]:
15738         Massive reindent to gtk+ standard. My hands hurt.
15739
15740         * gdk/linux-fb/gdkcolor-fb.c:
15741         Move GdkColorPrivateFB from inherited to windowing_data
15742
15743         * gdk/linux-fb/gdkcursor-fb.c:
15744         _gdk_cursor_new_from_pixmap made static
15745
15746         * gdk/linux-fb/gdkdnd-fb.c:
15747         GdkDragContextPrivate moved to windowing_data
15748
15749         * gdk/linux-fb/gdkdrawable-fb2.c:
15750         Removed endian.h, use glib endianness macros instead
15751         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
15752         and GDK_DRAWABLE_IMPL_FBDATA
15753
15754         * gdk/linux-fb/gdkfont-fb.c:
15755         Add empty gdk_font_load(). Needed for linking of Gtk+.
15756
15757         * gdk/linux-fb/gdkimage-fb.c:
15758         Removed endian.h, use glib endianness macros instead
15759         Moved GdkImagePrivateFB to windowing_data
15760         gdk_image_new_bitmap didn't always allocate enough
15761         memory.
15762
15763         * gdk/linux-fb/gdkinput-ps2.c:
15764         Added semi-working support for MS serial mice.
15765
15766         * gdk/linux-fb/gdkprivate-fb.h:
15767         s/GdkWindowPrivate/GdkWindowObject/
15768         Removed GdkWindowPrivate typedef
15769         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
15770         Removed GDK_DRAWABLE_P
15771         Move GdkColorPrivateFB from inherited to windowing_data
15772         Moved GdkImagePrivateFB to windowing_data
15773
15774         * gdk/linux-fb/gdkvisual-fb.c:
15775         Removed some unused debug code.
15776
15777         * gdk/linux-fb/gdkwindow-fb.c:
15778         Use stock cursors instead of including X headers.
15779         s/GdkWindowPrivate/GdkWindowObject/
15780
15781         * gdk/linux-fb/mitypes.h:
15782         Removed unused types.
15783
15784         * modules/linux-fb/basic.c:
15785         Use the pango fribidi wrappers.
15786
15787 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
15788
15789         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
15790         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
15791         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
15792         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
15793         GEqualFunc where applicable.
15794         
15795         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
15796         pango_font_description_equal as changed in pango.
15797         
15798         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
15799
15800         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
15801
15802         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
15803
15804         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
15805
15806         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
15807
15808         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
15809
15810         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
15811         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
15812
15813         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
15814         gtk_rc_styles_compare -> gtk_rc_styles_equal.
15815
15816 2000-11-12  Havoc Pennington  <hp@pobox.com>
15817
15818         * demos/gtk-demo/Makefile.am (democodedir): change demo install
15819         dir to datadir/gtk+-2.0/demo
15820
15821         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
15822         sorts of text widget and Pango font bugs. Urgh.
15823
15824         * demos/gtk-demo/Makefile.am (demos): Add textview.c
15825
15826         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
15827         tree that you should double click to see the demo. Fix 
15828         types of variables to reflect changed return values from 
15829         GtkTreeStore and GtkTreeViewColumn constructors.
15830
15831         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
15832         newly-created buffer to prepare for GObject semantics
15833
15834         * gtk/testtext.c: don't leak the buffer with GObject semantics
15835
15836         * gtk/testtextbuffer.c: ditto
15837         
15838 2000-11-12  Havoc Pennington  <hp@pobox.com>
15839
15840         Rename this testgtk to gtk-demo to avoid confusion, and 
15841         install it so people can use it as a supplement to 
15842         the documentation.
15843         
15844         * demos/gtk-demo: Moved from demos/testgtk
15845
15846         * demos/testgtk: Removed
15847
15848         * configure.in: make Makefile in gtk-demo
15849         
15850         * demos/gtk-demo/Makefile.am: Install sample source to 
15851         datadir/gtk-demo (maybe there's a better place?), and 
15852         rename the binary to gtk-demo
15853         
15854         * demos/gtk-demo/main.c (load_file): Load installed sample
15855         source if source isn't found in pwd.
15856
15857 2000-11-09  Havoc Pennington  <hp@pobox.com>
15858
15859         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
15860         argument to set the char displayed when visibility == FALSE
15861         (gtk_entry_create_layout): If !entry->visible, replace 
15862         all chars with the "invisible char"
15863
15864         * gtk/testgtk.c: Test the invisible_char deal
15865         
15866 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
15867
15868         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
15869         can't get a native font in the right encoding.
15870
15871 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
15872
15873         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
15874         respectively.
15875
15876 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
15877
15878         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
15879         Fix warning when moving between paragraphs.
15880
15881         * gtk/gtkentry.[ch]: Change move => move_cursor, 
15882         delete => delete_from_cursor, insert => insert_at_cursor
15883
15884 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
15885
15886         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
15887
15888         * modules/input/imthai-broken.c: A Thai input method for use if
15889         Thai keys are really generating Latin1 keysyms.
15890
15891         * modules/input/Makefile.am: Build these.
15892
15893 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
15894
15895         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
15896         g_filename_{to,from}_utf8 now takes an extra parameter.
15897
15898         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
15899         strftime into UTF-8.
15900
15901         (column_from_x, gtk_calendar_paint_day_names): Support RTL
15902         calendars.
15903
15904         (gtk_calendar_paint_day_names): Draw day names in the right 
15905         place.
15906         
15907 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
15908
15909         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
15910         problem with using result of g_get_charset() backwards -
15911         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
15912
15913         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
15914         negative min_width/height and max_width/height to
15915         mean "requisition"; this allows setting a window
15916         to be user-resizable in only one direction easily.
15917
15918         * gtk/testgtk.c (create_main_window): Remove hard-coded
15919         usize - set a default size in the vertical direction.
15920
15921 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
15922
15923         * gtk/gtkrange.c: Add some missing casts. Support 
15924         2 and 3 button clicks on the arrows to mean 
15925         "move by pages" and "jump to end". (Like gtkspinbutton)
15926
15927 2000-11-12 Hans Breuer <Hans@Breuer.Org>
15928
15929         * gdk/win32/makefile.msc : reflect build module changes
15930
15931         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
15932         from GdkPixmap*, cast implementation member instead.
15933
15934         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
15935         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
15936         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
15937         more Gdi functions return value checking. 
15938         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
15939         GdkImagePrivateWin32 *.
15940
15941         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
15942         menus useable again. Add #pragma message to keep reminded on this issue.
15943         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
15944         windows. This allows to enable backing store on Win32!
15945
15946         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
15947         in drawable is of impl type. Correct specific type checks appropriate.
15948  
15949         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
15950         GDK_WINDOW_DESTROYED before allocating new resources.
15951
15952         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
15953
15954         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
15955         (gdk_window_foreign_new) initialize parent handle.
15956         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
15957
15958         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
15959         Let the GDI invalidate the window on MoveWindow call to fix scrolling
15960         problems (e.g. main buttons in testgtk). 
15961
15962 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
15963
15964         * gtk/gtkentry.c (gtk_entry_key_press): Call 
15965         gtk_widget_activate for GDK_Return.
15966
15967         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
15968         of preedit cursor position.
15969
15970 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
15971
15972         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
15973         static.
15974
15975 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
15976
15977         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
15978         out support for multiple locales; that simple doesn't
15979         work reliably with current Xlib
15980
15981         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
15982         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
15983         Add support for positioning the cursor within the preedit string.
15984
15985 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
15986
15987         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
15988         at XIM input method module.
15989
15990         * gtk/gtktextview.c: Check for bindings after passing
15991         events to im context filter.
15992
15993 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
15994
15995         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
15996         empty attribute lists properly.
15997
15998 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
15999
16000         * gtk/queryimmodules.c (main): Return non-zero exit
16001         status if errors were encountered querying any
16002         modules.
16003
16004         * modules/input/Makefile.am (moduledir): remove
16005         leftover bin program target.
16006
16007         * docs/make-todo: Fix typo in error message.
16008
16009 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
16010
16011         * configure.in: Add modules/input/Makefile
16012
16013 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
16014
16015         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
16016         don't include gtkthemes.h.
16017
16018         * gtk/testgtk.c gtk/testtext.c: Set environment variables
16019         to point
16020
16021         * gtk/Makefile.am: Add new .c and .h files, build 
16022         gtk-query-immodules and use it to create a gtk.immodules
16023         file for use of test programs.
16024
16025         * gtk/gtkpreview.c: remove extra blank line.
16026
16027 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
16028
16029         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
16030         Add the ability to add extra tables beyond the default
16031         one, and also the ability to have compose sequences 
16032         that are prefixes of other compose sequences. 
16033
16034         * gtk/gtkimcontextsimple.c: Export a preedit string which
16035         consists of possible candidates for keystrokes that have
16036         been entered but not yet committed.
16037
16038         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
16039         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
16040
16041         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
16042         Add a function to add input-method switching menu items
16043         to a menu.
16044
16045         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
16046         when switching input methods.
16047
16048         * gtk/gtkimcontextsimple.[ch]: Change the format of
16049         the compose table to allow compose tables of different
16050         lengths / sequence.
16051
16052 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
16053
16054         * gtk/gtkimmodule.[ch]: Support routines for loading
16055         GtkIMContext implementations dynamically at runtime.
16056
16057         * modules/input/imcyrillic-translit.c: A sample input
16058         method (based on GtkIMContextSimple with an extra table),
16059         which demonstrates preedit strings and the module
16060         system for input modules
16061
16062         * gtk/queryimmodules.c: Program to query the available
16063         input modules and write the results into a file.
16064          
16065         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
16066         extra config options "im_module_file" (cache file for
16067         input method modules), and "im_module_path" - path
16068         to look for modules when generating cache file.
16069
16070         This doesn't scale.
16071
16072 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
16073
16074         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
16075         generic code from gtkthemes into a new abstraction
16076         GtkModule which has the logic for implementing
16077         a loadable module which implements a number of 
16078         GObject types.
16079
16080 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
16081
16082         * gtk/gtkeditable.[ch]: Convert GtkEditable from
16083         a class into an interface  
16084         
16085         * gtk/gtkoldeditable.[ch]: Move the old editable
16086         implementation into here, so legacy widgets can
16087         still rely on the implemenation. GtkOldEditable
16088         exports GtkEditable. Make selection handling
16089         code use new text conversion functions (and
16090         handle UTF-8 as a side-effect). Use GtkClipboard
16091         for CLIPBOARD.
16092
16093         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
16094         Adopt to match above changes.
16095
16096         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
16097         avoid GtkOldEditable implementation. Restructure
16098         to reduce number of places that modify state directly.
16099         Move to GtkBindingSet. Display the preedit string.
16100         Queue recomputation of PangoLayout and scroll position
16101         to improve effiency of doing complex changes naively.
16102         Add a menu with cut/copy/paste and input method selection.
16103
16104 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
16105
16106         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
16107         to set preedit string and attributes; display preedit string by
16108         inserting string and attributes at cursor when creating the
16109         GtkTextLineDisplay.
16110
16111         * gtk/gtktextlayout.c: Move all conversions between byte
16112         positions in PangoLayout and GtkTextIter into new functions
16113         line_display_iter_to_index/index_to_iter that properly
16114         handle the preedit string.
16115
16116         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
16117         it to return const char * (eventually will end up
16118         as GCONST char *, most likely.)
16119
16120         * gtk/gtktextview.[ch]: Handle the preedit string, call
16121         gtk_im_context_reset() as necessary, add a menu to switch
16122         input methods.
16123         
16124         * gtk/gtktextlayout.[ch]: Remove useless
16125         gtk_text_layout_get_log_attrs() function.
16126
16127 2000-11-11  Tor Lillqvist  <tml@iki.fi>
16128
16129         * gdk/gdk.def
16130         * gtk/gtk.def: Update.
16131
16132         * gdk/win32/*.c: Add last argument to g_type_register_static()
16133         calls.
16134
16135         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
16136
16137         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
16138         generated by older wheel mouse drivers. Get the correct y
16139         coordinate from WM_MOUSEWHEEL messages.
16140
16141         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
16142         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
16143         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
16144         Debugging functions.
16145
16146         * gdk/win32/gdkprivate-win32.h: Declare them.
16147
16148         * gdk/win32/gdkinput-win32.h: Add declaration for
16149         gdk_input_window_destroy().
16150
16151         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
16152
16153 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
16154
16155         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
16156         function to help handle keeping things in sync.
16157
16158 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
16159
16160         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
16161         BOXED marshallers.
16162
16163         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
16164         (gtk_list_store_class_init): use the new BOXED marshallers.
16165
16166         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
16167         new_with_values to new_with_types.
16168         (gtk_tree_store_get_column_type): add this.
16169         (gtk_tree_store_class_init): use the new BOXED marshallers.
16170
16171         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
16172         mirror some POINTER marshallers.
16173
16174 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
16175
16176         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
16177         allow more interesting iterators.  Also, made the lifecycle of
16178         iterators more explicit.
16179
16180         * gtk/gtktreemodelsort.[ch]: New model for sorting.
16181
16182         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
16183         types.
16184
16185 2000-11-09  Alexander Larsson  <alexl@redhat.com>
16186
16187         * demos/testgtk/menus.c:
16188         Changes to make the new testgtk compile after
16189         gtk_menu_append was removed.
16190
16191         * gdk/linux-fb/gdkdrawable-fb2.c
16192         (gdk_fb_get_depth, gdk_fb_get_visual,
16193         gdk_drawable_impl_fb_class_init): Implement
16194         these drawable functions. Now GtkImages work again.
16195
16196         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
16197
16198         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
16199         
16200         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
16201         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
16202         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
16203         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
16204
16205 2000-11-08  Havoc Pennington  <hp@pobox.com>
16206
16207         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
16208         visible_set args, don't know where these had gone, I thought they
16209         used to be there
16210
16211         * gtk/testtext.c: Add a menu item to apply invisibility tag;
16212         now we can test the feature and see that it's totally broken.
16213
16214 2000-11-08  Havoc Pennington  <hp@pobox.com>
16215
16216         Make DND copy pixbufs and tags when source and target share a 
16217         tag table.
16218         
16219         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
16220         in-process GTK_TEXT_BUFFER_CONTENTS target
16221         (gtk_text_view_drag_data_received): Paste from
16222         GTK_TEXT_BUFFER_CONTENTS if we receive it.
16223
16224 2000-11-08  Alexander Larsson  <alexl@redhat.com>
16225
16226         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
16227         API changes.
16228
16229         * gtk/gtkmenu.c: Add support for scrolling menus.
16230         Remove gtk_menu_append/prepend/insert, these have been moved to
16231         gtkcompat.h as #defines.
16232
16233         * gtk/gtkcompat.h.in:
16234         Add compatibility #defines for gtk_menu_append/prepend/insert
16235
16236         * gtk/gtkmenu.h: Add data needed for scrolling menus.
16237         GtkMenuPositionFunc gets an extra argument push_in.
16238         gtk_menu_append/prepend/insert removed.
16239         
16240         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
16241         positioning behaviour to fit to scrolling menus.
16242
16243         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
16244         into menuitem->submeny. That is wrong, and broke torn
16245         off submenus of torn off menus, since they were unrealized
16246         when the first menu was unrealized.
16247
16248         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
16249         gtk_menu_shell_select_item() since these need to be overridden in
16250         GtkMenu.
16251
16252         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
16253         positioning behaviour to fit to scrolling menus.
16254         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
16255         the current item so that it is prelighted when the menu pops up.
16256         This is a workaround to the fact that the menu doesn't get the
16257         initial enter event (due to grabs).
16258
16259         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
16260         s/gtk_menu_append/gtk_menu_shell_append/
16261
16262         * gtk/gtknotebook.c:
16263         s/gtk_menu_insert/gtk_menu_shell_insert/
16264
16265         * gtk/testgtk.c (create_menu, create_menus):
16266         Create the first menu with 50 items so that menu scrolling
16267         can be tested.
16268         
16269         
16270         Patch from Jonathan Blandford  <jrb@redhat.com>
16271
16272         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
16273         system to handle size requests.  First, we ask what the size of
16274         the toggle is.  Then, when allocating the size, we allocate the
16275         toggle_size first.  This way we can have multiple menu-item
16276         classes w/o needing a seperate class for each.
16277
16278         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
16279         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
16280
16281         * gtk/gtkcheckmenuitem.c
16282         (gtk_check_menu_item_toggle_size_request): New function to handle
16283         the toggle size-request.
16284
16285 2000-11-07  Havoc Pennington  <hp@redhat.com>
16286
16287         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
16288         Half-ass somewhat fix this function, so that scrolling to the
16289         insertion point works. Pango hacking is in the future to really
16290         fix it.
16291
16292         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
16293         length of data, no longer used.
16294
16295         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
16296         method contents in here, get rid of destroy method
16297         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
16298         that were backward. Remove debug spew.
16299         (cut_or_copy): Make the clipboard work with insert_range to
16300         preserve tags and pixbufs, not just the primary selection.
16301
16302 2000-11-07  Havoc Pennington  <hp@redhat.com>
16303
16304         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
16305         to gtk_text_mark_get_visible
16306
16307         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
16308         bug that was generating an invalid iterator
16309
16310         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
16311         ensure_char_offsets() in front of code placing the iter in an
16312         invalid state.
16313
16314         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
16315         make override_location arg const
16316         (paste): Replace the selection if we paste into the 
16317         current selection
16318
16319         * gtk/gtkselection.h: Remove "GtkSelectioData"
16320         (struct _GtkSelectionData): move the definition here.
16321
16322         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
16323         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
16324
16325         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
16326
16327         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
16328         (gtk_text_buffer_insert_range_interactive): implement
16329         (gtk_text_buffer_get_tags): Remove, replaced by
16330         gtk_text_iter_get_tags()
16331
16332         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
16333         limit parameter, to avoid infinite linear scan.
16334         (gtk_text_iter_backward_search): Add search limit
16335         (gtk_text_iter_forward_find_char): Add search limit
16336         (gtk_text_iter_backward_find_char): Add search limit
16337
16338 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
16339
16340         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
16341         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
16342         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
16343         gdk/linux-fb/gdkwindow-fb.c:
16344         use g_object_new() instead of g_type_create_instance() which
16345         is a private function for fundamental type implementations.
16346
16347         * gdk/linux-fb/gdkinput-ps2.c:
16348         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
16349         instead just store the current modifier state. Add a (somewhat broken)
16350         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
16351         Rename exported function gdk_input_ps2_get_mouseinfo to
16352         gdk_input_get_mouseinfo.
16353
16354         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
16355         gdk/linux-fb/gdkwindow-fb.c:
16356         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
16357         
16358
16359 2000-11-02  Havoc Pennington  <hp@redhat.com>
16360
16361         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog,