]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
Avoid unexpected warning message when navigating menu (#68517)
[~andy/gtk] / ChangeLog.pre-2-10
1 2002-01-16  Padraig O'Briain <padraig.obriain@sun.com>
2
3         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
4         Avoid unexpected warning message when navigating menu (#68517)
5
6 2002-01-15  Jody Goldberg <jody@gnome.org>
7
8         * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
9         GtkLayout may have been scrolled _before_ it was realized.
10
11 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
12
13         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
14         the timer on destroy, or when we are notified that we are
15         shadowed by a modal dialog.
16
17         * gtk/gtkspinbutton.c: Remove explicit gtk_grab_add()/remove() -
18         not needed any more.
19
20         * gtk/gtkmain.c (gtk_grab_notify): Fix problem where notifications
21         weren't sent out for the default grab group.
22
23         * gtk/gtkmain.c (gtk_grab_notify): Fix notification of widgets that
24         were getting events because they were part of the previous grab.
25
26 Tue Jan 15 12:23:33 2002  Owen Taylor  <otaylor@redhat.com>
27
28         * gtk/gtknotebook.c (gtk_notebook_mnemonic_activate_switch_page): 
29         focus the activated tab, not the page. (#53612)
30
31         * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Track
32         the last focus descendant of the page.
33
34         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): If the focus
35         was on the previous page, move it to the last focused widget /
36         first element on the new page, if possible, or if not, to the 
37         notebook itself. (#68224, reported by Jonathan Blandford)
38
39         * gtk/gtknotebook.c (focus_tabs_in): Don't focus tabs
40         tabs aren't visible. (#65462, Damon Chaplin, fixed based 
41         on patch from Anders Carlsson)
42
43 2002-01-15            Vitaly Tishkov       <tvv@sparc.spb.su>
44
45         * gtk/gtkstyle.c
46         a misprint in documentation for gtk_style_render_icon () is fixed
47
48 Mon Jan 14 23:21:47 2002  Tim Janik  <timj@gtk.org>
49
50         * gtk/gtkmenuitem.c (gtk_menu_item_map): map event_window after
51         mapping child, so we don't loose events.
52
53 2002-01-15  Sven Neumann  <sven@gimp.org>
54
55         * gtk/gtkaccellabel.h
56         * gtk/gtkitemfactory.c: fixed documentation by syncing the parameter
57         names used in headers and code.
58
59 2002-01-14  jacob berkman  <jacob@ximian.com>
60
61         * gtk/gtkrc.c (gtk_rc_get_im_module_path): close a comment block
62
63 Tue Jan 15 01:13:51 2002  Kristian Rietveld  <kris@gtk.org>
64
65         * gtk/gtktreemodelsort.c: fix a load of open line ends,
66         (gtk_tree_model_sort_set_model): only free root level if it's
67         !NULL
68
69 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
70
71         * gtk/gtkoldeditable.c, gtk/gtkrc.c, 
72         gtk/gtkstyle.c: Documentation additions.
73
74         * gtk/gtkmenu.c (gtk_menu_set_accel_path),
75         gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path), 
76         gtk/gtkwidget.c (gtk_widget_add_accelerator): Typo and markup fixes.
77
78         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document.
79
80         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter): Explain intended use.
81
82 Mon Jan 14 17:14:13 2002  Owen Taylor  <otaylor@redhat.com>
83
84         * gdk/x11/gdkselection-x11.c (sanitize_utf8): Don't
85         mangle sequences of consecutive \n or \r.
86
87 Mon Jan 14 17:42:28 2002  Jonathan Blandford  <jrb@redhat.com>
88
89         * gtk/gtktreeview.c (gtk_tree_view_stop_editing): allow cancel to
90         happen.
91
92         * gtk/gtktreeview.c (install_presize_handler): only install the
93         handler if we're realized, #68056
94
95 Mon Jan 14 16:35:58 2002  Owen Taylor  <otaylor@redhat.com>
96
97         * gtk/gtkwindow.c (gtk_window_move_resize): Unset 
98         initial_pos_set after the first configure request.
99
100 2002-01-13  Jody Goldberg <jody@gnome.org>
101
102         * gtk/gtktexttag.c (get_color_arg) : set_boxed will copy the color
103           and will use a mem_chunk to do it.  Avoid an unnecessary copy, a
104           leak, and confusion.
105
106 Sun Jan 13 23:23:22 2002  Owen Taylor  <otaylor@redhat.com>
107
108         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix problem where
109         widget->requisition was being used instead of
110         gtk_widget_get_child_requisition (), causing geometry widgets
111         with usizes to misbehave.
112
113 2002-01-14  Sven Neumann  <sven@gimp.org>
114
115         * gtk/gtkrc.c: g_getenv() returns a const string.
116
117 2002-01-14  Hasbullah Bin Pit  <sebol@ikhlas.com>
118
119         * configure.in: Added ms at ALL_LINGUAS.
120         * po/ms.po: Added Malay Translation.
121
122 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
123
124         * gtk/gtkitemfactory.c: Documentation.
125
126 2002-01-13  Sven Neumann  <sven@gimp.org>
127
128         * gdk/gdkwindow.c: documentation cleanups.
129
130 Sun Jan 13 01:15:45 2002  Kristian Rietveld  <kris@gtk.org>
131
132         * gtk/gtktreemodelsort.c: various cleanups,
133         (get_child_iter_from_elt): removed,
134         (gtk_tree_model_sort_elt_get_path): rewritten to be a lot cleaner
135         and especially faster,
136         (gtk_tree_model_convert_iter_to_child_iter): use
137         gtk_tree_model_sort_elt_get_path
138
139 Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
140
141         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
142         revert Owen's change (using a strdupped string as object data), so
143         the interactive search works again
144
145 2002-01-11  Havoc Pennington  <hp@pobox.com>
146
147         * gtk/gtklabel.c: put in more links to Pango markup format docs
148         (gtk_label_set_justify): mention gtk_misc_set_alignment
149
150 2002-01-12  Tor Lillqvist  <tml@iki.fi>
151
152         Fixes contributed by Archaeopteryx Software: This is a first small
153         part of their changes. Will commit more later.
154         
155         * gdk/win32/*.c: Add some more checks for failed GDI calls. If a
156         call fails, don't use bogus values.
157
158          gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): Plug
159         memory leak: g_free() the AND and XOR bitmaps after use.
160         (_gdk_cursor_destroy): If we are destroying the current Windows
161         cursor, set the Windows cursor to none first.
162
163         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
164         brush that was in the DC, like the win32-procution branch does. I
165         guess this plugs a resource leak? With the HDC cache, the old
166         brush might be something we created ourselves, and not a stock
167         brush. And it doesn't do any harm to call DeleteObject on stock
168         brushes.
169
170         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_finalize): If
171         the window has a cursor which is the current Windows cursor,
172         before destroying it set the current Windows cursor to none.
173         (gdk_window_set_cursor): Also here, if destroying the current
174         Windows cursor, set the current Windows cursor to none first.
175         (gdk_window_get_pointer): Revamp logic.
176         
177 2002-01-10  jacob berkman  <jacob@ximian.com>
178
179         * gtk/gtkwidget.c (gtk_widget_add_events): actually iterate
180         through the list rather than infinitely loop
181
182 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
183
184         * gtk/gtkwidget.c (gtk_widget_set_style_recurse): Rename to
185         reset_rc_styles_recurse(). (#68084)
186
187 2002-01-10            Vitaly Tishkov       <tvv@sparc.spb.su>
188         * gtk/gtkimage.c
189         * gtk/gtkimcontext.c
190         * gtk/gtktreemodel.c
191         * gtk/gtktreemodelsort.c
192         * gtk/gtkwindow.c
193         fix docs        
194
195 Wed Jan  9 20:56:42 2002  Jonathan Blandford  <jrb@redhat.com>
196
197         * gdk/x11/gdkkeys-x11.c (get_xkb): get the types as well as the
198         symbols because we need them in MyEnhancedXkbTranslateKeyCode.
199
200 2002-01-10  Tor Lillqvist  <tml@iki.fi>
201
202         Apply the same fixes and improvements as to the
203         gtk-1-3-win32-production branch: Bug fixes and cleanup of
204         selection and DND functionality. Still doesn't work as well as the
205         win32-production branch, though, but getting closer.
206
207         After this, need to add Archaeopteryx Software's OLE2 DND support.
208
209         * gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
210         gdk_selection_send_notify, generate_selection_notify): Don't use
211         SendMessage() to generate events for the same app, instead use
212         gdk_event_put().
213
214         * gdk/win32/gdkprivate-win32.h
215         * gdk/win32/gdkglobals-win32.c
216         * gdk/win32/gdkmain-win32.c
217         * gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
218         initialisation and handling of gdk_selection_notify_msg,
219         gdk_selection_request_msg and gdk_selection_clear_msg. 
220
221         * gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
222         gdk_free_text_list, gdk_string_to_compound_text,
223         gdk_free_compound_text): Implement trivially, witrh a text_list
224         always having a single element, and a compound text always
225         consisting of just a single (UTF-8!) string. Let's see how well
226         this works.
227
228         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
229         non-ASCII paste from the clipboard: Try getting the same formats
230         from the Windows clipboard that gdk_property_change() puts there:
231         CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
232
233         * gdk/win32/gdkproperty-win32.c (gdk_property_change): When
234         storing text on the clipboard, handle non-ASCII text
235         correctly. The logic is as follows:
236
237         If we have only ASCII characters, use CF_TEXT.
238
239         Else, if we are on NT, use CF_UNICODETEXT.
240
241         Else (we are on Win9x), if all the characters are present in the
242         code page of some installed locale, use CF_TEXT and also set
243         CF_LOCALE to that locale.
244
245         Else (still on Win9x) store as RTF. We use a very simple RTF
246         string, just the text, no fonts or other crap, with the non-ASCII
247         characters as Unicode \uN keywords. Additionally, also store the
248         UTF-8 string as such, under the format "UTF8_STRING", so that GDK
249         can also paste from the Clipboard what it has copied there. (Thus
250         no need to implement any RTF parser.)
251         
252         (find_common_locale): New function, implements the search for a
253         locale for case 3 above.
254
255         * gdk/win32/gdkglobals-win32.c: New global variables
256         compound_text, text_uri_list, utf8_string, cf_rtf and
257         cf_utf8_string.
258
259         * gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
260         converts from a wchar_t string to UTF-8.
261         (_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
262         (_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
263
264         * gdk/win32/gdkevents-win32.c (build_keypress_event): Use
265         _gdk_ucs2_to_utf8().
266
267         * gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
268
269         * gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
270         gdk_drag_context_ref() was called unnecessarily in a couple of
271         places, meaning drag contexts were never freed. The same memory
272         leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
273
274         (gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
275         stored file list.
276
277         * gdk/win32/gdkselection-win32.c: Clarify the use of the
278         sel_prop_table. Now it is used only for storing the GDK_SELECTION
279         "properties".
280
281         The file names dropped with WM_DROPFILES -style DND is stored
282         temporarily (between the drop and the target picking them up) in a
283         separate place.
284
285         Have a separate hash table to map selection atoms to owner
286         windows. This used to be quite mixed up.
287
288         (_gdk_dropfiles_store): New function, to store the dropped file
289         list for the drop target to possibly fetch, and clear it
290         afterwards, from gdk_drop_reply().
291
292         (gdk_selection_owner_get): Much simplified now.
293
294 2002-01-09  jacob berkman  <jacob@ximian.com>
295
296         * gtk/gtklayout.c (gtk_layout_style_set): set the background of
297         our bin window also (fixes #58957)
298
299 Wed Jan  9 19:10:07 2002  Jonathan Blandford  <jrb@redhat.com>
300
301         * gtk/gtktreeselection.c
302         (_gtk_tree_selection_internal_select_node): Now we test we can
303         unselect nodes before selecting new ones.
304         (gtk_tree_selection_real_select_node): be careful comparing booleans.
305
306 Wed Jan  9 21:31:44 2002  Kristian Rietveld  <kris@gtk.org>
307
308         * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
309         gtk_tree_model_rows_reordered and not an iter with user_data
310         set to NULL (which is an invalid liststore iter, so
311         iter_n_children failed, etc)
312
313 2002-01-09  Sven Neumann  <sven@gimp.org>
314
315         * tests/prop-editor.c: declared internal functions static.
316         
317 Wed Jan  9 11:13:12 2002  Owen Taylor  <otaylor@redhat.com>
318
319         * gtk/gtkmenuitem.c (_gtk_menu_item_refresh_accel_path): 
320         Fix problem with menus without accel groups, such as the
321         menus for option menus.
322
323         * gtk/gtkpaned.c (gtk_paned_expose): Only conditionalize
324         drawing of handle on whether both children are visible,
325         not the drawing of the other child!. (#68325, Diego Gonzalez)
326
327 Wed Jan  9 10:20:16 2002  Owen Taylor  <otaylor@redhat.com>
328
329         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkgc-c11.c: Check for
330         RENDER before trying to use it... XRenderFindFormat() prints
331         warnings if called when extension isn't present.
332
333 Wed Jan  9 15:20:40 2002  Tim Janik  <timj@gtk.org>
334
335         * gtk/gtkmenuitem.c (gtk_menu_item_parent_set): update the accel
336         path upon parent changes.
337
338 Wed Jan  9 13:20:14 2002  Tim Janik  <timj@gtk.org>
339
340         * gtk/gtkviewport.c (gtk_viewport_size_allocate): small but important
341         fix to force vadjustments at size_alocate time from Xavier Ordoquy
342         <mcarkan@users.sourceforge.net>.
343
344 Wed Jan  9 11:23:39 2002  Tim Janik  <timj@gtk.org>
345
346         * gtk/gtklayout.c (gtk_layout_get_property): 
347         * gtk/gtkspinbutton.c (gtk_spin_button_get_property): 
348         * gtk/gtktreeview.c (gtk_tree_view_get_property): 
349         * gtk/gtkwidget.c (gtk_widget_get_property): 
350         * gtk/gtkfontsel.c (gtk_font_selection_get_property): 
351         * gtk/gtkrange.c (gtk_range_get_property):
352         * gtk/gtkviewport.c (gtk_viewport_get_property):
353         * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
354         possible NULL pointer.
355
356 2002-01-08  Mike Kestner  <mkestner@speakeasy.net>
357
358         * gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
359         * gtk/gtktreednd.h : ditto.
360         * gtk/gtktreemodel.h : ditto.
361         * gtk/gtktreesortable.h : ditto.
362         * gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
363
364 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
365
366         * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather 
367         than XIDs in the docs.
368
369         * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
370
371 Tue Jan  8 18:39:23 2002  Jonathan Blandford  <jrb@redhat.com>
372
373         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
374         Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
375
376 Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
377
378         * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
379         Handle TOGGLE/RADIOBUTTON as well. (#68201,
380         Damon Chaplin.)
381
382         * gtk/gtktoolbar.c (get_first_child): Fix stupid 
383         bug, just introduced.
384
385 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
386
387         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
388         translations, once and for all.
389
390         * gtk/gtktextbuffer.c (paste_from_buffer): Free
391         the ClipboardRequest structure. (#66198, HideToshi
392         Tajima)
393
394 2002-01-08  jacob berkman  <jacob@ximian.com>
395
396         * gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
397         the child rather than the layout. see bug #68263
398
399 Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
400
401         * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
402         the handle if we aren't showing both children.
403         (#68135, Diego Gonzalez)
404
405 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
406
407         * gtk/gtkwidget.c (gtk_widget_add_events): Fix
408         leak of result of gtk_container_get_children().
409
410 Tue Jan  8 14:42:19 2002  Owen Taylor  <otaylor@redhat.com>
411
412         * gtk/gtktoolbar.c: Fix leaks of results of
413         gtk_container_get_children(). (#68199, Damon Chaplin)
414
415 Tue Jan  8 14:19:43 2002  Owen Taylor  <otaylor@redhat.com>
416
417         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): 
418         Fix problem where child->requisition was accessed
419         directly instead of calling get_child_requisition()
420         (#68199, Damon Chaplin)
421
422 2001-01-08  James Henstridge  <james@daa.com.au>
423
424         * gtk/gtkstyle.c: add trailing */ on doc comment.
425
426 Mon Jan  7 22:19:32 2002  Owen Taylor  <otaylor@redhat.com>
427
428         * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
429         problem where were the offset into the image was passed
430         into convert_to_format() wrong.
431
432         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
433         gdk_x11_drawable_update_picture_clip () before using
434         the picture; allow update_picture_clip() to take a NULL gc
435         to mean no clipping.
436
437 2002-01-07  Matthias Clasen  <matthiasc@poet.de>
438
439         * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
440
441         * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
442
443         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
444
445         * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
446
447         * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
448         gtk/gtkwidget.c (gtk_widget_get_toplevel, 
449         gtk_widget_push_composite_child), gtk/gtkdialog.c 
450         (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
451         from messing up the indentation of inline examples.     
452
453         * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv() 
454         instead of getenv().
455
456         * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
457         gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
458         gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
459
460         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
461         gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
462         Document.
463
464 2002-01-07  Anders Carlsson  <andersca@gnu.org>
465
466         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
467         unused pixels and rowstride variables.
468         (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
469
470 Mon Jan  7 08:48:23 2002  Tim Janik  <timj@gtk.org>
471
472         * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
473         the pointer by x/y_offset into the new window when we found
474         the drag destination.
475
476         * gtk/gtkaccelmap.c (internal_change_entry): fix return code
477         for simulation when the entry already contains the required
478         accel key and mod.
479
480 2002-01-06  Matthias Clasen  <matthiasc@poet.de>
481  
482         * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by 
483         G_DISABLE_CAST_CHECKS.
484
485         * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
486         gtk_accel_group_query, gtk_accel_group_find,
487         gtk_accel_groups_from_object): Document.
488
489         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
490
491 2002-01-04  Hans Breuer  <hans@breuer.org>
492
493         * gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c : 
494         need to cast image->mem away from void* to avoid 
495         'error C2036: 'void *' : unknown size'. Doing pointer 
496         arithmetics on void pointers is a GCCism afaik.
497
498         * gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
499         _gdk_draw_pixbuf ()
500
501         * gdk/makefile.msc gdk/win32/makefile.msc 
502         gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
503
504         * gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
505         and take care of image->visual possibly NULL.
506
507         * gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
508         _gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
509         Again take care of image->visual possibly NULL.
510
511         * gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
512
513         * gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
514         instead of private field access
515
516         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
517         colormap setting to the gdk-X behaviour
518
519 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
520
521         * gtk/gtkwidget.c: Documentation additions.
522
523 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
524
525         * gtk/gtkobject.c (gtk_object_dispose): Fix a comment.
526
527         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
528
529 2002-01-04  Havoc Pennington  <hp@pobox.com>
530
531         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
532         
533 Fri Jan  4 13:05:15 2002  Owen Taylor  <otaylor@redhat.com>
534
535         * gtk/gtkdnd.c (gtk_drag_find_widget): At least
536         don't infinite loop if the widget and window heirarchies
537         don't correspond.
538
539         * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes
540         in heirarchy in ::drag_motion, ::drag_drop callbacks
541         by referencing child widget lists. (Patch from Tim)
542
543         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem
544         with widgets where window.x != widget->allocation.x
545
546 Fri Jan  4 01:36:48 2002  Owen Taylor  <otaylor@redhat.com>
547
548         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Optimize
549         a little bit. (More for consistency than because it
550         makes much of a difference.)
551
552 Thu Jan  3 22:18:15 2002  Owen Taylor  <otaylor@redhat.com>
553
554         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
555         (_gdk_x11_have_render): Private function to tell if we have RENDER
556         extension.
557
558         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
559         None if we don't have RENDER extension.
560
561         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
562         use Xft unless we have render extension.
563
564         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
565         Handle missing render extension.
566
567         * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
568         gdk/gdkinternals.h: Add a private copy_to_image() virtual function
569         to the GdkDrawable vtable that extends get_image() to allow
570         copying onto existing images.  Make the default implementation of
571         get_image() use this so that backends don't have to implement
572         both. Add private wrapper _gdk_drawable_copy_to_image().
573
574         * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
575         gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
576         copy_to_image() semantics, speed up by using ShmPixmaps and
577         XCopyArea when possible, XFlush() after ungrabbing the server,
578         generally redo the logic once again.
579
580         * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
581         _gdk_windowing_bits_per_depth(): Function to convert from depth to
582         bits-per-pixel. (We assume only one bpp per depth - X requires
583         this.)
584
585         * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
586         scratch image code into a generic _gdk_image_get_scratch() chunk
587         of code that we can use other places we need scratch images.
588
589         * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
590         Add _gdk_image_new_for_depth() as the backend 
591         to _gdk_image_new() to allowing creating images with
592         a depth and no visual.
593
594         * gdk/gdkpixbuf-drawable.c: Fix so that getting 
595         parts of images not at 0,0 actually works.
596
597         * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
598         gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c: 
599          - Add a new GdkDrawableClass vfunc _draw_pixbuf, and 
600           _gdk_draw_pixbuf() [ will be made public later ], to allow 
601           backends to accelerate drawing pixbufs. 
602          - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
603            to be the default implementation. 
604          - Update docs for gdk_pixbuf_render_to_drawable_alpha(). 
605          - Optimize the default implementation by using 
606            _gdk_image_copy_to_pixmap() and scratch shared images, and
607            special casing the compositing.
608
609         * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
610         with alpha using the RENDER extension.
611
612         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
613         Optimize by _gdk_image_copy_to_pixmap() and scratch images.
614
615         * tests/testrgb.c: Add test for speed of alpha composition,
616         reduce the number of iterations since alpha composition
617         can be a bit slow.
618
619         * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap): 
620         Private function to get a ShmPixmap for an image, if possible.
621
622 2002-01-04  Anders Carlsson  <andersca@gnu.org>
623
624         * tests/testtreesort.c: Add my cool list of integers.
625
626 Thu Dec 27 18:12:55 2001  Owen Taylor  <otaylor@redhat.com>
627
628         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Fix
629         problem where retrieved atoms weren't properly returned.
630
631 2002-01-03  Anders Carlsson  <andersca@gnu.org>
632
633         * gtk/gtktextview.c (gtk_text_view_key_press_event): When
634         tab is pressed and the text view isn't editable, 
635         move the focus instead.
636
637         * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
638         necessary.
639
640         * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list.
641
642         * gtk/gtkcolorsel.c (get_focus_gc): Free dash list.
643
644         * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask
645         if it's NULL.
646
647         * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
648         _gtk_tree_view_queue_draw_node.
649         (gtk_tree_view_row_has_child_toggled): Only redraw one node.
650
651         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): 
652         sort_column_id can be 0.
653
654         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
655         Only redraw one the node being selected.
656
657         * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
658         
659 Wed Jan  2 23:09:06 2002  Tim Janik  <timj@gtk.org>
660
661         * gtk/gtkcontainer.c (_gtk_container_queue_resize): don't ignore
662         realized but visible && !mapped resize containers (which is
663         possible with unset CHILD_VISIBLE now).
664
665 2002-01-02  jacob berkman  <jacob@ximian.com>
666
667         * gtk/Makefile.am (LDFLAGS): automake still doesn't support
668         libsomething_la_LDFLAGS, so fix the build again
669
670 2002-01-01  Havoc Pennington  <hp@pobox.com>
671
672         * gtk/gtktextview.c (gtk_text_view_expose_event): propagate
673         exposes to no window children not in the buffer window.
674         (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab
675         - is this the right way to do it?
676         (gtk_text_view_focus): add focus method, just chains up for now, 
677         I'm not sure why the GtkContainer implementation doesn't work
678
679         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill
680         in the text line for the child anchor segment
681
682         * tests/testtext.c (do_add_focus_children): add another test
683         example (to put focusable buttons into the widget)
684
685 2002-01-01  Havoc Pennington  <hp@pobox.com>
686
687         * docs/README.linux-fb: note that this file is obsolete
688
689         * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
690         files that they should not be edited and look in the reference 
691         manual instead. Probably these files should just be replaced by 
692         the note, and their main contents deleted.
693
694         * gtk/gtktextview.c: docs
695
696         * gtk/gtktextmark.c: docs
697
698         * gtk/gtktextchild.c: docs
699
700         * gtk/gtktextbuffer.c: docs stuff
701
702         * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
703         give people more leads in sorting out PRIMARY vs. CLIPBOARD
704
705 2002-01-01  Tor Lillqvist  <tml@iki.fi>
706
707         * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
708         ../gdk-pixbuf/gdk-pixbuf-csource.
709
710 2001-12-31  Tor Lillqvist  <tml@iki.fi>
711
712         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
713         handling.
714         (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
715
716         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
717         -Wall.  Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
718         one more place.
719
720         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
721         -Wall.
722
723         * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
724
725 2002-01-01  Havoc Pennington  <hp@pobox.com>
726
727         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc 
728         fix
729         
730 2002-01-01  Havoc Pennington  <hp@pobox.com>
731
732         * gtk/gtktextview.c (changed_handler): Replace call to
733         gtk_widget_size_request() that expected to actually compute the
734         request with a direct use of widget_class->size_request, so we get
735         our size request right; fixes remaining part of #63065 reported by
736         Matthias Clasen
737
738 2001-12-31  Havoc Pennington  <hp@pobox.com>
739
740         * tests/testtext.c (do_insert_and_scroll): remove backward_char
741         since we no longer have bogus newline
742         (dialog_response_callback): remove another backward_char horkage, 
743         reported by Matthias Clasen #63065
744
745 2001-12-31  Havoc Pennington  <hp@pobox.com>
746
747         * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
748         fix an incorrect assertion that the "valid" flag is always correct
749         in a node and add explanatory comment. This keeps me from 
750         reproducing #59101, but I'm remembering that 59101 was actually 
751         about incorrect pixel totals, so I'm not sure 59101 is actually 
752         fixed. May just have stopped happening due to some change in 
753         how C-k works.
754
755 2001-12-31  Havoc Pennington  <hp@pobox.com>
756
757         * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
758         selection if shift is down, bug #50939
759         (gtk_text_view_button_press_event): add double/triple click
760         selection to the current selection if shift is down
761
762 2001-12-31  Havoc Pennington  <hp@pobox.com>
763
764         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix 
765         to use ensure_byte_offsets not ensure_char_offsets, patch 
766         from Padraig O'Briain bug #67356
767         
768 2001-12-30  Havoc Pennington  <hp@pobox.com>
769
770         * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have 
771         the right values, reported by Jeff Franks
772
773 2001-12-30  Matthias Clasen  <matthiasc@poet.de>
774
775         * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
776
777 2001-12-28  Matthias Clasen  <matthiasc@poet.de>
778
779         * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c: 
780         Minor documentation tweaks.
781
782 2001-12-28  Tor Lillqvist  <tml@iki.fi>
783
784         * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
785         (unicode_classify): Don't return -1 on encountering an
786         unclassified character, but play it safe and return U_BASIC_LATIN.
787
788 Thu Dec 27 16:05:30 2001  Owen Taylor  <otaylor@redhat.com>
789
790         * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
791         of misc->xpad/ypad consistent with GtkLabel. Do 
792         directional flipping when interpreting misc->xalign/yalign.
793         Fix off-by-one error for negative x,y. (#67472, reported
794         by Mathieu Lacage)
795
796 Thu Dec 27 15:45:41 2001  Owen Taylor  <otaylor@redhat.com>
797
798         * gtk/gtkwidget.c (gtk_widget_set_style_internal):
799         Remove optimization that was causing problems because
800         we called gtk_widget_size_request() before we called
801         gtk_widget_queue_resize() so RESIZE_NEEDED was not
802         set. Optimization shouldn't mattter now that we
803         are smart about needlessly size requesting or allocating
804         widgets. (#67598, reported by Jacob Berkman)
805
806 Thu Dec 27 15:38:20 2001  Owen Taylor  <otaylor@redhat.com>
807
808         * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
809         Call gdk_window_get_pointer() on menu->bin_window not
810         menu->window, so we get the correct window for the
811         menu item. (#65213, Guillermo S. Romero)
812
813 Thu Dec 27 15:13:44 2001  Owen Taylor  <otaylor@redhat.com>
814
815         * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
816         the title by setting to NULL. Move docs inline. 
817         Update the title if the tearoff window already
818         exists. Code cleanup. (Fixes #65190, reported by
819         Vitaly Tishkov.)
820
821 Thu Dec 27 14:04:22 2001  Owen Taylor  <otaylor@redhat.com>
822
823         * gtk/gtksocket.c (gtk_socket_key_press_event): 
824         gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
825         special handling of key presses unless we are doing 
826         iter-app embedding. (Fixes #67590, Anders Carlsson)
827
828 Thu Dec 27 16:37:04 2001  Kristian Rietveld  <kris@gtk.org>
829
830         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
831         (gtk_tree_model_sort_sort_level),
832         (gtk_tree_model_sort_insert_value): fix a few places where
833         I was confused between modelsort iters and other iters. This was
834         really going to happen someday ;)
835
836 Wed Dec 26 23:41:41 2001  Kristian Rietveld  <kris@gtk.org>
837
838         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
839         we are unprelighted before reordering
840
841         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
842         need to break out of the for loop, not return (this fixed
843         the 'selection freeze' bug).
844
845         * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
846         be pretty stable now, though it still needs some more code
847         cleanups.
848
849 Wed Dec 26 12:32:31 2001  Owen Taylor  <otaylor@redhat.com>
850
851         * docs/Changes-2.0.txt: Document the fact that
852         gtk_paned_set_handle_size() has been removed.
853
854         * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro, 
855         since it pointed to gtk_paned_set_handle_size(), which
856         was removed. (#66760, Matt Wilson)
857
858 Wed Dec 26 12:28:24 2001  Owen Taylor  <otaylor@redhat.com>
859
860         * gtk/gtkdnd.c (gtk_drag_highlight): Connect 
861         gtk_drag_hightlight_expose _after_, so it works with
862         widgets that paint there entire background. (#66735)
863
864 Wed Dec 26 12:17:06 2001  Owen Taylor  <otaylor@redhat.com>
865
866         * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
867         allocation to widget->allocation. (Fixes #67290,
868         Chris Phelps.)
869
870 Wed Dec 26 11:49:01 2001  Owen Taylor  <otaylor@redhat.com>
871
872         (#67542, reported by Anders Carlsson)
873         
874         * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
875         rc_style->font_desc with defaul style instead of replacing
876         it.
877
878         * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
879         font descriptions in RC styles by calling
880         pango_font_description_merge(). 
881
882 2001-12-24  James Henstridge  <james@daa.com.au>
883
884         * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
885         valid with both SGML and XML.
886
887 Sat Dec 22 12:38:03 2001  Owen Taylor  <otaylor@redhat.com>
888
889         * configure.in: 1.3.12, interface, binary age 0.
890
891         * configure.in: Require new versions of Glib, Pango, ATK.
892
893         * NEWS: Updated.
894
895         * configure.in: Make explicit what libtool we are executing.
896         (Tomas Ogren)
897
898         * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
899
900         * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix 
901         parameter names for docs.
902
903 Sat Dec 22 22:35:29 2001  Owen Taylor  <otaylor@redhat.com>
904
905         * gtk/gtkwindow.c (gtk_window_realize) 
906           gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
907
908         * gtk/gtkentry.c (gtk_entry_key_release)
909           gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
910         key release events to the input method.
911
912         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
913         Handle release of Control/Shift to end hex sequence.
914
915         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress): 
916         Handle key releases as well as presses.
917
918 2001-12-21  Matthias Clasen  <matthiasc@poet.de>
919
920         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
921
922         * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
923         gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
924         documentation about underscores and mnemonics. (#66380)
925
926         * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
927         cyclic reference in docs.
928
929         * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
930         of default value. (#65402)
931
932         * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale): 
933         Markup fixes.
934
935 2001-12-20  Anders Carlsson  <andersca@gnu.org>
936
937         * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
938         map here.
939
940 Tue Dec 18 16:15:55 2001  Owen Taylor  <otaylor@redhat.com>
941
942         * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
943         (reported by Jeff Franks.)
944
945 Tue Dec 18 16:07:28 2001  Owen Taylor  <otaylor@redhat.com>
946
947         * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix 
948         prototype for direction_changed. (Reported by
949         Jeff Franks.)
950
951 2001-12-18  Padraig O'Briain <padraig.obriain@sun.com>
952
953         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
954         Fix typo (list->data becomes list->next)
955
956 2001-12-06  Havoc Pennington  <hp@redhat.com>
957
958         Add Unicode control char menu, based on patch from Dov.
959         Bug #63495
960         
961         * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
962         gtk_entry_enter_text
963         (gtk_entry_enter_text): function to do "typing in text"
964         (popup_targets_received): add the Unicode menu items
965
966         * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
967         on Input Methods item, and add the unicode menu items.
968
969         * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
970         used in GtkEntry and GtkTextView - may become public later.     
971
972 2001-12-16  Kjartan Maraas  <kmaraas@gnome.org>
973
974         * gtk/gtkprogressbar.c: Fix a typo.
975         * gtk/gtkpaned.c: Fix a typo.
976         
977 2001-12-15  Darin Adler  <darin@bentspoon.com>
978
979         Fix some warnings.
980
981         * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
982         g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
983         * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
984         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
985         * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
986         * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
987         Restructure loop to get rid of uninitialized variable warning. Also
988         gives a tiny efficiency gain.
989
990 2001-12-15  Murray Cumming  <murrayc@usa.net>
991
992         * Fixed first arg type of GtkScale's "format_value" signal's
993         function pointer.
994
995 2001-12-14            Vitaly Tishkov       tvv@sparc.spb.su
996         docs/reference/gtk/tmpl/gtkcelleditable.sgml
997                 gtkcelleditable -> GtkCellEditable
998         docs/reference/gtk/tmpl/gtktreesortable.sgml
999                 gtktreesortable -> GtkTreeSortable
1000
1001 2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1002
1003         * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
1004         demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
1005         and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
1006         resp.
1007
1008 Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>
1009
1010         * gtk/gtktreeview.c (validate_visible_area): free path
1011         at the end
1012
1013 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
1014
1015         * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
1016
1017 Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>
1018
1019         * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
1020         to find the clicked node in the tree when tree == NULL
1021
1022 2001-12-13  Anders Carlsson  <andersca@gnu.org>
1023
1024         * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare 
1025         event->state with the default mod mask. 
1026
1027 2001-12-12  jacob berkman  <jacob@ximian.com>
1028
1029         * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
1030
1031 Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
1032
1033         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
1034         Reset the existing slave before removing it to give
1035         it a chance to commit and emit "preedit_changed" 
1036         in case there was still a preedit string.
1037
1038 2001-12-12  Matthias Clasen  <matthiasc@poet.de>
1039         
1040         * gtk/gtktextlayout.c: Typo fixes
1041         * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
1042
1043         * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel, 
1044         gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
1045
1046         * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
1047
1048 Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>
1049
1050         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
1051         validate_rows_timer in unrealize.  Reported by Matthew Wilson.
1052
1053 Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
1054
1055         * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
1056         "prepainting" the menu before realizing other than
1057         via gtk_style_set_background() - this was broken when
1058         we added menu scroll support.
1059
1060         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
1061         window in the expose event -- fixes problem with border
1062         flashing during scrolling.
1063
1064 Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
1065
1066         * gtk/gtksettings.c (gtk_settings_get_property): Support
1067         using names/nicks for the gdk_settings values for enum valued
1068         types. (#57678, reported by Anders Carlsson)
1069
1070 Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>
1071
1072         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
1073         with insert_page_menu.  Code duplication is bad.
1074
1075         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
1076         wrong fix yesterday.
1077
1078 Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
1079
1080         * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
1081         modifiers.
1082
1083 2001-12-12  James Henstridge  <james@daa.com.au>
1084
1085         * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
1086         (menu_item)->accel_path first when looking up the accel path.
1087
1088 Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>
1089
1090         * tests/testgtk.c (layout_expose_handler): Only draw
1091         for events on the bin window.
1092
1093 Tue Dec 11 18:55:16 2001  Jonathan Blandford  <jrb@redhat.com>
1094
1095         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
1096         mnemonics work with notebooks.
1097
1098 Tue Dec 11 15:25:06 2001  Jonathan Blandford  <jrb@redhat.com>
1099
1100         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
1101         bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
1102         Makes some flicker while scrolling go away.
1103
1104 2001-12-11  Michael Natterer  <mitch@gimp.org>
1105
1106         * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
1107         adds alpha to the pixbuf; re-load the saved pixbuf and
1108         pixel-by-pixel compare it with the original one.
1109
1110 Tue Dec 11 15:39:08 2001  Soeren Sandmann  <sandmann@daimi.au.dk>
1111
1112         * ChangeLog: Fix wrong ChangeLog entry
1113         * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
1114         right corner
1115
1116 2001-12-10  jacob berkman  <jacob@ximian.com>
1117
1118         * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer): 
1119         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
1120         (gdk_keyboard_grab): do not grab things if the nograb debug flag
1121         is set
1122
1123         * gdk/gdkinternals.h: 
1124         * gdk/gdk.c: add nograbs debug flag to disable grabs of the
1125         keyboard / mouse
1126
1127 Mon Dec 10 19:42:29 2001  Jonathan Blandford  <jrb@redhat.com>
1128
1129         * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
1130         didn't reset the timer.
1131
1132 2001-12-10  Matthias Clasen  <matthiasc@poet.de>
1133
1134         * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
1135
1136 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
1137
1138         * gtk/gtkviewport.c: Add docs.
1139
1140 Mon Dec 10 16:21:38 2001  Jonathan Blandford  <jrb@redhat.com>
1141
1142         * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
1143         RBTree corruption bug--
1144
1145 2001-12-10  Anders Carlsson  <andersca@gnu.org>
1146
1147         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
1148         if edited_column is NULL, also grab focus before removing
1149         the cell_editable.
1150
1151 Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
1152
1153         * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
1154           denominator in the horizontal case just like we do in the vertical
1155           case (why I didn't notice that there were two cases the first time
1156           around is beyond me:).  Also fix indentation in the vertical case.
1157
1158 2001-12-09  Anders Carlsson  <andersca@gnu.org>
1159
1160         * gdk/x11/gdkevents-x11.c: Update xsettings name.
1161
1162         * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
1163         gtk-dnd-drag-threshold GtkSetting.
1164
1165         * gtk/gtksettings.c (gtk_settings_class_init): Add 
1166         setting for dnd drag threshold.
1167
1168 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
1169
1170         * gtk/gtkcontainer.c: Add docs.
1171
1172 2001-12-08  Matthias Clasen  <matthiasc@poet.de>
1173
1174         * gtk/gtkwidget.c: Doc markup fix. 
1175
1176         * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
1177
1178         * gtk/gtktreestore.c: Typo fixes. (#66445)
1179
1180         * gtk/gtkaccelgroup.c: Misc doc markup. (#66425) 
1181
1182         * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
1183         to gtk_clipboard_set_with_owner(). (#66424)
1184  
1185 Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>
1186
1187         * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
1188         "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
1189         Fabrice Bellet <fabrice@gnu.org>, #54127).
1190
1191 Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>
1192
1193         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
1194         of places, so that people with crashy trees can just run their
1195         program with GTK_DEBUG=TREE.
1196
1197 Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>
1198
1199         * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
1200         per jrb's request
1201
1202 2001-12-08  Anders Carlsson  <andersca@gnu.org>
1203
1204         * tests/testgtk.c (layout_expose_handler): Don't return TRUE
1205         since then the default GtkLayout expose handler won't be called.
1206
1207 Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@redhat.com>
1208
1209         * gtk/gtktreeview.c (validate_rows_handler): remove
1210         g_return_if_fail.
1211
1212         * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
1213         Singh <yosh@gimp.org> to fix bug when rendering Tree with an
1214         empty model.
1215
1216 Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>
1217
1218         * gtk/gtktreeview.c (validate_visible_area): get logic right,
1219         #66249
1220
1221         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
1222         removing a node ended up with a corrupt tree.  Really really nasty
1223         bug.
1224         (_gtk_rbtree_debug_spew): new debug helper function
1225         (_fixup_validation): new inline function to clean up code
1226         readability a lot. 
1227
1228 Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
1229
1230         * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
1231         Close comment.
1232
1233 2001-12-07  Matthias Clasen  <matthiasc@poet.de>
1234
1235         * gtk/gtkstyle.h: Typo fixes.
1236
1237         * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
1238
1239         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
1240
1241 Fri Dec  7 16:05:22 2001  Owen Taylor  <otaylor@redhat.com>
1242
1243         * modules/input/gtkimcontextxim.c: Display the XIM
1244         status callbacks with a popup window. (Patch from
1245         HideToshi Tajima, #50628, somewhat modified.)
1246
1247 Fri Dec  7 12:07:15 2001  Tim Janik  <timj@gtk.org>
1248
1249         * gtk/Makefile.am: each source generation rule needs to use its own
1250         temporary file, to avoid clashes for parallel builds. fixed rules
1251         for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
1252
1253 2001-12-07  Havoc Pennington  <hp@pobox.com>
1254
1255         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
1256         "cursors that are actually useful" in gdk_cursor_new() docs
1257
1258 Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
1259
1260         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
1261         in computing the size of the second child.
1262
1263 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
1264
1265         * gtk/gtkrange.c: Make button 1 clicks on the trough
1266         do pages, button 3 steps. (Patch from Hans Breuer
1267         #63735)
1268
1269 2001-12-06  Matthias Clasen  <matthiasc@poet.de>
1270
1271         * gtk/gtklabel.c: Fix docs. (#66383)
1272
1273         * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. 
1274         (#66278, #66280)
1275         
1276         * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
1277         gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
1278
1279         * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
1280         Don't emit a g_warning() about being deprecated. (#66208)       
1281
1282         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
1283
1284         * gtk/gtkcontainer.c: Doc fixes.
1285         
1286         * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
1287
1288         * gtk/gtkstyle.c (gtk_style_attach): Add docs.
1289
1290 2001-12-05  Sven Neumann  <sven@gimp.org>
1291
1292         * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
1293
1294         * gtk/queryimmodules.c: g_dir_read_name() returns const.
1295
1296 Tue Dec  4 21:46:13 2001  HideToshi Tajima  <hidetoshi.tajima@sun.com>
1297
1298         * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
1299         #66225
1300         
1301 2001-12-04  Manish Singh  <yosh@gimp.org>
1302
1303         * gtk/gtkmain.c
1304         * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
1305         a gpointer.
1306
1307         * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
1308         correction to docs.
1309
1310         * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
1311
1312 2001-12-04  Havoc Pennington  <hp@redhat.com>
1313
1314         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
1315         g_assert_not_reached() that was bogus, since we demand-create the
1316         tag info. reported by Chris Phelps
1317
1318         Jump through assorted hoops to fix bug from Chris Phelps where 
1319         removing tags from the table resulted in btree trying to 
1320         access tag->table
1321         
1322         * gtk/gtktextbuffer.c: set up mechanics of adding/removing 
1323         ourselves to the tag table
1324
1325         * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) 
1326         (_gtk_text_tag_table_remove_buffer): private cruft to 
1327         let us notify buffer of disappearing tags
1328
1329         * gtk/gtktexttag.h: remove BTreeNode typedef from this public
1330         header, put it in tagprivate    
1331
1332         * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
1333         tag_removed; it's emitted too late.
1334         (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
1335         this
1336
1337         Padding for ABI-compat expansion
1338         
1339         * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
1340         (struct _GtkTextAppearance): one pad in here too
1341
1342         * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
1343
1344         * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
1345         since action signals etc. seem pretty likely
1346
1347         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
1348
1349         * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
1350
1351         * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
1352
1353 2001-12-04  Matthias Clasen  <matthiasc@poet.de>
1354
1355         * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
1356
1357         * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
1358
1359         * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
1360
1361 Tue Dec  4 18:51:44 2001  Jonathan Blandford  <jrb@redhat.com>
1362
1363         * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
1364         #62084.
1365
1366 Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>
1367
1368         * demos/gtk-demo/main.c: (create_tree): Minor fix.
1369
1370         * docs/tree-column-sizing.txt: Update
1371
1372         * gtk/gtkrbtree.[ch]: Massive work to support validation.
1373
1374         * gtk/gtktreemodel.c: Doc fixes.
1375
1376         * gtk/gtktreeview.c: Incremental reflow added.
1377         * gtk/gtktreeviewcolumn.c: ditto
1378         * gtk/gtktreeviewcolumn.h: ditto
1379
1380 2001-12-04  Havoc Pennington  <hp@redhat.com>
1381         
1382         * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
1383         "invisible" property, #65999
1384
1385 2001-12-04  Matt Wilson  <msw@redhat.com>
1386
1387         * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
1388
1389 Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
1390
1391         * gtk/gtksettings.c (gtk_settings_set_property_value):
1392         Simplify, make more efficient and fix memory leak
1393         when turning quark into a string. (#66103, HideToshi
1394         Tajima)
1395
1396         * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
1397         init() and unref priv->tooltips in destroy rather
1398         than calling gtk_object_destroy() which has no
1399         effect on memory management. (#66104, HideToshi
1400         Tajima)
1401
1402         * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
1403         so we free the when the object is freed. (Fixes memory
1404         leak, #66096, HideToshi Tajima)
1405
1406         * gdk/gdkevents.c (gdk_synthesize_window_state): Use 
1407         a full GdkEvent structure to avoid reads of uninitialized/
1408         invalid memory in gdk_event_put() (#65877, patch
1409         from Hidetoshi Tajima)
1410
1411 Tue Dec  4 11:06:54 2001  Owen Taylor  <otaylor@redhat.com>
1412
1413         * gtk/gtkmenuitem.c: Revert my last mistaken change - 
1414         toggle-size-request doesn't take a requisition.
1415
1416         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
1417         reference to marshaler that no longer exists.
1418
1419 Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>
1420
1421         Patch from Bill Haneman (with many modifications) to make
1422         the focus color work on dark themes and to make the
1423         focus line width configurable. (#61079, #63074)
1424
1425         * gtk/gtkwidget.c: Add style properties, 
1426         ::focus-widget, ::focus-line-width, and ::focus-padding.
1427
1428         * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a 
1429         state argument as well so we can use fg[STATE] to
1430         draw instead of always drawing with black. 
1431         Cange paint_focus() to respect GtkWidget::focus-width
1432         and GtkWidget::focus-line-pattern. Fix continuity
1433         problem where the default 1-1 stipple had a blob
1434         in one corner and a gap in the other. Change the
1435         interpretation of x/y/width/height to be the bounding
1436         box of the focus rect instead of the rectangle
1437         passed to gdk_draw_rectangle.
1438
1439         * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c 
1440         gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c 
1441         gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width 
1442         and ::focus-line-padding.
1443
1444         * gtk/gtkentry.c: Handle :;focus-width property; cleanup
1445         and remove duplicated code; fix drawing of focus rectangle
1446         when interior-focus = FALSE. (#63072, #63073)
1447
1448         * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
1449         gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
1450         Range and TreeViewColumn will need more extensive fixing.
1451
1452         * gtk/gtkcolorsel.c: Honor focus line attributes when
1453         drawing the focus on the color swatches. (#63071)
1454
1455         * gtk/gtkhsv.c: Honor focus line attributes when
1456         drawing the focus for the ring and triangle.
1457
1458         * docs/widget_geometry.txt: Start at documenting how 
1459         various widgets are drawn.
1460
1461         * gtk/gtkbutton.c (_gtk_button_paint): Export 
1462         _gtk_button_paint() librarywide, so we don't have 
1463         duplicate a bunch of code in gtktogglebutton.c.
1464
1465         * gtk/gtktogglebutton.c: Use _gtk_button_paint().
1466
1467 Mon Dec  3 21:04:13 2001  Jonathan Blandford  <jrb@redhat.com>
1468
1469         * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
1470         NONE:POINTER.
1471
1472 2001-12-03  Alex Larsson  <alexl@redhat.com>
1473
1474         * gtk/gtkaccellabel.c:
1475         * gtk/gtkarrow.c:
1476         * gtk/gtkcolorsel.c:
1477         * gtk/gtkcontainer.c:
1478         * gtk/gtklabel.c:
1479         * gtk/gtktextview.c:
1480         * gtk/gtktogglebutton.c:
1481         * gtk/gtktreeview.c:
1482         * gtk/gtkwindow.c:
1483         Return FALSE from expose handlers.
1484
1485 Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>
1486
1487         * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
1488         we use pointers, we should free the previous pointer first (if
1489         it exists), before we set a new pointer. (#64726)
1490
1491         * gtk/gtktreeprivate.h: get rid of cursor_drag
1492
1493         * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check     
1494         for cursor_drag
1495         (gtk_tree_view_bin_expose): don't directly return in the while
1496         loop
1497         (gtk_tree_view_class_init): indentend expanders by default
1498         (gtk_tree_view_header_focus): only give the button focus
1499         if it's clickable, visible and the column is reorderable
1500         (#65539)
1501
1502         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
1503         create and free cursor
1504
1505 Mon Dec  3 10:23:07 2001  Owen Taylor  <otaylor@redhat.com>
1506
1507         * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
1508         some bugs with size requisition. (From Bill Haneman)
1509
1510         * gtk/gtkcalendar.c: Draw headers and selection in 
1511         base/text[SELECTED] instead of fg/bg[SELECTED].
1512
1513         * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
1514         code and formatting.
1515
1516 2001-12-03  Havoc Pennington  <hp@pobox.com>
1517
1518         * gtk/gtktextview.c (set_window_height): 
1519         (set_window_width): Hmm, setter functions normally assign the new
1520         value to the object field. Reported by Chris Phelps.
1521
1522 2001-11-30  jacob berkman  <jacob@ximian.com>
1523
1524         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
1525         signal id to 0 after we disconnect from it
1526
1527 2001-11-30  Matthias Clasen  <matthiasc@poet.de>
1528
1529         * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
1530         gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
1531         gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
1532         gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.
1533
1534         * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not 
1535         GTK_DISABLE_DEPRECATED.
1536
1537         * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
1538         gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
1539
1540 Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
1541
1542         * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
1543         move/resize code, removing various bad, non-functional
1544         hacks. (Fixes #65048, reported by Damon Chaplin.)
1545
1546 Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
1547
1548         * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix 
1549         bad match error when target drawable is not the 
1550         same depth as the root window. (#65841)
1551
1552         * HACKING: Update.
1553
1554 2001-11-29  Matthias Clasen  <matthiasc@poet.de>
1555
1556         * gdk/gdkwindow.c: Typo fix.
1557
1558 Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
1559
1560         * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
1561         empty menu items to behave like insensitive items (#59456)
1562
1563         * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
1564         next item if the first item in the menu is a tear off item
1565         (#59456-2, suggestion by Matthias Clasen)
1566
1567         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
1568         (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
1569         (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
1570         (gtk_real_menu_shell_activate_current): add check, so empty
1571         menu items behave like insensitive items (#59456)
1572         
1573         * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
1574         the checks more readable ...
1575         
1576         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
1577         (gtk_menu_shell_button_release): causes the menu to dropdown if the
1578         caption is clicked again (#64977)
1579
1580 2001-11-29  Havoc Pennington  <hp@redhat.com>
1581
1582         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
1583         assertion here that we were at the end iterator was not correct;
1584         change code to move us to the end iterator. bug #65731
1585
1586 Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
1587
1588         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
1589         improper use of g_locale_to_utf8() to convert from
1590         latin-1, and do it the easy way by building the string
1591         correctly in the first place.
1592
1593 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
1594
1595         * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
1596         Convert atoms to and from atoms for properties of type XA_ATOM.
1597         (#65555, patch from Hidetoshi Tajima)
1598
1599 Wed Nov 28 18:37:04 2001  Owen Taylor  <otaylor@redhat.com>
1600
1601         * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter 
1602         to avoid problems with Objective C.
1603
1604 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
1605         
1606         * gtk/gtkaccelmap.c: Typo fixes. (#65607)
1607
1608         * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
1609         Fix docs. (#65505)
1610
1611         * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
1612
1613 Wed Nov 28 18:19:12 2001  Owen Taylor  <otaylor@redhat.com>
1614
1615         * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
1616         accounting of menu->tearoff_scrollbar width to here
1617         and make sure we have the correct requisition.
1618
1619         * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
1620         by using gtk_window_move().
1621
1622         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
1623         the requisition to be updated by calling
1624         gtk_widget_size_request() (#65440)
1625
1626         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate): 
1627         queue resize before calling gtk_menu_set_tearoff_state().
1628
1629 Wed Nov 28 22:20:44 2001  Kristian Rietveld  <kristian@planet.nl>
1630
1631         * demos/gtk-demo/editable_cells.c: fix typo
1632
1633         * demos/gtk-demo/list_store.c (add_columns): remove call to
1634         gtk_tree_view_column_set_clickable which didn't make sense
1635
1636 2001-11-28  Havoc Pennington  <hp@redhat.com>
1637
1638         * gtk/gtktextview.c (gtk_text_view_paint): put the warning
1639         explaining the validation error in front of the G_BREAKPOINT
1640
1641         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
1642         process updates with include_children = FALSE instead of TRUE, so
1643         we redraw the range only, not the whole darn window.  Making
1644         GtkRange a NO_WINDOW widget had weirdly caused the text widget
1645         Trace/breakpoint trap bug to become much easier to trigger.
1646
1647 Wed Nov 28 14:12:03 2001  Owen Taylor  <otaylor@redhat.com>
1648
1649         * gdk/Makefile.am (gdk_public_h_sources): Remove reference
1650         to gdkcursors.h.
1651
1652 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
1653
1654         * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
1655
1656         * gdk/gdkcursor.h: Directly include the contents
1657         of gdkcursors.h in the GdkCursorType enum.
1658
1659         * gdk/gdkcursors.h: Deleted.
1660
1661         * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add 
1662         header boilerplate.
1663
1664         * gdk/Makefile.am: Remove the X-derived-headers rule.
1665
1666 Tue Nov 27 20:17:55 2001  Owen Taylor  <otaylor@redhat.com>
1667
1668         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
1669         Notify on the ::active property _here_, not in
1670         gtk_check_menu_item_set_active.
1671
1672 Mon Nov 26 19:11:18 2001  Jonathan Blandford  <jrb@redhat.com>
1673
1674         * gtk/gtkcellrendererpixbuf.c
1675         (gtk_cell_renderer_pixbuf_class_init): add 2 properties
1676         (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
1677
1678 Sun Nov 25 21:19:02 2001  Owen Taylor  <otaylor@redhat.com>
1679
1680         * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
1681         comment about what is going on in this file.
1682
1683         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
1684         x/y problem.
1685
1686 Sun Nov 25 18:59:19 2001  Owen Taylor  <otaylor@redhat.com>
1687
1688         * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size): 
1689         Calculate size based on the _child_ of the menu item,
1690         not the menuitem. (#65005, Damon Chaplin)
1691
1692         * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
1693         some extra vertical padding to the label widget ... restores
1694         GTK+-1.2 spacing. (#65085, Damon Chaplin.)
1695
1696 2001-11-26  Tor Lillqvist  <tml@iki.fi>
1697
1698         * demos/pixbuf-demo.c
1699         * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
1700
1701         * demos/gtk-demo/main.c (read_line): No flockfile() or
1702         getc_unlocked() on Win32.
1703
1704 2001-11-25  Tor Lillqvist  <tml@iki.fi>
1705
1706         * configure.in
1707         * acconfig.h: As we now use GDir, no need to check for dirent.h.
1708
1709 Sun Nov 25 23:18:39 2001  Kristian Rietveld  <kristian@planet.nl>
1710
1711         * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
1712         when finished (#65266)
1713
1714 Sun Nov 25 23:16:29 2001  Kristian Rietveld  <kristian@planet.nl>
1715
1716         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
1717         data after we set the property. (#65264)
1718
1719 Sun Nov 25 23:14:06 2001  Kristian Rietveld  <kristian@planet.nl>
1720
1721         * gtk/gtkbutton.c: add destroy method so label_text gets freed
1722         if it has been allocated (#65268)
1723
1724 Sat Nov 24 13:39:51 2001  Manish Singh  <yosh@gimp.org>
1725
1726         * gdk/linux-fb/gdkdrawable-fb2.c
1727         * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
1728
1729         * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
1730
1731         * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
1732         set_family
1733         
1734         * gdk/linux-fb/gdkfbswitch.c: minor cleanups
1735
1736 Sat Nov 24 22:05:27 2001  Kristian Rietveld  <kristian@planet.nl>
1737
1738         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
1739         deactivate menu when menu_item isn't sensitive (#61389)
1740
1741 Sat Nov 24 15:35:26 2001  Kristian Rietveld  <kristian@planet.nl>
1742
1743         * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
1744         we return (in case of a failure here)
1745
1746 Fri Nov 23 19:22:50 2001  Owen Taylor  <otaylor@redhat.com>
1747
1748         * gtk/gtknotebook.c: Handle events in windows other
1749         than widget->event_window properly. (#65079, reported
1750         by Damon Chaplin)
1751
1752         * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
1753
1754 Fri Nov 23 18:57:46 2001  Owen Taylor  <otaylor@redhat.com>
1755
1756         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
1757         the image at the top. (#65020, request from Seth Nickell)
1758
1759 Fri Nov 23 18:49:53 2001  Owen Taylor  <otaylor@redhat.com>
1760
1761         * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
1762         arithmetic that was resulting in rows being drawn too low.
1763         (#65001, reported by Damon Chaplin)
1764
1765 Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
1766
1767         * gtk/gtkrange.c (gtk_range_button_press): Offset 
1768         invalidated range correctly.
1769
1770         * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling 
1771         of title window. (#65001, reported by Damon Chaplin)
1772
1773         * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
1774         horrible hack with use of ::event_after.
1775
1776 Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
1777
1778         * Version 1.3.11
1779
1780         * configure.in (ATK_REQUIRED_VERSION): Require
1781         GLib-1.3.11, Pango-0.22, ATK-0.7.
1782
1783         * tests/prop-editor.c (property_widget): Restore
1784         to working as well as it did before.
1785
1786         * gtk/gtklistitem.h: Mark deprecated since it is
1787         an integral part of GtkList.
1788
1789         * demos/gtk-demo/demo-common.h: New header file,
1790         for a common functions not important to the meat
1791         of the demos.
1792         
1793         * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
1794         function to search for a file used by the demo.
1795
1796         * demos/*.c: Use demo_find_file.
1797
1798 2001-11-23  Matthias Clasen  <matthiasc@poet.de>
1799
1800         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
1801         gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo 
1802         fixes already mentioned in ChangeLog entry on 2001-11-14.
1803
1804         * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
1805
1806 2001-11-23  Hans Breuer  <hans@breuer.org>
1807
1808         * gdk/win32/gdkfont-win32.c (gdk_font_from_description) : 
1809         reflect Pango API change
1810
1811         * gtk/gtk.def : updated externals
1812
1813         * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use 
1814         g_return_val_if_fail() to avoid 'function must return a value'
1815
1816         * gtk/gtkrc.c : added spaces to fix small coding style issues
1817         * gtk/gtkwidget.c : ... and linebreaks. Also a static for
1818         'static correctness'
1819
1820         * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
1821         because they only can be build on win32 after applying my patch
1822
1823 Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
1824
1825         * gtk/gtkbutton.c (gtk_button_map): raise event window afte
1826         children, in order for the input pnly window to stay *above*
1827         children.
1828
1829 Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
1830
1831         * tests/testtreeview.c: make hackery worse ;) by checking fundamental
1832         type walks againts G_TYPE_FUNDAMENTAL_MAX.
1833         
1834         * tests/prop-editor.c: disable type hackery.
1835
1836 Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
1837
1838         * gdk/gdkimage.c (gdk_image_get): Fix problem with
1839         lost parameter.
1840
1841 Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
1842
1843         * gtk/gtkcellrenderer.h gtk/gtktreemodel.h 
1844         gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
1845         trailing commas in enum declarations.
1846
1847 Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
1848
1849         * configure.in (GTK_MICRO_VERSION): Version 1.3.11, 
1850         interface, binary age 0.
1851
1852         * NEWS: Updates
1853
1854         * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
1855         fixes in docs.
1856
1857         * gtk/gtkmain.h: Remove unused and misnamespaced
1858         get_gtk_win32_directory() prototype.
1859
1860         * gdk/gdkimage.c (gdk_image_get): Fix parameter names
1861         to match header.
1862
1863         * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
1864         gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
1865         to match docs.
1866
1867         * gdk/gdkevents.c (gdk_event_get_coords)
1868           gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
1869           gtk/gtkdnd.c (gtk_drag_set_icon_stock):
1870         Fix parameter names in docs.
1871         
1872         * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
1873         (#64961, Akira Tagoh)
1874
1875 Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
1876
1877         * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
1878
1879         * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
1880
1881         * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
1882
1883         * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
1884         back to gtk_accel_groups_from_object(), change @acceleratable
1885         parameter to gtk_accel_groups_activate() accordingly.
1886
1887         * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
1888         left-over comment about quark return.
1889
1890         * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
1891
1892         * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
1893         (Patch from Matt Wilson)
1894
1895         * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
1896         object is finalized.
1897
1898 Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
1899
1900         * applied patch from owen to get rid of accel map notifiers.
1901         changed things to fix reentrancy and API as discussed on gtk-devel.
1902
1903         * gtk/gtkaccelgroup.[hc]:
1904         (gtk_accel_group_finalize): unregister this accel group from all
1905         accel map paths.
1906         (accel_closure_invalidate): handle invalidation of closures by
1907         disconnecting their accelerators.
1908         (quick_accel_add): move closure connection and changed notification
1909         into this function to reduce code duplication. don't emit change
1910         notification on closurers without accelerators.
1911         (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
1912         for a GtkAccelGroupEntry.
1913         (gtk_accel_group_connect): get rid of the accel_path_quark argument.
1914         (gtk_accel_group_connect_by_path): new function to add accelerators
1915         with an accel path.
1916         (gtk_accel_group_disconnect_closure): new function, disconnect a
1917         closure from of an accel group.
1918         (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
1919         accel_mods pair and remove them.
1920         (_gtk_accel_group_reconnect): new function that basically does
1921         gtk_accel_group_disconnect_closure() and
1922         gtk_accel_group_connect_by_path() once an accel path changed.
1923         (gtk_accel_groups_disconnect_closure): remove this, there's
1924         gtk_accel_group_disconnect_closure().
1925         
1926         * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
1927         nuke notifiers.
1928         (_gtk_accel_path_is_valid): make this non-static for
1929         gtkwidget.c and gtkaccelgroup.c assertions.
1930         (gtk_accel_map_add_notifer): removed this function.
1931         (gtk_accel_map_remove_notifer): same.
1932         (_gtk_accel_map_add_group):
1933         (_gtk_accel_map_remove_group): (un-)register accel groups, with
1934         accel paths for correct propagation.
1935         (gtk_accel_map_add_entry): return void.
1936         (gtk_accel_map_lookup): return gboolean instead of GQuark.
1937         
1938         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
1939         set accel_path on widgets.
1940         
1941         * gtk/gtkwidget.[hc]:
1942         (accel_path_changed): got rid of this, changes are handled by
1943         accel maps internally now.
1944         (_gtk_widget_set_accel_path): get things to work without notifiers.
1945         (gtk_widget_list_accel_closures): list accel closures of a widget.
1946         
1947         * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
1948
1949 2001-11-20  Matthias Clasen  <matthiasc@poet.de>
1950
1951         * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
1952
1953 Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
1954
1955         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
1956         replace gboolean free_last in the function parameters with
1957         gint depth. Changes to reflect new situation.
1958
1959         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
1960         replace gboolean free_last, with gint depth, add gint current_depth.
1961         Changes to reflect new situation.
1962
1963         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
1964         to reflect new situation
1965
1966         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
1967
1968 Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
1969
1970         * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
1971         where notebook gap was double shifted by allocation.x/y
1972
1973         * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
1974         to unmap children.
1975
1976 Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
1977
1978         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
1979         allocation to be relative to paned->allocation, now
1980         that this is a NO_WINDOW widget.
1981         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
1982
1983         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
1984         needs to be a boxed property.
1985
1986 Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
1987
1988         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
1989         Use the widget's state when drawing the indicator, as
1990         in GtkCheckButton. This gives us color changes for
1991         un-prelighted checkbuttons. (#63308, Matt Wilson)
1992
1993 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
1994
1995         (Fixes related to #64428, Michael Meeks)
1996
1997         * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
1998         widget, so it gets mapped again properly when we
1999         add to a parent.
2000
2001         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
2002         plug->socket_window. 
2003
2004         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
2005         socket_window to NULL, not FALSE.
2006
2007         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
2008         socket->same_app to TRUE. (#64612)
2009
2010 Mon Nov 19 15:50:41 2001  Owen Taylor  <otaylor@redhat.com>
2011
2012         * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add 
2013         gtk_fixed_set/get_has_window() to remove criticism
2014         about GTK_WIDGET_SET_FLAGS() hacks.
2015
2016 2001-11-19  Michael Natterer  <mitch@gimp.org>
2017
2018         * gtk/gtknotebook.c: show notebook->event_window with
2019         gdk_window_show_unraised(), so it doesn't catch the events which
2020         should go to the tab widgets first.
2021
2022 Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
2023
2024         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
2025         "resizable" property, to get rid of the
2026         GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
2027         (gtk_tree_view_column_set_resizable): New function to set resizable.
2028         (gtk_tree_view_column_set_resizable): getter.
2029
2030         * tests/testtreecolumns.c (add_clicked): modify for above change.
2031
2032         * Makefile.am (install-data-hook): remove old .pc files before
2033         installing the new one.  We used to symlink this, and it will
2034         break old installs.
2035
2036 2001-11-19  Havoc Pennington  <hp@pobox.com>
2037
2038         * tests/testtext.c (fill_example_buffer): put in a test for
2039         negative indentation values
2040
2041 Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
2042
2043         * gtk/gtklabel.c (gtk_label_init): Change default for
2044         justify to GTK_JUSTIFY_LEFT. Assuming that multiline
2045         labels are most often wrapped labels, this gives better
2046         compatibility with GTK+-1.2, where justification was
2047         ignored for wrapped labesl and is a more sensible
2048         default in any case. (#64489)
2049
2050         * gtk/gtklabel.c (gtk_label_class_init): Fix default
2051         for wrap property to FALSE.
2052
2053 2001-11-19  jacob berkman  <jacob@ximian.com>
2054
2055         * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
2056
2057 Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
2058
2059         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use 
2060         RevertToParent, not RevertToNone. (#64613, 
2061         Matthias Clasen)
2062
2063 Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
2064
2065         * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
2066         and label_yalign need to be float properties to
2067         correspond to GTK+-1.2, to gtk_frame_set_label_align,
2068         and to the types of the xalign and yalign properties of GtkMisc.
2069         (#63484, Vitaly Tishkov)
2070
2071 Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
2072
2073         * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
2074         of plug_added vfunc. (#64408, Jeff Franks)
2075
2076 Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
2077
2078         * configure.in (deps): Undef HAVE_STDLIB_H before
2079         checking for jpeg, because jconfig.h has this
2080         in it too (%#$@!). Fix from Matthias Clasen, #64500.
2081
2082 Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
2083
2084         * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a 
2085         memory leak when retrieving atom names. (Michael Meeks,
2086         #64508)
2087
2088 2001-11-18  Alex Larsson  <alexl@redhat.com>
2089
2090         * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
2091         Update to new Pango API.
2092         
2093 Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
2094
2095         * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
2096         GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
2097         GTK_OBJECT_DESTROYED() check macro.
2098
2099         * gtk/gtkbindings.c (gtk_bindings_activate): Remove
2100         instances of GTK_OBJECT_DESTROYED() that weren't
2101         needed any more.
2102
2103         * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
2104         for a connection to ::destroy.
2105
2106 Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
2107
2108         * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
2109         have been since the beginning, but as special hack,
2110         allow clearing the NO_WINDOW flag to get a window widget.
2111
2112 Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
2113
2114         * gtk/gtktreestore.c: return TRUE when value changed, so
2115         row_changed is being emitted
2116
2117 2001-11-18  Hans Breuer  <hans@breuer.org>
2118
2119         * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
2120         no label without op, even if it's a no-op.
2121
2122         * gtk/gtk.def :
2123         * gtk/makefile.msc.in : reflect marshaler split, some clean-up  
2124
2125         * config.h.win32.in : remove definition of HAVE_DIRENT_H
2126         * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
2127         required anymore, replace it.
2128         * gtk/queryimmodules.c : DIR -> GDir replacement, also
2129         getcwd() -> g_get_current_dir()
2130
2131         * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
2132         Even 'noisy laugh' scolling appears to work, though I still can't
2133         claim to have fully understood what it is supposed to do ...
2134
2135 Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
2136
2137         * gtk/gtkenums.h: Include glib-object.h instead of
2138         gobject/gsignal.h
2139
2140         * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
2141           x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
2142         argument to the window_at_pointer() field of
2143         GdkPointerHooks. (Patch from Erwann Chenede)
2144
2145         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
2146         to 6 pointers.
2147
2148 2001-11-17  Matt Wilson  <msw@redhat.com>
2149
2150         * gtk/gtkenums.h: must include glib-object.h only
2151
2152 Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
2153
2154         * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
2155         key bindings in order of visibility - mnemonics, then 
2156         accelerators, then send key to the focus widget, then
2157         bindings on the GtkWindow.
2158
2159         * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c: 
2160         Removed the xoffset, yoffset fields of GtkLayout which were
2161         identically zero for compat with 1.2, but were no longer 
2162         compatible with all uses of these fields in 1.2.
2163
2164         * gtk/gtkwindow.c (gtk_window_set_default): Remove 
2165         unused variable.
2166
2167 Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
2168
2169         * tests/testtreeview.c (gtk_tree_model_types_get_type): 
2170         We no longer need to create the signals here ... they
2171         come from the interface.
2172
2173         * gtk/maketypes.awk: Use GType, not GtkType in output.
2174
2175         * gtk/gtktypeutils.h: Mark virtually all of this
2176         file deprecated.
2177
2178         * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
2179         the only use of this function is the GtkArg using
2180         GtkCallbackMarshal, since destroy notification is
2181         silly here.
2182
2183 Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
2184
2185         * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
2186         gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
2187         only for compatibility with GTK+-1.2; and deprecate it; 
2188         put all marshalers we actually use into gtkmarshalers.list 
2189         and use the _gtk_marshal_ prefix for these marshalers.
2190
2191 2001-11-17  Murray Cumming  <murrayc@usa.net>
2192
2193         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
2194         The first parameters of the signals are now registered as
2195         GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
2196         
2197 2001-11-17  Tor Lillqvist  <tml@iki.fi>
2198
2199         * gtk-zip.sh.in: Build separate runtime and developer
2200         packages.
2201
2202         * gtk/gtk.def: Reflect recent accelerator-related changes.
2203
2204 Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
2205
2206         * gtk/gtkwindow.c (gtk_window_set_default): Move 
2207         notification of "has_default" to here, so it
2208         is safe to call gtk_window_set_default() instead
2209         of gtk_widget_grab_default().
2210
2211         * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
2212         gtk_widget_grab_focus(), which then calls 
2213         _gtk_widget_internal_set_focus(). This makes 
2214         gtk_window_set_focus() a safe way of both setting
2215         and unsetting the focus widget.
2216
2217         * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
2218         gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
2219         to find the toplevel.
2220
2221         * gtk/gtkwindow.h: Move gtk_window_set_focus/default
2222         from the "internal functions" section.
2223
2224 2001-11-16  jacob berkman  <jacob@ximian.com>
2225
2226         * tests/testgtk.c (create_radio_buttons): add some no-indicator
2227         radio buttons
2228
2229         * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
2230         initially active, also initially be depressed
2231         (gtk_radio_button_clicked): also update our depressed state
2232
2233 Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
2234
2235         * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
2236         key press events not just to focus/window but also to
2237         intermediate widgets.
2238
2239         * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
2240         to switch pages. (Needs some work on handling focus
2241         when switching pages.)
2242
2243 Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
2244
2245         * gtk/gtknotebook.c: Fix child allocations to be relative to 
2246         widget position and some drawing bugs.
2247
2248         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
2249         with reading uninitialized variable.
2250
2251 Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
2252
2253         * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
2254         gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
2255         NO_WINDOW widgets.
2256
2257         * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
2258         cleanup.
2259
2260         * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
2261         we are drawing in a window when drawing the paned handle.
2262
2263 2001-11-16  Sven Neumann  <sven@gimp.org>
2264
2265         * demos/gtk-demo/appwindow.c
2266         * demos/gtk-demo/menus.c: reduce compiler warnings
2267
2268 Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
2269
2270         * demos/gtk-demo/main.c (button_press_event_cb): Remove 
2271         unused callback to make things compile with 
2272         gtk_tree_view_path_at_pos_change().
2273
2274 Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
2275
2276         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
2277
2278 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
2279
2280         * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
2281  
2282 Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
2283
2284         * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
2285         to get a GdkWindow to compare event->window to.
2286
2287         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
2288         the signal for lateral motion too, #64361
2289
2290         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
2291         arg as it is useless, #64137
2292
2293 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
2294
2295         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
2296
2297 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
2298  
2299         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
2300         gdk_window_invalidate_maybe_recurse() for recursion.
2301         (Soeren Sandmann)
2302
2303         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
2304  
2305         * gtk/gtkcontainer.c (gtk_container_expose): Call
2306         gtk_container_forall() not _foreach() to propagate,
2307         since we need to propagate exposes to internal children
2308         as well.
2309
2310         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
2311         Remove the restriction of only being able to call these
2312         on window widgets, since we have lots of NO_WINDOW widgets
2313         with windows now; for add events, recurse over the children
2314         of widget->window to find one owned by the widget.
2315
2316         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
2317         window to catch events.
2318
2319         * gtk/gtktogglebutton.[ch]: Remove the code for switching
2320         between NO_WINDOW and WINDOW widgets based on the mode.
2321
2322         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
2323         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
2324
2325         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
2326
2327         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
2328         change for range.
2329
2330         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
2331  
2332         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
2333
2334 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
2335
2336         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
2337         "message_type" and "buttons" CONSTRUCT properties. (#64069)
2338
2339         * tests/testsocket.c: Expand tests to add a "local passive
2340         child" (Test case for #64428)
2341
2342 2001-11-14  jacob berkman  <jacob@ximian.com>
2343
2344         * gtk/gtkgamma.c (button_clicked_callback): create the label with
2345         a mnemonic
2346
2347 2001-11-15  Sven Neumann  <sven@gimp.org>
2348
2349         * tests/testgtk.c: make it compile without warnings.
2350
2351 2001-11-14  Alex Larsson  <alexl@redhat.com>
2352
2353         * gtk/gtklabel.c:
2354         Don't recalculate the layout on each gkt_label_ensure_layout () for
2355         wrapped labels.
2356
2357 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
2358
2359         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
2360         the currently selected column when we get the column, #64380
2361
2362         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
2363         to cancel CellRendererText editting, #63613
2364
2365         * gtk/gtkcellrenderertext.c: ditto
2366
2367         * gtk/gtkcellrenderertext.h: formatting changes
2368
2369 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
2370
2371         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
2372
2373         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
2374
2375         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
2376
2377         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
2378
2379         * gtk/gtklabel.c: Documentation fixes (#64452)
2380
2381 2001-11-14  Daniel Egger  <degger@fhm.edu>
2382
2383         * gdk-pixbuf/io-xpm.c: 
2384         (xpm_skip_whitespaces): Remove unused static function.
2385         (xpm_skip_string): Dito.        
2386         (xpm_extract_color): Declare const variable const to avoid warnings. 
2387
2388         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
2389         
2390         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
2391         
2392         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
2393         a long.
2394
2395 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
2396
2397         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
2398         out accidental commit of debugging timing code.
2399
2400 2001-11-14  Havoc Pennington  <hp@redhat.com>
2401
2402         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
2403         it doesn't move to a new line each time you press it
2404
2405         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
2406         return value, #62987
2407
2408 2001-11-14  Havoc Pennington  <hp@redhat.com>
2409
2410         * tests/testtextbuffer.c (main): bulk of the tests were commented
2411         out, oops.
2412
2413         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
2414         function work, should resolve #63426
2415         (gtk_text_iter_ends_line): return TRUE for the end iterator
2416
2417         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
2418         a couple things that might get cached in here.
2419
2420 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
2421
2422         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
2423         "model" construct property for language bindings.
2424
2425         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
2426         function to let you set the column types of a GtkTreeStore for
2427         language bindings.
2428
2429         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
2430
2431 2001-11-13  Havoc Pennington  <hp@redhat.com>
2432
2433         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
2434         including reference to bugzilla bug about how we should have 
2435         a better way of positioning children
2436
2437         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
2438
2439         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
2440         size to side rects if they don't exist, #63438
2441
2442 2001-11-13  Havoc Pennington  <hp@redhat.com>
2443
2444         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
2445         properly replace selection with Return or Tab
2446
2447         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
2448         that didn't locate the end of the line correctly, should fix #63800
2449
2450 2001-11-13  Havoc Pennington  <hp@redhat.com>
2451
2452         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
2453         to requisition, request non-anchored children
2454         (gtk_text_view_size_allocate): handle border width, allocate
2455         non-anchored children
2456         (text_view_child_new_window): set the child as object data
2457         (gtk_text_view_move_child): allow children at negative
2458         coordinates, no reason why not
2459         (gtk_text_view_forall): make it copy the list of children before
2460         walking it, to avoid reentrancy issues  
2461         (gtk_text_view_move_child): short-circuit if position is unchanged
2462         (changed_handler): only queue_resize if requisition has changed
2463         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
2464         a better job of invalidation ourselves
2465
2466         * tests/testtext.c: add tests for the fixed-position children
2467
2468 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
2469
2470         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
2471         with gdk threads macro.
2472
2473 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
2474
2475         * gtk/maketypes.awk: fix type utils generation on unix.
2476
2477         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
2478         registry.
2479
2480         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
2481         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
2482         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
2483         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
2484         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
2485         introduced ::accel_changed signal for change notification, and
2486         gtk_accel_group_connect/disconnect to connect closures to accel groups.
2487         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
2488         functions.
2489         deprecated gtk_accel_group_ref/unref.
2490
2491         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
2492         to accel group changed notification and basically operate on closures.
2493         removed gtk_accel_label_get_accel_object and
2494         gtk_accel_label_set_accel_object.
2495         introduced gtk_accel_label_set_accel_closure, and for convenience,
2496         gtk_accel_label_set_accel_widget.
2497
2498         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
2499         which mostly moved into gtkaccelmap.[hc].
2500         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
2501         and gtk_item_factory_print_func.
2502
2503         * gtk/gtkmain.c: call _gtk_accel_map_init().
2504
2505         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
2506         that associates an accelerator path with menu items, through which
2507         persistent accelerator settings on menu items are enabled.
2508
2509         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
2510         paths of menu item can be default constructed to allow installation
2511         of accelerators on menu items that don't come with an accelerator
2512         binding by default.
2513
2514         * gtk/gtksettings.c: fix STRING type rc settings by special casing
2515         them appropriately in the parser.
2516
2517         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
2518         gtk_signal_newv().
2519
2520         * gtk/gtkwidget.[hc]: accelerator API revamp.
2521         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
2522         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
2523         gtk_widget_(un)lock_accelerators.
2524         accelerators maintained through gtk_widget_add/remove_accelerator()
2525         are not runtime changable now, the correct sequence to setup a
2526         widget for runtime changable accelerators is now:
2527           gtk_accel_map_add_entry(accel_path, key, mods);
2528           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
2529
2530         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
2531         group changes (as well as mnemonic changes) through the new signal
2532         ::accels_changed.
2533
2534 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
2535
2536         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
2537         GString->string conversions.
2538
2539 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
2540
2541         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
2542         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
2543
2544 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
2545
2546         * gtk/gtktreeview.c: Documentation fixes. (#64377)
2547         
2548         * gtk/gtktreestore.c: Documentation fixes. (#64376)
2549
2550 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
2551
2552         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
2553         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
2554         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
2555         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
2556
2557 2001-11-10  Hans Breuer  <hans@breuer.org>
2558
2559         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
2560         we know what we are talking about when asked for MINMAXINFO.
2561         Also some cleaning for !HAVE_DIMM_H etc.
2562
2563 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
2564
2565         * gtk/gtktreeviewcolumn.c: Fix docs for 
2566         gtk_tree_view_column_set_sort_order. (#62647)
2567         
2568         * gtk/gtkcontainer.c: Fix docs for 
2569         gtk_container_set_border_width. (#64139)
2570
2571         * gtk/gtkcolorsel.c: Documentation fixes.
2572
2573 2001-11-10  Hans Breuer  <hans@breuer.org>
2574
2575         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
2576         don't have strcasecmp()
2577
2578         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
2579         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
2580         code duplication wrap it in its own function and use it in 
2581         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
2582
2583         * gdk/win32/gdkdrawable-win32.c : implement the finalize
2584         method like the X11 version does, allow to set_colormap NULL
2585         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
2586         set_colormap, also some adaption to X11 version :
2587         (gdk_window_hide) call _gdk_window_clear_update_area
2588         (gdk_window_reparent) call _gdk_window_init_position
2589
2590         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
2591         call gdk_window_resize() after all hints are set, because the
2592         window resizing process (WM_GETMINMAXINFO) takes all of them into 
2593         account
2594
2595         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
2596
2597         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
2598         sizeof (GdkVisualPrivate)
2599
2600         * gdk/gdk.def gtk/gtk.def : upated externals
2601
2602         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
2603           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
2604         from now on use make.msc from $(TOP)/glib/build/win32
2605
2606         * gtk/stock-icons/makefile.msc : add stock_missing_image
2607
2608 2001-11-08  Tor Lillqvist  <tml@iki.fi>
2609
2610         * README.win32: Add headers. Add section about ActiveIMM.
2611
2612         * configure.in: Add --with-ie55 flag to specify the location of
2613         the "IE55 libs and headers" package downloadable from Microsoft,
2614         which contains, among other things, the Active IMM header dimm.h
2615         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
2616         Require GLib 1.3.10.
2617         
2618         * config.h.win32.in: New version, produced by merging two
2619         configure-generated ones (for gcc and MSVC). Hopefully #defines
2620         the same flags that the previous, hand-written one, did.
2621
2622         * gdk/Makefile.am
2623         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
2624
2625         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
2626         stuff. Remove unused GdkIOClosure.
2627
2628         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
2629         available).
2630
2631         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
2632         for uuid.lib. (Does it really have to be this hard to use an
2633         existing library with libtool? Probably I am missing something.)
2634
2635 2001-11-08  Darin Adler  <darin@bentspoon.com>
2636
2637         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
2638         typo where it says LEFT instead of CENTER.
2639
2640 2001-11-07  Darin Adler  <darin@bentspoon.com>
2641
2642         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
2643         (gtk_dialog_set_default_response): Add g_return_if_fail.
2644
2645 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
2646
2647         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
2648         Add row_draggable() vfunc, and wrapper function.
2649
2650         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
2651         row_drop_possible take a GtkSelectionData, rather than
2652         model/row pair.
2653
2654         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
2655         new DND interfaces.
2656
2657         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
2658         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
2659         and rename them to enable_model_drag_source/dest.
2660
2661         * gtk/treeviewcolumn.c: Add DND of columns between rows.
2662         Still can't drop _to_ the left tree, but other places
2663         work.
2664
2665         * gtk/gtktreeview.c (unset_reorderable): Unset the
2666         reorderable property if unset/enable_model_drag_source/dest
2667         are called manually.
2668
2669         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
2670         Correct for change in depth count handling.
2671
2672         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
2673         Pass in a expose area to gtk_tree_view_column_cell_render()
2674
2675 2001-11-06  Havoc Pennington  <hp@redhat.com>
2676
2677         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
2678
2679 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
2680
2681         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
2682
2683 2001-11-05  Havoc Pennington  <hp@redhat.com>
2684
2685         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
2686         widgets in here
2687         (gtk_text_view_realize): set parent window of child widgets
2688         (gtk_text_view_size_request): use child req to decide whether
2689         to invalidate layout, not widget->requisition
2690
2691         * gtk/gtktextdisplay.c (render_layout_line): set
2692         shaped_width_pixels for NULL shape objects, so that we properly
2693         draw the "missing pixbuf/widget" thing
2694         (render_layout_line): don't draw the widget here
2695         (gtk_text_layout_draw): pass out a list of widgets that need exposing
2696
2697         * demos/gtk-demo/textview.c (insert_text): add demo of child
2698         widgets
2699
2700         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
2701
2702         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
2703
2704         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
2705         scroll offsets
2706         (gtk_text_view_value_changed): poke new X and Y into child allocations
2707
2708 2001-11-06  Tor Lillqvist  <tml@iki.fi>
2709
2710         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
2711         -specific directory on Windows, too (#63759).
2712
2713 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
2714
2715         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
2716         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
2717         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
2718         directly to Picture objects instead of using XftDraw.
2719         This fixes the problem where we weren't able to 
2720         properly destroy XftDraw objects before destroying
2721         the accompanying windows, and probably improves
2722         efficiency a bit too. (#50214)
2723
2724 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
2725
2726         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
2727         Clamp max window width/height to 32767, not 32768 since
2728         we have to be able to deal with a dx/y of -32768 without
2729         getting a width of 65536 when guffaw scrolling.
2730
2731         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
2732         for the guffaw scrolling case, fixing some problems with
2733         copy-area case as well. Fix BadValue bug with moving windows
2734         by large amounts.
2735
2736         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
2737         clip in window structue before calling gdk_window_invalidate_region
2738         since that trims new invalidations to the window's visible
2739         region.
2740
2741         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
2742         Really set the static window gravity on the children, not
2743         repeatedly on the window.
2744
2745         * gtk/testgtk.c: Add a torture test for big windows and 
2746         gdk_window_scroll().
2747
2748 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
2749
2750         * acconfig.h configure.in: sigsetjmp is macroized in some places,
2751         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
2752
2753 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
2754
2755         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
2756         in terms of pango_color_parse().
2757
2758         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
2759         gdk_color_parse() implementations.
2760
2761 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
2762
2763         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
2764         queue_resize_on_group with both the old and new mode, not
2765         just the new mode. (#60171, Nicolas Setton). Also, notify
2766         the "mode" property.
2767         
2768 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
2769
2770         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
2771         for use in "shallow invalidation" of a widget. (Windows belonging
2772         to the widget, but not to the widget's children)
2773
2774         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
2775         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
2776         up on ancestors up to the resize container on queue_resize. Size
2777         requests only actually take place if GTK_REQUEST_NEEDED, size
2778         allocations only take place if GTK_ALLOC_NEEDED or the size
2779         changed.
2780
2781         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
2782         container->resize_widgets and the RESIZE_NEEDED flag since the
2783         above flags are sufficient to figure out what needs to be
2784         resized/reallocated. Remove code manipulating
2785         container->resize_widget.
2786
2787         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
2788         allows widgets to turn off being automatically invalidated is when
2789         they are resized.
2790
2791         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
2792         a widget is resized or moved is "shallow" as described above -
2793         only the windows that need to be invalidated are invalidated.
2794
2795         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
2796         Make these widget's init functions call 
2797         gtk_widget_set_redraw_on_allocate(widget,FALSE).
2798
2799         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
2800         _gtk_container_queue_resize(), since we don't want
2801         redrawing. (Probably could be done for other 
2802         calls to gtk_widget_queue_resize() in gtkwindow.c,
2803         but this is the most important one.)
2804
2805         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
2806         gtk_widget_queue_draw() - size_allocate() handles
2807         that as appropriate.
2808
2809         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
2810         of queue_clear() to avoid invalidating children.
2811
2812 2001-11-04  jacob berkman  <jacob@ximian.com>
2813
2814         * gtk/gtkmain.c (find_module): don't free the module name until
2815         after we load the module
2816
2817 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
2818  
2819         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
2820         derivation instead of boxed derivation.
2821  
2822         * gtk/gtkmarshal.list: Remove some now unused marshallers.
2823  
2824 2001-11-04  Tor Lillqvist  <tml@iki.fi>
2825
2826         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
2827         include yesterday, without really thinking), as that defeats the
2828         working of correct_libdir_prefix() (it becomes a no-op.). Add
2829         comment mentioning that. Thanks to Hans Breuer for noticing.
2830         
2831 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
2832
2833         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
2834         signal argument (was GtkWidget*).
2835
2836         * gtk/gtkwindow.c (gtk_window_frame_event),
2837           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
2838         Fixed argument types as above, removed GTK_WINDOW casts and
2839         added some GTK_WIDGET casts instead.
2840
2841 2001-11-03  Hans Breuer  <hans@breuer.org>
2842
2843         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
2844         finalize to parent class to get removed from the toplevel_list.
2845         Should fix 'random' crashes of #63474.
2846
2847         * gtk/gtktreemodelsort.c : chain finalize() to parent class
2848
2849 2001-11-03  Tor Lillqvist  <tml@iki.fi>
2850
2851         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
2852         for .dll or .so as appropriate as module suffix.
2853
2854         * gtk-zip.sh.in: Use correct import library names.
2855
2856         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
2857
2858         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
2859         Windows to turn build-time paths from a gtk.immodules distributed
2860         as part of a binary package into runtime ones in the
2861         end-user-chosen installation directory.
2862         (gtk_im_module_init): Use it for module path and domain
2863         directory.
2864
2865 2001-11-02  Tor Lillqvist  <tml@iki.fi>
2866
2867         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
2868         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
2869         Windows.
2870
2871 2001-10-30  Tor Lillqvist  <tml@iki.fi>
2872
2873         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
2874         files. Configure on Win32 (running on Cygwin) thinks symlinks
2875         exist, but pkg-config is not necesarily a Cygwin program, and
2876         doesn't understand them.
2877
2878 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
2879
2880         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
2881         a bit.  I don't think it's completely correct yet, but it's
2882         getting there.
2883
2884 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
2885
2886         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
2887         random + 5 for width and height. If people want padding,
2888         they should add padding. (Note the +5 isn't padding
2889         that will always appear - it just appears in the case
2890         where the widget is allocated it's requisition.)
2891         (#51018, Janet Davis)
2892
2893 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
2894
2895         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
2896         the structure for future expansion.
2897
2898 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
2899
2900         Patch from HideToshi Tajima (#51922)
2901         
2902         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
2903
2904         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
2905         set_use_preedit().
2906         
2907         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
2908         to destroy the input context because we change the
2909         client window or use_preedit, make sure we empty
2910         the preedit string.
2911
2912 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
2913
2914         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
2915         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
2916         proposed ordering of buttons with [OK] in the lower
2917         right hand corner. Patch from Gregory Merchan,
2918         #56331.
2919
2920 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
2921
2922         * gtk/gtklabel.c (gtk_label_select_region_index): remove
2923         extraneous gtk_label_clear_layout (label)
2924
2925 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2926
2927         * tests/makefile.msc, gtk/makefile.msc.in: Removed
2928         -DGTK_DISABLE_COMPAT_H.
2929
2930         * docs/Changes-2.0.txt:
2931         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
2932
2933         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
2934
2935 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
2936
2937         * examples/**/Makefile.am: Convert to use pkg-config
2938         rather than gtk-config. (#53375, Skip Montanaro)
2939
2940 2001-11-02  Matt Wilson  <msw@redhat.com>
2941
2942         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
2943         broken unused, non-compiling, static function.
2944
2945 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
2946
2947         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
2948         Iterate through children of the action area, not of
2949         the vbox. (#58278, Sergey Kuzminov)
2950
2951 2001-11-01  Havoc Pennington  <hp@pobox.com>
2952
2953         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
2954         order to remove a workaround in Nautilus that forced
2955         GTK_ENABLE_BROKEN
2956
2957         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
2958
2959 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
2960
2961         * gtk/gtkrange.c: Patch from George Lebl to 
2962         fix division by zero for full scroll bars. (#62114)
2963
2964 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
2965
2966         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
2967         around gtk_widget_event() if we are going to
2968         set a flag afterwards. (#63464)
2969
2970 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
2971
2972         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
2973         Actually add the missing/broken image icon as the
2974         image for the "missing image" stock icon.
2975
2976 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
2977
2978         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
2979         Set a reasonable default height for the window.
2980
2981         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
2982         bug where subsequent '-' weren't converted to '_'.
2983         (#59550, Matthias Clasen)
2984
2985         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
2986         justify the Help menu - just include a comment on
2987         how to do it. (#63539,  Marius Andreiana)
2988
2989         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
2990         list GTK_ICON_SIZE_INVALID.
2991
2992         * demos/gtk-demo/stock_browser.c: Show the biggest available
2993         size, not a fixed size. (Often reported, including #63539, 
2994         Marius Andreiana)
2995
2996 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
2997
2998         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
2999         #59583
3000
3001         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
3002         warning.
3003
3004 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
3005
3006         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
3007         (Daniel Elstner).
3008
3009 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
3010
3011         * gtk/gtkimcontext.[ch]: Add:
3012           - A ::retrieve_surrounding signal that asks the widget for
3013             context around the insertion point.
3014           - A ::delete_surrounding signal that asks the widget to 
3015             delete context aroudn the insertion point.
3016           - gtk_im_context_set_context() for widgets to set context
3017             around the insertion point in response to ::retrieve_context.
3018           - gtk_im_context_get_context() for context to get context
3019             around the insertion point
3020
3021         * gtkmarshal.list: Add BOOL:INT,INT
3022
3023         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
3024         set_surrounding() methods, and the ::retrieve_surrounding /
3025         ::delete_surrounding signals.
3026
3027         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
3028         GtkIMContext::retrieve_surrounding / ::delete_surrounding
3029         signals.
3030
3031 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
3032
3033         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
3034         it's amazing how well things work sometimes, even when they're
3035         completely wrong.
3036
3037         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
3038         where you could try to collapse a node w/o it having children.
3039
3040         (gtk_tree_view_class_init): remove Shift L<->R as they already
3041         existed for expand/collapse.
3042
3043 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
3044
3045         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
3046         found by Matt Wilson.
3047
3048 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
3049
3050         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
3051         Control, and Shift|Control L<->R, #63475
3052
3053 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
3054
3055         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
3056         infinite loop noticed by yosh.
3057
3058 2001-11-01  Michael Meeks  <michael@ximian.com>
3059
3060         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
3061         GTK_REALIZED flag so we don't re-enter when we are
3062         destroyed from the plug side.
3063
3064 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
3065
3066         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
3067         Add a "menu" property and notify on it. (#62798,
3068         Padraig O'Briain)
3069
3070         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
3071         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
3072         Fix set_text to take a gchar, not a guchar, and to have 
3073         a len argument.
3074
3075 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
3076
3077         * gtk/gtkstock.c: fix typo to make it compile
3078
3079 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
3080
3081         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
3082         the widget is insensitive, draw the text insensitively, #63306
3083
3084 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
3085
3086         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
3087
3088 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
3089
3090         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
3091         gtk_selection_data_set_tree_row, #60218
3092         (gtk_tree_get_row_drag_data): rename
3093         gtk_selection_data_get_tree_row, #60218
3094
3095         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
3096         get this right, after the third try, #63122.
3097
3098 2001-10-31  jacob berkman  <jacob@ximian.com>
3099
3100         * gdk/gdkselection.h (GDK_TARGET_STRING): 
3101         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
3102         for Xatoms (and not using the XA_* macros)!
3103
3104 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
3105
3106         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
3107         gtk_window_get_focus() getter to determine the currently
3108         focused widget within the window. (#63145, request
3109         from Damian Ivereigh)
3110
3111 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
3112
3113         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
3114
3115         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
3116         GTK_SELECTION_NONE enum.
3117         (_gtk_tree_selection_internal_select_node): ditto
3118
3119         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
3120         constness.
3121
3122         * gtk/gtkcellrenderertoggle.c: more yummy constness.
3123
3124         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
3125         if mode == GTK_SELECTION_NONE
3126
3127 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
3128
3129         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
3130         "cursor_changed" signal, #62850.
3131
3132 2001-10-31  Matt Wilson  <msw@redhat.com>
3133
3134         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
3135         allocating the treedatalist, zero it to make sure the values are
3136         cleared from any garbage that was in this chunk.
3137
3138 2001-10-31  Murray Cumming  <murrayc@usa.net>
3139
3140         * gtk/cellrenderertext.h: "edited" default signal handler
3141         gchar* args are now const.
3142         gtk/cellrenderertoggle.h: "toggled" default signal handler
3143         gchar* arg is now const.
3144         Also changed other signal handlers for "edited" and "toggled" to
3145         have the same signature.
3146
3147 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
3148
3149         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
3150         rewrite.  Static models now totally work.  I'm not 100% sure about
3151         row_inserted and row_changed, but I'll get those later.
3152
3153 2001-10-30  Sven Neumann  <sven@gimp.org>
3154
3155         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
3156         output for configure --help.
3157
3158 2001-10-30  Havoc Pennington  <hp@pobox.com>
3159
3160         * gtk/gtktextview.c (changed_handler): Update the IM spot location
3161         here, if text was invalidated in the visible area, because the
3162         scroll offset doesn't normally change in that case, and the mark
3163         isn't set, just implicitly moved over as text is added/removed
3164         
3165 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
3166
3167         * gtk/gtkseparatormenuitem.c: Code cleanup.
3168         (gtk_separator_menu_item_class_init): Fix bugs in this code.
3169
3170 2001-10-29  jacob berkman  <jacob@ximian.com>
3171
3172         * gdk/Makefile.am (LDFLAGS): 
3173         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
3174         LDFLAGS, so put win32 flags in here
3175
3176 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
3177
3178         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
3179         I can't believe this took this long to fix.
3180
3181 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
3182
3183         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
3184         reordered signal.
3185
3186 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
3187
3188         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
3189         the focus to the fileop entry for create dir / rename
3190         file. (#62838)
3191
3192 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
3193
3194         * configure.in: Don't use AC_CHECK_FILE to check for a 
3195         file since it always spits warnings about cross compilation,
3196         use -f instead. It's not like we cross compile properly
3197         anyways.
3198
3199         * configure.in (gtktargetlib): Move call to AC_PROG_CC
3200         to suppress autoconf warning.
3201
3202         * acconfig.h: Add some missing #undefs from recent
3203         Win32 additions.
3204
3205 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
3206
3207         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
3208         when we didn't find it. (#62944, Eric Lemings)
3209
3210         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
3211         sign in assignment. (#63209, Arkadiusz Miskiewicz)
3212
3213 2001-10-29  Anders Carlsson  <andersca@gnu.org>
3214
3215         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
3216         the buttons size request before using it. Fixes #61696.
3217
3218 2001-10-29  Tor Lillqvist  <tml@iki.fi>
3219
3220         * README.win32: Updates.
3221
3222         * gtk-zip.sh.in: New file, used to build distribution package for
3223         Windows.
3224
3225         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
3226         applicable with GDKVAR.
3227
3228         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
3229         Wintab library.
3230
3231         * gdk/win32/gdkwin32.h
3232         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
3233         X11 headers better, and to enable gdkwin32.h to be installed and
3234         included from applications, but not the *-win32.h headers.
3235
3236         * gdk/win32/*.c: Corresponding small changes, simplifications of
3237         #includes.
3238         
3239         * gdk/win32/gdkregion-win32.c: Remove.
3240
3241         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
3242
3243         * gdk/win32/gdkfont-win32.c
3244         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
3245
3246         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
3247         GDK_NONE values into hash table.
3248
3249         * gtk/gtk.def: Update.
3250
3251         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
3252         gethostname().
3253
3254         * gtk/gtkmain.c 
3255         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
3256         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
3257         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
3258         g_win32_get_package_installation_subdirectory() with the actual
3259         DLL name saved above. Redefine above directory name macros to call
3260         these functions. Remove some ifdefs.
3261
3262         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
3263         variable for export on Win32) also to the _vars file.
3264
3265         Changes for autoconfiscated build on Win32, and addition of Win32
3266         backend to the related files:
3267         
3268         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
3269         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
3270         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
3271         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
3272         win32 target, using pangowin32. Don't use the
3273         -export-symbols-regex option on Win32, we use .def files to list
3274         exported symbols. Check <winsock.h> (for gethostname() in
3275         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
3276         prevent premature m4 expansion.
3277
3278         * acconfig.h: Add HAVE_WINTAB.
3279
3280         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
3281         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
3282         MS_LIB_AVAILABLE, build MS import library. Install the import
3283         libraries. If HAVE_WINTAB, link with the Wintab library.
3284
3285         * gdk/win32/Makefile.am: Actually enable building the win32
3286         objects here, not just list all files in EXTRA_DIST. Link in the
3287         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
3288         copy the Wintab library into the .libs directory. 
3289
3290         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
3291         name of the GDK DLL when fetching the icon. Use the HMODULE saved
3292         in gdk_dll_hinstance by DllMain.
3293
3294         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
3295         build/win32/lt-compile-resource script.
3296
3297         * gdk/win32/rc/gdk.rc.in
3298         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
3299
3300         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
3301         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
3302         file. Install import libraries.
3303
3304 2001-10-29  Anders Carlsson  <andersca@gnu.org>
3305
3306         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
3307
3308 2001-10-28  Hans Breuer  <hans@breuer.org>
3309
3310         * gdk/gdk.c gdk/gdkevents.c
3311           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
3312           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
3313           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
3314           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
3315           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
3316           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
3317           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
3318         static correct-ness, underscore prefixing of library internal 
3319         functions
3320         (applied the undisputed and the win32 part. Of the latter 
3321          I'm probably the one who will change it back again, if Owen
3322          decides that the Gdk*Impl types should not be private to Gdk)
3323
3324         * gdk/gdk.def : added the remaining exported functions
3325
3326 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
3327
3328         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
3329         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
3330         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
3331
3332 2001-10-28  jacob berkman  <jacob@ximian.com>
3333
3334         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
3335         gtk_settings_get_default() here as that requires an X connection
3336         (which breaks doc building with no X connection) and is not
3337         multihead safe
3338         (gtk_color_selection_init): delay palette loading until realize
3339         time
3340         (gtk_color_selection_realize): load the palette, and initialize
3341         the global palette if it hasn't been already
3342
3343         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
3344         visual/cmap fields of klass->info since they are gone
3345         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
3346         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
3347         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
3348
3349         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
3350         cmap fields
3351         (gtk_preview_get_visual):
3352         (gtk_preview_get_cmap): mark as deprecated
3353
3354         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
3355         changes
3356
3357 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
3358
3359         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
3360         structure to have GObject not GtkObject as
3361         parent_instance. (Jeff Franks.)
3362
3363 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
3364
3365         * gdk/x11/gdkinput.c: Typo fix.
3366
3367 2001-10-26  Havoc Pennington  <hp@pobox.com>
3368
3369         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
3370         update_im_spot_location here explicitly
3371         (gtk_text_view_reset_im_context): don't update the spot location
3372         here
3373
3374 2001-10-27  Anders Carlsson  <andersca@gnu.org>
3375
3376         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
3377         This fixes #62942.
3378
3379         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
3380         Clarify that we're returning a spin button in the _new function.
3381         This fixes #54097.
3382         
3383 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
3384
3385         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
3386         Unfortunately, people apparently erroneously connect
3387         to ::clicked for GtkToggleButton and expect
3388         they know what happened in the default signal handler
3389         instead of appropriately connecting to notification
3390         signal ::toggled. When the revolution comes, such
3391         people will be first against the wall.
3392
3393         We'll just have to go back to the old less-reliable
3394         set-it-back hacks for handling model-view check
3395         buttons and radio buttons. :-(. 
3396
3397 2001-10-27  Hans Breuer  <hans@breuer.org>
3398
3399         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
3400           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
3401           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
3402           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
3403           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
3404           gtk/gtktreestore.c gtk/gtkvbbox.c : 
3405         to simplify parsing for exported functions:
3406         - made implementation signature static, when the local 
3407           prototype already was
3408         - put the functions return value on it's own line
3409         - added as space between the function name and the 
3410           opening bracket
3411
3412         * gtk/gtk.def : added the remaining exported functions
3413
3414 2001-10-27  Anders Carlsson  <andersca@gnu.org>
3415
3416         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
3417         Add note about width having to be greater than 0. This fixes
3418         #55574. 
3419
3420         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
3421         Fix docs to say previous instead of next.
3422         (gtk_text_iter_backward_word_start): Likewise.
3423         This fixes bug #62980.
3424
3425         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
3426         that the valid width is in range 0-65535 pixels. Fixes bug 
3427         #56754.
3428
3429         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
3430         a dot in the documentation. Fixes bug #62632.
3431
3432         * gdk/x11/gdkmain-x11.c: Replace int and guint with
3433         long and gulong in some places to make the code 64-bit
3434         clean.
3435         (_gdk_windowing_init_check): Replace gint with gulong.
3436         This patch was made by George Lebl and fixes bug #62113.
3437
3438         * tests/testgtk.c (create_range_controls): Don't set a 
3439         fixed height on the hscale widget. This fixes "bug" 
3440         #55840.
3441         (create_window_states): Set up destroy signals so that
3442         all windows will be destroyed when one is. This fixes 
3443         bug #58133.
3444
3445 2001-10-26  Anders Carlsson  <andersca@gnu.org>
3446
3447         * gtk/gtktreeview.c: 
3448         (gtk_tree_view_class_init): Create new "indent_expander"
3449         style property.
3450
3451         (gtk_tree_view_get_arrow_xrange): Add a tree argument
3452         to the function since the xrange can change depending
3453         on where in the tree we are. 
3454         
3455         (coords_are_over_arrow): Update function call to
3456         gtk_tree_view_get_arrow_xrange.
3457         (gtk_tree_view_draw_arrow): Likewise.
3458         
3459         (gtk_tree_view_real_expand_collapse_cursor_row):
3460         Call real_{expand|collapse}_row, so that we'll have an
3461         animation.
3462
3463 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
3464
3465         * tests/Makefile.am: fixed a small typo
3466
3467 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
3468
3469         * demos/gtk-demo/list_store.c (create_model): Anders
3470         Carlsson suggested to use G_N_ELEMENTS here
3471
3472 2001-10-26  Sven Neumann  <sven@gimp.org>
3473
3474         * gtk/gtkbutton.[ch]
3475         * gtk/gtkdnd.c: fixed inline comments
3476         
3477         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
3478
3479 2001-10-26  Hans Breuer  <hans@breuer.org>
3480
3481         * gdk-pixbuf/gdk_pixbuf.def : 
3482         * gdk/gdk.def : 
3483         * gtk/gtk.def : updated externals
3484
3485         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
3486         gdk_window_lookup implementation. It already was in
3487         gdk/win32/gdkwindow-win32.c
3488
3489         * gdk/win32/gdkproperty-win32.c : made it compile again
3490         after GdkAtom API change
3491
3492         * gtk/gtk/makefile.msc.in : updated
3493
3494 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
3495
3496         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
3497         require GLib 1.3.10.
3498
3499         * NEWS: updates.
3500
3501 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
3502
3503         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
3504         invalid nodes.
3505          (_gtk_rbnode_rotate_right): Ditto.
3506          (_gtk_rbtree_node_mark_invalid): New function.
3507          (_gtk_rbtree_node_mark_valid): New function.
3508
3509         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
3510         GObject, not a GtkObject.
3511         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
3512         correct.
3513         (gtk_tree_model_sort_row_deleted): ditto.
3514         (gtk_tree_model_sort_{un,}ref_node): Fix.
3515
3516         * gtk/gtktreeview.c: Protean incremental reflow support (commented
3517         out)
3518
3519         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
3520         to const char *key.
3521
3522         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
3523         Important 1 line fix to fix a lot of refcounting woes.
3524
3525 2001-10-25  Matt Wilson  <msw@redhat.com>
3526
3527         * gtk/gtktextview.c (gtk_text_view_destroy): call
3528         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
3529         now invalidates) so that we remove our idle functions.
3530         (gtk_text_view_destroy_layout): remove the first_validate_idle as
3531         well.
3532
3533         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
3534         the 'indent' property is G_MININT to G_MAXINT.  Don't use
3535         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
3536         instead.
3537
3538 2001-10-24  Anders Carlsson  <andersca@gnu.org>
3539
3540         * gtk/gtktreeview.c: 
3541         (gtk_tree_view_real_expand_row): add an animate argument
3542         (gtk_tree_view_real_collapse_row): likewise
3543         
3544         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
3545         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
3546         (gtk_tree_view_collapse_row): update functions that call
3547         real_{expand|collapse}_row to set the animate argument 
3548         accordingly.
3549         
3550 2001-10-24  Alex Larsson  <alexl@redhat.com>
3551
3552         * gdk/linux-fb/gdkfont-fb.c:
3553         Update to new Pango APIs
3554
3555         * gdk/linux-fb/gdkproperty-fb.c:
3556         Update to new GdkAtom APIs
3557
3558         * gdk/linux-fb/gdkwindow-fb.c:
3559         Remove warnings
3560
3561 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
3562
3563         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
3564
3565 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
3566
3567         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
3568         s_path as a child path
3569
3570 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
3571
3572         * gtk/gtktreemodelsort.c: more changes in an attempt to get
3573         it right. It's not yet ready for general consumption.
3574
3575         * tests/treestoretest.c: add a button and entry for the new
3576         iter_change function
3577         (iter_change): new function, to test
3578         the row_changed signal implementation of the GtkTreeModelSort
3579
3580         * tests/testtreesort.c: cleanups, changes to test more features
3581         of the GtkTreeModelSort at once
3582
3583 2001-10-24  Havoc Pennington  <hp@redhat.com>
3584
3585         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
3586         remove hack to strip off the bogus newline, since we killed the
3587         bogus newline; fixes #61779
3588
3589 2001-10-24  Havoc Pennington  <hp@redhat.com>
3590
3591         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
3592         create layout if we didn't have one
3593         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
3594         as appropriate, avoids blanking the screen 
3595         (gtk_text_view_invalidate): new function to do invalidation,
3596         containing old guts of invalidated_handler
3597
3598 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
3599
3600         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
3601         dreadful tooltips.
3602
3603 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
3604
3605         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
3606         set window->parent (except or the root window itself); if 
3607         the window's parent is not a GdkWindow, or is a window of 
3608         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
3609
3610         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
3611         windows of type GDK_WINDOW_FOREIGN.
3612
3613 2001-10-24  Havoc Pennington  <hp@pobox.com>
3614
3615         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
3616         the front of a segment, use the "slow" technique for moving
3617         backward, so we don't mess up the any_segment field in the iter. 
3618         Fixes #57707
3619
3620         * tests/testtextbuffer.c: add code to detect #57707, to avoid
3621         regression
3622
3623 2001-10-23  Havoc Pennington  <hp@redhat.com>
3624
3625         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
3626         if selection contains some editable text, #60975
3627         (gtk_text_view_scroll_to_iter): remove warning about scrolling
3628         prior to map; it should actually be OK to do so in many cases, 
3629         it would be nice to warn about scrolling when many lines have
3630         height 0, but I don't know what to do about that. Perhaps 
3631         move part of flush_scroll into this function? comment added 
3632         to consider this.
3633
3634 2001-10-23  Havoc Pennington  <hp@redhat.com>
3635
3636         * gtk/gtktextview.c (changed_handler): Correctly keep the same
3637         text on the top of the screen, considering that the changed region
3638         may have overlapped the first paragraph. Should fix msw's "text
3639         widget scrolled to wrong place on map" bug, and probably some
3640         other scrolling cases as well.
3641         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
3642         instead of some random value
3643
3644         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
3645         grab_focus, so #59708 is really fixed
3646
3647 2001-10-24  Anders Carlsson  <andersca@gnu.org>
3648
3649         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
3650         (popup_targets_received): Call append_action_signal with stock items
3651         
3652         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
3653         (gtk_label_do_popup): Call append_action_signal with stock items
3654         
3655         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
3656         (popup_targets_received): Call append_action_signal with stock items
3657
3658 2001-10-23  Havoc Pennington  <hp@redhat.com>
3659
3660         * gtk/gtktextview.c (changed_handler): queue a resize here; will
3661         temporarily slow down the widget a lot, until we figure out how to
3662         optimize to avoid full redraw everytime we queue a resize.
3663
3664 2001-10-23  Havoc Pennington  <hp@redhat.com>
3665
3666         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
3667         0 and char_len == 0, bug #61729
3668
3669 2001-10-23  Havoc Pennington  <hp@redhat.com>
3670
3671         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
3672         return value, #61714 (Vitaly Tishkov)
3673         (gtk_text_iter_backward_sentence_starts): ditto
3674         (gtk_text_iter_backward_word_starts): ditto
3675         (gtk_text_iter_forward_word_ends): ditto
3676         (gtk_text_iter_forward_sentence_ends): ditto
3677         (gtk_text_iter_backward_cursor_positions): ditto
3678
3679 2001-10-23  Havoc Pennington  <hp@redhat.com>
3680
3681         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
3682         fix from Dov Grobgeld, #61858
3683
3684 2001-10-23  Havoc Pennington  <hp@redhat.com>
3685
3686         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
3687         Update IM spot location at appropriate times, #50626
3688         (Hidetoshi Tajima)
3689
3690 2001-10-23  Havoc Pennington  <hp@redhat.com>
3691
3692         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
3693         on grab focus, unless it's caused by button click, #59708
3694
3695 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
3696
3697         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
3698
3699         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
3700         G_CONST_RETURN. (Murray Cumming)        
3701
3702         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
3703         Make G_CONST_RETURN.
3704
3705         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
3706         results of g_get_home_dir().
3707
3708         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
3709         copy. Storing the return from gtk_entry_get_text() is evil.
3710
3711         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
3712         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
3713         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
3714         gtk/gtksignal.c: Add const.
3715
3716         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
3717
3718         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
3719         if we are setting them on private widgets.
3720
3721         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
3722         Duplicate entry->text before setting it as object data.
3723
3724 2001-10-22  Havoc Pennington  <hp@redhat.com>
3725
3726         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
3727         up a char from the end iterator, fixes #61859 ("can't put cursor
3728         at the end of the buffer")
3729
3730         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
3731         to work with delimiters other than newline.
3732
3733         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
3734         get_bytes_in_line
3735
3736         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
3737         last line, since the newline is no longer counted.
3738         (gtk_text_iter_get_bytes_in_line): ditto
3739
3740 2001-10-22  Havoc Pennington  <hp@redhat.com>
3741
3742         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
3743         #58290 would trigger if it reappeared, I think
3744
3745 2001-10-22  Havoc Pennington  <hp@redhat.com>
3746
3747         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3748         add temporary code to dump btree contents on assertion failure
3749         described in #62656
3750         
3751         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
3752         assertions that we're getting the right end iter segment
3753
3754         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3755         verify that we aren't on the end iterator after moving 
3756         forward one segment - fixes return value in an obscure case. 
3757         Also, some trivial code cleanup/rearranging.
3758         
3759 2001-10-22  Havoc Pennington  <hp@redhat.com>
3760
3761         * gtk/gtktextlayout.h: add a #error unless you define
3762         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
3763
3764         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
3765         
3766 2001-10-22  Havoc Pennington  <hp@redhat.com>
3767
3768         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
3769         #62365
3770
3771 2001-10-22  Havoc Pennington  <hp@redhat.com>
3772
3773         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
3774         #62436
3775
3776 2001-10-22  Havoc Pennington  <hp@redhat.com>
3777
3778         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
3779         #62366
3780
3781 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
3782
3783         * gtk/gtklabel.c: Add cursor-position, selection-bound 
3784         properties. (#62148, reported by Padraig O'Briain)
3785
3786         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
3787         to cursor_position. (1.3.x addition, text_position is an awful
3788         name.) Make cursor_position read-only to avoid sticky questions
3789         of interaction with selection_bound. (#62636, reported by
3790         Padraig O'Briain)
3791
3792 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
3793
3794         Fixing popup menus to have "Paste" sensitized correctly. Original
3795         patches from Damian Ivereigh, much mangled.
3796
3797         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
3798         gtk_selection_data_targets_include_text(). (#60854)
3799
3800         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
3801         the clipboard has text" function gtk_clipboard_wait_is_text_available.
3802         (#60854)
3803
3804         * gtk/gtkentry.c: Only enable the paste item if the clipboard
3805         contains text. (#60973)
3806
3807         * gtk/gtktextview.c: Only enable the paste item if the clipboard
3808         contains text. (#60975)
3809
3810 2001-10-22  Havoc Pennington  <hp@redhat.com>
3811
3812         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
3813         "height_lines" and "width_columns" properties, it doesn't make
3814         sense to set the size request on a text view really. #62103
3815
3816 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
3817
3818         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
3819         g_node_depth is broken, and that it's not worth being consistent
3820         with it.
3821
3822 2001-10-22  Havoc Pennington  <hp@redhat.com>
3823
3824         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
3825         docs, #61777
3826         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
3827         change the two boolean args to a flags field, so we can extend 
3828         to add case insensitive, regexp searches later. #61852
3829
3830 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
3831
3832         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
3833         reflect reality, #62810
3834
3835 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
3836
3837         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
3838
3839         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
3840         system.  Instead of having a window the size of the tree, we have
3841         a window the size of widget->allocation, and simply draw with the
3842         offset.
3843         (coords_are_over_arrow): ditto.  Move to window coordinates.
3844         (do_prelight): ditto
3845         (do_unprelight): ditto
3846
3847         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
3848         Minor fix from Kristian Rietveld to fix unsorted case.
3849
3850 2001-10-22  jacob berkman  <jacob@ximian.com>
3851
3852         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
3853         a PIXMAP cell (fixes crash when using PIXTEXT cells)
3854
3855 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
3856
3857         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
3858         (#58768, Vitaly Tishkov)
3859         
3860         * gtk/gtkobject.h: Deprecate with abandon. 
3861         (#61942, Vitaly Tishkov, Matthias Clasen)
3862
3863         * gtk/gtksignal.h: Deprecate everything.
3864
3865         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
3866         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
3867         (#61942, Matthias Clasen)
3868
3869         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
3870         Havoc Pennington)
3871
3872         * gtk/gtkitemfactory.h: Deprecate compat functions
3873         for GtkMenuFactory code. (#62071)
3874
3875         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
3876         gdk_draw_text,gdk_draw_text_wc. (#62071)
3877
3878 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
3879
3880         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
3881         g_thread_init(), we don't want to link to -lgthread if we don't
3882         have to.
3883
3884 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
3885
3886         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
3887         Add a function, gdk_threads_init() that must be explicitely 
3888         called to enable the GDK thread mutex.
3889
3890 2001-10-22  Jakub Steiner <jimmac@ximian.com>
3891
3892         * gtk/stock-icons/stock_stop.png: no body parts
3893         
3894 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
3895
3896         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
3897         problem with g_return_if_fail return value.
3898
3899         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
3900         virtual atom code from the gdk-multihead branch, removing the per-display
3901         part. Virtualizing atoms needs to be done now to prevent compat
3902         breakage in direct Xlib accessing code in the future. (#62208)
3903  
3904         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
3905         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
3906  
3907         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
3908         an opaque pointer type so the compiler catches attempts
3909         to mingle it with X atoms.
3910
3911         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
3912           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
3913           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
3914           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
3915           tests/testdnd.c,tests/testselection.c: 
3916         Fix up for above atom changes.
3917
3918         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
3919         now have the ability to add custom predefines.
3920
3921         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
3922         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
3923         to gtk_clipboard_get().
3924
3925         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
3926         for GdkAtom => pointer change.
3927
3928         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
3929         atoms, fix for GdkAtom => pointer change.
3930
3931 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
3932
3933         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
3934         new function spin_button_get_arrow_size() instead.
3935
3936         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
3937         arrow was hardcoded, it's now variable.
3938
3939         Fixes bug #50200
3940
3941 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
3942
3943         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
3944         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
3945         for those
3946
3947 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
3948
3949         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
3950         in favor of g_signal_*, gtk_object_* in favor of 
3951         g_object_*.
3952
3953 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
3954
3955         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
3956         from GObject now, we have to use the g_object_* functions, not
3957         gtk_object_*.
3958
3959 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
3960
3961         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
3962         nailed down now (this code is not yet ready for general consumption)
3963
3964 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
3965
3966         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
3967         for use_align
3968
3969 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
3970
3971         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
3972
3973 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
3974
3975         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
3976         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
3977         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
3978         GObject, not GtkObject. (#62621)
3979
3980 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
3981
3982         * tests/testsocket.c: Remove now useless include of unistd.h,
3983         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
3984         
3985 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
3986
3987         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
3988         Pango font API. #61933. (Untested, even for compilation.)
3989
3990 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
3991
3992         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
3993         export gtk_disable_setlocale(). (Caught by Sven Neumann)
3994
3995 2001-10-18  Havoc Pennington  <hp@redhat.com>
3996
3997         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
3998
3999 2001-10-18  Havoc Pennington  <hp@redhat.com>
4000
4001         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
4002         to GTK_RUN_LAST, #50239
4003
4004 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
4005
4006         * gtk/gtkimmodule.c (match_locale):
4007         Support "*" for all locales with least priority
4008         when to select default im module, #58201
4009
4010 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
4011
4012         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
4013         Fix docs. (#61976)
4014  
4015         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
4016
4017         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
4018
4019         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
4020         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
4021         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
4022         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
4023         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
4024         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
4025         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
4026
4027         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
4028
4029         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
4030         Don't restrict the width of the spinbutton entry field 
4031         to 10 digits. (#58681)
4032
4033 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
4034
4035         * tests/testtreeflow.c: new test program for the tree.
4036
4037 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
4038
4039         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
4040         reported by (Oleg Maiboroda), #62600
4041
4042 2001-10-18  Michael Meeks  <michael@ximian.com>
4043
4044         * gtk/gtkentry.c (gtk_entry_set_property),
4045         (gtk_entry_get_property): impl 'text'
4046         (gtk_entry_class_init): add the 'text' prop.
4047         (gtk_entry_insert_text): notify 'text' changed.
4048         (gtk_entry_delete_text): ditto.
4049
4050 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
4051
4052         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
4053         Documentation updates.
4054
4055 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
4056
4057         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
4058         in truncating length of text to MAX_SIZE. (Found by 
4059         Padraig O'Briain, #62055)
4060
4061 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
4062
4063         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
4064         MNEMONIC_ACTIVATE; signal was changed a long time
4065         ago.
4066
4067         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
4068         Fix wrong return statement. (Reported by HideToshi
4069         Tajima and others.)
4070
4071         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
4072         left over select_all vfunc.
4073
4074 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
4075
4076         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
4077         a utility function to translate coordinates relative to
4078         one widget's allocation to coordinates relative to another
4079         widget's allocation.
4080
4081         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
4082         that:
4083          - only accepts external focus if there is no active
4084            member of the group or the button is active.
4085          - makes arrow keys move the active button as well
4086            as the focus
4087          - make tab tab out directly.
4088         This makes a radio button group act as a single focus location.
4089         (#53577).
4090         
4091         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
4092         it was only a small optimization that didn't matter and made
4093         things more complicated.
4094
4095         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
4096         sorter for FOCUS_TAB as we did for the other focus directions,
4097         sort by center of widgets, not upper-left corner. (Shouldn't
4098         matter in general.)
4099
4100         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
4101         from the different types of focusing: encapsulate sorting the
4102         widgets for the focus direction into one routine
4103         (gtk_container_focus_sort()) and then share the work of moving the
4104         focus between the different focus directions.
4105
4106         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
4107         work correctly with focus chains containing non-immediate
4108         children. Sorting was being done using allocation coordinates for
4109         each widget in the focus chain, and if there were intermediate
4110         window-widgets, these allocations would not be in the same
4111         coordinate system.
4112
4113 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
4114
4115         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
4116         mnemonic_activate function to option menu.
4117
4118 2001-10-15  Murray Cumming <murrayc@usa.net>
4119
4120         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
4121           Corrected the type names used in some calls to g_signal_new().
4122         
4123 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
4124
4125         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
4126         specs, use g_pattern_spec_equal() instead of direct field accesses.
4127         upon compressing two equal paths of the same type, the resulting
4128         priority has to be the maximum.
4129         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
4130         GtkPathPriorityType enum and make it a macro.
4131
4132 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
4133
4134         * gtk/gtkwidget.c: Fix some doc comments.
4135
4136 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
4137
4138         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
4139         on empty models.
4140
4141 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
4142
4143         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
4144         Remove stale gdk backend includes.
4145  
4146 2001-10-10  Michael Meeks  <michael@ximian.com>
4147
4148         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
4149         and value_in_list properties.
4150         (gtk_combo_set_value_in_list): notify change.
4151         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
4152
4153 2001-10-11  James Henstridge  <james@daa.com.au>
4154
4155         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
4156         that gtk+ can be built with automake 1.5 while not breaking
4157         things for automake 1.4.
4158
4159 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
4160
4161         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
4162         (#60606)
4163
4164         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
4165         to disable calling setlocale (LC_ALL, "").
4166
4167         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
4168         docs that this function is not typically useful.
4169
4170         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
4171         Automatically initialize GDK for the current locale
4172         on gdk_init(). Don't reset locale to C when
4173         XSupportsLocale() fails.
4174
4175         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
4176         useless checks for UTF-8 locale breakage that mattered
4177         only for X.
4178
4179         * examples/calendar/calendar.c
4180         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
4181         gtk_set_locale().
4182
4183         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
4184         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
4185
4186 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
4187
4188         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
4189
4190         Fixes bug #61904
4191
4192 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
4193
4194         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
4195         new function, #61923
4196         (gtk_tree_selection_path_is_selected): Ditto
4197
4198 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
4199
4200         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
4201         not a GtkObject.  Thanks andersca.
4202
4203         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
4204
4205 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
4206
4207         * gtk/gtktreeviewcolumn.c
4208         (gtk_tree_view_model_sort_column_changed): fix broken code.
4209
4210 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
4211
4212         * gtk/gtkselection.c: s/succesfully/successfully/g
4213
4214 2001-10-08  Havoc Pennington  <hp@pobox.com>
4215
4216         * demos/gtk-demo/stock_browser.c: remove unused enum
4217
4218         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
4219         pass the current selection state of the node in to the user
4220         selection func
4221
4222 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
4223
4224         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
4225         non-existent function gdk_x11_cursor_get_xid 
4226         by gdk_x11_cursor_get_xcursor.
4227
4228 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
4229
4230         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
4231         warning.
4232
4233         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
4234         unref nodes, #okay61676
4235
4236         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
4237         to the property; no need to clear the other columns.  Also, we go
4238         to 'unsorted' if the model supports it.
4239
4240 2001-10-05  Sven Neumann  <sven@gimp.org>
4241
4242         * demos/testpixbuf-save.c
4243         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
4244         feature.
4245
4246 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
4247
4248         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
4249         destroy the search dialog
4250
4251         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
4252         added check to prevent creation of a search dialog if there's
4253         already one around
4254
4255         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
4256         it instead of "search-dialog" (when getting/setting the search dialog
4257         widget).
4258
4259 2001-10-05  Jakub Steiner <jimmac@ximian.com>
4260
4261         * gtk/stock-icons/stock_broken_image.png: broken images icon
4262
4263 2001-10-04  Havoc Pennington  <hp@pobox.com>
4264
4265         Fix #56586
4266         
4267         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
4268         accelerator setting here...
4269
4270         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
4271         because we try to use it when a menu bar hasn't necessarily been 
4272         initialized.
4273
4274 2001-10-03  Havoc Pennington  <hp@redhat.com>
4275
4276         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
4277         it previously verified incorrect behavior
4278
4279         Fixes for #61565
4280         
4281         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
4282         off the end
4283         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
4284         the end
4285         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
4286         the end
4287         (gtk_text_iter_forward_lines): if on the last line, move to end of
4288         it
4289
4290         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
4291         don't return a line off the end
4292
4293 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
4294
4295         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
4296         functions to do_insert_text and do_delete_text, add signals
4297         insert_text, delete_text and changed
4298
4299         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
4300         and changed. Updates to match new situation.
4301
4302         * gtk/gtkspinbutton.c: updates to match new situation
4303
4304         * gtk/gtkoldeditable.h: remove signals changed, insert_text
4305         and delete_text
4306
4307         * gtk/gtkoldeditable.c: updates to match new situation
4308
4309         * gtk/gtktext.c: updates to match new situation
4310
4311         Fixes bug #59803
4312
4313 2001-10-03  Havoc Pennington  <hp@redhat.com>
4314
4315         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
4316         position
4317
4318         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
4319         changes
4320
4321         * tests/testtextbuffer.c (logical_motion_tests): updates
4322
4323 2001-10-03  jacob berkman  <jacob@ximian.com>
4324
4325         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
4326         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
4327         * gtk/gtksettings.c (apply_queued_setting): 
4328         * gtk/gtkmain.c (gtk_init_check): 
4329         * gtk/gtkcontainer.c (gtk_container_child_get_property):
4330         s/retrive/retrieve/
4331
4332 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
4333
4334         * gtk/gtktreemodelsort.[ch]: preparation for surgery
4335         * tests/testtreesort.c: ditto
4336
4337 2001-10-02  Havoc Pennington  <hp@redhat.com>
4338
4339         Throughout: assorted docs
4340         
4341         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
4342         gdk_window_set_geometry_hints() should be used instead.
4343
4344         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
4345         document them
4346
4347         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
4348         seem to exist in any .c files
4349
4350         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
4351         g_return_if_fail (pixel < colormap->size).
4352
4353 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
4354
4355         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
4356         NULL for @target_list to mean, use
4357         gtk_drag_dest_get_target_list (widget).
4358
4359         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
4360         drop could hang when calling gtk_drag_finish with 
4361         success == FALSE and del == TRUE.
4362
4363         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
4364         drops without a matching target found would propagate
4365         to the parent widget rather than being rejected.
4366
4367         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
4368         Use text_view->dnd_mark instead of mark name to be
4369         consistent with the rest of the code.
4370
4371         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
4372         pendantically correct for a drop-only-in-some-places
4373         widget. (Check whether you can insert in drag_drop,
4374         not just in drag_motion ... matters in theory, and
4375         for Motif drag and drop in practice.)
4376
4377         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
4378         Damian Ivereigh to not allow drops on non-editable
4379         entries. (#61124)
4380
4381         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
4382         text to be moved from a non-editable entry.
4383         
4384 2001-10-03  James Henstridge  <james@daa.com.au>
4385
4386         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
4387         s/width/fixed_width/ in order to get things to compile.
4388
4389 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
4390
4391         * gtk/gtkcelleditable.c: docs
4392
4393         * gtk/gtktreemodel.h: more docs.
4394
4395 2001-10-02  Havoc Pennington  <hp@redhat.com>
4396
4397         * gdk/x11/gdkwindow-x11.c: docs
4398
4399         * tests/testtextbuffer.c (logical_motion_tests): add sentence
4400         boundary tests
4401
4402 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
4403
4404         * demos/gtk-demo/Makefile.am: add editable_cells.c,
4405         list_store.c and tree_store.c
4406
4407         * demos/gtk-demo/appwindow.c: remove tearoff item from
4408         File menu, put menubar and toolbar in handle boxes.
4409
4410         * demos/gtk-demo/genincude.pl: various changes to support trees
4411
4412         * demos/gtk-demo/main.c: various changes to support trees
4413
4414         * demos/gtk-demo/stock_browser.c: changed name of demo
4415         to Stock Item and Icon Browser, so geninclude.pl doesn't see
4416         it as child
4417
4418         * demos/gtk-demo/editable_cells.c: new file/demo
4419         * demos/gtk-demo/list_store.c: new file/demo
4420         * demos/gtk-demo/tree_store.c: new file/demo
4421
4422 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
4423
4424         * gtk/gtkrc.c gtk/gtksettings.c: 
4425         g_string_printfa => g_string_append_printf.
4426
4427 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
4428
4429         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
4430         and destroy handler.
4431
4432         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
4433
4434         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
4435         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
4436         Singh <yosh@gimp.org>.
4437
4438 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
4439
4440         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
4441         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
4442
4443         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
4444
4445 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
4446
4447         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
4448         scroll_to_cell delayed code to happen in size_allocate.
4449
4450         * gtk/gtkstyle.c (gtk_default_draw_expander): change
4451         prelight/normal arrow drawing.
4452
4453         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
4454
4455         * gtk/gtktreestore.c: refactor.
4456
4457 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
4458
4459         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
4460         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
4461         centers the child in relation to the to indicator height.
4462
4463 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
4464
4465         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
4466         correct
4467
4468 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
4469
4470         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
4471         property code using g_param_spec_int and changed from
4472         g_value_get_enum to g_value_get_int instead. Probably a better way
4473         to fix the problem :-)
4474
4475 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
4476
4477     * gtk/gtkcellrenderertext.c changed "weight" property type from 
4478       g_param_spec_int to g_param_spec_enum.
4479
4480 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
4481
4482         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
4483         fix: s/Wether/Whether/ in reorderable property description
4484
4485 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
4486
4487         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
4488         start editing when you select with a keyboard.
4489
4490         (gtk_tree_view_button_press_event): much more graceful now.
4491
4492         * gtk/gtkstyle.c: Draw togglebutton better.
4493
4494 2001-09-26  Havoc Pennington  <hp@redhat.com>
4495
4496         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
4497         of passing non-stock label in to gtk_dialog_new_with_buttons
4498
4499         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
4500         debugging updates
4501
4502         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
4503         are private
4504
4505         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
4506         exist, fall back to mnemonic label, not plain label, bug #61184
4507         
4508 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
4509
4510         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
4511         stupid and emitting the signal every time.
4512
4513         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
4514
4515 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
4516
4517        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
4518
4519        * contrib/gdk-pixbuf-xlib/Makefile.am: install
4520        gdk-pixbuf-xlib-2.0.pc.
4521
4522 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
4523
4524         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
4525         problem where menmonic wasn't removed properly when
4526         setting a label when there already is a label.
4527         Also, handle setting the tab label back to the same
4528         value. (#61160, #61161)
4529
4530         * gtk/gtkentry.c (paste_received): Patch from 
4531         Damian Ivereigh to replace selection if there is 
4532         one. (#61121)
4533
4534 2001-09-25  Darin Adler  <darin@bentspoon.com>
4535
4536         * tests/.cvsignore: Ignore new test program.
4537
4538 2001-09-25  Havoc Pennington  <hp@redhat.com>
4539
4540         * gtk/gtktextview.c: fix for #50317
4541         
4542 2001-09-25  Havoc Pennington  <hp@redhat.com>
4543
4544         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
4545         gtk_text_iter_can_insert
4546         
4547         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
4548
4549         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
4550          (gtk_text_iter_can_insert): new function to fix #60282, should
4551         also fix msw's "can paste into empty buffer" bug.
4552
4553         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
4554         "event object,"  #59091
4555
4556         * gtk/gtktextbtree.c: indentation fixes
4557
4558         * gtk/gtktextiter.c (find_by_log_attrs): fixes
4559
4560 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
4561
4562         * configure.in: Version 1.3.9, interface age 0, binary age 0.
4563
4564         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
4565
4566         * NEWS: Updates.
4567
4568 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
4569
4570         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
4571         function for drawing cursors between gtkentry/gtklabel/gtktextview.
4572         Should this be public? It has a bit of an odd interface, but
4573         custom editing widgets probably should be using it.
4574         Function will draw with wider width for taller cursors, and
4575         draws a little indicator arrow to indicate directoin for split 
4576         cursors.
4577
4578         * gtk/gtktextview.c: Add a "cursor_color" property.
4579
4580         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
4581         gtk_text_layout_draw().
4582
4583         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
4584         _gtk_draw_insertion_cursor().
4585
4586 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
4587
4588         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
4589         the behavior where you could turn family_set (etc) back on
4590         and get back the values you had before.
4591
4592         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
4593         g_string_ascii_up() rather than looping through the
4594         string ourself.
4595
4596 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
4597
4598         * gtk/gtktreeviewcolumn.c
4599         (gtk_tree_view_column_set_cell_renderer): Removed
4600         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
4601
4602         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
4603         Patch from Detlef Reichl
4604
4605 2001-09-25  Havoc Pennington  <hp@redhat.com>
4606
4607         * tests/testtextbuffer.c (line_separator_tests): Add tests for
4608         line separators, addresses bug #57428
4609
4610 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
4611
4612         * gtk/gtkentry.c: Make a GtkCellEditable
4613         (get_widget_window_size): Change to let it honor size_allocate
4614         when a CellEditable.
4615
4616         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
4617         editable changes.
4618         (gtk_tree_view_set_cursor): Now you can set the cursor
4619         horizontally, as well as start editing.
4620
4621         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
4622         code to look more like the other check buttons.
4623
4624         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
4625         Change the way we calculate cell size.
4626
4627         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
4628
4629         * demos/gtk-demo/sizegroup.c: Add mnemonics.
4630
4631         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
4632         Fix logic.
4633
4634         * gtk/gtkcellrenderertext.c: Change to be editable.
4635
4636         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
4637
4638         * test/testtreesort.c: Fix misspelling
4639
4640         * test/testreecolumns.c: Add mnemonics.
4641
4642         * test/testreeedit.c: New test program.
4643
4644 2001-09-25  Havoc Pennington  <hp@pobox.com>
4645
4646         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
4647         etc. docs about how these are not going to do what you want for 
4648         the X/win32 ports. Futile attempt to avoid a FAQ...
4649
4650 2001-09-24  James Henstridge  <james@daa.com.au>
4651
4652         * gtk/gtkmarshal.list (VOID): add marshal function types.
4653
4654         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
4655         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
4656         GTK_TYPE_POINTER.
4657         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
4658         with no-op copy/free functions.
4659
4660         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
4661         GtkCTreeNode get_type function.
4662
4663 2001-09-24  Havoc Pennington  <hp@redhat.com>
4664
4665         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
4666         gtktextlayout.c:
4667         Get rid of the newline-that-could-not-be-deleted; buffers may 
4668         now be zero-length. Much easier to fix than expected, once 
4669         I figured out the right way to do it. However, there are 
4670         various subtle bugs introduced by this that will have to get 
4671         sorted out. Please use bugzilla.
4672
4673 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
4674
4675         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
4676         response back from the window manager if our size hasn't changed 
4677         since we won't get a response back from the window manager;
4678         there was code in there to do this, but it was in the wrong
4679         place so if the hints change and the size didn't we'd expect
4680         a response.
4681
4682         Also, optimize the position-only-changed case by running
4683         the resize queue immediately, and clean up some comments
4684         for the changes.
4685
4686 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
4687
4688         * gtk/gtknotebook.h: Add a compat macro that got lost.
4689
4690         * gtk/gtktreestore.c: Doc fixes.
4691
4692         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
4693         leak for windows that receive events after being destroyed.
4694         (#60863, Joshua N. Pritikin)
4695
4696         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
4697         rather than gtk_container_queue_resize().
4698
4699         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
4700         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
4701         gtk_container_child_composite_name. (#60217.)
4702
4703 2001-09-22  Hans Breuer  <hans@breuer.org>
4704
4705         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
4706
4707 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
4708
4709         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
4710         weight value should be an int
4711
4712 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
4713
4714         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
4715         to gtk_menu_scroll_item_visible(). Only call
4716         gtk_menu_scroll_item_visible() if the menu widget has been
4717         realized. Fixes bug #55310.
4718
4719 2001-09-21  Havoc Pennington  <hp@redhat.com>
4720
4721         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
4722         key press to IM context if cursor isn't in an editable location;
4723         bug #58425, patch from Hidetoshi Tajima
4724
4725 2001-09-21  Havoc Pennington  <hp@redhat.com>
4726
4727         Bug #60862
4728         
4729         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
4730         (_gtk_text_btree_unref): fix up mark memory management
4731
4732         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
4733
4734 2001-09-20  Havoc Pennington  <hp@redhat.com>
4735
4736         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
4737         try to handle alignment here, because it's done by PangoLayout
4738         after we set the layout width. Fix from Dov.
4739
4740 2001-09-21  Hans Breuer  <hans@breuer.org>
4741
4742         * gdk/gdk.def :
4743         * gtk/gtk.def : updated externals
4744
4745         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
4746         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
4747         Also handle that Win32 pathes cann't be hard-coded      
4748
4749         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
4750         module, themes etc directory calculations
4751
4752         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
4753         >16 bit right. The size limit within Win9x appears _not_ to be 32767
4754         but slightly smaller ...
4755
4756         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
4757         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
4758
4759         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
4760
4761         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
4762         handling. I'm not sure if it is better now, but at least not worse
4763
4764         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
4765
4766         * gdk/win32/gdkwin32.h : reflect recent API restrictions
4767
4768 2001-09-21  Matt Wilson  <msw@redhat.com>
4769
4770         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
4771         radio_menu_item->group to NULL after removing it from the list, as
4772         it is no longer in the group. (#60869)
4773
4774         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
4775
4776 2001-09-20  Havoc Pennington  <hp@pobox.com>
4777
4778         * configure.in (PANGO_REQUIRED_VERSION)
4779         (ATK_REQUIRED_VERSION): add variables and checks for specific 
4780         versions of dependencies. Previously we didn't verify the 
4781         Pango or ATk versions.
4782
4783 2001-09-09  Havoc Pennington  <hp@pobox.com>
4784
4785         * gtk/gtktextiter.c: fool with indentation
4786         (gtk_text_iter_in_range): add g_return_if_fail
4787
4788 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
4789
4790         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
4791         ref count on new tag to be 1.  Update doc.  (#60836)
4792
4793 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
4794
4795         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
4796         call to gdk_image_new_bitmap(). (#59094, reported by
4797         by Sven Neumann)
4798
4799 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
4800
4801         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
4802         day, as well as the current month and year.
4803         (#59047, reported by Vitaly Tishkov)
4804
4805 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
4806
4807         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
4808         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
4809         
4810 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
4811
4812         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
4813
4814         (build_option_menu): add func argument, connect ::changed
4815         signal to option menu instead of connecting the ::activate
4816         signal to the menu items,
4817
4818         (toplevel): get rid of RADIOMENUTOGGLED macro,
4819
4820         (list_toggle_sel_mode), (clist_toggle_sel_mode),
4821         (ctree_toggle_line_style), (ctree_toggle_expander_style),
4822         (ctree_toggle_justify), (ctree_toggle_sel_mode),
4823         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
4824         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
4825
4826         (notebook_type_changed): merged standard_notebook(),
4827         notabs_notebook(), scrollable_notebook() and borderless_notebook()
4828         into notebook_type_changed()
4829
4830         (create_list), (create_ctree), (create_notebook),
4831         (create_progress_bar): changed OptionMenuItem arrays into
4832         gchar * arrays. Removed "Extended" item where used.
4833
4834         Fixes bug #59885
4835
4836 2001-09-20  Sven Neumann  <sven@gimp.org>
4837
4838         * configure.in
4839         * gdk/Makefile.am
4840         * gtk/Makefile.am
4841         * gtk/gtkselection.c
4842         * gtk/gtktreeview.c
4843         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
4844
4845 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
4846
4847         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
4848         a missing pango_layout_iter_free ().
4849
4850 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
4851
4852         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
4853         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
4854
4855         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
4856         the function definition so we don't accidentally rely on
4857         the compat #define from gtk_radio_menu_item_group.
4858         (#60782, Jeff Franks)
4859
4860 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
4861
4862         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
4863         incorrect values for top, right and bottom due to cut-and-paste
4864         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
4865
4866 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
4867
4868         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
4869         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
4870         window, not just on the client leader. (#58463)
4871
4872 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
4873
4874         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
4875
4876         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
4877         non-public _gtk_menu_item_set_placement.
4878
4879         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
4880
4881 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
4882
4883         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
4884           gdk/linux-fb/gdkcolor-fb.c:
4885         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
4886         (#59723)
4887
4888 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
4889
4890         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
4891         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
4892         #59723)
4893
4894 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
4895
4896         Patch from Frank Belew #59037 for Solaris compilation.
4897
4898         * gtk/maketypes.awk: Change syntax slightly for a call
4899         to sub(), apparently making awk on Solaris happier.
4900
4901         * gtk/gtktreeview.c: Remove C++ comments.
4902
4903 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
4904
4905         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
4906         to handle '99% of the time. (#60473, reported by Christian Rose)
4907
4908         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
4909         which no longer exists. (#60379, reported by Vitaly Tishkov)
4910
4911 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
4912
4913         * Released 1.3.8.
4914
4915         * gdk/Makefile.am: kill EXTRA_DIST clearing.
4916         
4917 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
4918
4919         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
4920         as its broken in automake 1.4, add explicit object rule to
4921         generate this.
4922         
4923         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
4924         get rid of uneccessary stamps, group stuff more logically, and build
4925         sources due to object rules. fix srcdir!=builddir.
4926
4927 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
4928
4929         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
4930         incorrect parameter to compute_double_length
4931         (#58680, patch from Matthias Clasen)
4932
4933         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
4934
4935         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
4936
4937         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
4938         for GDK_RELEASE_MASK to avoid warnings with Forte.
4939
4940         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
4941         break; statements.
4942
4943 2001-09-18  Alex Larsson  <alexl@redhat.com>
4944
4945         * gtk/gtkcheckbutton.c:
4946         * gtk/gtkradiobutton.c:
4947         Don't draw with GTK_STATE_ACTIVE.
4948
4949         * gtk/gtkclist.c:
4950         * gtk/gtkctree.c:
4951         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
4952
4953         * gtk/gtktextdisplay.c:
4954         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4955         unfocused with base_gc [GTK_STATE_ACTIVE].
4956         
4957         * gtk/gtkentry.c:
4958         Add select all menu-item.
4959         Default cursor color is red.
4960         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4961         unfocused with base_gc [GTK_STATE_ACTIVE].
4962
4963         * gtk/gtklabel.[ch]:
4964         Add keynav + menu to selectable lables.
4965         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4966         unfocused with base_gc [GTK_STATE_ACTIVE].
4967
4968         * gtk/gtkfilesel.c:
4969         Add drag and drop support.
4970
4971         * gtk/gtkstyle.c:
4972         (This was checked in earlier)
4973         New default values for text/base SELECTED and ACTIVE
4974         
4975 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
4976
4977         * configure.in: up version to 1.3.8, interface age 0,
4978         binary age 0, depend on glib 1.3.8.
4979
4980         * NEWS: 1.3.8 updates.
4981
4982 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
4983
4984         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
4985         the editing code
4986
4987         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
4988         reason to call it beyond emiting the two signals.
4989
4990         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
4991         to GtkEntry.
4992
4993 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
4994
4995         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
4996           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
4997         PangoFontDescription.
4998
4999         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
5000         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
5001         structure.
5002   
5003         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
5004
5005         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
5006         direct access to style->font. Deprecate gtk_style_ref/unref.
5007   
5008         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
5009         Remove gtk_style_ref/unref with g_object_ref/unref.
5010   
5011         * gtk/gtkcalendar.c: Remove leftover macros accessing
5012         style->font.
5013   
5014         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
5015         variable.
5016   
5017         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
5018         style->font.
5019
5020 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
5021
5022         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
5023         "can_activate" properties in favor of
5024         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
5025         and GTK_CELL_RENDERER_MODE_EDITABLE
5026
5027 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
5028
5029         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
5030         editable widgets.  This function is private, and should only be
5031         used by GtkTreeView.
5032
5033 2001-09-18  Matt Wilson  <msw@redhat.com>
5034
5035         * docs/Makefile.am (EXTRA_DIST): don't use += before =
5036
5037         * docs/faq/Makefile.am (EXTRA_DIST): likewise
5038
5039         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
5040         
5041         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
5042         (EXTRA_HEADERS): likewise
5043
5044         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
5045         (EXTRA_HEADERS): likewise
5046         (EXTRA_DIST): likewise
5047         (CLEANFILES): likewise
5048
5049         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
5050
5051         * tests/Makefile.am (EXTRA_DIST): likewise
5052         
5053         * Makefile.am (install-data-local): changed to use
5054         install-data-hook, which runs after install-pkgconfigDATA, so that
5055         the pkgconfigdir will have been created and populated first.
5056
5057 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
5058
5059         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
5060         be the last big GtkTreeView API change.
5061
5062         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
5063         replace with "activate" and "start_editing".  Also, added a
5064         "can_activate" and "can_edit" property.
5065
5066         * gtk/gtktreeviewcolumn.c: modify to use above.
5067
5068 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
5069
5070         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
5071
5072 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
5073
5074         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
5075         icon instead of one with ugly white background.
5076
5077 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
5078
5079         * demos/gtk-demo/stock_browser.c (id_to_macro): make
5080         the uppercasing work. (#59550)
5081
5082 2001-09-14  Jakub Steiner <jimmac@ximian.com>
5083
5084         * gtk/stock-icons/dialog_error.png:
5085         * gtk/stock-icons/dialog_question.png: more road signs
5086
5087 2001-09-13  Jakub Steiner <jimmac@ximian.com>
5088
5089         * gtk/stock-icons/dialog_question.png:
5090         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
5091           like a road sign.
5092
5093 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
5094
5095         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
5096         signals to make them more clear.  Also, change ::range_changed to
5097         ::row_changed.
5098         * gtk/gtktreemodel.c: Adjust to interface change
5099         * gtk/gtktreemodel.h: ditto
5100         * gtk/gtktreemodelsort.c: ditto
5101         * gtk/gtktreestore.c: ditto
5102         * gtk/gtkliststore.c: ditto
5103         * gtk/gtktreeview.c: ditto
5104         * tests/testtreecolumns.c: ditto
5105         * gtk/gtkmarshal.list: Actually remove a marshaller!
5106
5107 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
5108
5109         * gtk/gtktextview.c
5110         Add support for Ctrl+Up/Down arrow to move cursor to beginning
5111         of previous/next paragraph. If within a paragraph cursor moves to
5112         beginning of that paragraph.
5113
5114 2001-09-12  Jakub Steiner <jimmac@ximian.com>
5115
5116         * gtk/stock-icons/dialog_question.png: replacing the shaky
5117           question mark with a sans-serif one.
5118         * gtk/stock-icons/stock_top.png, stock_bottom.png,
5119      stock_first.png, stock_last.png: using the new style arrows
5120         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
5121      colors.
5122         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
5123      color.
5124         * gtk/stock-icons/stock_zoom*: anti-aliased
5125         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
5126      '-' with a '_', removed the wrong files
5127
5128 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
5129  
5130         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
5131  
5132         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
5133         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
5134         than in gtk-2.0/major.minor.micro/<type>/. This
5135         works better for a search path for modules.
5136  
5137         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
5138         gtk_binary_version variable holding major.minor.(micro-binary_age).
5139  
5140         * modules/input/Makefile.am (moduledir): Fix installation
5141         directory to match change in lookup location.
5142  
5143         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
5144         suffixes. Needs to be handled in g_module_build_path().
5145
5146         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
5147         appropriate.
5148  
5149 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
5150
5151         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
5152         causing RC properties not to work.
5153
5154 2001-09-11  Jakub Steiner <jimmac@ximian.com>
5155
5156         * gtk/stock-icons/dialog-error.png: less drastic
5157         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
5158           "STOP" is international enough.
5159         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
5160         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
5161
5162 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
5163
5164         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
5165         (add|remove)_selection_clipboard symmetric. (bug #59836)
5166
5167         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
5168         Avoid SEGV for empty tree. (bug #60243)
5169
5170 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
5171
5172         * tests/testgtk.c (create_idle_test): slight fix for
5173         g_object_set() not usable for nesting anymore.
5174
5175         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
5176         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
5177         properties, supply ::shadow_type properties instead as most
5178         other widgets do.
5179
5180 2001-09-10  Alex Larsson  <alexl@redhat.com>
5181
5182         * demos/gtk-demo/stock_browser.c:
5183         * gdk/gdkcolor.c:
5184         * gdk/gdkfont.c:
5185         * gdk/gdkcursor.c:
5186         * gdk/gdkevents.c:
5187         * gdk/gdkrectangle.c:
5188         * gtk/gtktypeutils.c:
5189         Update to use the new g_boxed_type_register_static API.
5190
5191 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
5192
5193         * gtk/gtktreestore.c:
5194         Fix looping in gtk_tree_store_init() waiting for zero random int.
5195
5196 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
5197
5198         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
5199         behaviour which havoc broke. they have to default to 1.0 for
5200         expand behaviour.
5201
5202         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
5203
5204 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
5205
5206         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
5207         Amend previous change to avoid runtime error in g_param_spec_ref()
5208
5209 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
5210
5211         * gtk/gtkrc.c (insert_rc_property): Fix blank line
5212         in the wrong place.
5213
5214 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
5215
5216         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
5217         do a lookup immediately after creating style->property_cache,
5218         since bsearch crashes on zero length for Solaris.
5219         (Found by Padraig O'Briain.)
5220
5221 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
5222
5223         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
5224         Really return NULL if not set.
5225         (gtk_widget_init): Remove unused varaible.
5226         
5227 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
5228
5229         * configure.in:
5230         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
5231         in cvs.
5232
5233 2001-09-08  Havoc Pennington  <hp@pobox.com>
5234
5235         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
5236         people might want to use
5237
5238 2001-09-08  Havoc Pennington  <hp@pobox.com>
5239
5240         * gtk/gtkalignment.c (gtk_alignment_class_init): default
5241         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
5242
5243         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
5244
5245         * gtk/gtktextiter.c: fix docs
5246         (gtk_text_iter_spew): get rid of this
5247
5248         * gtk/gtklayout.c: docs
5249
5250         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
5251         to center image and label together, instead of having image on
5252         left and label centered, patch/suggestion from Jacob
5253
5254         * gtk/gtkdialog.c: docs
5255
5256 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
5257
5258         * gtk/gtkliststore.c: Write documentation
5259         * gtk/gtktreestore.c: Write documentation
5260
5261 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
5262
5263         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
5264         with GArray and bsearch(), to remove dependency on a still
5265         evolving interface that we want to keep private to glib/gobject. 
5266
5267 2001-09-08  Havoc Pennington  <hp@pobox.com>
5268
5269         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
5270         docs fixes
5271
5272         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
5273
5274         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
5275
5276         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
5277
5278         * gtk/gtkscrolledwindow.h: docs fixes
5279
5280         * gtk/gtkimage.c (gtk_image_new): docs fixes
5281
5282 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
5283
5284         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
5285         false alarm  constness warning with a cast.
5286
5287         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
5288         for the inside-gdk case.
5289
5290 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
5291
5292         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
5293         remove g_print.
5294
5295         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
5296         change models, #59899
5297
5298 2001-09-07  Havoc Pennington  <hp@pobox.com>
5299
5300         * gtk/gtkmain.c: move some docs inline
5301
5302 2001-09-07  Havoc Pennington  <hp@pobox.com>
5303
5304         * gtk/gtk.h: tsk tsk, jrb broke the build
5305
5306 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
5307
5308         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
5309         Removed 'fill' attribute.  It was silly b/c that was a property of
5310         the cell renderer, anyway.
5311         (gtk_tree_view_column_render): Actually render the packed
5312         renderers.
5313         * doc/tree-column-sizing.txt: initial devel documentation.
5314         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
5315         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
5316
5317         * tests/testtreefocus.c: fix up to reflect above changes.
5318         * tests/testtreeview.c: ditto
5319         * demos/gtk-demo/stock_browser.c: ditto
5320
5321 2001-09-07  Alex Larsson  <alexl@redhat.com>
5322
5323         * gdk/linux-fb/gdkcolor-fb.c:
5324         Removed unused function.
5325         
5326         * gdk/linux-fb/gdkdrawable-fb2.c
5327         * gdk/linux-fb/gdkfont-fb.c:
5328         Use PangoLanguage functions.
5329
5330         * gdk/linux-fb/gdkinput.c:
5331         * gdk/linux-fb/gdkselection-fb.c:
5332         Fix const warnings.
5333         
5334         * gdk/linux-fb/gdkwindow-fb.c:
5335         Fix warning. Implement gdk_window_set_icon_list() and
5336         gdk_window_get_frame_extents(). (No icon support yet though.)
5337
5338         * gtk/gtkwindow.c (gtk_window_get_position):
5339         If window->frame is set get the extents of it instead.
5340         
5341 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
5342
5343         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
5344         Make the default default colormap the GdkRGB colormap,
5345         not the system colormap.
5346
5347         * gtk/gtkinvisible.c (gtk_invisible_init) 
5348           gtk/gtkwindow.c (gtk_window_init): Set the current
5349         colormap, as returned by _gtk_widget_peek_colormap()
5350         on the widget.
5351
5352         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
5353         to GTK+. Make it return %NULL instead of the default
5354         colormap if no colormap has explicitely been pushed.
5355
5356         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
5357         colormaps on ancestral widgets before defaulting the
5358         the system default colormap.
5359
5360         * docs/Changes-2.0.txt: explain colormap changes.
5361
5362 2001-09-07  Havoc Pennington  <hp@redhat.com>
5363
5364         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
5365         #57424
5366
5367 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
5368
5369         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
5370         make gdk_set_use_xshm a noop. Remove --no-xshm command line
5371         option. If we aren't autodetecting properly, we need
5372         to fix the problem, or at least make it an environment
5373         variable setting, to avoid problems with propagating
5374         to embedded children, plugins, etc.
5375
5376         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
5377
5378         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
5379         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
5380         New function to render a pixmap and mask for a particular colormap.
5381
5382         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
5383         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
5384         of internal implementation of the same.
5385
5386 2001-09-07  Havoc Pennington  <hp@redhat.com>
5387
5388         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
5389         debug code that seems to have caused a breakpoint in valid cases
5390         
5391         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
5392         pointer on the first view when adding the second view, fixes
5393         crash when closing gtk-demo text test with active selection
5394
5395         * gtk/gtktextbuffer.c
5396         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
5397         clipboards in the list of clipboards - probably fixes #59836
5398
5399 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
5400
5401       Make gdkx.h the only installed header from gdk/x11.
5402       All structures in gdk/x11 are opaque.
5403
5404         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
5405         Don't install gdk{drawable,pixmap,window}-x11.h.
5406
5407         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
5408         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
5409         GdkVisualClass into C files.
5410
5411         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
5412
5413         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
5414         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
5415         Add public functions to replace previously exported direct
5416         structure access.
5417         gdk_x11_colormap_get_{xdisplay,xcolormap} 
5418         gdk_x11_cursor_get_{xdisplay,xcursor},
5419         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
5420         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
5421         gdk_x11_gc_get_{xdisplay,ximage}
5422         
5423         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
5424         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
5425
5426       Fix a number of variables and functions that were exported
5427       "accidentally" from GDK.
5428
5429         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
5430         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
5431         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
5432         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
5433         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
5434         gdk_event_queue_find_first, gdk_event_queue_remove_link,
5435         gdk_event_queue_append, gdk_event_button_generate,
5436         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
5437
5438         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
5439            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
5440         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
5441         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
5442         gdk_use_xshm, gdk_input_ignore_core.
5443
5444         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
5445         #defines to namespace functions into the private _gdk_ 
5446         namespace.
5447
5448         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
5449         to replace gdk_parent_root exported variable. Adjust and
5450         deprecate GDK_ROOT_PARENT().
5451
5452         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
5453         GDK_ROOT_PARENT usage, remove includes of port-specific
5454         headers.
5455
5456         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
5457         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
5458         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
5459
5460         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
5461         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
5462         gdk_wm_delete_window functions, gdk_wm_take_focus, 
5463         use gdk_atom_intern() instead.
5464
5465         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
5466           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
5467           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
5468           gtk/gtkselection.c 
5469         Unexport gdk_selection_property, just use 
5470         gdk_atom_intern ("GDK_SELECTION").
5471
5472         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
5473         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
5474         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
5475         GdkVisualprivate, gdk_x11_gc_flush.
5476
5477       Make a number of public exports of variables into functions
5478       to increase encapsulation.
5479
5480         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
5481         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
5482         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
5483
5484         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
5485         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
5486         gdk_error_warnings.
5487
5488         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
5489           docs/Changes-2.0.txt: 
5490         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
5491         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
5492         Add gdk_x11_get_default_xdisplay().
5493
5494         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
5495         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
5496         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
5497         Don't export gdk_progclass, move --class command line
5498         option and handling to common portion of GDK.
5499
5500       Miscellaneous fixes:
5501
5502         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
5503         g_return_val_if_fail that should have been g_return_if_fail.
5504
5505         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
5506         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
5507
5508         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
5509         X11 dependency.
5510
5511         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
5512         Remove unused gdk_key_repeat_disable/restore.
5513
5514         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
5515         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
5516         Remove unused gdk_null_window_warnings variable.
5517
5518         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
5519         it can be retrieved from the repository; it is too far
5520         from functional to be worth having people check out;
5521         it would be easier to start from scratch, I suspect.
5522
5523         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
5524
5525         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
5526         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
5527         Fix some accidentally global variables and unused global variables.
5528
5529         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
5530         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
5531         Fix some accidentally global variables and unused global variables.
5532
5533       Add some space for future expansion to multihead.
5534
5535         * gdk/gdkdrawable.h: Add four reserved function pointers
5536         for future expansion of GdkDrawableClass.
5537
5538         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
5539         where we can put a GdkScreen * later.
5540
5541 2001-09-07  Havoc Pennington  <hp@redhat.com>
5542
5543         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
5544         adjustments after validating destination yrange; fixes #53918
5545         (This may cause other issues, but I hope it won't)
5546         
5547 2001-09-05  Havoc Pennington  <hp@redhat.com>
5548
5549         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
5550         line into start line, update the character counts in parent nodes; 
5551         caused a bug when end and start line had different parent nodes.
5552
5553 2001-08-30  Havoc Pennington  <hp@redhat.com>
5554         
5555         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
5556         assertion that tag is in a table
5557
5558 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
5559
5560         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
5561         g_strcasecmp on NULL strings. (#59058)
5562
5563 2001-09-06  Alex Larsson  <alexl@redhat.com>
5564
5565         * gtk/gtkbin.c:
5566         * gtk/gtkfontsel.c:
5567         * gtk/gtkspinbutton.c:
5568         * gtk/gtktipsquery.c:
5569         Use GtkType/GType instead of uint.
5570
5571 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
5572
5573         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
5574         sort column.
5575
5576         * gtk/gtktreestore.c (gtk_list_store_init): ditto
5577
5578         * gtk/gtktreesortable.c: add docs.
5579
5580 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
5581
5582         * Version 1.3.7
5583
5584         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
5585         docs for gtk-config
5586
5587         * modules/input/Makefile.am (install-data-local): Don't
5588         run gtk-query-immodules if DESTDIR is set.
5589
5590         * NEWS: Various additions.
5591
5592 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
5593
5594         * NEWS: updates for 1.3.7 release.
5595
5596 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
5597
5598         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
5599         handle default sort feature
5600
5601         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
5602         new function to handle default sort.
5603         (gtk_tree_sortable_has_default_sort_func): check if default sort
5604         is set.
5605
5606         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
5607         handle default sort feature
5608
5609 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
5610
5611         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
5612         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
5613         #59731
5614
5615 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
5616
5617         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
5618         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
5619         time, #59727
5620
5621         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
5622         correctly.
5623
5624 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
5625
5626         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
5627         so that we don't eternally update the keymap after we
5628         get a change notification.
5629
5630         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
5631         incorrect cast.
5632
5633 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
5634
5635         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
5636         it working. It mostly works now, although there're still a few issues
5637         to be worked out.
5638
5639         * tests/testtreesort.c (main): changes to have a better test
5640         application for the GtkTreeModelSort.
5641
5642 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
5643
5644         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
5645         fix for bug #59222.
5646
5647         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
5648         gpointer search_data argument to function definition and
5649         prototype, to match GtkTreeViewSearchEqualFunc typedef.
5650
5651 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
5652
5653         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
5654         per jrb's request.
5655
5656 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
5657
5658         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
5659
5660         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
5661
5662 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
5663
5664         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
5665         Instead of always mirroring the selection to a single PRIMARY
5666         selection, allow it to be mirrored to any number of clipboards.
5667
5668         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
5669         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
5670
5671         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
5672         GtkClipboard argument, and for paste_clipboard, the
5673         @override_location argument from @paste_primary.
5674
5675         * gtk/gtktextview.c: Adapt to above change.
5676         
5677 2001-08-30  Havoc Pennington  <hp@redhat.com>
5678
5679         * gtk/gtktextview.c (invalidated_handler): put validate idle at
5680         resize - 2 just for flexibility
5681
5682 2001-08-30  Havoc Pennington  <hp@redhat.com>
5683
5684         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
5685         object from the empty-child-anchor case by drawing a little box.
5686         
5687         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
5688         if the child anchor has no anchored widgets - fixes #59328.
5689
5690         Also, remove bizarre deletion of preedit string that seems to have
5691         gotten in here somehow.
5692
5693 2001-08-30  Havoc Pennington  <hp@redhat.com>
5694
5695         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
5696         to #58420 from Hidetoshi Tajima and Matthias Clasen
5697
5698 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
5699
5700         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5701         change color when the GtkTreeView loses focus.
5702
5703         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
5704         ditto.
5705         
5706         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
5707
5708 2001-08-28  Havoc Pennington  <hp@pobox.com>
5709
5710         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
5711
5712 2001-08-28  Havoc Pennington  <hp@pobox.com>
5713
5714         * demos/gtk-demo/main.c (setup_default_icon): add default icon
5715
5716         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
5717         warning fix
5718         (gtk_radio_button_new_with_label): warning fix
5719
5720         * gtk/gtkdnd.c: used some random GtkImage private structs, 
5721         update to reflect GtkImage changes
5722
5723         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
5724         whether the hint is supported, just always set the icon. A task
5725         list might want to use it even if the WM doesn't, and the WM may
5726         change over time. Also, XDeleteProperty() if list == NULL.
5727
5728         * gtk/gtkwindow.c (gtk_window_set_icon_list)
5729         (gtk_window_get_icon_list)
5730         (gtk_window_set_icon)
5731         (gtk_window_get_icon)
5732         (gtk_window_set_default_icon_list)
5733         (gtk_window_get_default_icon_list):
5734         new functions
5735
5736         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
5737
5738         * gtk/gtkimage.c: Implement property support, bug #59408
5739
5740         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
5741         on reparent-without-removing-first a bit more helpful.
5742         Let's just destroy this FAQ.
5743
5744 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
5745
5746         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
5747         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
5748
5749 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
5750
5751         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
5752         of use_text_format to the end of the function. (#56447)
5753
5754 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
5755
5756         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
5757         only in response to an area_prepared signal.
5758
5759 2001-08-28  Alex Larsson  <alexl@redhat.com>
5760
5761         * gtk/gtkwidget.c (gtk_widget_class_init):
5762         Make unrealize GTK_RUN_LAST.
5763
5764 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
5765
5766         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
5767         with_label and with_mnemonic should create radio buttons, not
5768         check buttons
5769
5770 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
5771
5772         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
5773         * tests/treestoretest.c (make_window): ditto
5774         * demos/gtk-demo/main.c (create_tree): ditto
5775         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
5776
5777 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
5778
5779         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
5780         GTK selection types rather than GtkTreeSelectionMode.
5781
5782         * docs/Changes-2.0: Add comment about selection change.
5783
5784 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
5785
5786         * gtk/gtkenums.h (GtkSelectionMode): deprecate
5787         GTK_SELECTION_EXTENDED.
5788
5789         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
5790         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
5791
5792         * gtk/gtkctree.c: ditto
5793
5794         * gtk/gtklist.c: ditto
5795
5796         * gtk/gtktree.c: ditto
5797
5798 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
5799
5800         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
5801         of typos in compat macros. (#59624, Skip Montaro)
5802
5803 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
5804
5805         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
5806         macro.
5807
5808          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
5809  
5810         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
5811         interface to be a standard setter from gtk_menu_item_right_justify.
5812         (gtk_menu_item_get_right_justified): a getter to go with the setter
5813
5814         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
5815         gtk_menu_item_right_justify.
5816
5817         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
5818         gtk_menu_item_set_right_justified.
5819  
5820 2001-08-27  Jens Finke <jens@gnome.org>
5821
5822         * gtk+.spec.in: Updated to match gpp requirements, reworked the
5823         files section to make it work with 1.3.x releases.
5824
5825 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
5826
5827         * gtk/gtkbutton.[ch]:
5828         Add properties for labels, mnemonics and stock items.
5829         Added C accessor functions for the properties.
5830         Removed deprecated button->child.
5831
5832         * gtk/gtkradiobutton.c:
5833         * gtk/gtktogglebutton.c:
5834         Update to use the functions in GtkButton.
5835
5836         * gtk/gtkcheckbutton.c:
5837         Update to use the functions in GtkButton.
5838         Changed size allocation of child. Now only gets as much
5839         space as it requests.
5840
5841         * gtk/gtkclist.c:
5842         Don't use GtkButton->child
5843
5844         * gtk/gtklabel.c:
5845         Fixed typo in docs
5846         
5847 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
5848
5849         * tests/testgtk.c:
5850         * tests/Makefile.am:
5851         Ressurect the properties test.
5852         I don't care if it is inferior, I just want to test my property code.
5853
5854 2001-08-25  Chema Celorio  <chema@celorio.com>
5855
5856         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
5857         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
5858         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
5859
5860 2001-08-24  Havoc Pennington  <hp@pobox.com>
5861
5862         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
5863         these are already in gtkmenu.h, and the copies
5864         here were broken.
5865
5866         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
5867
5868         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
5869         special-case bitmaps to allow no colormap
5870         (bitmap1): implement no-colormap bitmap-getting
5871         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
5872         alpha
5873         (rgb8): indentation
5874         (rgb1a, rgb1): change the way we read the data out of the image, 
5875         old way didn't seem to work quite right.
5876
5877         I'm pretty sure a lot of the rgbconvert code is still broken.
5878         
5879         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
5880         above position constraint (I really intended to do this before,
5881         don't know what's up with that)
5882         (gtk_XParseGeometry): shut up gcc
5883
5884         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
5885         and "0" should have been. remove the attempted 4-bytes-at-once
5886         optimization, it was totally broken.
5887
5888 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
5889
5890         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
5891         on push to buttons (based on patch from Soeren Sandmann, #54720)
5892
5893           - Add child_displacement_x/y style properties to control how far the
5894             child moves when the button is depressed.
5895
5896           - Add non-exported function _gtk_button_set_depressed to clean
5897             up the handling of the in/out shadow and separate it frmo
5898             widget->state.
5899
5900           - Lots of code cleanup and simplification of state handling
5901             for GtkButton/GtkToggleButton.
5902  
5903         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
5904         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
5905
5906 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
5907
5908         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
5909         and make gtk_image_new() take no arguments. The compiler will
5910         catch it, and it is vastly more useful than having
5911         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
5912
5913         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
5914         to add tearoff-title property (#51319, Lee Mallabone)
5915
5916 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
5917
5918         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
5919         gtk_menu_item_configure(). (#58925)
5920
5921 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
5922
5923         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
5924         "use_align" to give people the option to just make a cell visible.
5925
5926         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
5927         we were scrolling past the end of the tree.
5928
5929         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
5930         rename gtk_tree_view_column_pack_start_cell_renderer to
5931         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
5932
5933 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
5934
5935         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
5936         a stray g_object_ref() left over from gtk_object_ref/sink.
5937         (Pointed out by Josh Pritikin.)
5938
5939 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
5940
5941         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
5942         to gtk_container_get_children. Added deprecated compatibility
5943         macro. (Suggested by Vitaly Tishkov, #59051)
5944
5945         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
5946         calls.
5947
5948 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
5949
5950         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
5951         gtk_menu_bar_append/prepend/insert, forgot to do this
5952         when we deprecated gtk_menu_append/prepend/insert.
5953
5954         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
5955         compat macros.
5956
5957         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
5958         renamed by compat macro.
5959
5960         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
5961         gtk_font_selection_dialog_get_font(). (Suggested by
5962         Vitaly Tishkov, #59383)
5963
5964 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
5965
5966         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
5967         Rename from gtk_text_tag_table_size(). (#59366)
5968
5969 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
5970
5971         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
5972         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
5973         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
5974         (#59173).
5975
5976 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
5977
5978         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
5979         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
5980         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
5981
5982 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
5983
5984         [ Patch from Sebastian Wilhelmi, 52790 ]
5985
5986         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
5987
5988         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
5989         Move compatibility macros from g[dt]kcompat.h to within 
5990         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
5991
5992         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
5993
5994         * demos/Makefile.am demos/gtk-demo/Makefile.am 
5995           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
5996           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
5997
5998         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
5999                  testpixbuf.c}: Fix usages of deprecated functions.
6000
6001 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
6002
6003         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
6004         when changing models.
6005
6006 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
6007
6008         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
6009         We check the current event for modifiers rather than try to trap
6010         all presses.
6011
6012 2001-08-22  Anders Carlsson  <andersca@gnu.org>
6013
6014         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
6015         It's LIST_STORE, not LISTSTORE.
6016
6017 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
6018
6019         * gtk/gtk.h: Remove commented out gtkpacker reference.
6020
6021 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6022
6023         * configure.in (all_loaders): Add tga loader, 
6024         patch by Nicola Girardi. (#56067)
6025
6026 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
6027
6028         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
6029         a little.  More needs to be done tomorrow.
6030
6031 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
6032
6033         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
6034
6035 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
6036
6037         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
6038         reported by Kristian Rietveld <kristian@planet.nl> to handle row
6039         == NULL.
6040         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
6041         <kristian@planet.nl> to change destroy order.
6042
6043 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
6044
6045         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
6046         correct marshaller.
6047
6048 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
6049
6050         * gtk/gtkliststore.c: Fix up warnings, #58928.
6051
6052         * gtk/gtktreeselection.h: Change signal prototype, #58647
6053
6054         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
6055         #59221.
6056
6057         * gtk/gtkstyle.c: Actually prelight arrow, #50981
6058         
6059 2001-08-18  Hans Breuer  <hans@breuer.org>
6060
6061         * gdk/gdk.def : updated externals
6062
6063         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
6064         is required to get (at least) visible in entry fields. Some selections
6065         are really handled now - even on win32 - but copying via middle
6066         mouse button into a different app needs to wait ... 
6067
6068         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
6069         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
6070
6071         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
6072         handling. I'm not sure if it is better now, but at least not worse
6073
6074         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
6075         with SetWindowPos () which allows more fine-tuning backing-store wise
6076
6077         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
6078         Also changed move/resize to be more like the X version.
6079
6080         * gtk/gtk.def : updated externals
6081
6082 2001-08-19  Sven Neumann  <sven@gimp.org>
6083
6084         * gtk/gtktooltips.c
6085         * tests/testtreesort.c
6086         * tests/treestoretest.c: inserted some casts to get rid of compiler
6087         warnings.
6088
6089 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
6090
6091         * gtk/gtktreeviewcolumn.c
6092         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
6093
6094         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
6095         (_gtk_tree_view_find_node): If *node is NULL,
6096         *tree should be NULL too.
6097
6098         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
6099         column/renderers.
6100         * tests/testtreecolumns.c: ditto
6101         * tests/testtreefocus.c: ditto
6102         * tests/testtreesort.c: ditto
6103         * tests/testtreeview.c: ditto
6104         * tests/treestoretest.c: ditto
6105
6106 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
6107
6108         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
6109         signals; is_expander/is_expanded.
6110
6111         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
6112         pixbufs.
6113
6114         * gtk/gtktreeview.c: set above properties.
6115
6116 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
6117
6118         * gtk/gtkwidget.h: Really remove set_default_style().
6119
6120         * docs/Changes-2.0.txt: added a note about
6121         gtk_widget_push/pop/set_default_style.
6122
6123 2001-08-18  Havoc Pennington  <hp@pobox.com>
6124
6125         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
6126         hints_changed in addition to the other cases.
6127         (gtk_window_move_resize): include last position from configure
6128         notify in debug spew
6129
6130 2001-08-18  James Henstridge  <james@daa.com.au>
6131
6132         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
6133         second argument to the weak ref notify, cleaning up some uglyness.
6134         (gtk_accel_group_attach): remove and add the weak notifier when
6135         changing the accel groups slist.
6136         (gtk_accel_group_detach): same here.
6137
6138 2001-08-17  Darin Adler  <darin@bentspoon.com>
6139
6140         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
6141         missing parameters to utf8 functions to make it compile.
6142
6143 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
6144
6145         * gtk/gtktreeprivate.h:
6146         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
6147         (gtk_tree_view_init), (gtk_tree_view_set_property),
6148         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
6149         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
6150         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
6151         (gtk_tree_view_set_destroy_count_func),
6152         (gtk_tree_view_set_enable_search),
6153         (gtk_tree_view_get_enable_search),
6154         (gtk_tree_view_get_search_column),
6155         (gtk_tree_view_set_search_column),
6156         (gtk_tree_view_get_search_equal_func),
6157         (gtk_tree_view_set_search_equal_func),
6158         (gtk_tree_view_search_dialog_destroy),
6159         (gtk_tree_view_search_position_func),
6160         (gtk_tree_view_interactive_search),
6161         (gtk_tree_view_search_delete_event),
6162         (gtk_tree_view_search_button_press_event),
6163         (gtk_tree_view_search_key_press_event),
6164         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
6165         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
6166         * gtk/gtktreeview.h:
6167         Add heavily modified patch from Kristian Rietveld to handle
6168         interactive searching.
6169
6170 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
6171
6172         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
6173         string parameter.
6174
6175         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
6176         GtkMenuShell::selection_done, now that we have it, instead of 
6177         ::deactivate so we're not tearing the menu apart and notify
6178         the user prematurely.
6179
6180 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
6181
6182         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
6183         window, clear window->need_default_position to avoid infinite loops.
6184         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
6185
6186 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
6187
6188         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
6189         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
6190         (gtk_tree_view_set_property): don't cast possible NULL objects.
6191         (gtk_tree_view_destroy): reset the model to NULL.
6192
6193         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
6194         parent_class handler.
6195
6196 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6197
6198         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
6199
6200 2001-08-17  Anders Carlsson  <andersca@gnu.org>
6201
6202         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
6203         point numbers so that the result will be floating point.
6204
6205 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6206
6207         * tests/testgtk.c (create_handle_box): 
6208         (create_toolbar): Replace gtk_window_set_policy calls by
6209         gtk_window_set_resizable.
6210
6211 2001-08-16  Jakub Steiner <jimmac@ximian.com>
6212
6213         * gtk/stock-icons/dialog_info.png: new style bulb
6214         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
6215         * gtk/stock-icons/dialog_warning.png: need a hand?
6216         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
6217           the aa border gets chopped off ok
6218         * gtk/stock-icons/stock_colorselector.png: using the new hand
6219         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
6220           this one is for, but the old icon was butt ugly.
6221         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
6222         * gtk/stock-icons/stock*_insert_object.png: "
6223         * gtk/stock-icons/stock_index.png: using new hand icon
6224         * gtk/stock-icons/stock*_new.png: the document template being used 
6225           elsewhere too
6226         * gtk/stock-icons/stock*_print*.png: new print and print preview 
6227           icons (panel/menu)  
6228         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
6229           icons based on Tuomas' floppy image.
6230         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
6231         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
6232         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
6233         * gtk/stock-icons/stock*_undelete.png: "
6234         * gtk/stock-icons/stock_preferences.png: I have a version with a 
6235           document base if the sliders are no good.
6236         * gtk/stock-icons/stock_properties.png: properties 
6237         
6238
6239         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
6240           (tigert@ximian.com) clipboard icons
6241         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
6242         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
6243         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
6244           little bigger IMHO
6245
6246 2001-08-16  Sven Neumann  <sven@gimp.org>
6247
6248         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
6249
6250 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
6251
6252         * gtk/gtkcellrenderertext.c:
6253         Avoid warning when specifying NULL for "attributes" property
6254
6255 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6256
6257         * docs/debugging.txt: Add a warning about --enable-debug=no,
6258         some editorial changes.
6259
6260 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6261
6262         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
6263         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
6264         debugging info, remove unused debug flags. (#58330)
6265
6266 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
6267
6268         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
6269         (gtk_tree_selection_select_all): Remove strict checking for rows.
6270
6271 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6272         
6273         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
6274         Don't remove the tooltip window when the tip text changes. (#15891)
6275
6276 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
6277
6278         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
6279         $(srcdir).
6280
6281 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
6282
6283         * Makefile.am (EXTRA_DIST): Fix problem with trying to
6284         dist files from intl/, which is no longer there.
6285
6286 2001-08-11  Hans Breuer  <hans@breuer.org>
6287
6288         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
6289           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
6290           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
6291           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
6292           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
6293           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
6294
6295         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
6296           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
6297         GDK_TYPE_EVENT signals
6298
6299         * gtk/gtkalignment.c : removed 'direct allocation bug',
6300         which Tim discovered while reading the patch
6301
6302 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
6303
6304         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
6305         compat macros for push/pop/set_visual that were supposed
6306         to be added a long time ago, but got dropped. 
6307
6308 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
6309
6310         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
6311         property notifies.
6312
6313 2001-08-07  Havoc Pennington  <hp@pobox.com>
6314
6315         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
6316
6317         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
6318         some fixage is needed here, but nothing simple. Owen understands
6319         it. ;-)
6320
6321         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
6322         sizing and positioning.  Also, fix bug in compute_geometry_hints
6323         (width/height confusion for setting min size). 
6324         (gtk_window_move): new function
6325         (gtk_window_resize): new function
6326         (gtk_window_get_size): new function
6327         (gtk_window_get_position): new function
6328         (gtk_window_parse_geometry): new function
6329         
6330         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
6331         (gtk_widget_get_size_request): new function
6332         (gtk_widget_get_usize): delete, that was a short-lived function
6333         ;-)
6334         (gtk_widget_set_usize): deprecate
6335         (gtk_widget_set_uposition): deprecate, make it a trivial 
6336         gtk_window_move() wrapper
6337         (gtk_widget_class_init): remove x/y/width/height properties,
6338         add width_request height_request
6339         
6340         * demos/*: update to avoid deprecated functions
6341         
6342         * gtk/gtklayout.c: add x/y child properties
6343
6344         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
6345         uses of "gint16"
6346
6347         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
6348         sizing test
6349
6350         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
6351         configure events on toplevel windows are always in root window
6352         coordinates, following ICCCM spec that all synthetic events 
6353         are in root window coords already, while real events are 
6354         in parent window coords. Previously the code assumed that 
6355         coords of 0,0 were parent window coords, which was 
6356         really broken.
6357   
6358         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
6359         warning
6360  
6361         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
6362         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
6363         hints in gtk_window_parse_geometry()
6364  
6365         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
6366         new USER_POS USER_SIZE hints    
6367
6368 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6369
6370         * tests/prop-editor.c (properties_from_type): Use 
6371         g_object_class_list_properties to get the param specs 
6372         for a given type. (#58609)
6373
6374 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6375
6376         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
6377         free the text_aa parts. (#57549)
6378
6379 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6380
6381         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
6382         not the foreground color. (#57621)
6383
6384 2001-08-09  Alexander Larsson <alexl@redhat.com>
6385
6386         * gdk/win32/gdkfont-win32.c:
6387         Update to the new pango win32 api.
6388
6389 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
6390
6391         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
6392         COMPOUND_TEXT instead of TEXT
6393         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
6394         interpret the return value of g_string_to_compound_text()
6395         (#55152)
6396
6397 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6398
6399         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
6400         fail if iter is NULL. (#58347)
6401
6402 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6403
6404         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
6405         some off-by-one issues, fixing selection of line-ends. (#50323)
6406
6407 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6408
6409         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
6410         functions in order to make mouse operation work again in the
6411         color wheel. (#58604)
6412
6413 2001-08-07  James Henstridge  <james@daa.com.au>
6414
6415         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
6416         the accelerator when the accel object is changed.  Fixes bug
6417         #58628.
6418
6419 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
6420
6421         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
6422         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
6423         (gnome bugzilla #58202)
6424
6425 2001-08-06  Havoc Pennington  <hp@pobox.com>
6426  
6427         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
6428         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
6429         it was expecting a GdkWindow, not a GdkWindowImplX11.
6430  
6431         Also, we were getting the window rect in screen coords 
6432         and the screen rect in window coords then intersecting 
6433         them; instead, get window rect in window coords.
6434  
6435         Finally, there were codepaths that resulted in a stuck server grab
6436         (when the window was fully onscreen, or on gdk_image_new()
6437         failure); make the server ungrab thing a bit more
6438         robust/consistent.
6439
6440 2001-08-06  Sven Neumann  <sven@gimp.org>
6441
6442         * gdk/gdkpango.c (gdk_pango_context_destroy): 
6443         check if info->colormap != NULL before unref'ing it. It might have
6444         been set to NULL using gdk_pango_context_set_colormap().
6445
6446 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
6447
6448         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
6449         Fix conversion from float to int so that we don't get
6450         skew in the int => float => int roundtrip. 
6451         (#58120, reported by Vitaly Tishkov). Also fix problem
6452         where if no alpha was set, the returned alpha
6453         from (say) set_current_alpha() was returned as 1, not 65535.
6454
6455 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
6456
6457         * gtk/gtklist.c (gtk_list_clear_items): Fix
6458         problem with selecting a new focus child.
6459
6460         * gtk/gtklist.c (gtk_list_clear_items): Clear 
6461         list->undo/list_focus_child after unparenting
6462         child, since unparenting the child can result
6463         in list->last_focus_child being set. (#58024)
6464
6465         * Makefile.am (SUBDIRS): Add target specific pc
6466         files to DISTCLEANFILES.
6467
6468         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
6469         (58327, Matthias Clasen)
6470
6471 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
6472
6473         * tests/testgtk.c: Patch from Hans (with various modifications),
6474         to add the ability to use testgtk as a rough-and-ready
6475         benchmark. Try, 'testgtk --bench all:5' (if you want decent
6476         numbers, run without a window manager)
6477
6478 2001-08-04 Alexander Larsson <alexl@redhat.com>
6479
6480         * gdk/win32/gdkinput.c:
6481         Add #ifdef HAVE_WINTAB around wintab.h include.
6482
6483         * gtk/gtk.def:
6484         Removed marshals that have been moved to glib.
6485         Commented out plug and socket. They didn't compile for me 
6486         on win32.
6487
6488 2001-08-04  Hans Breuer  <hans@breuer.org>
6489
6490         * gtk/stocks-icons/makefile.msc : new file
6491         * gtk/makefile.msc.in : use it
6492
6493         * gtk/gtkstyle.c : not all platforms do provide M_PI and
6494         friends, but luckily there is G_PI
6495
6496         * gtk/gtk.def : updated
6497
6498         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
6499         windows WS_POPUP, but only those without a parent. This fixes the 
6500         mis-alignment between the selectable (temp, input only) window and 
6501         the window text of GtkLabel.
6502
6503         (gdk_window_show) : respect private->state when actually showing
6504         the window.
6505
6506         (gdk_window_set_transient_for) : Implementation from Wolfgang 
6507         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
6508         error handling. Should fix #50586.
6509
6510         * gdk/win32/gdkevents-win32.c : beautify log output
6511
6512 2001-08-04  Michael Natterer  <mitch@gimp.org>
6513
6514         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
6515         Need to show the image after adding it to the GtkImageMenuItem.
6516         This used to work without in testgtk because of the
6517         gtk_widget_show_all() at the end of the function.
6518         (Closes #54978).
6519
6520 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
6521
6522         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
6523         (gtk_notebook_set_child_property): fix finding of child's page,
6524         since we have to validly deal with labels and menus here as well.
6525         (gtk_notebook_get_child_property): fix warning.
6526         (gtk_notebook_class_init): property tab_pack is of type
6527         GTK_TYPE_PACK_TYPE (enum) not boolean.
6528         (gtk_notebook_find_child): don't always warn, we might be looking
6529         for a label or menu child.
6530         (gtk_notebook_map): fix mapping of panel.
6531
6532         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
6533         widget's mapped state, regardless of the value being set equals
6534         old settings, since things like REALIZED(parent) or MAPPED(parent)
6535         may have changed since the old value was set. make it an error to
6536         invoke this function on a toplevel widget.
6537
6538 2001-07-31  Darin Adler  <darin@bentspoon.com>
6539
6540         * gdk/gdkprivate.h:
6541         * gdk/x11/gdkx.h:
6542         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
6543
6544         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
6545         GTK_OBJECT.
6546
6547 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
6548
6549         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
6550         scoping error pointed out by matthiasc@poet.de.
6551
6552 2001-07-31  Sven Neumann  <sven@gimp.org>
6553
6554         * demos/gtk-demo/appwindow.c
6555         * demos/gtk-demo/item_factory.c
6556         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
6557
6558 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
6559
6560         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
6561         argument order for g_signal_has_handler_pending.
6562
6563 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
6564
6565         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
6566         instead of long deprecated g_scanner_stat_mode().
6567
6568 2001-07-29  Hans Breuer  <hans@breuer.org>
6569
6570         * gdk/makefile.msc : build in the backend dir after
6571         auto-generating files
6572
6573         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
6574         with code from win32-production-branch.
6575
6576         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
6577         before calling DestroyWindow, which indirectly calls 
6578         gdk_window_destroy_notify ()
6579
6580         (performance patch merged from win32-production-branch)
6581         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
6582         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
6583         R2_COPYPEN rop). It is claimed to be much faster.
6584
6585 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
6586
6587         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
6588         add an "attributes" property to the text renderer for ATK.
6589
6590 2001-07-26  Alex Larsson  <alexl@redhat.com>
6591
6592         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
6593         Initialize image->bits_per_pixel from the drawable, not from
6594         the root window.
6595
6596         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
6597         Fix cast. argument is an IMPL already.
6598
6599 2001-07-15  James Henstridge  <james@daa.com.au>
6600
6601         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
6602         (gtk_window_remove_accel_group): same here.
6603         (gtk_window_key_press_event): same here.
6604
6605         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
6606         (gtk_widget_remove_accelerator): same here.
6607         (gtk_widget_remove_accelerators): same here.
6608
6609         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
6610
6611         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
6612         instead of GtkObject.
6613
6614         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
6615         now takes GObjects.
6616
6617         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
6618         pass a GObject to gtk_accel_group_entries_from_object.
6619         (gtk_item_factory_create_item): s/accel_widget/accel_object/
6620
6621         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
6622
6623         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
6624
6625         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
6626         GObjects can have accelerators set now.  Add compatibility
6627         defines.
6628
6629         * gtk/gtkmarshal.list: add missing marshallers.
6630
6631         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
6632         accelerators on plain GObjects.  gtk_accel_group_object_destroy
6633         has been converted into a weak reference, and
6634         gtk_accel_group_delete_entries is now a destroy notify for that
6635         piece of data.
6636
6637 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
6638
6639         * gdk/gdkdraw.c: Added a check on the colormap depth to
6640         gdk_drawable_set_colormap()
6641         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
6642         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
6643         for pixmaps without visuals (more specifically, bitmaps)
6644         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
6645         doesn't set a colormap with the wrong depth
6646
6647
6648 2001-07-22  Anders Carlsson  <andersca@gnome.org>
6649
6650         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
6651         expander_height and expander_width properties with a single
6652         property, expander_size.
6653         (gtk_tree_view_init): Set the tab_offset to expander_size
6654         plus some padding.
6655         (gtk_tree_view_unrealize): Remove the expand/collapse
6656         timeout if it exists.
6657         (coords_are_over_arrow): Fix a small bug.
6658         (gtk_tree_view_motion_draw_column_motion_arrow): Use
6659         expander_size.
6660         (gtk_tree_view_draw_focus): Use "treeview" instead of
6661         "add-mode" as detail when drawing the focus.
6662         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
6663         instead of "add-mode" as detail when drawing the focus.
6664         (gtk_tree_view_deleted): If we have a node currently being
6665         expanded or collapsed, remove the timeout and set the node 
6666         to NULL.
6667         (gtk_tree_view_queue_draw_arrow): New function that just
6668         redraws the arrow of a node.
6669         (gtk_tree_view_draw_arrow): Use expander_size instead of
6670         expander_width/expander_height, also pass a different
6671         expander_style to gtk_paint_expander depending on the 
6672         state of the node being drawn.
6673         (expand_collapse_timeout): New function for expanding 
6674         or collapsing a node depending on the previous state.
6675         (gtk_tree_view_real_expand_row): Add timeout and set 
6676         correct state for node being expanded.
6677         (gtk_tree_view_real_collapse_row): Add timeout and set
6678         correct state for node being collapsed.
6679
6680         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
6681         information about the node currently being expanded or
6682         collapsed, and also a timeout id.
6683
6684         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
6685         with expander_style for draw_expander.
6686
6687         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
6688         expander_style.
6689         (create_expander_affine): New function for creating an 
6690         expander affine.
6691         (apply_affine_on_point): New function for applying an 
6692         affine to a point.
6693         (gtk_default_draw_expander): Modified to take expander_style
6694         instead of is_open, and to draw the rectangle rotated differently
6695         depending on the expander style.
6696         (gtk_paint_expander): Replace is_open with expander_style.
6697
6698         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
6699
6700         * gtk/gtkenums.h: Add expander style enum.
6701
6702 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
6703
6704         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
6705         value from gtk_tree_model_get_iter, the model might be empty.
6706
6707 2001-07-20  Hans Breuer  <hans@breuer.org>
6708
6709         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
6710         gdk/gdkinput.c like the other backends
6711
6712         * gdk/win32/gdkinput-win32.h :
6713         * gdk/win32/gdkinput.c :
6714         * gdk/win32/gdkvisual-win32.c :
6715         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
6716         GdkVisual GObjectification. UNTESTED for pen-devices because
6717         I simply have none.
6718
6719         * gdk/gdk.def :
6720         * gtk/gtk.def : updated externals
6721
6722         * gtk/gtkiconfactory.c :
6723         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
6724         before passing &error to functions to avoid strange crashes
6725         
6726         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
6727
6728         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
6729
6730         * gtk/makefile.msc.in : updated
6731
6732 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
6733
6734         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
6735         Add property support. (#51858)
6736
6737 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
6738
6739         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
6740         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
6741         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
6742
6743 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
6744
6745         * gtk/gtkcolorsel.c: Add propery support (roughly
6746         based on patch from Lee Mallabone, #51014)
6747
6748         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
6749         deprecated, since we already g_warning() on it.
6750
6751 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
6752
6753         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
6754         typo that sometimes caused selection not to work properly.
6755
6756         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
6757         entry when tabbing in. (#57743)
6758         
6759         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
6760         user drags up above or down below the entry, move
6761         to the end or the beginning of the entry. (Suggestion
6762         from Jay Cox, #50940)
6763
6764         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
6765         a current selection, then when moving by chars or
6766         words, move to the end of the selection rather than
6767         from entry->current_pos. (Suggestion from Jay Cox,
6768         #50942)
6769         
6770 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
6771
6772         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
6773         set window->decorated. (Patch from Hidetoshi Tajima,
6774         #55846)
6775
6776 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
6777
6778         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
6779         the widget/child realization/mapping invariants.
6780
6781         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
6782         gtk_widget_[get/set]_child_visible() to control
6783         whether visible children of a mapped window are
6784         mapped.
6785
6786         * docs/widget_system.txt: Updated for changes in
6787         container contract, and addition of GTK_CHILD_VISIBLE.
6788
6789         * gtk/gtkcontainer.c: Add generic map()/unmap()
6790         functions that work for almost all containers.
6791
6792         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
6793         gtk_widget_set_child_visible() where necessary.
6794
6795         * gtk/*.c: Remove excess map(), unmap(), and 
6796         realization/mapping invariant enforcing code
6797         from many containers.
6798
6799 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
6800
6801         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
6802         Get the foreground color from 'text', nor 'fg'. (#57568)
6803
6804 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
6805
6806         * gtk/*.c: Patch from Matthias Clasen to remove remove
6807         all instances of g_return_if_fail (foo != NULL); that are
6808         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
6809         since the second check catches the NULL anyways.
6810
6811 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
6812
6813         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
6814         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
6815         GDK_THREADS_ENTER()/LEAVE() pairs.
6816
6817         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
6818         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
6819         pairs. (Problem found by M. Meeks)
6820
6821 2001-07-18  Darin Adler  <darin@bentspoon.com>
6822
6823         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
6824         that we don't get a g_warning message every time we register a new
6825         icon size.
6826
6827         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
6828         using pixel variable of the correct type.
6829         
6830 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
6831
6832         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
6833         so that using X functions on a GdkWindow is possible, if
6834         a little hairy.
6835
6836         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
6837         and ts_origin of a GC, so that external parties can offset/restore
6838         a GC, when using gdk_window_get_internal_paint_info().
6839
6840 2001-07-17  Darin Adler  <darin@bentspoon.com>
6841
6842         * .cvsignore: Ignore the sgml directory made by gtkdoc.
6843         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
6844         instead of the deprecated gtk_window_set_policy.
6845         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
6846         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
6847         function to get rid of warning and some code too.
6848         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
6849         missing const.
6850         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
6851         unused local.
6852         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
6853         const.
6854         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
6855         (gdk_utf8_to_compound_text): Add missing const.
6856         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
6857         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
6858         cast and get rid of an unnecessary one.
6859         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
6860         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
6861         local.
6862         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
6863         Remove unused local.
6864         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
6865         missing const.
6866         * tests/testsocket.c: (add_child): Add cast so the printf format
6867         doesn't make us implicitly depend on what integer type
6868         gtk_socket_get_id returns.
6869         * tests/testtextbuffer.c: Add missing const.
6870         * tests/testtreefocus.c: (main): Remove unused local.
6871         * tests/treestoretest.c: (iter_remove): Remove unused local.
6872         (uppercase_value): Remove unused function.
6873         (make_window): Add statement to quiet the compiler's uninitialized
6874         variable warning.
6875
6876 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
6877
6878         * gtk/gtkrange.c:
6879         (second_timeout): 
6880         (initial_timeout): 
6881         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
6882         (gtk_range_calc_layout): compute the new layout based on an
6883         adjustment->value being passed in as argument.
6884         (gtk_range_button_press): for button2 slider warps, first recalc
6885         the layout, then adjust the value. also, use update_slider_position()
6886         for adjusting the value, so we keep pixel quantisation at which we
6887         usually operate (upon motion or button releases). the reason for this
6888         is that, we can't change the adjustment upon button2 presses to a non
6889         quantised value and upon button2 release re-quantise the value since
6890         that'd alter the value even if we didn't get any motion events (causing
6891         unexpected scroll area warps upon release and/or slider pixel-jitter).
6892         (gtk_range_motion_notify): update the slider position from queried
6893         coordinates, not event coordinates.
6894
6895 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
6896
6897         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
6898         the default gc values are: width=0, CapBut, JoinMiter.
6899
6900 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
6901
6902         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
6903         into account the xpad and ypad when calculating the width and the
6904         height of the pixbuf cel.
6905
6906 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
6907
6908         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
6909         Rename to gtk_radio_menu_item_get_group(), add deprecated
6910         alias. (#57044)
6911
6912         * gtk/gtkfilesel.c: Indentation fix.
6913
6914 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
6915
6916         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
6917         Hasselmann to fix warnings in compat macros. 
6918         (#56773)
6919
6920         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
6921         stupid wrong cast added in last patch.
6922
6923 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
6924
6925         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
6926         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
6927
6928 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
6929
6930         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
6931         missing cast.
6932
6933         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
6934         NULL/FALSE return value confusion.
6935
6936         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
6937         problem when scrollbar completely fills range. (Patch
6938         from  Matthias Clasen, #57047)
6939
6940 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
6941
6942         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
6943         clean up when handling events for move-resize emulation.
6944         (Problem traced down by Matthias Clasen, #57271)
6945
6946 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
6947
6948         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
6949           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
6950           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
6951           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
6952           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
6953           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
6954           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
6955         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
6956
6957 2001-07-09  Peter Williams  <peterw@ximian.com>
6958
6959         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
6960         for when srcdir != builddir
6961
6962 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
6963
6964         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
6965         gtk_tree_model_get_iter_root.
6966
6967         * gtk/gtkliststore.c: Add a bunch of g_return statements.
6968         (gtk_list_store_iter_n_children): Fix up.
6969
6970         * gtk/gtktreestore.c: Add a bunch of g_return statements.
6971
6972 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
6973
6974         * gtk/gtkwidget.c (gtk_widget_class_init):
6975         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
6976         restore some workingness.
6977
6978         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
6979         handle of window type for input-only windows.
6980
6981 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
6982
6983         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
6984         Patch from Gregory Merchan to add 
6985         gtk_button_box_set_secondary(), which separates
6986         the child into a separate group from the normal
6987         buttons. (#56331)
6988
6989         * gtk/gtkdialog.c: Make help buttons secondary by
6990         default.
6991
6992         * gtk/gtkbbox.c: Added a child property "secondary".
6993
6994         * gtk/testgtk.c: Turn on the help button for the 
6995         color selector to check that it properly appears
6996         as secondary.
6997
6998 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
6999  
7000         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
7001         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
7002         Add gdk_set_pointer_hooks() to allow pointer-querying to
7003         be hooked by an event record/playback system like GERD.
7004         (#56914)
7005         
7006 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
7007
7008         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
7009         in the right value of initial_emission to
7010         gtk_widget_set_style_internal (#57091)
7011
7012 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
7013
7014         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
7015         Make compile.
7016
7017         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
7018         with calling gtk_widget_set_style_internal() with
7019         the old style, not the new style. (#56989)
7020
7021 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
7022
7023         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
7024           gtk/gtkwidget.c:
7025         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
7026         not GTK_WIDGET_GET_ANCESTOR ... see 
7027         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
7028         Indicate the best practice in the docs for gtk_widget_get_toplevel().
7029
7030         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
7031         so GtkPlug can give the correct signals when transforming
7032         from a child to a toplevel.
7033         
7034         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
7035         reparentation correctly.
7036
7037         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
7038         Propagate the previous_toplevel argument down properly.
7039
7040         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
7041         of wrong atr list.
7042
7043         * gtk/gtkplug.[ch]: Add an "embedded" signal.
7044
7045         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
7046         signals.
7047
7048         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
7049         functions gtk_plug_get_id(), gtk_socket_get_id(),
7050         to avoid the user having to worry about realization,
7051         and gdkx.h.
7052
7053         * tests/testsocket.c: Extend to try out the new signals
7054         and gtk_plug/socket_get_id().
7055
7056         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
7057         setting of underline attributes.
7058
7059         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
7060         DestroyNotify events from SubstructureNotifyMask
7061
7062         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
7063         Switch GDK_WINDOW_TYPE (window) as needed.
7064
7065         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
7066         allow creation of toplevel windows as children of
7067         foreign windows.
7068
7069         * gtk/gtkplug.c: Remove hacks involving changing private
7070         fields of GdkWindow.
7071
7072         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
7073         exactly the same signals and notification
7074         be emitted for local embedding as for inter-process
7075         embedding.
7076
7077 2001-07-04  James Henstridge  <james@daa.com.au>
7078
7079         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
7080
7081 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
7082
7083         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
7084         XEMBED embedding add a _XEMBED_INFO property to the
7085         client with version number and a "mapped" flags.
7086         Use the mapped flag instead of the racy MapRequestEvent
7087
7088         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
7089         code to reliably set things (when the child is a passive
7090         embedder participating in the XEMBED protocol) intead
7091         of just being a hack for embedding non-participating
7092         programs. Fix various bugs and race conditions.
7093         
7094         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
7095         work by simply making the GtkSocket the gtk parent
7096         of the GtkPlug. Set a flag in this case and make
7097         the GtkPlug work like a normal container by overriding
7098         methods such as check_resize and "chaining past" GtkWindow
7099         to GtkBin.
7100
7101         * gtk/gtkentry.c (gtk_entry_real_activate)
7102           gtk/gtkmain.c (gtk_propagate_event): 
7103         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
7104         
7105         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
7106         gtk_widget_get_ancestor):
7107         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
7108         might not give the expected result and recommend
7109         an alternative.
7110
7111         * tests/testsocket.c tests/testsocket_child.c
7112         tests/testsocket_common.c tests/Makefile.am: Extended
7113         to test different type of adding plugs to sockets
7114         (local,active,passive), and to test mapping/unmapping
7115         the plug.
7116
7117         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
7118         mark the window as destroyed until after we
7119         called _gdk_windowing_window_destroy().
7120         (_gdk_windowing_window_destroy() may use GDK functions
7121         on the window.)
7122
7123         * gdk/x11/gdkinput.c: Remove the check for finalization - 
7124         devices can be finalized under some circumnstances.
7125  
7126         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
7127         small problem with GDK_TYPE_DEVICE.
7128  
7129 2001-07-02  Havoc Pennington  <hp@pobox.com>
7130
7131         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
7132         use constants not atoms.
7133
7134 2001-07-02  James Henstridge  <james@daa.com.au>
7135
7136         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
7137         PANGO_TYPE_TAB_ARRAY.
7138
7139         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
7140         for PANGO_TYPE_TAB_ARRAY.
7141
7142         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
7143         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
7144
7145         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
7146         the file.  Remove Pango types from defs -- they are now defined in
7147         libpango.
7148
7149 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
7150
7151         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
7152
7153         * gtk/gtkobject.c (gtk_object_destroy): invoke
7154         g_object_run_dispose().
7155
7156         * gtk/gtkwindow.c: 
7157         * gtk/gtkwidget.c: 
7158         * gtk/gtkobject.c:
7159         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
7160         method.
7161
7162 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
7163
7164         * gtk/gtktypeutils.c (gtk_type_class): Remove
7165         change check for GTK_TYPE_OBJECT derivation to
7166         G_TYPE_OBJECTS - it's Tim-approved to use this 
7167         for arbitary objects.
7168
7169         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
7170         prefix gtk_container_dequeue_resize_handler().
7171
7172         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
7173         to the hierarachy_changed signal, since you otherwise
7174         have to always keep that around.
7175
7176         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
7177         for extra argument to hierarchy_changed.
7178
7179 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
7180
7181         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
7182         for style to mean "revert to default style"
7183
7184         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
7185           gtk_widget_restore_default_style): Make this functions
7186         deprecated aliases for gtk_widget_set_style (widget, NULL).
7187
7188         * gtk/gtkwidget.[ch]: Remove:
7189            gtk_widget_set_default_style ()
7190            gtk_widget_push_style ()
7191            gtk_widget_pop_style ()
7192         These functions interact are overriden by RC files, and
7193         thus virtually useless, and complicated.
7194
7195 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
7196
7197         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
7198         most of the previous global variables in gtkrc.c. This is
7199         in preparation for multi-head, since each screen can
7200         have different GtkSettings and RC information.
7201
7202         * gtk/gtkrc.[ch]: 
7203
7204         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
7205         GtkSettings parameter to GtkRcStyle::parse.
7206
7207         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
7208         Add two new settings gtk-theme-name, gtk-key-theme-name,
7209         for RC files that are loaded by name after reading
7210         the default RC files.
7211         
7212         * gtk/gtkrc.c: Allow priorities for styles, as wll as
7213         bindings.
7214
7215         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
7216         and use it by default for RC files loaded via 
7217         gtk-theme-name, gtk-key-theme-name.
7218
7219         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
7220         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
7221         tests/testgtkrc: Require pathnames to be absolute.
7222
7223         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
7224         the source when parsing, since the operation of looking up a
7225         pixmap from an RC file depends on the parsing context.
7226
7227         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
7228         reset RC styles on all widgets when files are reparsed.
7229
7230         * tests/testgtk.c (create_rc_file) 
7231           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
7232         Simplify, now that gtk_rc_reparse_all() resets styles on
7233         all widgets itself.
7234
7235         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
7236         return value.
7237
7238         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
7239         GtkSettings argument.
7240
7241         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
7242         gtk_settings_get_global().
7243
7244         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
7245         to get the appropriate GtkSettings for a widget. (For now,
7246         just gets the default GtkSetttings.) 
7247
7248         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
7249           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
7250         changes.
7251
7252         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
7253         getting a style for a path without actually having a widget.
7254         (Allows using a style for a subpart of a widget, for
7255         example.)
7256
7257         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
7258         the RC files to be reloaded for just one GtkSettings
7259         (not sure how useful this really is.)
7260
7261         * gtk/gtkrc.h: Deprecate
7262         gtk_rc_add_widget_name/widget_class/class_style
7263
7264 2001-06-30  Alex Larsson  <alexl@redhat.com>
7265
7266         * gdk/linux-fb/gdkinput-none.c:
7267         * gdk/linux-fb/gdkinput.c:
7268         * gdk/linux-fb/gdkinputprivate.h:
7269         Convert GdkDevice to a GObject.
7270
7271         * linux-fb/gdkprivate-fb.h:
7272         * linux-fb/gdkvisual-fb.c:
7273         Convert GdkVisual to a GObject.
7274
7275 2001-06-29  Alex Larsson  <alexl@redhat.com>
7276
7277         * gdk/gdkvisual.h:
7278         * gdk/gdkcolor.c:
7279         * gdk/x11/gdkx.h:
7280         * gdk/x11/gdkvisual-x11.c:
7281         Convert GdkVisual to a GObject.
7282
7283         * gdk/gdkinput.h:
7284         * gdk/gdkevents.c:
7285         * gdk/x11/gdkinputprivate.h:
7286         * gdk/x11/gdkinput-gxi.c:
7287         * gdk/x11/gdkinput-none.c:
7288         * gdk/x11/gdkinput-x11.c:
7289         * gdk/x11/gdkinput-xfree.c:
7290         * gdk/x11/gdkinput.c:
7291         Convert GdkDevice to a GObject.
7292
7293 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
7294
7295         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
7296         to just plain new, fixing the number of columns, and column types
7297         at creation time.
7298
7299         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
7300
7301         * gtk/gtkcellrenderertext.c
7302         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
7303         height to a specific font.
7304
7305         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
7306
7307         * tests/*c: change to work with new store models.
7308
7309 2001-06-29  Havoc Pennington  <hp@redhat.com>
7310
7311        * Throughout: fixes to compile with G_DISABLE_COMPAT
7312         (s/g_signal_connectc/g_signal_connect/,
7313         s/g_signal_newc/g_signal_new/,
7314         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
7315
7316 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@redhat.com>
7317
7318         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
7319         add path argument to selection callbacks.
7320
7321 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
7322
7323         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
7324         walk through a model in a depth first manner, with the option to
7325         break out.
7326
7327 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
7328
7329         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
7330         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
7331         column and follow it when draged, rather than a location in the
7332         view. "expander_column" property and drawing functions changed
7333         accordingly.  Fixes bug #55942.
7334
7335         (gtk_tree_view_{set,get}_expander_column): Now works with a
7336         GtkTreeViewColumn* instead of int.
7337
7338 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
7339
7340         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
7341
7342 2001-06-28  Havoc Pennington  <hp@pobox.com>
7343
7344         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
7345         image data to the screen, using a server grab to avoid race
7346         conditions.
7347
7348         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
7349         check for NULL return from gtk_image_new_from_stock(), it never
7350         returns NULL.
7351         (gtk_item_factory_create_item): fix bug where we parsed the stock
7352         ID as an inline pixbuf
7353
7354         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
7355
7356         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
7357         support (should be using binding set here)
7358
7359         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
7360         support (should be using binding set here)
7361
7362         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
7363         support
7364
7365         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
7366
7367         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
7368
7369         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
7370
7371         * gtk/gtkimcontextsimple.c
7372         (gtk_im_context_simple_filter_keypress): keypad
7373
7374         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
7375
7376         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
7377
7378         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
7379
7380         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
7381         should be binding-setted)
7382
7383         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
7384
7385         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
7386
7387         * gtk/gtkcalendar.c: numeric keypad fixes
7388
7389         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
7390         support
7391
7392         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
7393         screwup
7394
7395         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
7396         clip the render area to the drawable's clip region in advance,
7397         so we don't get data from the server that we don't need.
7398
7399         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
7400         check return value of gdk_pixbuf_get_from_drawable(), fall back 
7401         to bilevel alpha if we can't get the pixbuf to composite against.
7402
7403         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
7404
7405         * gdk/gdkimage.c (gdk_image_get_colormap): add
7406         gdk_image_set_colormap, gdk_image_get_colormap
7407
7408         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
7409         take a region of the image, instead of converting the entire
7410         image.
7411
7412         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
7413         keybinding signal. Add default bindings for it. Add default
7414         handler for show_help that shows the tooltip for the widget.
7415
7416         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
7417         "close" keybinding signal, remove key press handler.
7418
7419         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
7420         it's not our usual practice to leave a deprecated function around
7421         with a runtime warning, plus we don't want it to appear in docs,
7422         plus if we make them yellow no one will want to change them
7423         anyhow.
7424
7425 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
7426
7427         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
7428         GTK_WIDGET_REALIZE() for resize queueing.
7429
7430         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
7431         GTK_WIDGET_REALIZE() for post event delivery destruction upon
7432         GDK_DESTROY.
7433         
7434         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
7435         sompensate for former (pre-2.0) connect_after() facility.
7436         (gtk_widget_send_expose): 
7437         (gtk_widget_event): assert the widget is realized, since event delivery
7438         to non-realized widgets is essentially a bug. event handlers should
7439         be able to unconditionally rely on widget->window (unless they
7440         emit events on their own which can trigger widget destruction).
7441         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
7442         logic. event delivery happens as follows:
7443         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
7444         b) if !was_handled in (a) and the widget is still realized, emit event-
7445            specific signal (RUN_LAST handler). returns was_handled.
7446         c) emission of GtkWidget::event-after for notification if the widget is
7447            still realized (regardless of was_handled from previous stages, no
7448            class handler). no return value.
7449         d) was_handled gets passed on to caller, to determine further
7450            propagation. if the widget got unrealized meanwhile, was_handled
7451            is returned as TRUE.
7452
7453         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
7454         gdk_event_get_coords().
7455
7456 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
7457
7458         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
7459         age 0, binary age 0. depend on glib 1.3.7.
7460
7461         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
7462
7463         * gtk/gtkmenubar.c: same here.
7464         
7465         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
7466
7467         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
7468
7469         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
7470         
7471         * gtk/gtkmenubar.c (add_to_window): likewise.
7472         
7473         * gtk/gtktextbtree.c: and here...
7474         
7475         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
7476         
7477         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
7478         
7479         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
7480         
7481         * gtk/gtktreeviewcolumn.c:
7482         (_gtk_tree_view_column_set_tree_view): yet again.
7483
7484         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
7485         signal connections without g_signal_connect_data().
7486         
7487         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
7488         demo of the matter.
7489         
7490         * demos/testpixbuf.c (main): running out of equality phrases for the
7491         ChangeLog, but had to adapt connections here as well.
7492         
7493         * demos/testanimation.c (progressive_timeout): and for the fun of it,
7494         tackled this the same way.
7495         
7496         * tests/testtext.c (create_view): ok, it's becoming a pain at this
7497         point, but had enough enery for one more fix.
7498
7499         * tests/testtreecolumns.c (main): stand up man, do your work!
7500
7501         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
7502         fix, either that's been all of it or CVS gtk is broken yet again.
7503         
7504 2001-06-29  James Henstridge  <james@daa.com.au>
7505
7506         The following changes correspond to bug #56812
7507
7508         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
7509         code for GdkDevice.
7510
7511         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
7512         GdkCursor.
7513
7514 2001-06-19  Havoc Pennington  <hp@pobox.com>
7515
7516         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
7517         for mapping a window without fooling with stacking order, but
7518         updating the "withdrawn" flag
7519
7520         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
7521         filtering as soon as possible, moving move resize and wmspec_check
7522         handling after the event filter.  Make default filter apply to all
7523         events, not just those with no GdkWindow wrapped around the X
7524         window. Fix a FIXME about how the window could be a pixmap using 
7525         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
7526
7527         Also, be robust against events not on a known GdkWindow.
7528
7529         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
7530         gdk_x11_ungrab_server): export reference-counted server grabs, so
7531         other people can grab server over a GDK function that also does
7532         so.
7533
7534 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
7535
7536         * gtk/gtktreeviewcolumn.c
7537         (gtk_tree_view_column_pack_start_cell_renderer): New function to
7538         reflect that you can (hypothetically) pack cell renderers into a
7539         column.
7540         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
7541         (gtk_tree_view_column_cell_is_visible): Move more functionality to
7542         the column.
7543         (gtk_tree_view_column_cell_can_focus): Move more functionality to
7544         the column.
7545
7546         * gtk/gtktreeview.c: Move to use new column-packing code.
7547         (gtk_tree_view_real_expand_row): remove totally braindead code.
7548         (gtk_tree_view_real_collapse_row): ditto.
7549
7550 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
7551
7552         * gtk/gtktreeviewcolumn.c: Fix a typo.
7553         
7554 2001-06-26  Joel Becker  <jlbec@evilplan.org>
7555
7556         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
7557           at the end of the file
7558
7559 2001-06-26  Havoc Pennington  <hp@redhat.com>
7560
7561         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
7562
7563 2001-06-26  Havoc Pennington  <hp@redhat.com>
7564
7565         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
7566         property
7567
7568 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
7569
7570         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
7571         stupid missing statement
7572
7573         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
7574         private function for ATK.  It notifies you of how many _visible_
7575         children are deleted when a node is deleted.  Should be used by
7576         atk only.
7577
7578 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
7579
7580         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
7581         Use new pango_context_get_metrics() to fix problems
7582         with font lists in descriptions. (#56184, reported by
7583         Jonas Borgström)
7584
7585 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
7586
7587         * gtk/gtkiconfactory.c:
7588         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
7589         item factory so inlined pixbufs actually work.
7590
7591 2001-06-25  Havoc Pennington  <hp@redhat.com>
7592
7593         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
7594         s/RESIZEABLE/RESIZABLE/
7595
7596         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
7597
7598 2001-06-25  Alexander Larsson  <alexl@redhat.com>
7599
7600         * configure.in:
7601         Added --enable-fbmanager. This is some experimental code
7602         that lets several GtkFB apps coordinate their access to the
7603         framebuffer.
7604         
7605         * acconfig.h:
7606         Added ENABLE_FB_MANAGER.
7607
7608         * gdk/linux-fb/Makefile.am:
7609         Added gdkfbmanager and gdkfbswitch.
7610
7611         * gdk/linux-fb/gdkkeyboard-fb.c:
7612         * gdk/linux-fb/gdkmouse-fb.c:
7613         * gdk/linux-fb/gdkprivate-fb.h:
7614         Split device init and open so that
7615         they can be opened and closed while switched
7616         away.
7617
7618         * gdk/linux-fb/gdkmain-fb.c:
7619         Add the basic manager communication.
7620
7621         * gdk/linux-fb/gdkrender-fb.c:
7622         Don't update to the shadow fb if we're
7623         blocked by the fb manager.
7624
7625 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
7626
7627         * docs/Changes-2.0.txt: Add note about child property
7628         changes.
7629
7630 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
7631
7632         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
7633         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
7634
7635         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
7636         with un'reffing wrong list reported by Jeff Franks.
7637
7638         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
7639
7640         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
7641         for the default icon. Remove inline XPM.
7642
7643         * gtk/gtkstock.h gtk/gtkiconfactory.c:
7644         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
7645         is used for GTK_STOCK_DND, but it is a bit too small.)
7646
7647         * gtk/stock-icons/stock_dnd_multiple.png
7648         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
7649
7650         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
7651         TRUE when starting a drag. In other cases, we are
7652         just observing. (#52995)
7653
7654         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
7655         function to set the icon for a drag from a GdkPixbuf
7656         or stock ID.
7657
7658         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
7659         Likewise, for drag sources.
7660
7661         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
7662         (Now should be done using the stock system.)
7663
7664 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
7665
7666         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
7667         Removed - didn't work and not particularly useful anyways
7668         if it did. 
7669
7670 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
7671
7672         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
7673         introduced last night that was making things decidedly not work.
7674
7675         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
7676         so that we have getter/setter pairing everywhere it makes
7677         sense. (#55767)
7678
7679         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
7680         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
7681         deprecated compat macro. (#55516)
7682
7683         * gtk/gtklabel.[ch]: Add functions
7684         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
7685         gtk_label_set_label(), which mirror the property API for GtkLabel.
7686         Make gtk_label_get_attributes() only reflect the attributes
7687         set by gtk_label_set_attributes.
7688
7689         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
7690         from gtk_notebook_set_page().
7691
7692 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
7693
7694         * configure.in: Fix tests for XShm.h.
7695
7696         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
7697         gdk_image_new() by use of goto, properly use g_object_unref().
7698
7699 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
7700
7701         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
7702         calls, as GdkImage is an object. these should be g_obejct_unref()
7703         instead but that won't work because of the g_error() statement
7704         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
7705         to spot these places.
7706
7707 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
7708
7709         * modules/input/gtkimcontextxim.c: Fixup some problems with 
7710         text length handling in error cases.
7711
7712         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
7713         a bit to make test actually warn on attempt to allocation
7714         a negative size. (#56101, Matthias Clasen)
7715
7716 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
7717
7718         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7719         noticed by Brian Cameron.
7720         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
7721         Cameron.
7722
7723 2001-06-22  Hans Breuer  <hans@breuer.org>
7724
7725         * gdk/gdk.def : updated externals
7726
7727         * gdk/win32/gdkdrawable-win32.c : corrected some casts
7728         in GDK_NOTEs
7729
7730         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
7731         to translate coordinates to the internal > 16 bit system
7732         Try to handle WM_WINDOWPOSCHANGED to get better performance for
7733         when moving/resizing
7734
7735         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
7736         and gdk_keymap_get_direction (). The latter is untested for
7737         the RTL case
7738
7739         * gtk/gtk.def : updated externals
7740
7741         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
7742         from pango_language_from_string (), not an already freed pointer
7743
7744         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
7745         binary (-kb) to be useable on windoze
7746  
7747 2001-06-21  Alexander Larsson  <alexl@redhat.com>
7748
7749         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
7750         Update to new PangoLanguage changes.
7751         
7752         * gtk/gtkwindow-decorate.c:
7753         * gtk/gtkwindow.[ch]:
7754         Added setting argument to gtk_window_set_has_frame ()
7755         
7756 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
7757
7758         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
7759         the case without XKB properly.
7760
7761         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
7762         unused gtk_rc_auto_parse variable.
7763
7764         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
7765         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
7766         longer needed with GdkPixbuf.
7767
7768         * gtk/gtkrc.c (_gtk_rc_init): Make private.
7769
7770 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
7771
7772         * gtk/gtkentry.h: Mark deprecated functions with
7773         GTK_DISABLE_DEPRECATED.
7774
7775 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
7776
7777         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
7778
7779         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
7780
7781         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
7782           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
7783           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
7784           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
7785           to recent changes in Pango.
7786
7787         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
7788           to test whether the basic engine honors them.
7789
7790 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
7791
7792         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
7793         gtk_container_child_get_property().
7794
7795 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
7796
7797         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
7798         (gtk_tree_view_move_cursor_page_up_down): implement.
7799
7800 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
7801
7802         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
7803         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
7804         don't use automatic fixed size buffer for printf-ing floats, doubles
7805         can expand to really _huge_ strings, use g_strdup_printf() instead.
7806
7807 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
7808
7809         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
7810         construct property in 1.2 and still needs to be.
7811
7812         * gtk/gtkwidget.c: "composite_child" is not a settable property.
7813
7814 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
7815
7816         * gtk/gtkliststore.c (gtk_list_store_clear): 
7817         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
7818         clear a model.
7819
7820 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
7821
7822         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
7823
7824         * gtk/Makefile.am:
7825         * gtk/gtk.h: disabled GtkPacker compilation.
7826
7827         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
7828
7829         * gtk/gtknotebook.c:
7830         * gtk/gtktable.c:
7831         * gtk/gtkbox.c: ported this over to child properties.
7832
7833         * gtk/gtksettings.c: fetch class properties via
7834         g_object_class_list_properties().
7835
7836         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
7837         child arg interface. use gobjectnotifyqueue.c for child property
7838         notification.
7839
7840         * gtk/gtkwidget.[hc]: provide necessary means for container child
7841         properties, i.e. ::child_notify signal,
7842         gtk_widget_freeze_child_notify(),
7843         gtk_widget_child_notify(),
7844         gtk_widget_thaw_child_notify().
7845
7846         * tests/testgtk.c: removed inferior property handling code, for
7847         property editing, a generic module should be used, and GLE
7848         coincidentally fullfills that purpose.
7849
7850         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
7851         needs to be adapted to g_object_class_list_properties() before this
7852         builds again.
7853
7854 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
7855
7856         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
7857         test if a node is expanded.
7858
7859 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
7860
7861         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7862         where collapsing a selected row would result in the cursor/anchor
7863         getting screwed up.
7864
7865 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
7866
7867         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
7868         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
7869         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
7870         Now I can really reorder/sort all Store widgets.  treesorttest
7871         seems to just work now.
7872         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
7873         testtreesort worked through a big coincidence all this time.
7874         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
7875         code.
7876         * tests/testtreecolumns.c: Big 'ol warning at the top letting
7877         people know that this code should never ever ever be copied.
7878
7879 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
7880
7881         * gtk/gtkwindow.h: Fixed a small typo, it should be
7882         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
7883         on line 134.
7884
7885 2001-06-14  Havoc Pennington  <hp@redhat.com>
7886
7887         Docs fixups, and:
7888         
7889         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
7890         GTK_DISABLE_DEPRECATED
7891
7892 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
7893
7894         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
7895         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
7896         finish it off tonight, though it basically works now when it's a
7897         list.  Also, I have a sinking feeling neither GtkTreeStore or
7898         GtkListStore actually resort when adding a new item.  I'll look
7899         into it.
7900
7901 2001-06-14  Havoc Pennington  <hp@redhat.com>
7902
7903         * demos/gtk-demo/main.c (load_file): fix bug identified by
7904         warnings I just added to gtktextbuffer
7905
7906 2001-06-14  Havoc Pennington  <hp@redhat.com>
7907
7908         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
7909
7910         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
7911
7912         * gtk/gtktextbtree.c: don't leak node data all over the place.
7913
7914         * demos/gtk-demo/main.c (main): create fontify tags for the right
7915         buffer
7916
7917         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
7918         to mention tags in the same table can't have the same name,
7919         suggested by Skip Montanaro
7920
7921 2001-06-11  Havoc Pennington  <hp@redhat.com>
7922
7923         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
7924         for trying to add two tags with same name to the tag table
7925
7926         * demos/gtk-demo/main.c (main): fix colors ;-)
7927
7928 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
7929
7930         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
7931         that allows grouping together multiple windows so that grabs
7932         within that set of windows only affect those windows.
7933
7934         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
7935         signal for notification when a widget becomes shadowed
7936         by a grab or is no longer shadowed by a grab.
7937
7938         * gtk/gtkwidget.c (gtk_widget_propagate_state)
7939           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
7940         insenstive widgets to maintain a grab.
7941
7942 2001-06-14  Alexander Larsson  <alexl@redhat.com>
7943
7944         * docs/README.linux-fb:
7945         Add some example config files that can be used with the URW fonts.
7946         
7947         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
7948         Set up the color ramps for DirectColor mode.
7949
7950 2001-06-11  Havoc Pennington  <hp@redhat.com>
7951
7952         * Release 1.3.6
7953          
7954 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
7955
7956         * gdk/linux-fb/gdkwindow-fb.c:
7957         Unify shaped window code and make it repaint the area that used
7958         to be part of the shape, but isn't anymore.
7959
7960 2001-06-11  Havoc Pennington  <hp@redhat.com>
7961
7962         * NEWS: Updates
7963
7964         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
7965
7966         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
7967         
7968 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
7969
7970         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
7971         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
7972         passes zero instead, so do we.
7973         
7974 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
7975
7976         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
7977         Deep copy dash_list too.
7978         (_gdk_fb_gc_new): Set default cap_style before
7979         setting values.
7980
7981 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
7982
7983         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
7984         gdk_keymap_get_direction): New functions.
7985
7986 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
7987
7988         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
7989         gtk_tree_model_get_flags by adding a second flag for atk.
7990
7991         * gtk/gtktreemodel.c: make cursor behavior interact better with
7992         mouse presses.
7993
7994 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
7995
7996         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
7997         expand_row/collapse_row to be 2 signals each -- test_expand_row
7998         and row_expanded as well as test_collapse_row and row_collapsed.
7999
8000 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
8001
8002         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
8003         signal name to be changed instead of selection_changed.
8004
8005 2001-06-08  Havoc Pennington  <hp@redhat.com>
8006
8007         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
8008         "scroll_offset" property for notification when the layout offsets
8009         may have changed
8010         (gtk_entry_adjust_scroll): add notify for scroll_offset
8011         (gtk_entry_layout_index_to_text_index): function to compensate for
8012         preedit string when doing coordinate stuff on the entry's layout
8013         (gtk_entry_text_index_to_layout_index): inverse function
8014         (gtk_entry_get_layout_offsets): hook to get current position of
8015         the layout      
8016         (gtk_entry_get_layout): hook to get the layout itself.
8017
8018         * gtk/gtklabel.c (gtk_label_get_layout): new function
8019
8020 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
8021
8022         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
8023         keybinding.
8024         (gtk_tree_view_focus): Fix merge conflict.
8025
8026 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
8027
8028         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
8029         clean up cursor handling.
8030
8031 2001-06-08  Havoc Pennington  <hp@redhat.com>
8032
8033         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
8034         function
8035
8036         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
8037         this function
8038
8039 2001-06-08  Alex Larsson  <alexl@redhat.com>
8040
8041         * gtk/gtkcompat.h.in:
8042         Added compat macros for all old GTK_TYPE_GDK_xxx types.
8043         Fixes bug #52892
8044
8045 2001-06-08  Havoc Pennington  <hp@redhat.com>
8046         
8047         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
8048         parent still
8049
8050 2001-06-08  Havoc Pennington  <hp@redhat.com>
8051
8052         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
8053         don't call g_list funcs on GSList
8054
8055         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
8056         gtk_container_focus(), since some widgets have focusable locations
8057         which are not other widgets. These widgets should not have to be 
8058         containers just to manage the focus. For example, GtkHSV is
8059         currently a container for no good reason. Also, this cleans
8060         up the "if (is_container && is_sensitive && is_drawable)
8061         container_focus ()" mess in widget implementations.
8062
8063         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
8064         function, and have it just call gtk_widget_child_focus().
8065
8066         * gtk/gtkhsv.c: derive from widget not container
8067         
8068         Throughout: fix to reflect GtkContainer::focus change
8069         
8070 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
8071
8072         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
8073         range.  Fix bug #55921
8074
8075         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
8076         (#55920).
8077
8078 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
8079
8080         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
8081         and gdk_keymap_get_current_direction().
8082
8083         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
8084           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
8085         the current locked group, use it to set the keymap
8086         direction.
8087
8088         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
8089         to determine whether we draw a split cursor or use
8090         a jumping cursor based on the current direction.
8091
8092         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
8093         Obey the split cursor setting. 
8094
8095 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
8096
8097         * gtk/gtkimmulticontext.c (activate_cb): Only activate
8098         when toggling on, not when toggling off... (#55906)
8099
8100 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
8101
8102         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
8103         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
8104         in docs. (#55812, Vitaly Tishkov)
8105
8106 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
8107
8108         * demos/gtk-demo/main.c (create_tree): Changed signal name from
8109         selection_changed to changed in signal connection to GtkTreeSelection,
8110         also used g_signal_connectc since GtkTreeSelection is now a GObject.
8111
8112 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
8113
8114         * gtk/gtktreeselection.c: Now it's a GObject instead of a
8115         GtkObject.  The GtkTreeSelection::selection_changed signal is now
8116         the GtkTreeSelection::changed signal.
8117
8118         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
8119         object.
8120
8121         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
8122         object.
8123
8124 2001-06-07  Havoc Pennington  <hp@redhat.com>
8125
8126         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
8127
8128 2001-06-07  Havoc Pennington  <hp@redhat.com>
8129         
8130         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
8131         (not tested yet because with absolute path to srcdir I can't build
8132         atk, but it was broken anyway so this may help) 
8133
8134 2001-06-07  Havoc Pennington  <hp@redhat.com>
8135
8136         * configure.in: output m4macros/Makefile
8137         
8138 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
8139
8140         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
8141         buttons.  Fixes #55460 reported by matthiasc@poet.de.
8142
8143 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
8144
8145         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
8146         expansion/collapsing so it only happens in one place.
8147         (gtk_tree_view_real_expand_row): ditto.
8148
8149 2001-06-07  Havoc Pennington  <hp@redhat.com>
8150
8151         * tests/Makefile.am: add missing -I flag
8152
8153         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
8154
8155         * configure.in: use pkg-config to see if GModule is
8156         supported; fix to properly turn on included loaders 
8157         when GModule isn't supported; don't use AC_CHECK_LIB 
8158         when libs are not installed yet
8159
8160         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
8161
8162         * Makefile.am (SUBDIRS): add m4macros subdir
8163
8164         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
8165         dependencies also.
8166
8167 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
8168
8169         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
8170         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
8171
8172 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
8173
8174         * gtk/gtktreeview.c
8175         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
8176         bindings to expand and collapse rows.
8177         (gtk_tree_view_real_select_cursor_parent): New key binding.
8178         (gtk_tree_view_real_toggle_cursor_row): New key binding.
8179
8180         * gtk/gtkmarshal.list: new
8181         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
8182
8183 2001-06-06  Havoc Pennington  <hp@redhat.com>
8184
8185         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
8186
8187         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
8188         Down to move visually rather than logically, since it confuses 
8189         people. Add -/+ and Ctrl--/+ bindings for logical movement.
8190
8191 2001-06-06  Alex Larsson  <alexl@redhat.com>
8192
8193         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
8194         Fix up error messages.
8195
8196 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
8197
8198         * gtk/gtktooltips.h: Include gtkwidget.h 
8199         (#55798, Karl Nelson)
8200
8201         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
8202         a valid latin-1 character. (Marc Lehmann, #35467)
8203
8204         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
8205         (Marc Lehmann, #35467)
8206         
8207 2001-06-05  Alex Larsson  <alexl@redhat.com>
8208
8209         * demos/gtk-demo/appwindow.c (do_appwindow):
8210         Don't swap the order of the args to gtk_widget_destroyed.
8211
8212         * tests/testgtk.c (destroy_properties):
8213         Don't crash when the properties window is destroyed.
8214
8215         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
8216         Use with_mnemonics to handle the case of stock items with
8217         underscores in them.
8218
8219 2001-06-05  Havoc Pennington  <hp@redhat.com>
8220
8221         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
8222         gtk_text_iter_reorder
8223
8224 2001-06-05  Havoc Pennington  <hp@redhat.com>
8225
8226         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
8227
8228 2001-06-05  Havoc Pennington  <hp@redhat.com>
8229
8230         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
8231         to the range that was set
8232
8233         * gtk/gtkrange.c: add value_changed signal, primarily 
8234         intended for use with GtkScale
8235         (gtk_range_set_increments): new function
8236         (gtk_range_set_range): new function with weird name
8237         (gtk_range_set_value): new function
8238         (gtk_range_get_value): new function
8239
8240         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
8241         from gtk_spin_button_get_value_as_float(). Compat #define
8242         added for get_value_as_float.
8243
8244         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
8245
8246         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
8247
8248 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
8249
8250         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
8251
8252 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
8253
8254         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
8255
8256         * tests/testgtk.c (create_tooltips): Remove usage of
8257         gtk_widget_set().
8258
8259 2001-06-05  Havoc Pennington  <hp@redhat.com>
8260
8261         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
8262
8263         Applying patch from Jeff Franks, with function docs added.
8264         
8265         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
8266         remove call to set_mnemonic_widget, change docs a bit.  
8267
8268         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
8269         new function
8270
8271         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
8272         new function
8273
8274         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
8275
8276         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
8277         function
8278         (gtk_radio_button_new_with_mnemonic_from_widget): new function
8279
8280         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
8281         new function
8282
8283         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
8284         function        
8285
8286         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
8287         auto-selection of mnemonic widget.
8288
8289 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
8290
8291         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
8292         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
8293         (gtk_tree_view_column_set_min_width): ditto.
8294
8295 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
8296
8297         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
8298         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
8299
8300 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
8301
8302         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
8303         gtk_clist_thaw().
8304
8305 2001-06-04  Havoc Pennington  <hp@pobox.com>
8306
8307         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
8308 r       eleases for buttons 6, 7
8309
8310 2001-06-04  Havoc Pennington  <hp@redhat.com>
8311
8312         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
8313         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
8314         #55562
8315
8316 2001-06-04  Havoc Pennington  <hp@redhat.com>
8317
8318         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
8319         where text_view->layout == NULL by assuming its size is 0, 
8320         i.e. same as if we haven't done any reflow. Reported by 
8321         Hidetoshi Tajima #55448 
8322
8323 2001-06-04  Havoc Pennington  <hp@redhat.com>
8324
8325         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
8326         and 7 for scroll left/right, from Thomas Broyer
8327
8328 2001-05-10  Havoc Pennington  <hp@redhat.com>
8329
8330         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
8331         we need to parse the xsetting as if it were an RC file string.
8332
8333         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
8334         value of palette from settings, not from static variable
8335
8336         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
8337         xsettings translation table
8338
8339         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
8340         hardcoding the toolbar style conflicts with new customizable 
8341         toolbar style philosophy
8342         (gtk_toolbar_class_init): add settings for default toolbar style;
8343         these are used unless the app specifically forces a toolbar style
8344
8345         * gtk/gtksettings.c (settings_install_property_parser): only
8346         return at the start if we warn and parser == NULL
8347
8348         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
8349         palette changed handler so we don't notify dead color selections
8350
8351         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
8352         xthickness/ythickness of 0 or 1 properly 
8353         (gtk_default_draw_resize_grip): clear the background behind the
8354         resize grips, and align to bottom right if we square the 
8355         area to be drawn.
8356
8357         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
8358         statusbar label to 1, so it doesn't make toplevels resize oddly
8359         (gtk_statusbar_size_request): add grip size to request
8360         (gtk_statusbar_size_allocate): hack so the hbox still works with 
8361         the grip size in the request
8362
8363         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
8364         bug where showing all on a toplevel makes the toolbar 
8365         button text appear despite the toolbar mode
8366
8367         * gtk/gtkmenubar.c: add internal padding style property
8368
8369         * gtk/gtktoolbar.c: Add internal padding style property; add
8370         shadow type style property
8371
8372         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
8373         state; and put Container::border_width outside the frame
8374
8375         * gtk/gtktextview.c: don't draw focus rectangle if we're in
8376         interior focus mode, we just use blinking cursor
8377
8378 2001-06-04  Havoc Pennington  <hp@redhat.com>
8379
8380         * configure.in: Make gdk-pixbuf have same version number as GTK
8381
8382 2001-06-04  Havoc Pennington  <hp@redhat.com>
8383
8384         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
8385         digits greater than 6. If there actually are limits (which there
8386         likely aren't), should clamp to them not warn.
8387         (gtk_spin_button_new_with_range): don't take log of 0
8388         (gtk_spin_button_size_request): use digits to compute size
8389         request, rather than step increment.
8390
8391         * tests/testgtk.c (create_spins): test larger values of digits
8392         
8393         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
8394         font on map not expose, so we don't get weirdness during scrolling
8395
8396 2001-06-04  Havoc Pennington  <hp@redhat.com>
8397
8398         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
8399         Sam Solon, bug #54577, update value even if not drawable.
8400
8401 2001-06-04  Havoc Pennington  <hp@redhat.com>
8402
8403         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
8404         SCROLL_LEFT, reported by Thomas Broyer.
8405
8406 2001-06-04  Havoc Pennington  <hp@redhat.com>
8407
8408         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
8409         Process updates immediately, to prevent funny lag effect
8410         when scrolling, at some mild potential efficiency cost.
8411
8412 2001-06-04  Havoc Pennington  <hp@redhat.com>
8413
8414         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
8415         slider on the click.
8416
8417 2001-06-03  Havoc Pennington  <hp@pobox.com>
8418
8419         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
8420         hscale/vscale details, so we can use it for scrollbar as well.
8421
8422         * tests/testgtk.c (reformat_value): honor digits from GtkScale
8423
8424         * gtk/gtkenums.h (GtkTroughType): Remove this enum
8425         (GtkScrollType): add START and END from GtkTroughType
8426
8427         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
8428         its x/y arguments
8429
8430         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
8431         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
8432         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
8433         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
8434         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
8435
8436         Notable changes in the process:
8437          
8438         - stepper_size style property is the height for vertical 
8439           ranges, width for horizontal; the other dimension matches
8440           the trough size
8441         - add ability to do NeXT-style steppers (and several other styles
8442           that don't make any sense)
8443         - added min_slider_length, fixed_slider_length properties to
8444           GtkScrollbar
8445         - cleaned some private (or at least useless) functions out of
8446           gtkscale.h    
8447         - moved bindings to GtkScale from subclasses, even arrow keys,
8448           since blind users don't know scale orientation.
8449         - change move_slider action signal to use new GtkScrollType,
8450           remove GtkTroughType argument
8451         - digits rounds the values a range will input to the given 
8452           number of decimals, but will not try to force adjustment 
8453           values set by other controllers. That is, we no longer
8454           modify adjustment->value inside a value_changed handler.
8455         - added getters for GtkScale setters
8456         - middle-click begins a slider drag
8457         
8458 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
8459
8460         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
8461         getting the focus code to work.
8462         (gtk_tree_view_class_init): Add a bunch of keybindings.
8463
8464         * gtk/gtktreeviewcolumn.c
8465         (gtk_tree_view_column_set_cell_data_func):
8466         s/GtkCellDataFunc/GtkTreeCellDataFunc.
8467         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
8468         of "properties_changed" to help justify the death of the latter
8469         signal. (-:
8470
8471         * tests/testtreefocus.c (main): Let some columns be focussable to
8472         test focus better.
8473
8474 2001-06-01  Havoc Pennington  <hp@redhat.com>
8475
8476         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
8477         
8478         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
8479         overwrite in overwrite mode if we already deleted the selection
8480         and replaced it with new text.  
8481
8482         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
8483         selection to an empty range, clear the clipboard if we owned it.
8484         (gtk_label_set_selectable): give up selection if we become
8485         unselectable.
8486         (gtk_label_state_changed): override state changed to unselect text
8487         when insensitive
8488         (get_text_callback): add paranoia check that indexes aren't
8489         outside of label->text
8490         (gtk_label_select_region): make -1 for start_offset mean "end of
8491         label," for consistency with GtkEditable
8492
8493         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
8494         GTK_DIALOG_NO_SEPARATOR flag
8495
8496 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
8497
8498         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
8499         notifications on non-existant "enable_arrow_keys".
8500         (#53753, Skip Montanaro)
8501
8502 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
8503
8504         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
8505         GDK_TYPE_RECTANGLE.
8506
8507         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
8508         of allocation argument be GDK_TYPE_RECTANGLE.
8509
8510 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
8511
8512         * gtk/gtkoptionmenu.c: Account for the fact that the border
8513         width is _outside_ the window. (Fixes #54585, bug found
8514         by Bastien Nocera.)
8515
8516 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
8517
8518         * gtk/gtksettings.c (gtk_settings_get_property): Validate
8519         value from GDK settings against parameter spec.
8520
8521         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
8522         to temporary values and use g_value_transform(), since
8523         thinking that GValue was going to be easy or efficient
8524         to use was, of course, a mistake.
8525
8526         * gtk/gtksettings.c: Add cursor blink setting.
8527         
8528         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
8529
8530         * gtk/gtkentry.c: Add cursor blinking.
8531
8532         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
8533         cursor blink global settings.
8534
8535         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
8536         for :text_position in places where it is missing.
8537
8538 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
8539
8540         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
8541
8542 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
8543
8544         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
8545         not pkg-config. (#51032)
8546
8547         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
8548         (fixes #51952, James Henstridge)
8549         
8550 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
8551
8552         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
8553         Rename to the more correct gtk-go-up.
8554
8555         * gtk/stock-icons/stock_menu_sort_ascending.png:
8556         Added new file.
8557         
8558         * gtk/stock-icons/stock_menu_sort_descending.png:
8559         Changed to show descending instead of ascending.
8560
8561         * gtk/gtkiconfactory.c:
8562         Added menu size icon to sort ascending.
8563
8564         * gtk/stock-icons/Makefile.am:
8565         Added stock_menu_sort_ascending.png.
8566         
8567         * gtk/gtkseparatormenuitem.c:
8568         Use correct typenames.
8569
8570 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
8571
8572         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
8573         gulong as in GSignal.
8574
8575 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
8576
8577         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
8578         instances of GtkCellRenderer in code (all but dnd icon code).
8579         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
8580         there, and I can do multiple Cells per column.
8581
8582         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
8583
8584         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
8585         when model was unreffed prior to removing the row reference.
8586
8587 2001-05-25  Havoc Pennington  <hp@redhat.com>
8588
8589         * gtk/gtkiconfactory.c: fix so that default icons are created if 
8590         you call gtk_stock_list_ids()
8591
8592         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
8593         in list
8594
8595 2001-05-25  Havoc Pennington  <hp@redhat.com>
8596
8597         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
8598         set can render without falling back to missing image icon
8599
8600         * gtk/gtktextview.c (gtk_text_view_size_request): request full
8601         size of text, instead of random values
8602
8603         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
8604         size of tree view, instead of random values
8605
8606         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
8607         image in an appropriate size
8608
8609         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
8610         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
8611
8612         Throughout: fix GTK_STOCK_BUTTON_ instances
8613         
8614         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
8615         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
8616         Add a bunch of new stock items/icons
8617
8618         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
8619         new function, convenience for inserting columns with a data func
8620
8621         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
8622         (_gtk_icon_factory_list_ids): use list of all factories to
8623         generate a list of all known IDs
8624
8625         * gtk/gtkstock.c (gtk_stock_list_ids): replace
8626         gtk_stock_list_items() with a function that returns all IDs known
8627         including those for GtkIconFactory.
8628
8629 2001-05-25  Hans Breuer  <hans@breuer.org>
8630
8631         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
8632         work -> check boxes and radio buttons are drawn now, even on win9x.
8633         Improved line settings a bit, still no clue how to get really dotted
8634         lines on win9x, on NT it's PS_ALTERNATE.
8635
8636         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
8637         GDK_HINT_MIN_SIZE as well
8638
8639         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
8640
8641         * gtk/gtk.def : updated
8642
8643         * gtk/gtktreeprivate.h : change column_drop_func to be a function
8644         pointer not a function pointer pointer
8645
8646         * tests/testdnd.c : include <stdlib.h> for putenv prototype
8647
8648         * tests/testsocket.c : made it compile on win32 again
8649
8650         * tests/makefile.msc : one more test-app uses prop-editor.obj
8651
8652 2001-05-22  Havoc Pennington  <hp@pobox.com>
8653
8654         * gtk/gtkbin.c (gtk_bin_get_child): New function
8655
8656 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
8657
8658         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
8659         to ignore when doing compose processing.
8660
8661 2001-05-22  Joe Shaw  <joe@ximian.com>
8662
8663         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
8664         Simplify as suggested by Havoc. Just get the last iter and work
8665         backward to the tag instead of getting a line and working back from
8666         there. Fixes passing in an invalid offset to
8667         iter_init_from_byte_offset().
8668
8669 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
8670
8671         * gtk/gtktreeview*.h: 
8672         * gtk/gtkcell*.h:
8673         * gtk/gtk*store.h:
8674         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
8675         macros to all objects.
8676
8677 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
8678
8679         * gtk/gtkcellrenderertext.c
8680         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
8681         with very large (TM) amounts of text.  May be moved to
8682         GtkCellRenderer in the future, though I'm not sure it wants to be
8683         this accessible.
8684
8685         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
8686         More sanity brought to this class.  I like it.
8687
8688         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
8689         case.  Kids, don't try this at home.
8690
8691         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
8692         convenience function.
8693
8694         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
8695
8696 2001-05-21  Alexander Larsson  <alexl@redhat.com>
8697
8698         * gtk/gtkfontsel.c:
8699         Added properties. Based on patch by Lee Mallabone.
8700
8701         * gtk/gtkruler.c:
8702         * gtk/gtkhruler.c:
8703         * gtk/gtkvruler.c:
8704         * gtk/gtktext.c:
8705         * gtk/gtktextview.c:
8706         Converted GtkArg to GParam. Based on patches by John Margaglione.
8707
8708         * tests/Makefile.am:
8709         * tests/testtext.c:
8710         Add a property editor to testtext.
8711         
8712 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
8713
8714         * gtk/gtk{h,v,}paned.c: Only show the separator if 
8715
8716         * configure.in: Fixed reversed conditional causing all image
8717         libraries to be linked in.
8718
8719 2001-05-21  Joe Shaw  <joe@ximian.com>
8720
8721         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
8722         that top_y needs to be >= 0.
8723
8724 2001-05-11  Havoc Pennington  <hp@pobox.com>
8725         
8726         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
8727         losing connection to the X server.
8728
8729 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
8730
8731         * configure.in: Start checks for X from pangox/pangoxft
8732         CFLAGS to avoid duplicate libraries.
8733
8734         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
8735
8736         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
8737         to include gobject.
8738         
8739 2001-05-18  Alexander Larsson  <alexl@redhat.com>
8740
8741         * gtk/gtkspinbutton.c:
8742         Convert GtkArgs to GParams. Based on patch by John Margaglione.
8743         Also do size request reasonable for MAXDOUBLE. Previously it printed
8744         the limits to a buffer and overran it. Instead do it using log10() and
8745         limit the width to 10 digits.
8746         
8747         * gtk/gtkwidget.c (gtk_widget_get_property):
8748         Correctly handle setting the parent property to NULL.
8749
8750 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
8751
8752         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
8753         style attributes even if the widget isn't realized.
8754
8755         * demos/gtk-demo/main.c: Use a slightly smaller font.
8756
8757 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
8758
8759         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
8760         This is something that only a widget writer would ever want
8761         to change.
8762
8763         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
8764         gtk_signal_emit_by_name().
8765
8766         * gtk/gtkviewport.c: Fix some warnings.
8767
8768         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
8769         allowing the requisitions of multiple widgets to be grouped
8770         together.
8771
8772         * tests/testgtk.c: Add GtkSizeGroup test
8773
8774         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
8775
8776         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
8777         warnings.
8778
8779         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
8780
8781 2001-04-28  Martin Baulig  <baulig@suse.de>
8782
8783         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
8784         to gtk_image_menu_item_set_icon() and made it work if there's already
8785         an image.
8786         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
8787         (gtk_image_menu_item_new_with_label): New function.
8788
8789 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
8790
8791         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
8792         highlighting code!!!!  The result is okay so long as you don't try
8793         to stress it.  It also highlights a bug in the TextView so it's in
8794         an unproportional font right now until it's fixed.
8795
8796         *demos/gtk-demo/*.c: Clean up code a bit to make it
8797         ugly-parser(TM) friendly. (-:
8798
8799 2001-05-17  Joe Shaw  <joe@ximian.com>
8800
8801         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
8802         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
8803         if it is only partially onscreen.
8804
8805 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
8806
8807         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
8808         not by characters.
8809
8810         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
8811         are not zero or one; that is, when graphemes of multiple characters
8812         are involved.
8813
8814         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
8815         FIXME.
8816
8817 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
8818         
8819         * gtk/gtkbbox.c:
8820         Add properties, based on patch by Lee Mallabone.
8821
8822         * gtk/gtknotebook.c:
8823         * gtk/gtktoolbar.c:
8824         Convert from GtkArg to GParam, based on patch by John Margaglione.
8825         
8826         * gtk/gtkhscale.c:
8827         * gtk/gtkvscale.c:
8828         * gtk/gtkhscrollbar.c:
8829         * gtk/gtkvscrollbar.c:
8830         * gtk/gtkrange.c:
8831         Move adjustment property to GtkRange.
8832
8833         * gtk/gtklabel.c:
8834         Setup mnemonics on property changes
8835
8836         * gtk/gtkwidget.c (gtk_widget_get_property):
8837         GdkExtensionMode is an enum, not a flag. Set it with
8838         g_value_set_enum ().
8839
8840         * tests/prop-editor.c:
8841         Better propery editor.
8842
8843         * tests/testgtk.c:
8844         Add new property test. Pass zero to the property editor to
8845         get properties from all derived types.
8846         
8847 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
8848
8849         * autogen.sh (have_automake): Require libtool-1.4,
8850         automake-1.4p1.
8851
8852         * acinclude.m4: Remove libtool macros.
8853
8854         * gdk-pixbuf/Makefile.am: Add dependencies to loade
8855         modules.
8856
8857         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
8858         for libgdk.
8859
8860         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
8861         libgdk.la for libgtk.
8862
8863         * modules/input/Makefile.am: Make modules have full
8864         dependencies.
8865
8866 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
8867
8868         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
8869         #54699 where paths weren't being checked for correctness.
8870
8871 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
8872
8873         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
8874         in any order you wan, whether or not the column is added to the
8875         tree, or the tree is realized.  Yay!
8876
8877         * gtk/gtktreeviewcolumn.c
8878         (gtk_tree_view_column_setup_sort_column_id_callback): handle
8879         sorting columns a lot saner
8880
8881         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
8882         new function to actually set wether or not a column is
8883         reorderable.
8884
8885         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
8886         if we have 'em.
8887
8888         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
8889         Fix nasty bug where we were showing the button just before
8890         realizing it.  As a result, the parent window was
8891         tree_view->window instead of tree_view->priv->header_window.
8892
8893         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
8894         to let you easily reorder a list or tree.
8895
8896 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
8897
8898         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
8899         from args to properties.
8900
8901 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
8902
8903         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
8904         from args to properties. (#51957)
8905
8906         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
8907         calls to after ->set_property call.
8908
8909 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
8910
8911         * tests/prop-editor.c: Block against redundant changes.
8912
8913         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
8914         properties.
8915
8916 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
8917
8918         * gdk/gdkpixmap.h: Remove creative formatting.
8919
8920 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
8921
8922         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
8923         property API. (#51669)
8924
8925         * gtk/gtkscale.c: Patch from John Margaglione converting to
8926         property API. (#51891)
8927
8928         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
8929         to property API. (#50985)
8930
8931 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
8932
8933         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
8934         buffering state across expose event, so we still call end_paint().
8935
8936 2001-05-11  Alexander Larsson  <alexl@redhat.com>
8937
8938         * gtk/gtkhsv.c (paint_triangle):
8939         Expose the ring in the triangle at the correct place when
8940         exposing just a part of the triangle.
8941
8942         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
8943         Return FALSE, or window focusing will not work.
8944
8945 2001-05-11  Havoc Pennington  <hp@pobox.com>
8946
8947         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
8948         #54144
8949
8950         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
8951         bug #54330
8952
8953 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
8954
8955         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
8956         propagate exposes to NULL child.
8957
8958         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
8959         against not having one of the scrollbars.
8960
8961         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
8962         we don't keep a mnemonic window if we have no mnemonic installed.
8963
8964 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
8965
8966         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
8967         it has the _important_ side effect of initializing a class.
8968
8969 2001-05-10  Alexander Larsson  <alexl@redhat.com>
8970
8971         * gdk/linux-fb/gdkprivate-fb.h:
8972         Make sure you can compile out the implementation/wrapper assert
8973         macros.
8974
8975         * gdk/linux-fb/gdkdrawable-fb2.c:
8976         Check implementation/wrappers, initialize type for pixmap dummys.
8977
8978         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
8979         Hide the cursor if reading from the screen.
8980
8981         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
8982         Fix sign bug in tiling code.
8983
8984         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
8985         Handle background pixmaps.
8986
8987 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
8988
8989         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
8990         function to let user control where columns are dragged.
8991
8992         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
8993         Escape is pressed.
8994
8995 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
8996
8997         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
8998         "columns_changed" signal.
8999         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
9000         motion code to draw arrows to the side if indicator is outside the
9001         widget.
9002         (gtk_tree_view_map_expanded_rows): Implement.
9003
9004 2001-05-07  Alexander Larsson  <alexl@redhat.com>
9005
9006         * demos/testpixbuf-save.c: 
9007         * demos/testpixbuf-drawable.c:
9008         Include gdkfb.h on linux-fb.
9009
9010 2001-05-07  Alexander Larsson  <alexl@redhat.com>
9011
9012         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
9013         New function for getting toplevel window at position.
9014         (gdk_drag_find_window): Use get_toplevel_window () instead
9015         of gdk_window_get_pointer(). (gdk_drag_status): Use
9016         correct context for getting window.
9017
9018         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
9019         g_strdup the atom name.
9020
9021         * gdk/linux-fb/gdkwindow-fb.c:
9022         Costmetic fix.
9023
9024         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
9025         Add code for changing cursor on linux-fb backend (same as
9026         win32).
9027
9028 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
9029
9030         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
9031         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
9032         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
9033         report was not for the development branch of GTK+, but it applies
9034         anyways).
9035
9036 2001-05-04  Havoc Pennington  <hp@redhat.com>
9037
9038         * configure.in: fix some shell typos
9039
9040         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
9041
9042         * gtk/gtkimage.c: handle animations
9043
9044         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
9045         border_width * 2, not just border_width
9046
9047         * gtk/gtkscale.c: add "format_value" signal to allow people
9048         to override the way values are drawn.
9049         (gtk_scale_get_value_size): fix width/height mistake,
9050         and compute size from actual displayed text, not 
9051         from made-up text.
9052
9053         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
9054         signal registration
9055
9056         * tests/testtext.c: Add "Remove all tags" menu item for testing
9057
9058         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
9059
9060         * demos/gtk-demo/main.c (main): add hack so we can find modules
9061         without installing gtk
9062
9063         * demos/gtk-demo/textview.c (insert_text): demo font scaling
9064
9065         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
9066         factor)
9067         (gtk_cell_renderer_text_set_property): remove some bogus
9068         g_object_notify
9069
9070         * gtk/gtktexttag.c: add "scale" property which is a font scaling
9071         factor
9072
9073         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
9074         to layout
9075
9076         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
9077         gtk_text_iter_is_first
9078
9079 2001-01-06  Hans Breuer  <hans@breuer.org>
9080
9081         * gdk/gdk.def : updated exports
9082
9083         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
9084         gdk won't compile anymore
9085  
9086         * gdk/win32/gdkevents-win32.c : initialize ret_val when
9087         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
9088         Improved gdk_flush () to not only do pending drawing operations
9089         but also process all currently pending events. This should make
9090         the behaviour more similar to the X11 version.  
9091
9092         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
9093         option needs to be set even if there is no GDK_GC_BACKGROUND.
9094         (gdk_win32_hdc_get) : use predraw_set_background () independent
9095         of value_mask. This allows to draw dashed lines leaving the original
9096         background intact.
9097
9098         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
9099         after processing, because we can't reuse it as the X11 version does.
9100
9101         * gtk/gtk.def : updated exports
9102
9103         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
9104         would like to get rid of this file again, and use straight
9105         makefile.msc again, as the other Gtk+ subdirs do)
9106
9107         * test/makefile.msc (new file) : build the test apps here
9108
9109 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
9110
9111         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
9112         strike-through setting
9113         (gdk_draw_layout_line_with_colors): Render strike-through
9114
9115 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
9116
9117         * Release 1.3.5
9118
9119         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
9120
9121         * NEWS: Updated
9122
9123         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
9124         Makefile breakage.
9125
9126 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
9127
9128         * demos/gtk-demo/images.c (progressive_timeout): Fix
9129         typo in filename.
9130
9131         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
9132         out FIXME warning; just too annoying.
9133
9134 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
9135
9136         * gdk/linux-fb/gdkcolor-fb.c:
9137         Better error messages.
9138
9139         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
9140         Initialize abs_x and abs_y.
9141         
9142         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
9143         Correct handling of stipple offset.
9144
9145         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
9146         Treat directcolor framebuffers as truecolor.
9147         
9148 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
9149
9150         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
9151         dependency on Atk for accessibility support.
9152
9153         * configure.in **/Makefile.am: Major reworking of substituted
9154         variables for CFLAGS/LIBS to make a lot more sane and 
9155         keep the the compile/link lines a bit shorter.
9156
9157         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
9158
9159 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
9160
9161         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
9162         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
9163         use _gtk_boolean_handled_accumulator.
9164
9165 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
9166
9167         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
9168         to fix things so clicking inside selection leaves cursor
9169         at point where clicked. (#50324)
9170
9171         * gtk/gtksettings.c (gtk_settings_class_init): Restore
9172         sane value for default double click time.
9173
9174         * tests/testtext.c (test_init): Really path to input modules.
9175
9176 2001-05-03  Sven Neumann  <sven@convergence.de>
9177
9178         * demos/testpixbuf-save.c: include target-specific headers as
9179         done in testpixbuf-drawable.c
9180
9181 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
9182
9183         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
9184         new_text_length appropriately when we run into the 
9185         size limit for the entry. (#53445, reported by Jeff Franks)
9186
9187         * tests/testgtk.c (create_entry): Remove most of the
9188         property toggle buttons. Replace with a "Props" button
9189         that brings up a property editor.
9190
9191         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
9192         Split the property editor code out for reuse, improve.
9193
9194 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
9195
9196         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
9197         trap errors around calls to XSetInputFocus since we have
9198         no way of knowing reliably whether we are viewable or
9199         not. (#53947)
9200
9201 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
9202
9203         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
9204         fix bug in dropping columns.  Moving columns now basically works
9205         modula some fine tuning.
9206
9207 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
9208
9209         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
9210         autoscroll support.  It mostly works, but could use some fine
9211         tuning.
9212         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
9213         Actually move the column.
9214
9215 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
9216
9217         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
9218           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
9219           New default theme! A slighly improved version of the 2.0 Raleigh
9220           theme, with Windows-esque focus/drawing default. 
9221           (GtkWidget::interior_focus defaults to TRUE.)
9222
9223         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
9224
9225 2001-04-30  Havoc Pennington  <hp@pobox.com>
9226
9227         * tests/testtext.c (line_numbers_expose): fix to work with
9228         gtk_paint_layout change
9229
9230 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
9231
9232         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
9233           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
9234           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
9235           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
9236
9237         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
9238           with GtkWidget::interior_focus = TRUE better.
9239
9240         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
9241         ::default_outside_border for more flexibility.
9242
9243         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
9244         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
9245         change that had to be made with g_object_get.
9246
9247 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
9248
9249         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
9250         (gtk_tree_view_move_column_after): Clean up interface. 
9251
9252 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
9253
9254         * gtk/gtkpacker.h:
9255         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
9256          to gtkenum.h.
9257
9258         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
9259         handled in switch).
9260
9261         * gtk/Makefile.am:
9262         (gtk.defs): generate enum portions with  glib-mkenums.
9263         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
9264         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
9265         
9266         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
9267         addition.
9268
9269         * docs/Changes-2.0.txt: keep a note on signal handlers now
9270         not getting emitted during the emission they were connected within.
9271
9272 2001-04-28  Havoc Pennington  <hp@pobox.com>
9273
9274         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
9275
9276 2001-04-24  Havoc Pennington  <hp@redhat.com>
9277
9278         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
9279         (gtk_text_layout_move_iter_to_next_line): fix these two for
9280         invisible text, lots of other stuff still hosed.
9281
9282         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
9283         new function, replaces the get/set palette stuff. This function 
9284         is intended for use by libgnomeui which should set the hook to a
9285         thing which sets the palette in GConf, and we need the
9286         GConf-to-xsettings proxy which will result in the change being
9287         propagated back to the GTK app.
9288
9289         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
9290         about unusable signals that it may be because the signal has 
9291         parameters.
9292
9293         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
9294         style, otherwise gtkrc.c won't know to create a new GtkStyle for
9295         it.
9296         (gtk_widget_modify_color_component): call
9297         gtk_widget_modify_style() so the rc style will get copied.
9298         (gtk_widget_modify_font): ditto
9299
9300         * gtk/gtkrc.c: make a couple variables static
9301
9302         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
9303         help button by default, since it does nothing
9304
9305         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
9306         around with UI
9307
9308         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
9309         so we can have tooltips
9310
9311         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
9312         can have tooltips
9313
9314         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
9315         GDK_ENABLE_BROKEN, because its memory behavior is completely
9316         hosed.
9317
9318         * gtk/gtknotebook.c: remove key press handler, replace with
9319         binding set, add numeric keypad support
9320
9321         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
9322
9323         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
9324
9325         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
9326         addition to plain Delete
9327
9328         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
9329         GDK_KP_Enter in addition to GDK_Return
9330
9331         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
9332         activate on entry instead of key press
9333         (gtk_font_selection_on_clist_key_press): get
9334         rid of this signal handler, not needed with new font sel.
9335
9336         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
9337         no-longer-needed emit_stop_by_name(), just return TRUE
9338
9339         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
9340         cruft, this widget is no longer focusable.
9341
9342         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
9343         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
9344         move_slider action signal, add binding set for vscale/hscale, in
9345         the process support numeric keypad
9346
9347         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
9348         make GDK_Return and GDK_KP_Enter activate the entry via 
9349         binding set, instead of hardcoded.
9350
9351 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
9352
9353         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
9354         code.  Some documentation added.
9355
9356 2001-04-27  Havoc Pennington  <hp@redhat.com>
9357
9358         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
9359
9360         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
9361
9362         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
9363         line/para separators
9364         (gtk_entry_create_layout): set single paragraph mode on the layout
9365
9366         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
9367         spacing between the image and label; instead, inside a button box 
9368         the button will get extra space that will go there, but if people 
9369         configure button box for 0 chubbiness, then there's no spacing.
9370
9371         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
9372         and min/max size style properties, so people can tune their
9373         chubbiness.
9374
9375         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
9376         functions
9377
9378         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
9379         space_style, and button_relief into style properties, remove
9380         functions for setting them
9381         
9382         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
9383         it back down
9384
9385         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
9386         types from gtk_widget_style_get
9387
9388         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
9389         with a style property.
9390
9391         * gdk/x11/gdkevents-x11.c: namespace the settings
9392
9393         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
9394
9395         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
9396         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
9397         be used. Also, translate doc strings for settings. Also, namespace
9398         the double-click-time property. Also, remove bell properties crap.
9399
9400 2001-04-27  Sven Neumann  <sven@gimp.org>
9401
9402         * Makefile.am: before creating links, check if pkg-config files
9403         exist for the default target. Otherwise link to the pkg-config files
9404         that got installed with this build.
9405
9406 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
9407
9408         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
9409         dragging code.  Revealed some (potential) GdkWindow bugs.
9410
9411         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
9412         _gdk_window_init_position to the end of reparent to fix the case
9413         of reparenting when new_x != old_x and new_y != old_y.
9414
9415 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
9416
9417         * gtk/gtkentry.c (strstr_len): Fix optimization that
9418         was correct for the use here, but completely incorrect
9419         in general.
9420
9421 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
9422
9423         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
9424         until patch adding gtk_window_set_size() is recommitted. 
9425
9426         * **Makefile.am configure.in gdk/x11/gdkim-11.c
9427           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
9428           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
9429           (#10784)
9430
9431 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
9432
9433         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
9434         window == NULL in a number of cases.
9435
9436         * tests/testdnd.c: Set module path for gdk-pixbuf.
9437
9438 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
9439
9440         * gtk/Makefile.am xembed.h: File containing #defines
9441         for XEMBED protocol.
9442
9443         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
9444
9445         - Change protocol from old plug/socket specific protocol
9446           to XEMBED draft
9447         - Various fixes to work with GTK+-2.0
9448
9449         Still quite a bit of work to do here to handle initiation
9450         from the socket side (as specified by XEMBED), to handle
9451         the more advanced features of XEMBED, and to figure out
9452         a good way to handle same-app embedding with less overhead
9453         than using full XEMBED.
9454
9455 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
9456
9457         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
9458         track of whether the toplevel has the focus; only send
9459         focus-in events to the focus widget when the window
9460         actually has the focus.
9461
9462 2001-04-25  Havoc Pennington  <hp@pobox.com>
9463
9464         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
9465         were still in the header
9466
9467 2001-04-24  Alexander Larsson  <alexl@redhat.com>
9468
9469         * gtk/gtkclist.[ch]:
9470         * gtk/gtkctree.c:
9471         When there is a row highlighted for D'n'D it must alse
9472         be painted hightlighted on exposes. Otherwise exposes from
9473         the icon being dragged will mess up the hightlight.
9474
9475         * gtk/gtkfontsel.c:
9476         Don't recenter selected font when exposing the font family
9477         clist. This means you can now actually scroll the font family
9478         list.
9479
9480         * gtk/gtknotebook.c:
9481         Fix focus movement on scrolling tabs that are placed on the left
9482         and right.
9483
9484 2001-04-21  Havoc Pennington  <hp@pobox.com>
9485
9486         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
9487         empty/invisible lines.
9488
9489         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
9490         (gtk_text_iter_set_visible_line_index): new functions to set
9491         indexes excluding invisible text
9492
9493         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
9494         index
9495
9496         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
9497         (gtk_text_iter_get_visible_line_offset): new functions to 
9498         get indexes excluding invisible text
9499
9500         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
9501         bunch of extra padding that served no purpose
9502
9503         * gtk/gtkdialog.c: Make all the spacings configurable via style
9504         properties, for chubbiness configuration in themes
9505
9506         * tests/testtext.c: fix path to the immodules.
9507         
9508 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
9509
9510         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
9511         got munched by #endif.
9512
9513         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
9514
9515         * gtk/gtktreeview.c: Refactored code to clean up a number of
9516         events.
9517
9518         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
9519         values to make consistent with other functions.  Spotted by Jeff
9520         Franks <jcf@tpg.com.au>.
9521
9522         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
9523         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
9524
9525 2001-04-23  Sven Neumann  <sven@gimp.org>
9526
9527         * gtk/Makefile.am
9528         * gtk/gtkplug.c
9529         * gtk/gtksocket.c: on request of Owen, reverted my last change 
9530         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
9531
9532 2001-04-23  Sven Neumann  <sven@gimp.org>
9533
9534         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
9535         compile for non-X11 targets again
9536
9537 2001-04-20  Alexander Larsson  <alexl@redhat.com>
9538
9539         * gtk/gtkcolorsel.[ch]:
9540         API Change. Take GdkColor arguments instead of gdouble *.
9541         Leave the old gtk_color_selection_set_color for compatibility,
9542         but marked deprecated.
9543         Do correct rounding when converting RGB <-> HSV.
9544         
9545         * gtk/gtkcolorseldialog.c:
9546         * tests/testgtk.c:
9547         Use new GtkColorSelection API.
9548
9549         * gtk/gtkhsv.c:
9550         Fix problem selecting colors in triangle when Hue is 330.
9551         Fix some black dots around the HSB triangle.
9552         
9553         * gtk/gtkfilesel.c:
9554         return FALSE from the focus_in_event handler to fix focus problems.
9555
9556 2001-04-18  Havoc Pennington  <hp@redhat.com>
9557
9558         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
9559         set, so keybindings are configurable    
9560         (gtk_window_activate_default): Change to activate the focus widget
9561         instead if there's a focus widget, to be consistent with the
9562         behavior that previously existed in key_press_event
9563
9564 2001-04-18  Havoc Pennington  <hp@redhat.com>
9565
9566         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
9567
9568 2001-04-18  Havoc Pennington  <hp@redhat.com>
9569
9570         Close bug #50615:
9571         
9572         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
9573         the layout
9574
9575         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
9576
9577         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
9578
9579         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
9580         
9581         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
9582         to blue for base, in addition to bg
9583         
9584 2001-04-18  Havoc Pennington  <hp@redhat.com>
9585
9586         * tests/testgtk.c (create_image): allow shrinking the image window
9587         to test that we clip to allocation.
9588
9589         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
9590         #9845
9591
9592         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
9593
9594 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
9595
9596         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
9597         mode on shm segments to 0600. We'll see who complains.
9598
9599         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
9600         _gdk_windowing_window_destroy() AFTER recursing through
9601         children.
9602
9603         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
9604         testsocket_child on X.
9605
9606         * tests/testsocket[_child].c: Fix uses of
9607         gtk_window_get_default_accel_group().
9608
9609         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
9610
9611         * gdk/gdkimage.c: (gdk_image_get):
9612         Deal with the possibility that XGetImage() might return NULL.
9613         Allocate the GdkImagePrivate structure only after XGetImage()
9614         succeeds in order not to dereference a NULL ximage pointer.  This
9615         prevents a core dump when XGetImage() fails - which is unlikely,
9616         but can happen due to race conditions accessing the geometries of
9617         drawables.  An x error will still be triggered, but the gdk image
9618         wrapper at least wont seg fault.
9619         
9620 2001-04-18  Havoc Pennington  <hp@redhat.com>
9621
9622         * gtk/gtkimage.c: fix to properly queue resizes when the image is
9623         set
9624
9625         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
9626         if the insertion point isn't editable
9627
9628         * demos/gtk-demo/images.c: Added a GtkImage demo
9629
9630         * demos/gtk-demo/drawingarea.c: drawing area demo
9631         
9632         * demos/gtk-demo/menus.c (create_menu): cleanups
9633
9634 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
9635
9636         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
9637           gdk/x11/gdkevents-x11.c: Introduce an extra child
9638         of toplevel windows that serves to hold the focus to
9639         avoid events being delivered to embedded windows.
9640
9641         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
9642         some extra variables to clean up code and reduce the
9643         number of casts.
9644
9645         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
9646         guint for 1 bit bit fields, not gboolean.
9647
9648 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
9649
9650         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
9651         not TRUE. (Fixes #52925)
9652
9653 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
9654
9655         * Released 1.3.4
9656
9657         * NEWS: Updated
9658
9659         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
9660         use GTK_TYPE_ENUM.
9661
9662 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
9663
9664         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
9665
9666         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
9667         names to compatibility #defines so docs work.
9668
9669         * gtk/gtkenums.h: Remove GtkMenuFactoryType
9670
9671         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
9672
9673         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
9674
9675         * tests/testgtkrc: No magenta cursors, please.
9676
9677         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
9678
9679         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
9680         
9681 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
9682
9683         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
9684         grabs, since they are no longer necessary.
9685
9686         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
9687         by signal_connect() and call gtk_button_pressed() rather
9688         than signal_connect_after().
9689
9690         * tests/testgtk.c: Restore radio menu items to combos 
9691         since they'll look OK with Raleigh, and it is easier
9692         than finishing the process of removing them that was
9693         started earlier.
9694
9695 2001-04-16  Hans Breuer  <hans@breuer.org>
9696
9697         * gdk/gdk.def :
9698         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
9699
9700         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
9701         we are interested in the functions return value not the function address
9702         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
9703
9704         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
9705
9706 2001-04-14  Hans Breuer  <hans@breuer.org>
9707
9708         * gdk/gdk.def :
9709         * gdk/makefile.msc : updated
9710
9711         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
9712         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
9713         (the testgtk::text backgound pixmap is drawn again)
9714         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
9715         Win32 Pango change
9716         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
9717
9718         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
9719         Not sure if the returned settings have the right unit, because I couldn't
9720         find any docs for the X version ...
9721
9722         * gtk/gtk.def :
9723         * gtk/makefile.msc.in : updated
9724
9725 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
9726
9727         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
9728         wording problems. (Compared to version from Johannes Stezenbach to
9729         check correctness.)
9730
9731 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
9732
9733         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
9734         this to compile.
9735
9736 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
9737
9738         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
9739         not pixbufpos.
9740
9741         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
9742
9743         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
9744         are unsigned insts, therefore use g_value_set_uint.
9745         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
9746
9747 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
9748
9749         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
9750
9751         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
9752         GTK_TYPE_STRING.
9753
9754         * gtk/gtktreeview.c: New functions to allow initial column
9755         dragging work.
9756
9757         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
9758
9759         * tests/testtreefocus.c: give dave some love.
9760
9761         * tests/testtreesort.c: Modify test to check really long samples.
9762
9763 2001-04-11  Alexander Larsson  <alexl@redhat.com>
9764
9765         * gtk-2.0.m4: Pass pkg-config options
9766         before the other args so it works even if
9767         POSIXLY_CORRECT is set.
9768
9769 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
9770
9771         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
9772         0, interface 0).
9773
9774 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
9775
9776         * gtk/gtkcalendar.c (gtk_calendar_button_press):
9777         check for action_func != NULL
9778
9779 2001-04-04  Sven Neumann  <sven@gimp.org>
9780
9781         * tests/testgtk.c (test_init): corrected path to gtk.immodules
9782
9783 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
9784
9785         * Released Gtk+-1.3.3.
9786
9787 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
9788
9789         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
9790
9791 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
9792
9793         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
9794         files to/from source dir. (if we don't stay in builddir, we
9795         can't reach make-inline-pixbuf.
9796
9797         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
9798         deps.
9799
9800         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
9801         ages 0).
9802
9803 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
9804
9805         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
9806         moved to the GtkTreeSortable interface.
9807
9808         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
9809         Make more efficient (fixes #50262).
9810
9811 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
9812
9813         * NEWS: Updated.
9814
9815         * configure.in: Remove support for uninstalled glib.
9816
9817         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
9818         so as not to stop emission.
9819
9820         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
9821         is no longer supported.
9822
9823         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
9824         into tests, change build order to build modules before
9825         gtk/.
9826
9827         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
9828         to here.
9829
9830 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
9831
9832         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
9833         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
9834         GPatternSpec. this is actually unlikely to cause breakage in
9835         third-party apps since except for gle, pretty much ever caller
9836         passes NULL here.
9837
9838         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
9839
9840         * *.c: use g_pattern_*() API.
9841
9842         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
9843
9844         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
9845         directions aren't passed in.
9846
9847         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
9848         functionality to be usable from gtkstyle.c as well, give precedence
9849         for conversion to user-supplied parsers.
9850         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
9851
9852         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
9853         _gtk_settings_parse_convert() for rcporperty value conversion.
9854
9855 2001-04-03  Alexander Larsson  <alexl@redhat.com>
9856
9857         * gdk/linux-fb/gdkevents-fb.c:
9858         Add empty gdk_setting_get().
9859
9860 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
9861
9862         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
9863         variable names.
9864         
9865         * gtk/makeenums.pl: touch this so enum files get remade.
9866
9867 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
9868
9869         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
9870         work again when not sorted.
9871
9872         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
9873         and "expand_row" signal, closing bug 52578.
9874
9875         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
9876         support.
9877
9878         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
9879         support.
9880
9881 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
9882
9883         * gdk/gdkevents.h: Add GdkEventSetting event for notification
9884         of changes to system settings, gdk_setting_get() to retrieve
9885         a single system setting.
9886
9887         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
9888         to the draft XSETTINGS mechanism.
9889
9890         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
9891         XSETTINGS.
9892
9893         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
9894         of GDK settings changes to the GtkSettings object.
9895
9896         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
9897         double-click-timeout property to GDK.
9898
9899         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
9900         Define GDK boxed types here.
9901
9902         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
9903         gdk/gdkenumtypes.[ch] for enum definitions.
9904
9905         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
9906         * gtk/gtk-boxed.defs: Comment out GDK types
9907         * gtk/gtktypeutils.h: Remove GDK types
9908         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
9909
9910 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
9911
9912         * Applied patch from Ron Steinke to add signal accumulators
9913         so that signals with the convention 'TRUE return means
9914         handled' stop emission on a TRUE return.
9915
9916         * gtk/gtkmain.[ch]: Add private accumulator 
9917         _gtk_boolean_handled_accumulator, used throughout GTK+.
9918         
9919         * gtk/gtkspinbutton.c: Add accumulator for ::output.
9920
9921         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
9922         
9923         * gtk/gtkwidget.c: Add accumulators for event signals,
9924         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
9925         for ::mnemonic-activate.
9926
9927         * gtk/gtkwindow.c: Add accumulator for ::frame_event
9928
9929 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
9930
9931         * gtk/gtkwidget.c: Add missing include.
9932
9933 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
9934
9935         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
9936         marshaller.
9937
9938         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
9939         "changed" signal to "range_changed".
9940
9941         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
9942         removing a tree from one model would remove all trees from that
9943         model.
9944         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
9945         changed signal instead.
9946
9947 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
9948
9949         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
9950         chaining up to parent impl, since we have a INPUT_ONLY
9951         window.
9952
9953         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
9954         foreground color for the cursor.
9955
9956 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
9957
9958         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
9959         param spec when caching property values, since we unref it
9960         later when we free the style.
9961
9962         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
9963         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
9964
9965 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
9966
9967         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
9968         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
9969         stupidity.
9970
9971 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
9972
9973         [ First pass at adding style properties. Still needs some definite
9974         fine-tuning. ]
9975
9976         * gtk/gtkbutton.c: Add ::default_spacing style property.
9977          
9978         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
9979         ::indicator_spacing style properties.
9980
9981         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
9982         style properties.
9983
9984         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
9985         rather than a normal property.
9986
9987         * gtk/gtkwidget.c: Add an ::interior_focus style property to
9988         draw focus inside buttons, in the Windows/Java Metal/etc. style.
9989
9990         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
9991         Honor ::interior_focus.
9992         
9993         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
9994         TRUE.
9995
9996         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
9997         Add ::slider_width, ::trough_border, ::stepper_size,
9998         ::stepper_spacing style properties.
9999
10000         * gtk/gtkscale.[ch] Add ::slider-length style property.
10001
10002 2001-04-02 Alexander Larsson   <alexl@redhat.com>
10003
10004         * gdk/linux-fb/gdkwindow-fb.c:
10005         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
10006         warnings that were spewed on startup.
10007
10008         * gtk/gtkwindow-decorate.c:
10009         gtk_window_reposition -> _gtk_window_reposition
10010
10011 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
10012
10013         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
10014         Add boxed type for GtkRequistion. Use it for ::size-request.
10015
10016         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
10017         Add a new GtkBorder structure useful for geometry properties
10018         for widgets. Add corresponding GTK_TYPE_BORDER.
10019         
10020         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
10021         Support automatic parser selection like
10022         gtk_settings_install_property_parser().
10023
10024         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
10025         functionality for use by gtk_widget_class_install_style_property.
10026         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
10027
10028 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
10029
10030         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
10031         g_param_spec_unichar(). 
10032
10033 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
10034
10035         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
10036         _NET window managers.
10037
10038         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
10039
10040 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
10041
10042         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
10043         bad needs to be nuked, not just deprecated.
10044
10045         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
10046         gtk_widget_popup().
10047
10048         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
10049         
10050         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
10051         widget.
10052         
10053         * docs/Changes-2.0.txt: updates.
10054         
10055 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
10056
10057         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
10058         for (i = 0; i < 100; i ++)
10059           g_print ("I will confirm it compile before committing\n");
10060
10061 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
10062
10063         * gtk/gtktreestore.c: Initial work on implementing the
10064         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
10065
10066 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
10067
10068         * gtk/gtkwidget.c: fixed a bunch of notifications, added
10069         reference counts around emissions where the widget is used afterwards.
10070         added freeze/thaws around multiple properties being notified.
10071         (_gtk_widget_get_aux_info): cleanups.
10072         
10073         * gtk/gtksettings.c (gtk_settings_install_property): provide
10074         default parsing functions for gdkcolor, enums and flags.
10075
10076         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
10077         applied by owen.
10078         backed out gtk_window_get_location(), gtk_window_set_location(),
10079         gtk_window_get_size() and gtk_window_set_size(), these
10080         have to be sorted out wrg x/y/width/height/default_with/default_height
10081         properties.
10082         kept a flag in GtkWindowGeometryInfo to handle user
10083         resetting default sizes.
10084         cleaned up ZVT comments.
10085         bunch of assorted bug fixes, notification fixes.
10086         (_gtk_window_reposition): make this a really internal function.
10087         
10088         * gtk/testgtk.c: fixups.
10089         
10090 2001-03-31  Hans Breuer  <hans@breuer.org>
10091
10092         * config.h.win32.in : disable USE_MMX for msvc build cause
10093         the assembler doesn't fit and is out of my scope. Disable
10094         USE_GMODULE for msvc build as wel. The right way to share
10095         binaries on win32 would be to use libtiff.dll etc. To reduce
10096         installation hassles IMO it's better to include all fileformats
10097         builtin to gdk-pixbuf
10098
10099         * gdk-pixbuf/makefile.msc : new file
10100
10101         * gdk/gdk.def : updated
10102
10103         * gdk/win32/gdkevents-win32.c : don't erase the background if
10104         .no_bg is set. It improves the scrolling (e.g. of testgtk main
10105         buttons
10106         * gdk/win32/gdkgeometry-win32.c : added comment about the above
10107
10108         * gdk/win32/gdkwindow-win32.c : added three new functions like
10109         the X version. Only one is implemented, because the other two
10110         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
10111         be default behaviour on win32 anyway ...
10112
10113         * gtk/gtk.def : updated
10114
10115         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
10116         from where it was built and add an additional rule to automagically
10117         build gtkmarshal.[hc]
10118
10119         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
10120         before array access for the current entry isn't finished
10121
10122         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
10123         use g_return_val_if_fail
10124
10125         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
10126         for the static array, but let the compiler calculate it. It
10127         makes me wonder if gcc isn't capable to catch bugs like this ...
10128
10129 2001-03-31  James Henstridge  <james@daa.com.au>
10130
10131         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
10132         constant "-1" in the aux info structure.
10133
10134 2001-03-30  Alexander Larsson  <alexl@redhat.com>
10135
10136         * gtk/gtkbutton.c (gtk_button_get_property):
10137         * gtk/gtklabel.c:
10138         Remove leaks.
10139         
10140         * gtk/gtkcontainer.c:
10141         * gtk/gtkhscale.c:
10142         * gtk/gtkhscrollbar.c:
10143         * gtk/gtklayout.c:
10144         * gtk/gtkmisc.c:
10145         * gtk/gtkprogress.c:
10146         * gtk/gtkprogressbar.c:
10147         * gtk/gtkrange.c:
10148         * gtk/gtktable.c:
10149         * gtk/gtkviewport.c:
10150         * gtk/gtkvscale.c:
10151         * gtk/gtkvscrollbar.c:
10152         * gtk/gtkwidget.c:
10153         Property patches, based on patches from John Margaglione and Lee Mallabone.
10154
10155 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
10156
10157         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
10158         adjustment. Cleaned redundant preconditions (spin != NULL). Added
10159         inline API function docs.
10160         (gtk_spin_button_new_with_range): New convenience constructor.
10161         (gtk_spin_button_set_increments): New adjustment helper.
10162         (gtk_spin_button_set_range): New adjustment helper.
10163
10164         * gtk/testgtk.c : added test of the new convenince constructor and
10165         value_changed signals.
10166
10167 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
10168
10169         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
10170         listen to the reorder signal.
10171
10172 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
10173
10174         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
10175         to get the aux info structure fo the widget.
10176
10177         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
10178         above function.
10179
10180         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
10181
10182         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
10183         to get the size of the window manager frame, basically the same
10184         code that gdk_window_get_root_origin() had
10185         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
10186
10187         * gtk/gtkwindow.c (gtk_window_set_default_size): use
10188         gdk_window_resize() if the window is realized and resizeable
10189
10190         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
10191         typo so that setting gravity works
10192
10193         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
10194         allocation if auto_shrink is on, even if the default size
10195         has not changed.
10196
10197         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
10198         g_return_if_fail
10199
10200 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
10201
10202         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
10203         reordering/sorting work.  Now pretty much works.
10204
10205         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
10206         reorder mostly work.  Still need to get the parity correct.
10207
10208         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
10209         signal, so I can listen for the sort_column_changed signal so I
10210         can change my "sort_indicator" property.  Cool.
10211
10212 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
10213
10214         [ Patch from Havoc Pennington, hp@redhat.com ]
10215
10216         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
10217         Add functions gdk_window_begin_resize_drag/begin_move_drag
10218         to start resizing or moving a toplevel window. This
10219         is done either using the _NET_WM_MOVERESIZE protocol,
10220         or, if that isn't present, by emulation.
10221
10222         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
10223         to export the above to GTK+-land.
10224
10225         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
10226         
10227         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
10228         Move this function into gdkwindow, since we need it
10229         when implementing fallback resizing.
10230
10231         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
10232         Fix typo when setting gravity.
10233
10234         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
10235         Add an optional (but on by default) resize grip for resizing 
10236         the parent window.
10237
10238 01-03-29  Alexander Larsson  <alexl@redhat.com>
10239
10240         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
10241         Don't return TRUE from the event handler, that blocks all
10242         event signals on the tooltip widget. Now you can press buttons
10243         in toolbars again.
10244
10245 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
10246
10247         * gtk/testtext.c (create_buffer): Add missing NULL on
10248         valist.
10249
10250         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
10251         c-n-p problem with INCONSISTENT property.
10252
10253         [ Patch from Havoc Pennington  <hp@redhat.com> ]
10254
10255         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
10256         hook.
10257
10258         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
10259         signal as a hook for extending the default popup menu
10260
10261         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10262         use radio menu items for the input method menuitems
10263
10264         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
10265         inserted unicode from Ctrl-Shift-hex input method
10266
10267         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
10268         validatation here, already done at GtkTextBuffer level.
10269
10270         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
10271         popup_menu run action signal and Shift+F10 and Menu keybindings.
10272
10273         * gtk/gtkentry.c: implement a default handler for popup_menu
10274
10275         * gtk/gtktextview.c: implement a default handler for popup_menu
10276
10277         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
10278         from a key event
10279         
10280         * gtk/gtklabel.c: remove "trailer" cruft
10281
10282 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
10283
10284         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
10285         handle reordering of trees.  Seems to mostly work w/ the exception
10286         of the parity flag.
10287
10288         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
10289         signal.
10290
10291 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
10292
10293         * gtk/gtkwidget.h: c++ fixes.
10294
10295 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
10296
10297         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
10298         memory.
10299
10300 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
10301
10302         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
10303         Nils Barth fixing event return values. (#51041)
10304
10305         * gtk/gtkwidget.c: Fix some return values for default
10306         functions.
10307
10308         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
10309         return values for trough_keys functions.
10310
10311         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
10312         value for add_accelerator (shoudl have been a void
10313         return.)
10314
10315         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
10316         Fix return type of EVENT.
10317
10318         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
10319         signal return a boolean.
10320
10321 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
10322
10323         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
10324         reordered signal.
10325
10326         * tests/testtreesort.c (main): fix spelling.
10327
10328 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
10329
10330         * gtk/gtkliststore.c: More work on implementing sortable
10331         interface.
10332
10333 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
10334
10335         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
10336         reference the widgets in the resulting list. (#11821)
10337         This makes this consistent with gtk_container_children.
10338
10339         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
10340         uses of gtk_window_list_toplevels.
10341
10342 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
10343
10344         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
10345         a virtual function to set whether the IM context should use 
10346         the preedit string. (#51922)
10347         
10348 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
10349
10350         * gdk/gdkpango.h: Remove stale FIXME comment.
10351
10352 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
10353
10354         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
10355         Fixed bug that returned NULL if a filename was selected.
10356
10357 2001-03-24  Havoc Pennington  <hp@pobox.com>
10358
10359         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
10360         to contain the word "theme"
10361
10362 2001-03-24  Havoc Pennington  <hp@pobox.com>
10363
10364         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
10365         slower but finer-grained
10366         (gtk_hsv_focus): get initial focus on the ring or triangle 
10367         according to tab direction
10368
10369         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
10370
10371 2001-03-23  Havoc Pennington  <hp@pobox.com>
10372
10373         * gtk/gtkhsv.c: make this somewhat key-navigable
10374
10375         * gtk/gtkfontsel.c: mnemonics
10376
10377         * gtk/gtkgamma.c: mnemonics
10378
10379         * gtk/gtkcolorsel.c: add mnemonics to labels
10380
10381 2001-03-22  Havoc Pennington  <hp@pobox.com>
10382
10383         Applied big patch from Seth Lytle to fix event handler return
10384         values, slightly modified.
10385
10386         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
10387         handled.
10388         (gtk_calendar_key_press): return TRUE for GDK_space triggers
10389         select_day
10390
10391         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
10392         (gtk_clist_button_release): return TRUE if handled
10393
10394         * gtk/gtkcolorsel.c (mouse_release):
10395         (palette_activate): 
10396         (palette_press): 
10397         (palette_new): 
10398         (mouse_press): 
10399         (get_screen_color): 
10400         fixed return type (void to gboolean), return TRUE,
10401         added GTK_SIGNAL_FUNC cast
10402
10403         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
10404         (void to gboolean), and return TRUE
10405         (gtk_combo_button_release): changed return value to TRUE after
10406         gtk_grab_add on combo->popwin
10407
10408         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
10409         collapse or expand
10410
10411         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
10412         button/motion
10413
10414         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
10415         press/release and motion that trigger act
10416
10417         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
10418
10419         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
10420         for GDK_Return
10421         
10422         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
10423         (gtk_list_button_release): return TRUE if selection
10424
10425         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
10426         press
10427
10428         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
10429         (gtk_menu_shell_button_release): chain parent_menu_shell retval
10430
10431         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
10432         nothing triggered
10433         (gtk_notebook_button_release): return TRUE if we do anything
10434
10435         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
10436         (gtk_spin_button_button_release): return TRUE or chained retval
10437
10438         * gtk/gtktext.c (gtk_text_button_press): 
10439         (gtk_text_button_release): return TRUE
10440         (gtk_text_key_press): remove redundant retval code
10441         
10442         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
10443         and sensitive
10444         (gtk_tree_item_subtree_button_click): changed type to gint, and return
10445         TRUE if sensitive
10446
10447         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
10448         return TRUE
10449
10450 2001-03-23  Havoc Pennington  <hp@redhat.com>
10451
10452         * gtk/testgtk.c: fix warnings
10453
10454         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
10455
10456         * gtk/gtktextview.c: fix warnings
10457
10458         * gtk/gtktext.c (find_cursor_at_line): fix warning
10459
10460         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
10461
10462         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
10463         of this function
10464
10465         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10466         fix warning
10467
10468         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
10469
10470         * gtk/gtkfontsel.c: fix warning
10471
10472         * gtk/gtkcolorsel.c: fix warnings
10473
10474 2001-03-23  Havoc Pennington  <hp@redhat.com>
10475
10476         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
10477
10478         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
10479
10480         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
10481         and deprecated gtk_check_menu_item_set_show_toggle().
10482         
10483         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
10484
10485         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
10486
10487         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
10488
10489 2001-03-23  Havoc Pennington  <hp@redhat.com>
10490
10491         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
10492         some docs
10493
10494 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
10495
10496         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
10497         this.
10498
10499         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
10500         set_cell to set_value
10501
10502         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
10503         set_cell to set_value
10504
10505 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
10506
10507         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10508         fix braino.
10509         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
10510         support.
10511
10512         * gtk/gtktreeview.c: Addition of initial sortable support.
10513
10514         * gtk/gtktreestore.c: Addition of initial sortable support.
10515
10516         * gtk/gtkliststore.c: Addition of initial sortable support.
10517
10518         * gtk/gtkmarshal.list: yet another marshaller.
10519
10520         * gtk/gtktreedatallist.[ch]: shared code between the store models
10521         for handling sorting headers.
10522
10523 2001-03-22  Havoc Pennington  <hp@redhat.com>
10524
10525         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
10526         (gtk_container_unset_focus_chain): Add ability to override the 
10527         focus chain for a container explicitly
10528
10529 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
10530
10531         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
10532         added PROP_MNEMONIC_WIDGET.
10533
10534         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
10535         (gtk_window_remove_mnemonic): 
10536         (gtk_window_add_mnemonic): fixed assertions.
10537         (gtk_window_activate_mnemonic): constrain modifier checks to those
10538         permitted by gtk_accelerator_get_default_mod_mask().
10539         got rid of gtk_window_get_default_accel_group().
10540
10541         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
10542         activatable widgets either by focussing or a warning.
10543         added a signal accumulator to ::activate_mnemonic which stops the
10544         emission once a handler returned TRUE.
10545
10546 2001-03-22  Havoc Pennington  <hp@pobox.com>
10547
10548         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
10549         the stock item label
10550
10551         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
10552
10553         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
10554
10555         * demos/gtk-demo/*.c: Add mnemonics all over the place
10556
10557         * gtk/gtklabel.h: mark parse_uline deprecated
10558
10559 2001-03-21  Alexander Larsson  <alexl@redhat.com>
10560
10561         * gtk/gtkitemfactory.[ch]:
10562         Add support for stock and normal imagemenuitems.
10563         
10564         * gtk/testgtk.c:
10565         Add some tests for mnemonics, stock toolbars, stock
10566         and image menuitems in itemfactory and gdk_window_scroll.
10567
10568 2001-03-21  Alexander Larsson  <alexl@redhat.com>
10569
10570         * gtk/gtkbutton.[ch]:
10571         * gtk/gtkdialog.c:
10572         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
10573         removed accel_group argument. Renamed gtk_button_new_accel() to
10574         gtk_button_new_with_mnemonic() and removed accel_group argument.
10575
10576         * gtk/gtkcheckbutton.[ch]:
10577         New function gtk_check_button_new_with_mnemonic().
10578
10579         * gtk/gtkentry.c:
10580         Override activate_mnemonic and just grab focus.
10581
10582         * gtk/gtkitemfactory.c:
10583         Don't add menu uline accel group, instead use mnemonics support.
10584
10585         * gtk/gtklabel.[ch]:
10586         New support for mnemonics.
10587
10588         * gtk/gtkmarshal.list:
10589         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
10590
10591         * gtk/gtkmenu.[c]:
10592         * gtkmenushell.c:
10593         Use mnemonics instead of accel groups for uline
10594         support in menu items.
10595         Removed gtk_menu_get_uline_accel_group() and
10596         gtk_menu_ensure_uline_accel_group().
10597
10598         * gtk/gtkmenuitem.c:
10599         Override activate_mnemonic to handle switching between
10600         menu items if there are collisions.
10601         
10602         * gtk/gtknotebook.c:
10603         Connect to activate_mnemonic on the tab_label, so that
10604         activating it switches to that notebook page.
10605
10606         * gtk/gtkwidget.[ch]:
10607         Add activate_mnemonic signal. New function
10608         gtk_widget_activate_mnemonic() to emit it.
10609         Default implementation does activate/grab_focus.
10610
10611         * gtk/gtkwindow.[ch]:
10612         Add support for mnemonics in windows.
10613         New functions:
10614         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
10615         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
10616
10617         * gtk/testgtk.c:
10618         Update to function name changes.
10619         
10620 2001-03-21  Alexander Larsson  <alexl@redhat.com>
10621
10622         * gtk/gtkimagemenuitem.[c]:
10623         Add gtk_image_menu_item_new_from_stock()
10624
10625 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
10626
10627         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10628         Fix buglet in meeting.
10629
10630 2001-03-19  Havoc Pennington  <hp@redhat.com>
10631
10632         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
10633         add a bunch of accessor functions. This is because we have
10634         reasonable expectations of extending what fields it contains in
10635         the future.
10636
10637         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
10638         changes
10639
10640         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
10641         GtkIconSource   
10642
10643 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
10644
10645         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
10646         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
10647
10648         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
10649           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
10650           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
10651           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
10652         Change float to double everywhere with the exception of 0<->1.0 alignment
10653         and GtkCurve.
10654
10655 2001-03-19  Tor Lillqvist  <tml@iki.fi>
10656
10657         * gdk/win32/gdkdrawable-win32.c
10658         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
10659         output.
10660
10661         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
10662         gdkwin32.h.
10663
10664 2001-03-18  Tor Lillqvist  <tml@iki.fi>
10665
10666         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
10667         print_event_state, print_event): Use preprocessor macro to make
10668         code more compact. Print also GDK_WINDOW_STATE events.
10669         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
10670         
10671         * gtk/gtk.def
10672         * gtk/makefile.mingw.in: Update.
10673
10674         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
10675         to catch also Cygwin.
10676
10677 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
10678
10679         * gtk/gtkspinbutton.[hc]: added rc-style argument
10680         GtkSpinButton::shadow_type.
10681         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
10682         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
10683         rc-style settings.
10684
10685         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
10686
10687         * gtk/gtkwidget.c: quark cleanups.
10688
10689         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
10690         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
10691         to create_rc_style() (we don't do cloning in standard OO sense).
10692         added per rc style properties.
10693         
10694         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
10695         property values and for caching those. some cleanups.
10696         
10697         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
10698         
10699         * gtk/gtksettings.[hc]: new file for global rc-file properties
10700         (at least currently, should get extended to support X properties
10701         and other communication mechanisms).
10702         
10703         * gtk/gtkwidget.[hc]: added style property support:
10704         (gtk_widget_class_install_style_property_parser): install style
10705         property pspec with parser function for rc-file values other
10706         than LONG, DOUBLE or STRING.
10707         (gtk_widget_class_install_style_property): same as above without
10708         parser (parsers are going to be needed quite infrequently).
10709         (gtk_widget_style_get_property): retrive style property value.
10710         (gtk_widget_style_get_valist): same as above with varargs support,
10711         has NOCOPY semantics.
10712         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
10713
10714 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
10715
10716         * demos/gtk-demo/main.c (row_activated_cb): modified to use
10717         "row_activated" signal.
10718
10719         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
10720         stupidity.  Lets actually pass in the row with this signal...
10721
10722 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
10723
10724         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
10725
10726         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
10727
10728         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
10729         everything into the ::destroy function, and freed a lot more.
10730
10731 2001-03-16  Havoc Pennington  <hp@redhat.com>
10732
10733         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
10734         instead of gint16, to avoid overflow issues, since sizes > 16-bit
10735         are now allowed.
10736
10737 2001-03-16  Havoc Pennington  <hp@redhat.com>
10738
10739         * Applied patch from Nils Barth (bug # 51041) to 
10740         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
10741         in various places.
10742
10743 2001-03-15  Havoc Pennington  <hp@redhat.com>
10744         
10745         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
10746         for properties to set on the tag.
10747
10748         * gtk/testtext.c: fixups to reflect create_tag change
10749         
10750         * gtk/gtktexttag.c (gtk_text_tag_set_property):
10751         background/foreground stipple are objects, not boxed.
10752
10753         * demos/gtk-demo/textview.c: intellihancing
10754
10755 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
10756
10757         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
10758         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
10759
10760 2001-03-16  Alexander Larsson  <alexl@redhat.com>
10761
10762         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
10763         Fix sign error with queued region translations.
10764
10765 2001-03-15  HideToshi Tajima  <tajima@happy>
10766
10767         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
10768         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
10769         * gtk/gtkentry.c (update_im_cursor_location): 
10770         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
10771         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
10772         set_cursor_pos to set_cursor_location in GtkInputContext class
10773
10774 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
10775
10776         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
10777         the location of the cell relative to its area.
10778         * gtk/gtkcell*: modified for above change
10779         * gtk/gtktreeview.c: modified for above change.
10780
10781 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
10782
10783         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
10784          (gtk_tree_view_finalize): actually unref the model.  Thanks to
10785         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
10786
10787 2001-03-14  Havoc Pennington  <hp@redhat.com>
10788
10789         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
10790         
10791         * gtk/gtk.h: remove gtkdata.h
10792
10793         * gtk/Makefile.am: remove gtkdata
10794         
10795         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
10796         not "disconnect" on the adjustments.
10797         
10798         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
10799         GtkData
10800
10801         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
10802         not GtkData
10803
10804         * configure.in: handle case where X render exists, but Pango lacks
10805         Xft support.
10806
10807 2001-03-15 Alexander Larsson  <alexl@redhat.com>
10808
10809         * gtk/gtktoolbar.[ch]:
10810         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
10811         to add stock items to toolbars.
10812
10813         * gtk/Makefile.am:
10814         Remove ../gdk/gdkim.h from gdk_headers.
10815
10816 2001-03-15  Sven Neumann  <sven@gimp.org>
10817
10818         * gdk/gdkim.h: removed
10819         
10820         * gdk/gdkprivate.h
10821         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
10822
10823 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
10824
10825         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
10826         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
10827         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
10828         set_cursor_pos() virtual method
10829
10830         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
10831         (gtk_im_context_xim_set_cursor_pos): add implementation for
10832         set_cursor_pos() method
10833
10834         * gtk/gtkentry.c (recompute_idle_func): set current cursor
10835         position to input methods
10836
10837 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
10838
10839         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
10840         code a lot.
10841
10842         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
10843         g_mem_chunk.
10844         (_gtk_tree_data_list_alloc): use g_mem_chunk.
10845         (_gtk_tree_data_list_node_to_value): Fix to switch on
10846         G_TYPE_FUNDAMENTAL.
10847         (_gtk_tree_data_list_value_to_node): Fix to switch on
10848         G_TYPE_FUNDAMENTAL.
10849         (_gtk_tree_data_list_node_copy): Fix to switch on
10850         G_TYPE_FUNDAMENTAL.
10851
10852 2001-03-12  Havoc Pennington  <hp@redhat.com>
10853
10854         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
10855         to convert to new property API. Also, change default_width and
10856         default_height get_property to return 0 as the flag value for
10857         "unset"; -1 is not a valid value for these fields.
10858
10859 2001-03-12  Havoc Pennington  <hp@redhat.com>
10860
10861         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
10862         enum with registration for icon sizes, instead of strings.
10863
10864         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
10865         gtkwidget.c: Fix to reflect GtkIconSize
10866         
10867 2001-03-12  Alexander Larsson  <alexl@redhat.com>
10868
10869         Make GtkFB compile and link.
10870         
10871         * gdk/linux-fb/gdkdrawable-fb2.c:
10872         window->mapped to GDK_WINDOW_IS_MAPPED(). 
10873         
10874         * gdk/linux-fb/gdkwindow-fb.c:
10875         window->mapped to GDK_WINDOW_IS_MAPPED(). 
10876         Added gdk_window_shape_combine_region.
10877         Added assorted placeholders for unimplemented new GdkWindow API calls.
10878
10879 2001-03-12  Alexander Larsson  <alexl@redhat.com>
10880
10881         * gtk/gtkfilesel.c:
10882         Add more test when converting filenames from/to utf-8.
10883         Don't allow entering text in the filename entry which isn't allowed in
10884         a filename. Just beep instead.
10885
10886 2001-03-12  Alexander Larsson  <alexl@redhat.com>
10887
10888         * gtk/gtkclist.c:
10889         Scroll using gdk_window_scroll(). Don't wait for exposes.
10890         Move the column headers in an order that makes them flash less.
10891
10892 2001-03-10  Hans Breuer  <hans@breuer.org>
10893
10894         * gdk/gdk.def : updated
10895
10896         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
10897         to offseting the clip_mask at the right place
10898
10899         * gdk/win32/gdkwindow-win32.c : don't create background brushes
10900         for all the gdkClasses, especially not for the input_only case.
10901         Otherwise flickering wont be avoidable, because we don't get
10902         WM_ERASEBKGND message for these windows.
10903
10904         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
10905         and fixed massive redraw problems apparently triggered by Alexanders 
10906         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
10907         but it seems to work quite well :-)
10908
10909         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
10910         prototype
10911
10912 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
10913
10914         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
10915         (gtk_list_store_set_cell): Fix a stupid typo.
10916
10917 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
10918
10919         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
10920         select_all not work if you're in SINGLE mode (it doesn't make that
10921         much sense, anyway.)
10922
10923         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
10924         handle types more sanely.
10925         (_gtk_tree_data_list_value_to_node): handle types more sanely.
10926         (_gtk_tree_data_list_node_copy): handle types more sanely.
10927
10928         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
10929         GValue better. Converts the type as well.
10930
10931         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
10932         GValue better. Converts the type as well.
10933
10934 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
10935
10936         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
10937         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
10938         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
10939         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
10940
10941         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
10942         gdk_im/gdk_ic.
10943
10944 2001-03-09  Hans Breuer  <hans@breuer.org>
10945
10946         * gdk/gdk.def : updated
10947
10948         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
10949         for their palette
10950
10951         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
10952         removing
10953
10954         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
10955         removing and implemented Havoc's GdkWindow state functions; 
10956         stick/unstick only as no-op, cause I don't know how to emulate 
10957         on win32 ...
10958
10959         * gtk/gtk.def : updated
10960
10961         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
10962
10963         * gtk/gtktypeutils.c : #include <string.h>
10964
10965         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
10966
10967 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
10968
10969         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
10970         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
10971         not a boxed.
10972
10973 2001-03-09  Alexander Larsson  <alexl@redhat.com>
10974
10975         * docs/Changes-2.0.txt:
10976         Document expose event->region change and that gtk_widget_event
10977         doesn't allow passing expose events.
10978
10979         * gdk/gdkevents.h:
10980         Add region to expose event.
10981         
10982         * gdk/gdkevents.c:
10983         Handle event->region in gdk_event_copy() and gdk_event_free().
10984
10985         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
10986         Generate expose_event->region when creating expose events.
10987
10988         * gdk/x11/gdkevents-x11.c:
10989         Generate expose events with regions when translating X events.
10990
10991         * gtk/gtkcontainer.[ch]:
10992         Default expose handler that propagates expose events to NO_WINDOW
10993         children. New function gtk_container_propagate_expose()
10994
10995         * gtk/gtkwidget.[ch]:
10996         Moved gtk_widget_event implementation to gtk_widget_event_internal.
10997         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
10998         expose events. New function gtk_widget_send_expose() to send expose
10999         events. New function gtk_widget_region_intersect() to calculate
11000         window/region intersections.
11001         
11002         * gtk/gtkmain.c (gtk_main_do_event):
11003         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
11004         Use gtk_widget_send_expose() to send expose events.
11005         
11006         * gtk/gtkbin.c:
11007         * gtk/gtkbox.c:
11008         * gtk/gtkfixed.c:
11009         * gtk/gtkimagemenuitem.c:
11010         * gtk/gtklist.c:
11011         * gtk/gtkpacker.c:
11012         * gtk/gtktable.c:
11013         * gtk/gtktree.c:
11014         Remove expose handler, using the default container implementation
11015         instead.
11016         
11017         * gtk/gtkbutton.c:
11018         * gtk/gtkcheckbutton.c:
11019         * gtk/gtkeventbox.c:
11020         * gtk/gtkfixed.c:
11021         * gtk/gtkhandlebox.c:
11022         * gtk/gtklayout.c:
11023         * gtk/gtklistitem.c:
11024         * gtk/gtkmenu.c:
11025         * gtk/gtkmenubar.c:
11026         * gtk/gtkmenuitem.c:
11027         * gtk/gtknotebook.c:
11028         * gtk/gtkoptionmenu.c:
11029         * gtk/gtkpaned.c:
11030         * gtk/gtkscrolledwindow.c:
11031         * gtk/gtktogglebutton.c:
11032         * gtk/gtktoolbar.c:
11033         * gtk/gtktreeitem.c:
11034         * gtk/gtkviewport.c:
11035         Chain expose handler to parent class handler. Use
11036         gtk_container_propagate_expose() to propagate exposes.
11037
11038         * gtk/gtkclist.c (check_exposures):
11039         * gtk/gtktext.c (process_exposes):
11040         Use gtk_widget_send_expose instead of gtk_widget_event.
11041
11042 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
11043
11044         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
11045
11046 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
11047
11048         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
11049         unref the nodes.   Fixes bug #50058.
11050
11051         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
11052         "::ref_iter" to "::ref_node".
11053         (gtk_tree_model_unref_node): change "::unref_iter" to
11054         "::unref_node". Fixes bug #50064.
11055
11056 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
11057
11058         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
11059         support for invisible cells.
11060          (gtk_tree_view_bin_expose): ditto
11061
11062 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
11063
11064         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
11065         on gobjects.
11066
11067         * tests/testtreefocus.c (main): New test file.
11068
11069         * tests/testtreeview.c: update to latest glib changes.
11070
11071         * tests/testtreecolumns.c: update to latest glib changes.
11072
11073 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
11074
11075         * gtk/testgtk.c: re-enabled event watcher emission hooks.
11076
11077 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
11078
11079         * *.c: added accumulator data argument to g_signal_newc()
11080         functions.
11081
11082         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
11083         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
11084         * gtk/treestoretest.c (make_window):
11085         s/g_signal_connect/g_signal_connectc/.
11086
11087         * gtk/gtktextbuffer.c: completed signal arg fixups,
11088         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
11089
11090 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
11091
11092         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
11093         G_CONST_RETURN.
11094
11095         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
11096         ::hierarchy-changed signal when a widget changes
11097         from anchored to unanchored or vice versa.
11098         (anchored means 
11099          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
11100         Use a private flag to keep track of this efficiently.
11101
11102 2001-03-07  Havoc Pennington  <hp@redhat.com>
11103
11104         * gtk/testgtk.c (create_spins): uglify so that size request gets
11105         tested.
11106
11107         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
11108         request on values for upper/lower, completes #6152
11109
11110 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
11111
11112         * Makefile.am: Remove gtk-config-2.0 again.
11113         (Grrrr, pkg-config. And stops make loops.)
11114
11115 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
11116
11117         * gtk/gtksignal.[hc]: removed old emission hook API.
11118         
11119         * docs/Changes-2.0.txt: fixed sections.
11120         
11121         * gtk/gtktextbuffer.c: signal arg fixups.
11122
11123 2001-03-07  Havoc Pennington  <hp@redhat.com>
11124
11125         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
11126
11127         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
11128         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
11129         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
11130         validation and the redraw which is higher priority than the
11131         validation.
11132
11133 2001-03-07  Havoc Pennington  <hp@redhat.com>
11134
11135         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
11136         (gtk_entry_set_property): remove trailer
11137
11138         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
11139         (gtk_entry_get_width_chars): new functions, to set size request to 
11140         a given number of characters
11141
11142         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
11143
11144         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
11145         (gtk_dialog_get_has_separator): new function
11146         (run_delete_handler): fix to not emit "response" signal
11147         because we already did in the delete event handler installed
11148         at dialog creation time.
11149         
11150         * gtk/gtkdialog.h: add a has_separator property,
11151         add GTK_DIALOG_NO_SEPARATOR flag
11152
11153 2001-03-07  Havoc Pennington  <hp@redhat.com>
11154
11155         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
11156         off decorations for a window.
11157
11158         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
11159         changes
11160
11161         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
11162         to get location of PangoLayout inside the label, closes #51198
11163
11164         * gtk/testgtk.c (create_bbox): fix up button box usage
11165
11166         * gtk/testcalendar.c (create_calendar): fix up button box usage
11167
11168         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
11169
11170         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
11171
11172         * gtk/gtkhbbox.h: deprecations
11173
11174         * gtk/gtkvbbox.h: deprecations
11175
11176         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
11177         emulate deprecated gtk_button_box_get_spacing
11178
11179         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
11180         the "set global default" functions
11181         (struct _GtkButtonBox): remove "spacing" field, use the one from 
11182         GtkBox base class
11183
11184         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
11185
11186         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
11187         render the icon, return the missing image icon.
11188
11189         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
11190         image icon if the load fails.   
11191
11192         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
11193         when no image is found; should be the Netscape "missing image"
11194         icon eventually but for now is a random image
11195
11196         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
11197         role for the session manager
11198
11199         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
11200
11201         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
11202         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
11203
11204         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
11205
11206 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
11207
11208         * gtk/*.c: marshaller fixes.
11209         
11210         * gtk/gtkmarshal.list: extreme cleanup.
11211
11212         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
11213         param spec for now.
11214
11215         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
11216         where appliable.
11217
11218         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
11219         special cased autogenerated boxed types from gtktypebuiltins_ids.c
11220         which are not reference counted:
11221         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
11222         PangoFontDescription, GtkTreeIter and GtkTreePath.
11223
11224 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
11225
11226         * gtk/gtktreeselection.h: 
11227         * gtk/gtktreemodel.c:
11228         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
11229         file should be included directly, and gobject/gmarshal.h
11230         as well as gtk/gtkmarshal.h even can't be included directly.
11231
11232         * Makefile.am: grr, install gtk-config-2.0.
11233
11234         * gtk/testgtk.c:
11235         * gtk/simple.c:
11236         * gtk/gtkmenu.c:
11237         * gtk/gtkitemfactory.c: use g_object_connect() instead of
11238         passing "*signal*::*" args to gtk_widget_set().
11239         
11240         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
11241         
11242         * gtk/*.c: removed trailer arg from property setters and getters.
11243         macro fixups.
11244
11245 2001-03-07  Alexander Larsson  <alexl@redhat.com>
11246
11247         * gtk/gtklabel.c (set_markup): Removed warning
11248
11249 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
11250
11251         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
11252         field to allow you to hide cell renderers.
11253
11254         * gtk/gtkcellrenderer.c: Add support for invisible cells.
11255
11256         * gtk/gtktreeview.c: Add support for invisible cells.
11257
11258 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
11259
11260         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
11261         Add "clicked" signal back to columns.
11262
11263         * ChangeLog: remove conflict markers.
11264
11265 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
11266
11267         * gtk/gtkbutton.c: Add animation of activation by, on 
11268         activate, pressing the button, and adding a timeout that 
11269         releases the button after 250ms or on key release and
11270         emits ::clicked. (#51501)
11271
11272         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
11273         action area, we connect to ::clicked instead of ::activate
11274         so the dialog stays up through the animation.
11275
11276 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
11277
11278         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
11279         check the ignore_enter flag for the menu shell that
11280         the item is actually a child of, not for attached
11281         submenus. (#51536)
11282
11283 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
11284
11285         * gtk/gtkmain.c (gtk_propagate_event): Only do special
11286         special key-press grab handling for widgets within
11287         GtkWindows. Otherwise, fall through to normal case.
11288
11289         This prevents key events being sent twice to GtkInvisible
11290         widgets, which can cause all sorts of mischief.
11291
11292 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
11293
11294         * gtk/gtkmain.c (gtk_propagate_event): When a grab
11295         widget is in effect, give the grab widget a first
11296         crack at KEY_PRESS/RELEASE events. (#424)
11297
11298 2001-03-06  James Henstridge  <james@daa.com.au>
11299
11300         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
11301         offset for the window_state_event to point at window_state_event
11302         rather than no_expose_event.
11303
11304 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
11305
11306         * gtk/gtkimmodule.h: fix busted /* comment */
11307
11308 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
11309
11310         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
11311         object properties.
11312
11313 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
11314
11315         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
11316         add object properties.
11317
11318         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
11319         to add object properties.
11320
11321         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
11322         object properties.
11323
11324         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
11325         add object properties.
11326
11327         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
11328         object properties.
11329
11330 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
11331
11332         * gtk/gtktreemodel.c: renamed "child_toggled" to
11333         "has_child_toggled".
11334
11335         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
11336         handle new signal name.
11337
11338         * gtk/gtktreestore.c: Updated to handle new signal name.
11339         * gtk/gtklisttore.c: Updated to handle new signal name.
11340         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
11341
11342 2001-03-05  Alexander Larsson  <alexl@redhat.com>
11343
11344         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
11345         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
11346
11347 2001-03-05  Michael Natterer  <mitch@gimp.org>
11348
11349         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
11350         pixbuf-engine coincidentially also failed to make one of it's
11351         parent_class pointers static, causing overwriting of GtkLabel's
11352         parent_class pointer in pixbuf_style_class_init().
11353         (Will commit the fix to the pixbuf-engine too).
11354
11355 2001-03-05  Alexander Larsson  <alexl@redhat.com>
11356
11357         * gdk/gdkwindow.h:
11358         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
11359         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
11360         gdk_window_set_icon_list for net wmspec functionality.
11361
11362         * gdk/x11/gdkwindow-x11.c:
11363         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
11364         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
11365         gdk_window_set_icon_list.
11366         Added gdk_wmspec_change_state helper function and used it in the code.
11367         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
11368
11369         * gtk/gtkdialog.c (gtk_dialog_init):
11370         Set GDK_WINDOW_TYPE_HINT_DIALOG.
11371
11372         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
11373         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
11374
11375         * gtk/gtkwindow.c:
11376         new function gtk_window_set_type_hint.
11377         On realize, set type hint and modal hint.
11378
11379         * gtk/gtkwindow.h:
11380         Added type_hint field and gtk_window_set_type_hint.
11381
11382 2001-03-05  Alexander Larsson  <alexl@redhat.com>
11383
11384         * gtk/gtklabel.[ch]:
11385         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
11386         New function gtk_label_get_accel_keyval () to get the underline accelerator
11387         of the label. Setting the label pattern overrides other attributes.
11388
11389 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
11390
11391         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
11392         Added missing initializers to gtk_rc_style_init().
11393
11394 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
11395
11396         * gtk/gtktextview.c: fixed bug #51097 about setting 
11397         gtk_text_view_set_border_window_size() if the widget is 
11398         already realized.
11399
11400 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
11401
11402         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
11403
11404         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
11405         comment. Won't do to have duplicated doc comments between
11406         the platform subdirs.
11407
11408 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
11409
11410         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
11411           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
11412
11413         Detectable auto-repeat - make a repeating key generate
11414         press/press/press/release instead of press/release pairs.
11415
11416         If we have Xkb and XkbSetDectableAutoRepeat supports
11417         that, we do it that way. Otherwise, when we get
11418         a release event, we check ahead with XPending to see
11419         if the next key is a KeyPress with the same keycode
11420         and timestamp. (Not 100% reliable, but pretty close.)
11421           
11422 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
11423         
11424         * gtk/gtkmain.c (gtk_propagate_event): Only do special
11425         special key-press grab handling for widgets within
11426         GtkWindows. Otherwise, fall through to normal case.
11427  
11428         This prevents key events being sent twice to GtkInvisible
11429         widgets, which can cause all sorts of mischief.
11430  
11431 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
11432  
11433         * gtk/gtkmain.c (gtk_propagate_event): When a grab
11434         widget is in effect, give the grab widget a first
11435         crack at KEY_PRESS/RELEASE events. (#424)
11436  
11437 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
11438
11439         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
11440         to extend the selection. (Roughly based on patch
11441         from Jay Cox, #50939)
11442
11443         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
11444         to properly handle previous GDK_BUTTON_PRESS. 
11445         (Patch from Jay Cox, #50938)
11446
11447         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
11448         '\0' back along with the deleted text. (#51148)
11449
11450 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
11451
11452         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
11453         the group when extracting it from the X keyboard event.
11454
11455         * modules/input/Makefile.am modules/input/imipa.c: 
11456         Simple module for entering IPA. (Do we need a 
11457         gtk-stupid-input-tricks CVS module?)
11458
11459 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
11460
11461         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
11462         const.
11463
11464         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
11465
11466         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
11467         is no focus widget for the dialog currently, grab the focus as well
11468         as the default.
11469
11470         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
11471         the action area's children to iterate through, not the
11472         dialog's children.
11473
11474 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
11475
11476         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
11477         Add plug-socket tests. (Won't work worth a darn until I commit
11478         the rest of the plug-socket changes, but no reason these
11479         can't go into CVS now.)
11480
11481 2001-03-02  Havoc Pennington  <hp@redhat.com>
11482
11483         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
11484         _gdk_region_get_xrectangles()
11485
11486         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
11487
11488         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
11489
11490         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
11491         function, contributed by Ron Steinke    
11492
11493         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
11494         gdk_net_wm_supports
11495
11496         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
11497         New function, contributed by Ron Steinke
11498
11499         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
11500         used to line up the text in the entry when using the entry for
11501         editable sheet cell hacks
11502
11503         * gtk/testgtk.c (create_entry): test the activate_default setting
11504         on GtkEntry
11505
11506         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
11507         cause the entry to activate the default button for a dialog when 
11508         activated
11509         (gtk_entry_get_activates_default): new function
11510
11511 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
11512
11513         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
11514         Hwang to move call to sync_selection() up a few lines
11515         to before the row list is modified, to fix crash when
11516         removing rows in the undo_selection list.
11517
11518         (Test case provided by Daniel Elstner:
11519
11520         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
11521
11522 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
11523
11524         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
11525         of tree->root_tree in parent_set rather than _map(), 
11526         fixing #50892 in a bit better manner.
11527
11528 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
11529
11530         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
11531
11532 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
11533
11534         * gtk/gtkstyle.c : Remove duplicate fwd decl for
11535         gtk_default_draw_shadow.
11536
11537 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
11538
11539         * gdk/gdkimage.c (gdk_image_new): Remove excess 
11540         warning, make warnings more verbose, treat a error
11541         in shmat as permanent, and don't try again.
11542         (#51163, Ed Randall.)
11543
11544 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
11545
11546         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
11547         delay for the first click before starting to scroll.
11548         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
11549
11550         * gtk/gtktext.c: GtkText should have I-beam cursor. 
11551         (based on gtk-enf-990513-1.patch, Eric Fisher.)
11552
11553 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
11554
11555         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
11556         cleanup to remove some references to unused
11557         ->xoffset, ->yoffset.
11558
11559 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
11560
11561         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
11562         mask. (#51039, fix from Martin Maierhofer)
11563
11564 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
11565
11566         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
11567         for unshifted + and shifted = for non-us keyboards.
11568         Make <Control>+ and <Control>- work as well as 
11569         <Control>KP_Plus, <Control>KP_Minus for recursive
11570         open/close.  (#2682, René Seindal)
11571
11572 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
11573
11574         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
11575         the active menu item before deactivating the menu,
11576         so gtk_menu_popdown doesn't change the history. (#50964)
11577         
11578 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
11579
11580         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
11581         draw lines with text_gc rather than black_gc.
11582         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
11583
11584 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
11585
11586         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
11587         Move handling of buttons fully in gtktreeviewcolumn.  This code is
11588         less interrelated then it was, but it still requires the
11589         GtkTreeView to map it.
11590
11591         * test/testtreecolumn.c: Now I can add a column to one view,
11592         remove it, add it to the another view, remove it, then re-add it
11593         to the first.  Nifty.
11594
11595 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
11596
11597         * docs/tutorial/gtk-tut.sgml: Minor corrections
11598
11599 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
11600
11601         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
11602         GtkRowReference.
11603
11604 2001-02-28  Havoc Pennington  <hp@redhat.com>
11605
11606         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
11607         draw_default
11608         (gtk_widget_draw_focus): remove this function; we could instead
11609         make it just gtk_widget_draw(), but in most cases I think the
11610         result would be broken user code, so think it's better to have
11611         that code not compile and get fixed
11612         (gtk_widget_draw_default): ditto
11613
11614         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
11615         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
11616         
11617         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
11618         widgets lose/get the default, instead of calling draw_default
11619         
11620         * docs/Changes-2.0.txt: note about all this
11621
11622         Then fixed every widget in GTK, I won't list all the filenames.
11623
11624 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
11625
11626         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
11627         _gtk_tree_row_reference_deleted.
11628         (inserted_callback): Proxy out to
11629         _gtk_tree_row_reference_inserted.
11630         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
11631         get around signal emission ordering problem.
11632
11633         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
11634         fix to work with SINGLE 
11635         (_gtk_tree_selection_internal_select_node): Major sanitization on
11636         selections.  SINGLE now seems to work.
11637
11638         * tests/Makefile.am: add testtreecolumn.c:
11639
11640         * tests/testtreecolumn.c: New test.  Mostly points out selection
11641         bugs currently, but will test columns later.
11642
11643         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
11644         selection bug.  I hate touching this code -- it's scary.
11645
11646 2001-02-26  Havoc Pennington  <hp@redhat.com>
11647
11648         * gtk/testgtk.c: test the window state stuff
11649
11650         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
11651         window come to the user's attention as if it were just created
11652         (gtk_window_iconify): new function
11653         (gtk_window_deiconify): new function
11654         (gtk_window_stick): new function
11655         (gtk_window_unstick): new function
11656         (gtk_window_maximize): new function
11657         (gtk_window_unmaximize): new function
11658
11659         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
11660
11661         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
11662
11663         * gdk/x11/gdkevents-x11.c: create window state events when
11664         appropriate
11665         (gdk_wmspec_supported): new function
11666
11667         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
11668         iconification before showing the window
11669         (gdk_window_deiconify): new function
11670         (gdk_window_stick): new function
11671         (gdk_window_unstick): new function
11672         (gdk_window_maximize): new function
11673         (gdk_window_unmaximize): new function
11674
11675         * gdk/gdkwindow.c: store the window state in the window; 
11676         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
11677         window->mapped.
11678         (gdk_window_get_state): return the current window state
11679
11680         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
11681         (gdk_event_get_state): handle GDK_WINDOW_STATE
11682         (gdk_synthesize_window_state): function to create the window state
11683         events
11684
11685         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
11686         event, for changes to "window state" such as maximized, sticky, 
11687         etc.
11688         
11689         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
11690         focuses a window
11691
11692         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
11693         finds out if we support a given WM spec hint
11694
11695 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
11696
11697         * docs/faq/gtk-faq.sgml: New question re memory leaks.
11698
11699 2001-02-25  Hans Breuer  <hans@breuer.org>
11700
11701         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
11702         cause we want to loose those prototypes only in the latter case
11703
11704         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
11705         GdkPixmapImplWin32 because it itsn't derived from it. Use the
11706         impl member variable instead
11707
11708         * gtk/gtk.def : updated
11709
11710         * gtk/gtklist.c : 
11711         * gtk/gtkmenus.c : include <string.h> for memset ()
11712
11713         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
11714         for everthing built here, but for gtk-x.x.dll only. This solves
11715         problem of indifferent gtk type definitions
11716
11717 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
11718
11719         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
11720
11721 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
11722
11723         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
11724         column that is exposed.
11725
11726         (_gtk_tree_view_update_size): Changed name from set_size, and
11727         changed function to do more work, and not force people calling it
11728         to figure out the size.  Simplifies a lot of code elsewhere.
11729
11730 2001-02-23  Alexander Larsson  <alexl@redhat.com>
11731
11732         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
11733         return solid masks for xpms that have no transparent color.
11734         This makes the ..._create_from_xpm... API backwards
11735         compatible.
11736
11737 2001-02-23  Tor Lillqvist  <tml@iki.fi>
11738
11739         * README.win32: Update. Mention the gtk-1-3-win32-production
11740         branch.
11741
11742         * gdk/win32/bdfcursor.c: New file. A program that generates
11743         xcursors.h. Thanks to Stefan Ondrejicka.
11744
11745         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
11746         compact format.
11747
11748         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
11749
11750         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
11751         function, uses xcursors.h.
11752         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
11753         cursor from inline data instead of using LoadCursor() to generate
11754         it from a resource.
11755
11756         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
11757         event, must check the Windows message for mouse button state, as
11758         the GDK event state might not have been built if it is
11759         undelivered. Remove one goto.
11760
11761         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
11762         SetCursor() if the current cursor as returned by GetCursor() is
11763         the window's previous cursor. The ChildWindowFromPoint() test
11764         apparently didn't work correctly.
11765
11766         * gdk/win32/rc/*.cur: Remove.
11767
11768         * gdk/win32/rc/gdk.rc.in: Remove cursors.
11769
11770         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
11771
11772         * gtk/makefile.{mingw,msc}.in: Updates.
11773
11774 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
11775
11776         * gtk/gtktreemodel.h: add functions for signal emission.
11777
11778         * gtk/gtktreestore.c: move to use above functions instead of
11779         g_signal_emit.
11780
11781         * gtk/gtkliststore.c: ditto
11782
11783 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
11784
11785         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
11786         GObject instead of GtkObject.
11787
11788         * gtk/gtkliststore.c: ditto.
11789
11790         * gtk/gtktreemodelsort.c: ditto.
11791
11792         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
11793         GtkTreeModelIface, instead of in each model.
11794
11795 2001-02-21  Havoc Pennington  <hp@redhat.com>
11796
11797         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
11798         unbreak this function
11799
11800         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
11801         properties
11802
11803         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
11804         properties
11805
11806         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
11807         properties
11808
11809         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
11810         mean unset the max length
11811
11812 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
11813
11814         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
11815         Changed name to be set_cell_data_func to make it clear what
11816         the functino does.  Close bug #51069.
11817
11818 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
11819
11820         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
11821         have memory actually freed.  Keeps box running longer.
11822
11823 2001-02-21  Alexander Larsson  <alexl@redhat.com>
11824         
11825         * gtk/gtkseparatormenuitem.[ch]:
11826         Added new menu separator item. The drawing and size handling
11827         is still done in GtkMenuItem, but the API is a bit more sane.
11828         
11829         * gtk/Makefile.am:
11830         Add gtkseparatormenuitem.[ch].
11831
11832         * gtk/gtk.h:
11833         Add gtkseparatormenuitem.h.
11834         
11835         * gtk/gtkentry.c:
11836         * gtk/gtkmenufactory.c:
11837         * gtk/gtktextview.c:
11838         Use the new API for menu separators.
11839         
11840         * demos/gtk-demo/menus.c (create_menu):
11841         Add some GtkSeparatorMenuItem demo code.
11842
11843 2001-02-20  Havoc Pennington  <hp@redhat.com>
11844
11845         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
11846         Lee Mallabone
11847
11848         * gtk/gtkarrow.c: Convert to new property API, patch from 
11849         Lee Mallabone
11850
11851 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
11852
11853         * tests/testtreeview.c (toggled_callback): fix to reflect change
11854         in GtkTreeModelStore.
11855
11856 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
11857
11858         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
11859         function to create an icon set from a pixbuf.
11860
11861 2001-02-20  Alexander Larsson  <alexl@redhat.com>
11862
11863         * gtk/gtkcellrenderertext.[ch]:
11864         Add a "markup" property.
11865
11866         * gtk/treestoretest.c:
11867         Use the markup property, remove some leftover stuff from
11868         GtkTreeModelMapping.
11869
11870 2001-02-20  Alexander Larsson  <alexl@redhat.com>
11871
11872         * gtk/gtklabel.c (gtk_label_set_selectable):
11873         Queue a redraw if the selectable setting was changed.
11874
11875 2001-02-20  Alexander Larsson  <alexl@redhat.com>
11876
11877         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
11878         Actually copy the whole gc, not just the public parts.
11879         
11880         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
11881         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
11882         labels.
11883
11884 2001-02-19  Havoc Pennington  <hp@pobox.com>
11885
11886         * gdk/gdkwindow.c: docs
11887
11888         * gdk/gdkrgb.c: docs
11889
11890         * gdk/gdkregion-generic.c: docs
11891
11892         * gdk/gdkgc.c (gdk_gc_set_values): docs
11893
11894         * gdk/gdkdraw.c: docs
11895
11896         * gdk/gdkdrawable.h: deprecate drawable get/set data
11897
11898 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
11899
11900         * demos/gtk-demo/dialog.c: Add simple new demo.
11901
11902 2001-02-19  Havoc Pennington  <hp@redhat.com>
11903
11904         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
11905         insert_child_anchor signal, bug #50245
11906
11907         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
11908         from create_child_anchor, so the anchor is passed in
11909
11910         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
11911         (_gtk_widget_segment_new): have the child anchor object passed in, 
11912         instead of creating it.
11913
11914         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
11915         to gtk_text_buffer_get_modified
11916
11917 2001-02-19  Havoc Pennington  <hp@redhat.com>
11918
11919         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
11920         changed GLib without fixing GTK
11921
11922         * gtk/gtkrange.h: Rename all the stupid implementation detail 
11923         functions to have an underscore in front. Most of them should 
11924         probably just go away, but for starters don't export them.
11925         Bug #50482
11926
11927 2001-02-19  Havoc Pennington  <hp@redhat.com>
11928
11929         * gdk/gdkcolor.h: test was backward, so deprecated functions were
11930         excluded by default
11931
11932         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
11933         clean up the old code a bit
11934
11935         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
11936         inconsistent state
11937
11938         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
11939         draw inconsistent state
11940
11941         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
11942         (create_menu): add inconsistent test
11943
11944         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
11945         new function
11946         (gtk_check_menu_item_get_inconsistent): new function
11947         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
11948         state (using etched in for now)
11949
11950         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
11951         draw inconsistent state
11952
11953         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
11954         function, used when the user has selected a range of stuff in
11955         different states
11956         (gtk_toggle_button_get_inconsistent): accessor for that
11957         (gtk_toggle_button_paint): draw inconsistent state (etched in?
11958         don't know what else to do)
11959
11960 2001-02-19  Hans Breuer <hans@breuer.org>
11961
11962         * gtk/gtk.def : updated exported symbols
11963
11964         * gtk/makefile.msc.in : updated
11965
11966         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
11967         a colormap, when invoked from testgtk::entry. I'm not sure where
11968         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
11969         avoids immediate crashing ...
11970
11971         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
11972         any objections ?
11973
11974         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
11975         0 parameter. At least msvc doesn't like macros with var args. 
11976         I simply removed the extra 0, was it a feature or a typo ?
11977
11978         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
11979         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
11980         because the value assignment to the internal struct wasn't working.
11981         I'm not absolutely sure. The problem could have been resolved by
11982         changing the "func" declartion in the struct, but was the pointer
11983         to the function pointer intended ?
11984
11985         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
11986
11987         * gdk/gdk.def : updated exported symbols
11988
11989         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
11990         only use SetDIBitsToDevice if there is a palette at the drawable
11991         and the image is GDK_VISUAL_PSEUDO_COLOR
11992
11993         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
11994
11995         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
11996
11997         * gdk/*/makefile.msc : updated
11998
11999 2001-02-19  Havoc Pennington  <hp@redhat.com>
12000
12001         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
12002         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
12003
12004         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
12005         (gdk_key_repeat_restore): nuke
12006
12007         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
12008         (gdk_init_check): no atexit func
12009
12010         * gdk/gdkrgb.h: mark some stuff deprecated
12011
12012         * gdk/gdkcolor.h: mark some stuff deprecated
12013         
12014         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
12015
12016         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
12017
12018 2001-02-16  Havoc Pennington  <hp@redhat.com>
12019
12020         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
12021         scroll steps.
12022
12023         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
12024         steps, and add Ctrl-arrow shortcuts for paging visually as with
12025         HScale, since Page Up and Page Down move logically.
12026
12027         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
12028         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
12029         
12030         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
12031         steps
12032         (gtk_range_scroll): handle the visual steps
12033
12034         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
12035         scroll steps
12036
12037         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
12038         steps, not the logical ones.
12039
12040         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
12041         (scroll_vertical): handle up/down steps
12042
12043 2001-02-19 Alexander Larsson  <alexl@redhat.com>
12044
12045         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
12046         Copy data and free data with free().
12047
12048         * gdk-pixbuf/gdk-pixbuf.c:
12049         * gdk-pixbuf/io-jpeg.c:
12050         * gdk-pixbuf/io-png.c:
12051         Use g_try_malloc/g_free instead malloc/free.
12052         
12053         * gdk-pixbuf/test-gdk-pixbuf.c:
12054         Must... initialize... gobject...
12055         
12056         * gdk-pixbuf/pixops/timescale.c:
12057         * gtk/gtkcalendar.c:
12058         Use g_malloc instead of malloc.
12059         
12060 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
12061
12062         * gtk/testgtkrc:
12063         Comment out property assignments, these don't work yet.
12064
12065 2001-02-17  Havoc Pennington  <hp@pobox.com>
12066
12067         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
12068         bit.
12069
12070 2001-02-17  Havoc Pennington  <hp@pobox.com>
12071
12072         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
12073         shadowed variables that had broken size request in some cases,
12074         leading to bogus tooltips (#50996)
12075
12076 2001-02-06  Jon K Hellan  <hellan@acm.org>
12077
12078         Implement fast browsing of tooltips, bug #50619
12079         
12080         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
12081         and last_popdown
12082         
12083         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
12084         use_sticky_delay and last_popdown.
12085         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
12086         time of popdown.
12087         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
12088         is NULL.
12089         (gtk_tooltips_recently_shown): New static function.  Return true
12090         if < sticky_delay has elapsed since last popdown.
12091         (gtk_tooltips_event_handler): Display window after sticky_delay
12092         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
12093         since last popdown.
12094         
12095 2001-02-17  Havoc Pennington  <hp@pobox.com>
12096
12097         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
12098         instead of (). #6394
12099
12100         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
12101         G_CONST_RETURN, make it return by reference, #50473
12102         
12103 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
12104
12105         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
12106         generated ENTER_NOTIFY event with 0, otherwise not explicitely
12107         setup fields contain garbage (e.g. subwindow, breaking
12108         gdk_drawable_ref() upon event copy).
12109         (gtk_menu_stop_navigating_submenu_cb): same here.
12110
12111         * gtk/gtklist.c (gtk_list_vertical_timeout): 
12112         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
12113         * gtk/gtkclist.c (vertical_timeout): 
12114         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
12115         default-zero-intialization for unions to memset(,0,), as unions are
12116         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
12117         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
12118
12119         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
12120         g_closure_sink() warning.
12121
12122         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
12123         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
12124         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
12125         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
12126         
12127 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
12128
12129         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
12130         gtk_*_store_get, and moved to GtkTreeModel.
12131
12132         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
12133
12134         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
12135
12136         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
12137
12138         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
12139         set the func.
12140
12141         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
12142         freeze/thaw notify between setting all the properties for a cell.
12143
12144         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
12145
12146 2001-02-15  Havoc Pennington  <hp@redhat.com>
12147
12148         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
12149         the X coordinates so they're with respect to the line, rather than 
12150         with respect to the layout.
12151
12152         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
12153         Mallabone
12154
12155         * gtk/testgtk.c (create_range_controls): add vscale tests, 
12156         and inverted test
12157
12158         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
12159         #50806
12160
12161         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
12162
12163         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
12164         gtk_text_iter_is_end
12165
12166         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
12167         rename gtk_text_buffer_get_end_iter
12168
12169         * gtk/testgtk.c (create_labels): Add test for selectable
12170
12171         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
12172         the selection stuff. This code is kind of broken since it doesn't 
12173         use the theme engine.
12174
12175         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
12176         fix infinite loop and y offset problem
12177         (gdk_draw_layout_line_with_colors): fix foreground color handling
12178
12179         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
12180         that makes the label selectable.
12181         
12182         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
12183         layout when the style is set, since fonts etc. could have changed.      
12184
12185 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
12186
12187         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
12188
12189         * gtk/gtktreemodelsimple.[ch]: removed.
12190
12191 2001-02-16  Alexander Larsson  <alexl@redhat.com>
12192
12193         * gtk/gtktreemodelmapping.[ch]:
12194         New files. Implement GtkTreeModelMapping.
12195         
12196         * gtk/Makefile.am:
12197         Add gtktreemodelmapping.[ch].
12198         
12199         * gtk/gtk.h:
12200         Add gtktreemodelmapping.h
12201
12202         * gtk/treestoretest.c:
12203         Test the GtkTreeModelMapping
12204
12205 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
12206
12207         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
12208         have a demo, we might as well pass in real values.  Thanks to
12209         clahey for pointing this out.
12210
12211 2001-02-14  Havoc Pennington  <hp@pobox.com>
12212
12213         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
12214         "static" to a private function
12215         (gtk_image_menu_item_class_init): remove destroy handler,
12216         add "image" object property
12217
12218 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
12219
12220         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
12221         Add a shortcut if the window and the current clip_region doesn't
12222         overlap. This is needed when there are a lot of windows in a
12223         window. The layout test in testgtk is a good test.
12224
12225         * gdk/linux-fb/gdkwindow-fb.c:
12226         Whitespace fix.
12227
12228 2001-02-13  Sven Neumann  <sven@convergence.de>
12229
12230         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
12231
12232 2001-02-13  Alexander Larsson  <alexl@redhat.com>
12233
12234         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
12235         Don't reference last_cursor if it is null. Fixes crash when rotating
12236         the screen before having moved the mouse.
12237
12238         * gdk/linux-fb/gdkcc-fb.c: Zapp!
12239
12240         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
12241
12242         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
12243         when using 90 or 270 degrees rotation.
12244
12245 2001-02-12  Havoc Pennington  <hp@pobox.com>
12246
12247         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
12248         it always set the foreground, even if we were only using
12249         a stipple.
12250         (gdk_draw_layout_line_with_colors): new function, allow
12251         override colors
12252         (gdk_draw_layout_with_colors): new function, allow override
12253         colors
12254         (gdk_pango_layout_line_get_clip_region): function to get the clip
12255         region for a logical text range
12256         (gdk_pango_layout_get_clip_region): get the clip region for a
12257         logical text range
12258
12259         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
12260         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
12261         the right number of arguments.
12262
12263         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
12264         enhance the function to check that node data corresponds to a 
12265         view still belonging to the tree.
12266
12267         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
12268         GtkTreePath
12269         (gtk_tree_view_inserted): ditto
12270         (gtk_tree_view_child_toggled): ditto
12271
12272         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
12273         simplify this code.
12274
12275         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
12276         a PangoAttrList
12277
12278         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
12279
12280         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
12281
12282         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
12283         size in the size request 
12284         (gtk_menu_bar_size_allocate): consider toggle size here
12285
12286         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
12287         that displays a widget in the toggle slot
12288
12289         * gtk/testgtk.c: test GtkImageMenuItem
12290
12291         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
12292         
12293         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
12294         request and allocation
12295
12296         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
12297
12298         * gtk/gtkcheckmenuitem.c
12299         (gtk_check_menu_item_toggle_size_request): ditto
12300         
12301 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
12302
12303         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
12304         reference.
12305
12306         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
12307         and refuse to initialize GTK+ if they fail.
12308
12309 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
12310
12311         * configure.in: Add check for gtk-doc version.
12312
12313 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
12314
12315         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
12316         where the xpad/ypad was only being used on one side!
12317
12318 2001-02-11  Tor Lillqvist  <tml@iki.fi>
12319
12320         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
12321         function, copied from X11 version.
12322
12323         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
12324         DestroyCursor failures. The reason for the problem (despite the
12325         inconsistent messages from GetLastError()) was that
12326         DestroyCursor() cannot be called while a cursor is set in a
12327         window. Set the new cursor first and then destroy the old one.
12328         Thanks to jpe@archaeopteryx.com.
12329
12330         * gdk/win32/gdkcc-win32.c: Remove.
12331
12332         * gdk/win32/Makefile.am: Remove from here, too.
12333         
12334         * gdk/gdk.def
12335         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
12336
12337         * gtk/gtk.def
12338         * gtk/makefile.mingw.in: Updates.
12339
12340 2001-02-08  Havoc Pennington  <hp@redhat.com>
12341
12342         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
12343         add a widget to a bin that already has a child.
12344
12345         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
12346
12347         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
12348         
12349         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
12350
12351         * gdk/gdk.h: remove gdkcc.h
12352
12353         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
12354
12355         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
12356         GdkPixbuf, since the previous implementation was GdkColorContext
12357         dependent.
12358
12359         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
12360         
12361 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
12362
12363         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
12364         a sane value!
12365
12366 2001-02-08  Havoc Pennington  <hp@redhat.com>
12367
12368         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
12369         lighten them.
12370
12371 2001-02-08  Havoc Pennington  <hp@redhat.com>
12372
12373         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
12374         validation idle
12375
12376         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
12377         cell renderer
12378
12379         * demos/pixbuf-demo.c (timeout): remove deprecated
12380         gtk_widget_draw
12381
12382         * demos/testpixbuf-save.c (main): remove deprecated
12383         gtk_drawing_area_size
12384
12385         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
12386         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
12387         at the start of the allocation.
12388         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
12389         unsetup or NULL model.
12390
12391         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
12392         even/odd/sorted cells in the tree view.
12393
12394         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
12395         bugfixes
12396
12397         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
12398         backgrounds with draw_flat_box using different detail for even/odd
12399         rows.
12400
12401         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
12402         row, so we can draw the alternating colors thing
12403
12404         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
12405         property from a synonym property, notify for the synonym.
12406         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
12407         (gtk_text_tag_get_property): Always return the font, even if
12408         all its fields aren't set
12409
12410         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
12411         store the attr list; it leaves us with no way to change attributes
12412         in _render according to the render flags, and no way to implement
12413         get_property. Instead store all the specific text attributes. 
12414         Separate whether an attribute is enabled from its value. Sync all
12415         properties with GtkTextTag, make them all consistent, etc.
12416
12417         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
12418         renderers can highlight the sort row/column     
12419
12420         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
12421         accessor functions to get values; this has the side effect of
12422         showing up which accessor functions were missing. Added those.
12423
12424         * gtk/gtktreeviewcolumn.h: Replace set_justification with
12425         set_alignment, to be consistent with GtkLabel, GtkMisc
12426
12427         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
12428         arrow.
12429
12430         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
12431
12432         * gtk/gtktreesortable.h: updates in here
12433
12434 2001-02-07  Sven Neumann  <sven@convergence.de>
12435
12436         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
12437         pango dimensions after painting the background. We used to draw
12438         gigantic flat boxes here.
12439
12440 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
12441
12442         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
12443         error introduced with earlier commit) (pointed out by
12444         Ollie Lho)
12445
12446 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
12447
12448         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
12449         which are no longer necessary.
12450
12451 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
12452
12453         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
12454
12455 2001-02-04  Tor Lillqvist  <tml@iki.fi>
12456
12457         * gdk/gdk.def
12458         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
12459         Provide dummy implementations.
12460
12461 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
12462
12463         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
12464
12465         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
12466         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
12467         deprecated this function.
12468
12469         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
12470         argument.
12471
12472 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
12473
12474         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
12475
12476 2001-02-03  Havoc Pennington  <hp@pobox.com>
12477
12478         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
12479         Mikael Hermansson with patch from Mikael (if there was a toggle
12480         start one after the first character in the range, this function
12481         was broken). Bug #50380
12482
12483 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
12484
12485         * configure.in: Remove confusing comment about X11.
12486
12487 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
12488
12489         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
12490         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
12491         
12492 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
12493
12494         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
12495         it breaks things on BSD. If you want to compile GTK+ with
12496         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
12497         when configuring, since GTK+ simply can't be "pure ANSI" 
12498         in the header files it uses. (#8170, Greg Hudson)
12499
12500 2001-02-02  Havoc Pennington  <hp@redhat.com>
12501
12502         * gtk/gtkwindow.c: docs
12503
12504         * gtk/gtkwidget.c: docs
12505         (gtk_widget_set_colormap): add a reference to the colormap
12506         (gtk_widget_get_default_colormap): add a reference to the colormap
12507
12508         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
12509
12510         * gtk/gtktextiter.c: docs
12511
12512         * gtk/gtkmain.c (gtk_propagate_event): docs
12513
12514         * gtk/gtkpaned.c (gtk_paned_get_position): docs
12515         (gtk_paned_set_position): docs
12516
12517         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
12518         sort interface, no implementation yet.
12519
12520         * demos/testpixbuf.c (new_testrgb_window): replace
12521         gtk_drawing_area_size() with gtk_widget_set_usize()
12522
12523         * demos/testpixbuf-drawable.c (main): ditto
12524         
12525         * gtk/testgtk.c: remove use of GtkStatusbarMsg
12526
12527         * gtk/gtktextbuffer.c: docs
12528
12529         * gtk/gtkstock.c: docs
12530
12531         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
12532
12533         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
12534
12535         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
12536         
12537         * gtk/gtkimage.c: add some docs in here
12538         (gtk_image_size_request): change name of
12539         gtk_widget_render_stock_icon
12540         (gtk_image_get_icon_set): don't dup returned string
12541         (gtk_image_get_icon_set): don't dup returned string
12542
12543         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
12544         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
12545         and gtkiconfactory.h functions
12546
12547         * gtk/gtkiconfactory.c: add some docs in here
12548
12549         * gtk/gtkmain.c (gtk_get_default_language): document
12550         (gtk_get_current_event): document
12551         (gtk_get_current_event_state): document
12552         (gtk_get_event_widget): document
12553
12554         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
12555
12556         * gtk/gtkcontainer.c: Add some documentation
12557         (gtk_container_add): give a more explanatory warning on adding an
12558         already-parented widget, this is kind of a FAQ and also a common
12559         typo that's easier to debug with a nice warning 
12560
12561         * gtk/gtkcellrenderertoggle.c
12562         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
12563         adding this, it's useless
12564         (gtk_cell_renderer_toggle_set_active): remove
12565         (gtk_cell_renderer_toggle_get_radio): add
12566
12567         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
12568         the NULL cell renderer, that doesn't make any sense to me. 
12569
12570         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
12571         demo code should never use deprecated features.
12572
12573         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
12574         code should never use deprecated features.
12575
12576         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
12577         gtk_widget_queue_clear_area deprecated
12578
12579         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
12580         deprecated
12581
12582         * gtk/gtklabel.h: mark gtk_label_get() deprecated
12583
12584         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
12585         a GdkImage deprecated, replaced by new consistently-named
12586         functions       
12587
12588         * gtk/gtkmain.h: Mark gtk_exit() deprecated
12589
12590         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
12591
12592         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
12593         deprecated
12594
12595         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
12596         so it won't appear in docs and confuse people.
12597
12598         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
12599
12600         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
12601         macros deprecated. (can't mark the type itself deprecated, since
12602         GtkProgressBar is not deprecated and we need the type decl to use
12603         GtkProgressBar)
12604
12605         * gtk/gtkpixmap.h: Mark deprecated
12606
12607         * gtk/gtkoldeditable.h: Mark deprecated
12608
12609         * gtk/gtklist.h: Mark deprecated
12610
12611         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
12612         for anything anymore.
12613
12614         * gtk/gtkctree.h: Mark deprecated
12615
12616         * gtk/gtkclist.h: Mark deprecated
12617
12618         * gtk/gtkpreview.h: Mark deprecated
12619
12620         * gtk/gtkpacker.h: Mark deprecated
12621
12622         * gtk/gtktipsquery.h: Mark deprecated
12623
12624         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
12625
12626         * gtk/gtkvruler.h: Add comment that it will move out of GTK
12627
12628         * gtk/gtkhruler.h: Add comment that it will move out of GTK
12629
12630         * gtk/gtkruler.h: Add comment that it will move out of GTK
12631
12632         * gtk/gtkgamma.h: Add comment that it will move out of GTK
12633
12634         * gtk/gtkcurve.h: Add comment that it will move out of GTK
12635
12636 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
12637
12638         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
12639         gdk_colormap_sync private since it was never exported
12640         in a header file.
12641
12642         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
12643         colormap->colors[] for StaticGray, StaticColor colormaps.
12644
12645         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
12646         was being used as if it was image->bits_per_pixel.
12647
12648         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
12649         for the image in the GdkImage structure since it isn't
12650         reconstructable, and we need it to handle packed types
12651
12652         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
12653         the assumption that on Win32 image->bits_per_pixel == image->depth,
12654         always.
12655
12656         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
12657
12658         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
12659         warning message if no converter can be found. 
12660
12661 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
12662
12663         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
12664         chars to isupper() / tolower(). (#567)
12665
12666         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
12667         to clear up 64-bit warnings. (#567)
12668
12669 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
12670
12671         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
12672         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
12673
12674         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
12675         since some people set $(libdir) separately. (#1290, David Kaelbling)
12676
12677 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
12678
12679         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
12680         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
12681         MAXPATHLEN, but the code here depends on a fixed value.)
12682         (#4524)
12683
12684 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
12685
12686         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
12687         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
12688
12689 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
12690
12691         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
12692         viewable there is no way that moving the node will cause the 
12693         focus row to become not viewable, so omit check on the visibility
12694         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
12695
12696 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
12697
12698         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
12699         selection before inserting new text.
12700
12701 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
12702
12703         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
12704         Make the sensitivity of the reparented child track that of
12705         the original parent menu item. (#34218, David Hodson)
12706
12707         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
12708         the case where the current item is destroyed properly.
12709
12710         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
12711         some edge cases with child-less menuitems.
12712         
12713 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
12714
12715         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
12716         key pop down window. (#12074, Jon K Hellan)
12717
12718 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
12719
12720         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
12721         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
12722         The solution here isn't perfect - you get an extraneous
12723         emission of "toggle", which could conceivably confuse an app,
12724         but better than the current situation. LXR search seems to
12725         indicate that no apps in GNOME CVS connect to "toggle".
12726
12727 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
12728
12729         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
12730         gtk_public_h_sources to directly here to avoid warning when
12731         building srcdir != builddir. (#9656)
12732
12733 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
12734
12735         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
12736         handlers in gtkrange.c return the proper values (TRUE == handled)
12737         (#10316).
12738
12739         This is just the tip of the iceberg, but gtkrange.c is the
12740         most common place where the propagation is problematical,
12741         and also a place where it is almost certainly safe to change
12742         this in the stable branch.
12743
12744         (You don't want right click popups on a range control or anything...)
12745
12746 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
12747
12748         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
12749         area on focus out, even if a background pixmap isn't set.
12750         (#13941)
12751         
12752 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
12753
12754         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
12755         to deal with setting the shape properly when scrolling arrows are
12756         turned on, but not visible because there is sufficient space.
12757         (#13432)
12758
12759 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
12760
12761         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
12762         items with submenus, destroy the item along with the submenu.
12763         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
12764         properly.
12765
12766         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
12767         later.
12768
12769 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
12770
12771         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
12772         the focus widget sometimes wasn't drawn with the default if there
12773         was no default widget.
12774
12775         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
12776         unreference pixmaps. 
12777
12778         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
12779         for some extra safety.
12780
12781 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
12782
12783         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
12784         the text of a cell to the old pointer value better, by
12785         copying the new text before freeing the old text. Some code
12786         cleanup. (#8079, Karl Nelson)
12787
12788 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
12789
12790         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
12791         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
12792
12793 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
12794
12795         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
12796         item from a menu, check to see if it matches 
12797         menu->old_active_menu_item, and if so, unref and clear
12798         old_active_menu_item (Patch from Pavel Cisler)
12799
12800         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
12801         menu_shell->active_menu_item, if it is the child being
12802         removed. (Patch based on that of Gene Ragan, #50337)
12803
12804 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
12805
12806         * gdk/linux-fb/gdkselection-fb.c: 
12807         * gdk/linux-fb/gdkcolor-fb.c: 
12808         * gdk/linux-fb/gdkdrawable-fb2.c: 
12809         * gdk/linux-fb/gdkfont-fb.c: 
12810         * gdk/linux-fb/gdkim-fb.c: 
12811         * gdk/linux-fb/gdkinput.c: 
12812         * gdk/linux-fb/gdkkeyboard-fb.c: 
12813         * gdk/linux-fb/gdkmain-fb.c: 
12814         * gdk/linux-fb/gdkrender-fb.c: 
12815         A bunch of whitespace cleanup.
12816         
12817 2001-01-30  Havoc Pennington  <hp@pobox.com>
12818
12819         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
12820         #ifdef GTK_ENABLE_BROKEN.
12821
12822         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
12823         GTK_ENABLE_BROKEN just before including the broken headers.
12824         
12825         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
12826         deprecated types registered.
12827
12828         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
12829         we have to test the broken stuff.
12830
12831         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
12832         
12833 2001-01-30  Havoc Pennington  <hp@redhat.com>
12834
12835         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
12836         here where prev pointer was set to the wrong thing
12837
12838         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
12839         (gtk_tree_path_is_descendant): new function
12840
12841         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
12842         cached length
12843         (gtk_list_store_get_iter): don't modify iter if we can't get the
12844         path.
12845
12846         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
12847         
12848         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
12849         GtkTreeDragDest
12850
12851         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
12852         was causing segfault
12853
12854         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
12855         pointer to NULL
12856
12857         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
12858
12859         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
12860         on returning FALSE
12861         (gtk_list_store_iter_children): ditto
12862         (gtk_list_store_iter_nth_child): ditto
12863         (gtk_list_store_iter_nth_child): ditto
12864         (gtk_list_store_iter_parent): ditto
12865
12866         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
12867         on iter->user_data != NULL instead of silently accepting it.
12868         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
12869         we are returning TRUE.
12870         (gtk_tree_store_iter_children): ditto
12871         (gtk_tree_store_iter_nth_child): ditto
12872         (gtk_tree_store_iter_parent): ditto
12873         (gtk_tree_store_insert): remove handling of parent->user_data ==
12874         NULL, replace with parent == NULL       
12875
12876         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
12877         and a comment explaining things
12878
12879         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
12880         interface support to GtkTreeStore.
12881
12882         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
12883         FALSE if no prev, fix
12884
12885         * gtk/gtktreeview.c (set_source_row): use a row reference
12886         (set_dest_row): use a row reference
12887
12888 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
12889
12890         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
12891         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
12892         (gtk_tree_selection_select_iter): The same as above.
12893
12894 2001-01-26  Havoc Pennington  <hp@redhat.com>
12895
12896         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
12897         which holds a handle to a specific row (particular set of values
12898         in the model, i.e. pointer-identity row).
12899
12900         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
12901         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
12902         Still need to use it for the src/dest row saved on the drag context.
12903
12904 2001-01-26  Havoc Pennington  <hp@redhat.com>
12905
12906         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
12907
12908         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
12909         not offset by TREE_VIEW_HEADER_HEIGHT
12910         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
12911         TREE_VIEW_HEADER_HEIGHT
12912
12913         * configure.in (included_loaders): for me, --with-included-loaders
12914         generates the error "the specified loader yes does not exist",
12915         i.e. the arg defaults to "yes", so change test for value ""
12916         to test for value "yes", and include all loaders in that case.
12917
12918         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
12919
12920         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
12921         handle TREE_VIEW_VERTICAL_SEPARATOR
12922         (gtk_tree_view_bin_expose): fix to consider the row offset as
12923         pointing halfway into vertical separator.       
12924         (gtk_tree_view_draw_node_focus_rect): ditto
12925
12926         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
12927         --gtk-debug=updates, which causes gdk_window_set_debug_updates
12928         (TRUE) to be called.
12929
12930         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
12931         debug mode where the invalid region is colored in on invalidate,
12932         so you can see the flicker and know whether your redraw code is 
12933         doing a good job.
12934
12935         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
12936         tree window coordinates (clip rect is in tree window coords)
12937
12938         * gtk/Makefile.am: add gtktreednd.[hc]
12939
12940         * gtk/gtkliststore.c: implement gtktreednd interfaces.
12941
12942         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
12943         drag-and-drop data operations on a model (so we can set up tree
12944         drag-and-drop automatically)
12945
12946         * gtk/testgtk.c: Add a window to change sensitivity in the
12947         GtkLabel test; add a way to change the entry frame in GtkEntry
12948         test
12949
12950         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
12951         (gtk_entry_get_has_frame): new functions to remove the frame
12952         around an entry
12953         (gtk_entry_size_request): shrink requisition if no frame
12954         (gtk_entry_draw_focus): don't draw frame if no frame
12955
12956         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
12957         checks inside a cell renderer
12958         (gtk_default_draw_option): ditto for options
12959
12960         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
12961         children from the alignment, not the button
12962         (gtk_tree_view_column_init): ref/sink the column, to emulate
12963         GObject refcounting.
12964
12965         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
12966         
12967         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
12968         Use theme functions to draw the toggles 
12969
12970         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
12971
12972         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
12973         GdkPangoAttrEmbossed to use in rendering insensitive text
12974
12975         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
12976
12977         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
12978         using new GDK features
12979         
12980 2001-01-24  Alexander Larsson  <alexl@redhat.com>
12981
12982         * gtk/gtkimage.c:
12983         Splitted gtk_image_clear into gtk_image_clear() and
12984         gtk_image_reset(). Call gtk_image_clear() in ::destroy
12985         to avoid leaks.
12986
12987         * gtk/gtklabel.c (set_markup):
12988         Don't leak text.
12989
12990         * gtk/gtktextlayout.c:
12991         Always free display->shaped_objects.
12992
12993         * gtk/testgtk.c (create_clist):
12994         Don't leak custom style.
12995
12996 2001-01-23  Alexander Larsson  <alexl@redhat.com>
12997
12998         * gtk/gtkcolorsel.c (grab_color_at_mouse):
12999         Don't leak image. Simplify using gdk_colormap_query_color().
13000         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
13001
13002         * linux-fb/gdkcolor-fb.c:
13003         Implemented gdk_colormap_query_color.
13004
13005 2001-01-23  Alexander Larsson  <alexl@redhat.com>
13006
13007         * linux-fb/gdkcursor-fb.c:
13008         Don't leak built-in cursors.
13009
13010         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
13011         Don't leak tmp_points.
13012
13013         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
13014         Don't modify desc. Don't leak font if the PangoFont
13015         isn't found.
13016         
13017         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
13018         Free dash_list.
13019
13020         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
13021         Don't leak string.
13022         
13023 2001-01-20  Havoc Pennington  <hp@pobox.com>
13024
13025         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
13026         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
13027         me, matches Pango
13028
13029 2001-01-22  Havoc Pennington  <hp@redhat.com>
13030
13031         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
13032
13033         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
13034
13035         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
13036         Remove, move back to gdk-pixbuf
13037
13038         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
13039         to all the word functions
13040
13041         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
13042         before doing anything on NULL layout or if we don't have the focus
13043
13044         * gtk/testtext.c (fill_example_buffer): "justification"
13045
13046         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
13047         to be called "justification" not "justify"
13048
13049         * demos/gtk-demo/textview.c (create_tags): "justification"
13050         
13051         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
13052
13053 2001-01-22  Alexander Larsson  <alexl@redhat.com>
13054
13055         * gdk/gdkwindow.c (gdk_window_invalidate_region):
13056         Don't leak visible_region. Use visible_region instead of region.
13057         
13058         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
13059         Don't do extra gdk_drawable_ref(). This is not X.
13060         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
13061         gdk_fb_focused_window is ref:ed.
13062         (gdk_fb_window_send_crossing_events): Watch out for destroyed
13063         windows.
13064
13065 2001-01-22  Alexander Larsson  <alexl@redhat.com>
13066
13067         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
13068         Don't leak the PangoFontDescriptor.
13069
13070 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
13071
13072         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
13073         when not realized.
13074         (gtk_tree_view_scroll_to_cell): Make work when not realized.
13075         (gtk_tree_view_realize): add scroll_to support
13076         (gtk_tree_view_finalize): add a finalize method.  Populate.
13077         (gtk_tree_view_insert_column): ref and sink the column.
13078         (gtk_tree_view_append_column): ref and sink the column.
13079         (gtk_tree_view_queue_draw_node): New function to handle redrawing
13080         individual nodes.  Should make the code much more efficient, if
13081         actually used.
13082
13083 2001-01-19  Havoc Pennington  <hp@redhat.com>
13084
13085         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
13086         byte_offset variable was being used to mean both "offset into
13087         layout" and "offset into buffer line" which was no longer true
13088         with addition of preedit string; fix
13089
13090 2001-01-19  Havoc Pennington  <hp@redhat.com>
13091
13092         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
13093
13094         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
13095         function
13096
13097         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
13098         implement
13099
13100         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
13101         scroll_to_cell, matches TextView scroll functions better
13102         (gtk_tree_view_tree_to_widget_coords): new function
13103         (gtk_tree_view_widget_to_tree_coords): new function
13104         (gtk_tree_view_get_visible_rect): new function
13105         (gtk_tree_view_get_path_at_pos): accept negative coordinates
13106         (gtk_tree_view_draw_node_focus_rect): new function moved from
13107         draw_focus, also, use width of bin_window as width of the focus
13108         rect
13109         (gtk_tree_view_expand_row): fix bug where it didn't recognize
13110         already-expanded rows
13111         (gtk_tree_view_get_cell_rect): new function
13112         (gtk_tree_view_get_path_at_pos): return the click position
13113         relative to the passed-in cell
13114         (gtk_tree_view_set_expander_column): new function
13115
13116         * configure.in: remove gtk-config-2.0 chmod
13117
13118         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
13119         and properly handle drags with targets we don't understand
13120         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
13121         scrolling anyway
13122         (gtk_text_view_drag_drop): stop scrolling here though, and set the
13123         mark invisible
13124
13125         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
13126         function
13127         (gtk_drag_dest_get_target_list): new function
13128         (gtk_drag_dest_set_target_list): new function
13129         
13130         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
13131
13132         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
13133         related to drag-and-drop
13134
13135 2001-01-19  Alexander Larsson  <alexl@redhat.com>
13136
13137         * gdk/linux-fb/gdkprivate-fb.h:
13138         Define EMULATE_GDKFONT.
13139         Add extra pango_font stuff to GfkFontPrivate.
13140         
13141         * gdk/linux-fb/gdkdrawable-fb2.c:
13142         * gdk/linux-fb/gdkfont-fb.c:
13143         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
13144         emulation using PangoFont.
13145
13146 2001-01-17  Havoc Pennington  <hp@pobox.com>
13147
13148         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
13149         all the non-deprecated set_foo functions. Added missing object
13150         properties, and added g_object_notify() to setters. 
13151         Wrote docs.
13152         
13153 2001-01-18  Tor Lillqvist  <tml@iki.fi>
13154
13155         * gtk/gtkmain.c
13156         * gtk/gtkrc.c: (Win32) Use the new
13157         g_win32_get_package_installation_(sub)directory() functions.
13158
13159         * config.h.win32.in: New file.
13160         
13161         * config.h.win32: Removed.
13162
13163         * configure.in: Output config.h.win32.
13164
13165         * Makefile.am: Add it to EXTRA_DIST.
13166
13167         * gtk/gtk.def: Update.
13168
13169 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
13170
13171         * gtk/gtklabel.c (gtk_label_size_request): Set the
13172         attributes onto the PangoLayout even if they are newly
13173         created from label->pattern.
13174
13175 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
13176
13177         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
13178
13179         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
13180         structures in functions. Fixes bug where gtk_dataset_*
13181         was accidentally still being used in one place, causing
13182         every dest side event to be treated independently.
13183
13184         * gtk/gtkdnd.c: Remove last vestages of handling
13185         ::draw (fixes warning)
13186         
13187         * gtk/gtkentry.[ch]: Add drag and drop support.
13188
13189         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
13190         new function gtk_check_drag_threshhold() for checking
13191         to check if (dx,dy) has exceeded the threshhold for starting
13192         a drag and use it everywhere.
13193
13194 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
13195
13196         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
13197         add -I{includedir}/gtk-2.0.
13198
13199         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
13200         gdk/gdk-pixbuf.h: Doc fixups.
13201         
13202         * gtk/gtkobject.h: Remove trailing , from enum
13203
13204 2001-01-17 Alexander Larsson <alexl@redhat.com> 
13205
13206         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
13207         Doh! Mixed up x and y.
13208
13209         * gdk/linux-fb/gdkglobals-fb.c:
13210         Removed gdk_fb_pointer_grab_window_events,
13211         added _gdk_fb_pointer_grab_owner_events and
13212         _gdk_fb_keyboard_grab_owner_events.
13213
13214         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
13215         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
13216         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
13217         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
13218         Send crossing events after ungrab finished.
13219         (gdk_keyboard_grab): Set ..._owner_events
13220         (type_masks): Move out of function.
13221         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
13222         gdk_fb_keyboard_event_window): New functions, return the
13223         window an event should be targeted at. Handles grabs and
13224         event propagation. Can return NULL.
13225         (gdk_event_make): Remove event_mask checking. Now always
13226         returns an event.
13227                 
13228         * gdk/linux-fb/gdkkeyboard-fb.c:
13229         * gdk/linux-fb/gdkproperty-fb.c:
13230         * gdk/linux-fb/gdkselection-fb.c:
13231         Use new event_window/gdk_event_make() behaviour.
13232         
13233         * gdk/linux-fb/gdkmouse-fb.c:
13234         Use new event_window/gdk_event_make() behaviour.
13235         Only send motion events if in the same window.
13236         If grabbed, use cursor from window if sibling of grabbed
13237         window, and cursor from grabbed window otherwise.
13238
13239         * gdk/linux-fb/gdkprivate-fb.h:
13240         Update gdk_fb_window_send_crossing_events, gdk_event_make
13241         and grab varaible declarations. Add gdk_fb_*_event_window().
13242
13243         * gdk/linux-fb/gdkwindow-fb.c:
13244         Use new event_window/gdk_event_make() behaviour.
13245         Keep correct track of focus window.
13246         (gdk_window_set_events): Set all specific button motion masks
13247         if GDK_BUTTON_MOTION_MASK set.
13248
13249         * gtk/gtkdnd.c (gtk_drag_update):
13250         Free info->last_event if gdk_drag_motion returned FALSE.
13251
13252 2001-01-16  Tor Lillqvist  <tml@iki.fi>
13253
13254         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
13255         Eliminate redraws when input-only windows are shown or
13256         hidden. Thanks to jpe@archaeopteryx.com.
13257
13258 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
13259
13260         * docs/faq/gtk-faq.sgml: FAQ update:
13261           - Update to bugzilla
13262           - Add GTK+ and security/SUID/SGID
13263           - Add DnD question
13264
13265 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
13266
13267         * gdk/linux-fb/gdkdnd-fb.c:
13268         Some cleanups.
13269         
13270 2001-01-15  Havoc Pennington  <hp@pobox.com>
13271
13272         * tests/testtreeview.c: add test stuff for CellRendererToggle
13273
13274         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
13275         accessor
13276
13277         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
13278         only toggle on button press (would do release like GtkButton, but
13279         we'd need implicit grab code for treeview cells)
13280
13281 2001-01-16  Tor Lillqvist  <tml@iki.fi>
13282
13283         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
13284
13285         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
13286         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
13287
13288         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
13289         to g_{locale,filename}_{to,from}_utf8 to match current API.
13290
13291         * gtk/makefile.msc.in (gtk_OBJECTS)
13292         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
13293
13294         * gtk/gtk.def: Update.
13295
13296 2001-01-15  Tor Lillqvist  <tml@iki.fi>
13297
13298         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
13299         implementaion that more closely mimics the events that an X server
13300         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
13301         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
13302         with nested preview widgets, for instance, more responsive when
13303         you move the mouse quickly into them.
13304         (find_window_for_pointer_event): Make it actually compile.
13305         (gdk_event_translate): Set send_event to the value of
13306         InSendMessage (). This doesn't really mean the same as X11's
13307         send_event flag, but is close enough, says jpe@archaeopteryx.com
13308
13309 2001-01-15  Alexander Larsson  <alexl@redhat.com>
13310
13311         * gdk/linux-fb/gdkdnd-fb.c:
13312         Implemented drag and drop.
13313         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
13314         when it tries to free and then copy the same event (info->last_event).
13315         I am not sure about why this happens, but will continue looking.
13316
13317 2001-01-15  Alexander Larsson  <alexl@redhat.com>
13318
13319         * gdk/linux-fb/gdkwindow-fb.c:
13320         Use gdk_window_invalidate_rect instead of
13321         gdk_window_invalidate_rect_clear to minimise flashing.
13322         When hiding windows you need to clear the root window though.
13323
13324 2001-01-15  Alexander Larsson  <alexl@redhat.com>
13325
13326         * gdk/linux-fb/gdkdrawable-fb2.c:
13327         For optization, add an full_shapes argument to gdk_fb_clip_region.
13328         If this is false, only the cliprects of the shapes are used.
13329
13330         * gdk/linux-fb/gdkprivate-fb.h:
13331         Export gdk_fb_window_peek_shape.
13332         Add full_shapes to gdk_fb_clip_region.
13333
13334         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
13335         When moving a window, don't clear everything under the it, just the
13336         root window. Makes stuff faster and flash less.
13337         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
13338         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
13339         offset of the shape.
13340         
13341
13342 2001-01-12  Havoc Pennington  <hp@redhat.com>
13343
13344         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
13345         current invalid region, fixes redraw bug while scrolling the 
13346         text widget
13347
13348         * gtk/gtktextview.c, gtk/gtktextview.h:
13349         Rearrange the scrolling/validation/etc. code in a major way, 
13350         so it seems to make sense to me. Probably isn't genuinely that
13351         much better, but...
13352
13353         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
13354         notifies
13355
13356         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
13357
13358 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
13359
13360         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
13361         Hide mouse pointer while rotation. Show it afterwards.
13362
13363 2001-01-12  Alexander Larsson  <alexl@redhat.com>
13364
13365         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
13366         windows in consideration when generating clip region.
13367
13368         * gdk/linux-fb/gdkfb.h:
13369         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
13370
13371         * gdk/linux-fb/gdkprivate-fb.h:
13372         Add shape to GdkWindowFBDatat.
13373         exported gdk_fb_window_get_abs_shape().
13374         removed gdk_fb_draw_lines declaration.
13375
13376         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
13377         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
13378         send focus changes when there is a grabbed window.
13379         (gdk_window_get_pointer): Handle shaped windows.
13380         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
13381         (gdk_fb_window_peek_shape): Returns the shape for a window,
13382         handles GDK_FB_USE_CHILD_SHAPE.
13383         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
13384         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
13385         (gdk_window_shape_combine_mask): Implement.
13386
13387         * gtk/gtkwindow-decorate.c:
13388         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
13389         setting the shape of a window makes the window transparent.
13390
13391 2001-01-11  Havoc Pennington  <hp@redhat.com>
13392
13393         * gtk/gtktreemodelsimple.h: Oops, broke some macros
13394
13395 2001-01-10  Havoc Pennington  <hp@redhat.com>
13396
13397         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
13398         add this function, bug 40251
13399
13400         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
13401         of type macro   
13402
13403 2001-01-11  Alexander Larsson  <alexl@redhat.com>
13404
13405         * acconfig.h:
13406         Added ENABLE_SHADOW_FB
13407
13408         * configure.in:
13409         Added --disable-shadowfb
13410
13411         * gdk/linux-fb/gdkcursor-fb.c:
13412         Update shadowfb when updating cursor
13413
13414         * gdk/linux-fb/gdkdrawable-fb2.c:
13415         Added wrappers for shadowfb that calls  the normal drawable
13416         methods, but calls gdk_shadow_fb_update(bounding box) when
13417         GdkWindows are drawed to.
13418         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
13419         which also returns the bounding box.
13420
13421         * gdk/linux-fb/gdkfb.h:
13422         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
13423
13424         * gdk/linux-fb/gdkgeometry-fb.c:
13425         Update shadowfb when scrolling window.
13426
13427         * gdk/linux-fb/gdkglobals-fb.c:
13428         Add _gdk_fb_screen_angle.
13429         
13430         * gdk/linux-fb/gdkkeyboard-fb.c:
13431         Test code for screen rotation. Shift-F2 in the xlate driver
13432         rotates the screen.
13433
13434         * gdk/linux-fb/gdkmain-fb.c:
13435         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
13436
13437         * gdk/linux-fb/gdkmouse-fb.c:
13438         Use fb_width/height instead of modeinfo.xres/yres.
13439
13440         * gdk/linux-fb/gdkprivate-fb.h:
13441         Added fb_men, fb_width, fb_height & fb_stride. When using
13442         shadow fb these can differ from the framebuffer stuff.
13443         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
13444         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
13445         _gdk_fb_screen_angle. Removed CM, RP.
13446
13447         * gdk/linux-fb/gdkrender-fb.c:
13448         Added code for shadowfb handling and screen rotation using
13449         shadowfb.
13450
13451         * gdk/linux-fb/gdkwindow-fb.c:
13452         Use fb_mem, fb_stride, fb_width, fb_height.
13453         Added recompute_rowstride to reset the rowstride of all windows.
13454         Added gdk_fb_recompute_all() which recomputes rootwindow size,
13455         window abs positions and window rowstrides. Usefull when the
13456         rotation has changed.
13457
13458 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
13459
13460         * docs/faq/gtk-faq.sgml: update to make web site updating easier
13461
13462 2001-01-10  Havoc Pennington  <hp@redhat.com>
13463
13464         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
13465         where sibling == iter
13466         (gtk_tree_store_insert_after): handle sibling == iter
13467         (gtk_tree_store_prepend): remove stamp checks
13468         (gtk_tree_store_insert_before): ditto
13469         (gtk_tree_store_append): ditto
13470         (gtk_tree_store_get_path): ditto
13471         (gtk_tree_store_get_value): ditto
13472         (gtk_tree_store_iter_has_child): ditto
13473         (gtk_tree_store_iter_n_children): ditto
13474         (gtk_tree_store_iter_nth_child): ditto
13475         (gtk_tree_store_insert_after): ditto
13476         (gtk_tree_store_is_ancestor): ditto
13477         (gtk_tree_store_iter_depth): ditto
13478         (gtk_tree_store_insert_before): assert that sibling's parent is
13479         the same as the passed-in parent
13480         (gtk_tree_store_insert_after): assert that sibling's parent is
13481         the same as the passed-in parent
13482
13483         
13484         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
13485         function to get the first iterator in a model
13486         
13487         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
13488         conventionally the "root" in this sense is just NULL afaict.
13489
13490         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
13491         where sibling == iter
13492         (gtk_list_store_insert_after): handle case where sibling == iter
13493
13494         * tests/testtreeview.c (run_automated_tests): fairly lame basic
13495         automated tests for ListStore, TreeStore
13496
13497         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
13498         (gtk_list_store_insert): update tail pointer, and fix it to work
13499         (gtk_list_store_insert_before): update tail pointer, and fix it to work
13500         (gtk_list_store_append): use tail to be faster
13501         (gtk_list_store_prepend): fix it, update tail pointer
13502         (gtk_list_store_insert_after): fix it, update tail pointer
13503
13504         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
13505         the list
13506
13507 2001-01-09  Havoc Pennington  <hp@redhat.com>
13508
13509         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
13510         is NULL due to a pending resize
13511
13512         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
13513         column width to values less than 1
13514
13515         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
13516         width to be between min/max width, and still set the width 
13517         even if autosize is turned on, so the tree view can use this 
13518         function in order to autosize.
13519         (gtk_tree_view_column_init): set initial width to 1 not 0
13520
13521         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
13522         setter function to modify column width, so we get notification
13523         (gtk_tree_view_insert_iter_height): ditto
13524         (gtk_tree_view_calc_size): ditto
13525         (gtk_tree_view_check_dirty): ditto
13526
13527         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
13528         properties to change all the interesting attributes of the tree
13529         view column.
13530         (gtk_tree_view_column_set_header_clickable): rename set_clickable
13531         (gtk_tree_view_column_get_clickable): add
13532         (gtk_tree_view_column_set_cell_renderer): don't unset the current
13533         attributes; assume a cell renderer with equivalent object
13534         properties has been swapped in. Do g_object_notify().
13535         (gtk_tree_view_column_set_visible): g_object_notify
13536         (gtk_tree_view_column_get_sizing): rename from get_col_type
13537         (gtk_tree_view_column_set_sizing): g_object_notify
13538         (gtk_tree_view_column_set_width): add g_object_notify
13539         (gtk_tree_view_column_set_min_width): ditto
13540         (gtk_tree_view_column_set_max_width): ditto
13541         (gtk_tree_view_column_set_title): ditto
13542         (gtk_tree_view_column_set_clickable): ditto
13543         (gtk_tree_view_column_set_widget): ditto
13544         (gtk_tree_view_column_set_justification): ditto
13545
13546 2001-01-09  Havoc Pennington  <hp@redhat.com>
13547
13548         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
13549         there are no rows in the model
13550
13551         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
13552         NULL, then return the start of the list
13553
13554         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
13555         if we can't get any rows from an empty model 
13556
13557         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
13558         extraneous * after function pointer typedef usage
13559
13560         * Makefile.am: don't specify full path to cp and rm
13561
13562         * gtk/gtkcellrenderertextpixbuf.c
13563         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
13564         NULL before dereferencing, fixes a segfault that happened from
13565         time to time
13566
13567         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
13568         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
13569         and reindent the function
13570         (gtk_cell_renderer_pixbuf_get_size): indentation
13571
13572         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
13573         we quit it
13574         (gtk_dialog_add_buttons_valist): add g_return_if_fail
13575         (gtk_dialog_set_default_response): New function, to set default
13576         button
13577         (gtk_dialog_set_response_sensitive): New function, to set 
13578         sensitivity of buttons
13579
13580         * gtk/gtkcellrendererpixbuf.c
13581         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
13582         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
13583
13584         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
13585         handle any G_TYPE_OBJECT subclass, not just the base class, and 
13586         also boxed types.
13587         (_gtk_tree_data_list_value_to_node): ditto
13588
13589         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
13590         --gtk-debug=tree
13591
13592         * gtk/gtkmain.c: add GTK_DEBUG_TREE
13593
13594         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
13595
13596 2001-01-09  Tor Lillqvist  <tml@iki.fi>
13597
13598         * gdk/win32/gdkevents-win32.c: Implement better mouse
13599         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
13600         (find_window_for_pointer_event): New function.
13601         (gdk_event_translate): Use it when handling mouse events.
13602
13603 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
13604
13605         * configure.in:
13606         Added --with-included-loaders option
13607
13608         * gdk-pixbuf/Makefile.am:
13609         * gdk-pixbuf/gdk-pixbuf-io.c:
13610         Add support for including selected gdk-pixbuf loaders only.
13611
13612         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
13613         gtk_window_set_has_frame):
13614         Added inline documentation.
13615
13616         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
13617         * docs/reference/gdk/tmpl/windows.sgml:
13618         Added inline documentation.
13619
13620 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
13621
13622         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
13623         realizing buttons that have already been realized.
13624
13625 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
13626
13627         * tests/testtreeview.c (main): Show menu items before adding to
13628         option menu.
13629
13630         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
13631         around if we kill them.
13632
13633         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
13634         Return if we pass in a NULL model.
13635
13636 2001-01-08  Havoc Pennington  <hp@redhat.com>
13637
13638         * tests/testtreeview.c: hack on this some
13639
13640         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
13641         gtk_tree_store_set_valist, v is for arrays, valist for varargs
13642         list
13643         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
13644
13645         * gtk/gtkliststore.h: Add varargs set() and get() convenience
13646         functions
13647
13648 2001-01-08  Alexander Larsson  <alexl@redhat.com>
13649
13650         * gtk/gtkwindow-decorate.[hc]:
13651         * gtk/Makefile.am:
13652         New files. Contains an implementation of a minimal WM for
13653         linux-fb.
13654
13655         * gtk/gtkwindow.h:
13656         Add the possibility for GtkWindows to specify a frame. This
13657         is used for the window decoration code, but could concievably
13658         be used for X programs too (xmms style windows).
13659         GtkWindow->frame is the toplevel window if the window is framed.
13660         The signal frame_event gets all events that are targeted to
13661         GtkWindow->frame.
13662         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
13663         
13664         * gtk/gtkwindow.c:
13665         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
13666         Call out to gtkwindow-decorate.c for WM support in linx-fb.
13667
13668 2001-01-08  Alexander Larsson  <alexl@redhat.com>
13669
13670         * docs/README.linux-fb:
13671         Correct filename ~/.pangoft2_aliases
13672
13673         * gdk/gdkwindow.h:
13674         Added new function gdk_window_get_decorations.
13675
13676         * gdk/linux-fb/gdkfb.h:
13677         Removed _gdk_window_get_decorations declaration.
13678         Renamed _gdk_window_set_child_handler to
13679         gdk_fb_window_set_child_handler.
13680
13681         * gdk/linux-fb/gdkwindow-fb.c:
13682         Renamed _gdk_window_set_child_handler to
13683         gdk_fb_window_set_child_handler.
13684
13685         * gdk/x11/gdkwindow-x11.c:
13686         New function gdk_window_get_mwm_hints().
13687         Implemented gdk_window_get_decorations.
13688
13689         * docs/reference/gdk/tmpl/windows.sgml:
13690         * docs/reference/gdk/gdk-sections.txt:
13691         Added gdk_window_get_decorations docs.
13692         
13693 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
13694
13695         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
13696         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
13697         gdk_fb_window_send_crossing_events):
13698         Possibly send focus events when the mouse moves from one
13699         window to another.
13700
13701 2001-01-07  Tor Lillqvist  <tml@iki.fi>
13702
13703         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
13704         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
13705         to match current API.
13706
13707         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
13708         environment variable is set, don't call g_error when on a
13709         palettized (PseudoColor) display. Some people want to use GTK+ 
13710         in 256-colour mode even though works only partially.
13711
13712         * gdk/gdk.def
13713         * gtk/gtk.def
13714         * gtk/makefile.mingw.in: Update.
13715
13716 2001-01-05  Havoc Pennington  <hp@redhat.com>
13717
13718         * tests/testtreeview.c: hack on this a bit
13719
13720         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
13721         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
13722
13723         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
13724         was spelled incorrectly
13725         (GTK_IS_TREE_MODEL_SIMPLE): ditto
13726
13727         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
13728         from gtk_tree_view_set_headers_active   
13729
13730         * gtk/gtktexttag.c:
13731         (gtk_text_tag_get_property): handle PROP_DIRECTION
13732         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
13733         properties, bug 40235
13734
13735         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
13736         forward_to_line_end
13737
13738 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
13739
13740         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
13741         modules/input/gtkimcontextxim.c: Adapt to new prototypes
13742         for unicode,locale,filename conversion functions.
13743
13744 2001-01-05  Havoc Pennington  <hp@redhat.com>
13745
13746         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
13747         broken if called on the first position in the buffer.
13748
13749         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
13750         forward_to_delimiters to be called only if we aren't already at
13751         the delimiters.
13752
13753 2001-01-05  Havoc Pennington  <hp@redhat.com>
13754
13755         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
13756
13757 2001-01-05  Alexander Larsson  <alexl@redhat.com>
13758
13759         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
13760         colormap in here. Sync from X port.
13761         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
13762         Sync from X port.
13763         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
13764         This happens now and then, and i don't think it is a bug.
13765         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
13766         != endpoint.
13767         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
13768         GDK_LINE_SOLID.
13769
13770         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
13771         some of the fields filled in at least.
13772
13773         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
13774         miLineArcD is no more, remove it from the function definition.
13775
13776 2001-01-04  Havoc Pennington  <hp@redhat.com>
13777
13778         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
13779         this
13780
13781         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
13782         user_data instead of tree_node
13783
13784         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
13785         TREE_VIEW_COLUMN_SIZE
13786
13787         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
13788         "size" field to "width" finishes bug 40061
13789
13790         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
13791         for bitfields, bug 40268
13792
13793 2001-01-04  Havoc Pennington  <hp@redhat.com>
13794
13795         Rename some stuff:
13796         
13797         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
13798
13799         s/GtkModelSimple/GtkTreeModelSimple/g;
13800         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
13801         s/gtk_model_simple/gtk_tree_model_simple/g;
13802         s/gtkmodelsimple/gtktreemodelsimple/g;
13803
13804         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
13805
13806         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
13807         s/column_set_col_type/column_set_sizing/g;
13808
13809         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
13810         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
13811
13812         s/GtkCellRendererType/GtkCellRendererState/g;
13813         
13814         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
13815         (gtk_cell_renderer_toggle_class_init): change "state" property to
13816         "active", to match GtkToggleButton
13817         (gtk_cell_renderer_toggle_get_active): new function, bug
13818         40269
13819         (gtk_cell_renderer_toggle_set_active): new function
13820         (gtk_cell_renderer_toggle_set_property): route changes to toggle
13821         state through gtk_cell_renderer_set_active
13822
13823 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
13824
13825         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
13826         temporarily until they work again.  Brought up to date with
13827         changes in the model.
13828         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
13829         model.
13830
13831 2001-01-04  Havoc Pennington  <hp@redhat.com>
13832
13833         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
13834         equal to the line length, then position iterator before paragraph 
13835         separators. Fixes crash reported by Mikael Hermansson when
13836         pressing left arrow from the start of a line.   
13837
13838         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
13839         about byte indexes off the end
13840         (iter_set_from_char_offset): add g_error about char offsets
13841         off the end
13842
13843 2001-01-03  Havoc Pennington  <hp@redhat.com>
13844
13845         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
13846
13847         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
13848         of private functions; remove inclusion of private headers.
13849
13850         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
13851         function, so we don't need private functions in gtktextdisplay.c
13852
13853         * gtk/gtktextiterprivate.h: underscore-ification
13854
13855         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
13856         to instead say "only useful to implement widgets"
13857
13858         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
13859         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
13860         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
13861
13862         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
13863         This function was completely broken
13864
13865         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
13866
13867         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
13868
13869         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
13870
13871         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
13872
13873         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
13874
13875         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
13876
13877         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
13878         gtk_paint_layout
13879
13880         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
13881         gtk_paint_layout
13882
13883         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
13884         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
13885         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
13886         which were not implemented.     
13887
13888         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
13889         insert_pixbuf signal. Rename delete_text to delete_range since it
13890         also deletes pixbufs and child anchors. This almost closes bug
13891         40245 (still need to deal with child anchors)
13892
13893         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
13894         insert_pixbuf, change signal names as appropriate, change types of
13895         signals taking marks/tags to have the specific type, not just
13896         G_TYPE_OBJECT
13897         
13898         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
13899         closes bug 40051
13900
13901         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
13902         unnecessary remove_contents() call
13903         (gtk_option_menu_class_init): add a "changed" signal, closes
13904         bug 40039
13905         (gtk_option_menu_update_contents): emit "changed" if the 
13906         active menu item changes
13907
13908         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
13909         cast to GtkObject, reported by Jonas Borgstrom
13910         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
13911         we can't do stuff with side effects in finalize. Instead, spew a
13912         warning if the loader isn't closed.
13913
13914         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
13915         colormap in here, non-X ports probably need to sync to this change
13916
13917         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
13918         assertion that colormap != NULL, you can set the colormap to NULL
13919         if you like.
13920         
13921         * Makefile.am: remove gtk-config-2.0
13922
13923         * configure.in: Use pkg-config to locate GLib. Remove
13924         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
13925         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
13926         Use pkg-config to locate Pango. Output correct Pango libs to
13927         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
13928
13929         * Makefile.am (pkgconfig_DATA): install only target-specific pc
13930         files
13931         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
13932         X11 pc files
13933
13934         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
13935         unref from here
13936
13937 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
13938
13939         * configure.in:
13940         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
13941
13942 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
13943
13944         * gtk/gtktextlayout.c
13945         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
13946         variable when moving back onto a single line.
13947
13948 2001-01-01  Havoc Pennington  <hp@redhat.com>
13949
13950         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
13951
13952         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
13953
13954         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
13955         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
13956
13957 2001-01-01  Havoc Pennington  <hp@redhat.com>
13958
13959         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
13960
13961         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
13962         GtkTextAttributes
13963
13964         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
13965         #40246
13966         (gtk_text_attributes_copy_values): rename from 
13967         gtk_text_attributes_copy
13968         (gtk_text_attributes_copy): a more standard GTK copy function, 
13969         which returns a new object
13970
13971 2001-01-01  Havoc Pennington  <hp@redhat.com>
13972
13973         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
13974         
13975         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
13976         don't fill in tree_view->priv->selection, kind of an unexpected
13977         side effect
13978
13979         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
13980         gtkintl.h
13981         
13982         * gtk/gtkcellrenderer.c: Remove definition of _ and include
13983         gtkintl.h
13984         (gtk_cell_renderer_get_property): remove calls to g_value_init
13985
13986         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
13987         gtkintl.h
13988
13989         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
13990         and include gtkintl.h
13991         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
13992         property names
13993
13994         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
13995         GtkTreeSelection
13996         (_gtk_tree_selection_new_from_with_view): rename, return
13997         GtkTreeSelection
13998         (_gtk_tree_selection_set_tree_view): rename with uscore
13999         (gtk_tree_selection_get_selected): fill in the "model" out param
14000         first, so it gets filled in even if we return at the top of the 
14001         function
14002         (gtk_tree_selection_real_select_all): add a comment and an else{}
14003         to clarify this a bit
14004         (gtk_tree_selection_real_unselect_all): add the same else{}
14005
14006         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
14007         set_tree_view to have underscore prefixes, move them to the
14008         private header, fix return type of new_with_tree_view
14009         (struct _GtkTreeSelection): mark struct
14010         fields private  
14011
14012         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
14013         GtkTreeModelFlags, not a guint
14014         (gtk_tree_path_prev): return gboolean not gint
14015         (gtk_tree_path_up): return gboolean not gint
14016
14017         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
14018         return GtkTreeModelFlags, not a guint
14019
14020         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
14021         that child model is non-null before unrefing it
14022         (g_value_int_compare_func): make this a qsort compare func, not 
14023         a boolean predicate
14024
14025         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
14026         (add -umn to the end), and mark it unimplemented
14027         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
14028         I don't see what it's for - doesn't the model always sort itself?
14029         (gtk_tree_model_sort_set_compare): this had the wrong signature
14030
14031         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
14032         Fix the docs to say that it destructively replaces existing
14033         attributes (previously said that it added attributes).
14034         (gtk_tree_view_column_set_visible): canonicalize bool before
14035         equality testing. Also, check for realization before
14036         hiding/showing the tree_column->window; if this window could exist
14037         before realization, then it's busted and needs fixing, we can't 
14038         create GDK resources pre-realization. Also, remove
14039         superfluous queue_resize(), since set_size() does that for us.
14040         (gtk_tree_view_column_set_col_type): check realization before 
14041         using tree_column->window
14042
14043         * gtk/gtktreedatalist.c: fix filename in copyright notice
14044
14045 2000-12-31  Havoc Pennington  <hp@pobox.com>
14046
14047         * gtk/gtktextview.c: Rearrange all the
14048         scroll-while-dragging-or-selecting code to be different, not
14049         necessarily better. ;-)
14050         (gtk_text_view_scroll_to_mark): Change this
14051         function to take within_margin as a fraction instead of a pixel
14052         value, and to take alignment arguments (indicating where to align 
14053         the mark inside the visible area)
14054         
14055         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
14056         to GtkObject
14057
14058         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
14059         behavior so that offsets past the end of the line are not 
14060         allowed, and an offset equal to the line length moves the iterator
14061         to the next line
14062         (gtk_text_iter_set_line_index): make parallel change
14063         (gtk_text_iter_get_bytes_in_line): add this function
14064         
14065         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
14066         of byte indexes off the end of the line; byte index at the end of
14067         the line now returns FALSE and doesn't fill in the requested
14068         values, byte index past the end of the line is an error.  Also,
14069         don't allow -1 offset anymore, since its meaning is unclear.
14070
14071         This change exposes some bug in visual cursor motion, where we
14072         end up with a huge invalid byte index; needs fixing. Symptom of 
14073         bug is a crash when you hit up arrow.
14074         
14075         (_gtk_text_line_char_locate): match the change to byte_locate
14076
14077         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
14078         from start of line properly. fixes bug reported by Mikael
14079         Hermansson where backspace would delete all text before the
14080         cursor.
14081
14082 2000-12-30  Tor Lillqvist  <tml@iki.fi>
14083
14084         * gdk/win32/gdkwindow-win32.c
14085         (gdk_window_impl_win32_get_visible_region): New function, as in
14086         the X11 backend.
14087         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
14088         instead of duplicating the same code here.
14089
14090         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
14091         GDK_COLORMAP macro.
14092
14093         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
14094         destroy function.
14095         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
14096         access that.
14097
14098         * gtk/gtk.def: Update.
14099
14100         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
14101
14102 2000-12-30  Havoc Pennington  <hp@pobox.com>
14103
14104         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
14105         colormap on input only windows, to avoid special cases all over
14106         the code for these windows.
14107
14108 2000-12-26  Tor Lillqvist  <tml@iki.fi>
14109
14110         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
14111         we are on a palettized display ("PseudoColor" in X11), as the code
14112         for that doesn't work anyway, and never has.
14113
14114 2000-12-22  Alexander Larsson  <alexl@redhat.com>
14115
14116         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
14117         Don't use isprint() for chars > 255.
14118
14119 2000-12-21  Havoc Pennington  <hp@redhat.com>
14120
14121         * tests/testtreeview.c: more work
14122
14123 2000-12-21  Alexander Larsson  <alexl@redhat.com>
14124
14125         * docs/README.linux-fb:
14126         Update the docs to the new pangoft2 way.
14127
14128 2000-12-21  Alexander Larsson  <alexl@redhat.com>
14129
14130         * configure.in:
14131         For linux-fb get the pangoft2 cflags and libs. This needs a recent
14132         pango version.
14133         Remove modules/linux-fb/Makefile.
14134
14135         * gdk/linux-fb/gdkdrawable-fb2.c:
14136         Render glyphs using freetype.
14137
14138         * gdk/linux-fb/gdkfb.h:
14139         Add new fb-specific functions needed for managing windows.
14140
14141         * gdk/linux-fb/gdkmain-fb.c:
14142         Remove gdk_font_init/fini() calls.
14143
14144         * gdk/linux-fb/gdkpango-fb.c:
14145         Remove old implementation. Use pangoft2 instead.
14146
14147         * gdk/linux-fb/gdkprivate-fb.h:
14148         Remove PangoFBFont and related stuff.
14149
14150         * gdk/linux-fb/gdkwindow-fb.c:
14151         Implement drawable->get_visible_region.
14152         Implement support for _gdk_window_set_child_handler () and
14153         _gdk_window_get_decorations().
14154
14155         * modules/Makefile.am:
14156         Remove linux-fb subdir.
14157
14158         * modules/linux-fb/*:
14159         Removed all.
14160         
14161 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
14162
14163         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
14164         calls, as they are no longer needed.
14165
14166         * gtk/gtktreemodelsort.c: Fix up the comparison code.
14167         
14168         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
14169         figure out how to emit a signal on an interface.
14170
14171 2000-12-20  Havoc Pennington  <hp@redhat.com>
14172
14173         * tests: new directory to contain tests, gtk/test* should move
14174         here sometime (with appropriate on-cvs-server hackery)
14175
14176         * tests/testtreeview.c, tests/Makefile.am: a test
14177         
14178         * configure.in (AC_OUTPUT): add tests/Makefile
14179
14180         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
14181         and "invisible_set" which were missing
14182
14183         * gtk/gtkrbtree.h: some cheesy indentation fix
14184         
14185 2000-12-20  Alexander Larsson  <alexl@redhat.com>
14186
14187         * gtk/gtkinvisible.c (gtk_invisible_realize):
14188         Attach the style to the window so that the style it is not
14189         leaked when unrealizing the window.
14190
14191 2000-12-18  Havoc Pennington  <hp@redhat.com>
14192
14193         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
14194         begin/end user action where appropriate
14195         (gtk_text_view_commit_handler): add begin/end user action
14196
14197         * gtk/gtktextbuffer.c: add begin/end user action signals, and
14198         bracket interactive operations with begin/end user action pair.
14199         
14200         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
14201         "interactive" arg from insert_text and delete_text signals.
14202         Add begin_user_action, end_user_action signals
14203         (gtk_text_buffer_begin_user_action): 
14204         (gtk_text_buffer_end_user_action): New functions to delimit 
14205         a user-visible action
14206
14207         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
14208         signals.
14209         
14210 2000-12-18  Havoc Pennington  <hp@redhat.com>
14211
14212         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
14213         was pretty non-working.
14214
14215         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
14216         by passing the length to g_utf8_validate().
14217
14218 2000-12-16  Havoc Pennington  <hp@pobox.com>
14219
14220         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
14221         Port to GObject, can go back in gdk-pixbuf after setting up 
14222         a gdk-pixbuf-marshal.h header over there.
14223
14224         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
14225         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
14226         args
14227         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
14228         set
14229         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
14230         here, do it when we create the buttons later
14231         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
14232         (gtk_tree_view_map): paranoia checks that column->button is shown 
14233         and unmapped
14234         (gtk_tree_view_size_request): only request visible children.
14235         Move header size calculation in here, for cleanliness, and 
14236         to maintain invariants for child widgets if we eventually 
14237         let users set different children inside the buttons
14238         (gtk_tree_view_map_buttons): factor out code to map buttons,
14239         since it was being called several times
14240         (gtk_tree_view_size_allocate_buttons): move_resize the drag
14241         windows instead of just moving them; their height may change 
14242         if we allow random widgets in there, or the theme changes.
14243         (gtk_tree_view_size_allocate): move button size allocation 
14244         above emitting the scroll signals, to ensure a sane state when we
14245         hit user code
14246         (gtk_tree_view_button_release): remove queue_resize after
14247         tree_view_set_size(), set_size() will handle any resize queuing
14248         that's needed
14249         (gtk_tree_view_focus_in): just queue a draw, don't fool with
14250         draw_focus goo
14251         (gtk_tree_view_focus): use gtk_get_current_event() and
14252         gdk_event_get_state()
14253         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
14254         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
14255         semicolon
14256         (gtk_tree_view_create_button): show the button here
14257         (gtk_tree_view_button_clicked): actually emit the clicked signal
14258         on the column
14259         (_gtk_tree_view_set_size): return right away if the size is
14260         unchanged, as a cheesy optimization
14261         (gtk_tree_view_setup_model): rename set_model_realized to 
14262         setup_model to match the flag that indicates whether we've 
14263         called it
14264         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
14265         exist, because set_scroll_adjustment does that and it shouldn't
14266         matter what order you call these in
14267         (gtk_tree_view_get_vadjustment): ditto
14268         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
14269         for paranoia
14270         (gtk_tree_view_set_headers_visible): call
14271         gtk_tree_view_map_buttons() instead of using cut-and-paste code
14272         (gtk_tree_view_append_column): clarify whether the return value
14273         is the count of columns before or after, and do the increment 
14274         separately from the return statement so you can tell from the code.
14275         (gtk_tree_view_remove_column): ditto
14276         (gtk_tree_view_insert_column): ditto
14277         (gtk_tree_view_get_column): remove g_return_if_fail for columns
14278         outside the existing range, the docs say that outside-range
14279         columns are allowed, so we handle them as documented. (Presumably
14280         this allows a nice loop with column != NULL as test.)
14281         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
14282         mean (left/right/center etc.).
14283         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
14284         (gtk_tree_view_expand_row): add docs
14285         (gtk_tree_view_collapse_row): add docs
14286
14287         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
14288         function to emit the clicked signal on a column
14289         
14290         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
14291         state of an event
14292         (gdk_event_get_time): don't treat GDK_SCROLL 
14293         as a button event, remove default case from switch so gcc 
14294         will whine if we don't explicitly handle all event types
14295
14296         * gtk/gtktreeselection.h: added some FIXME 
14297         
14298         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
14299         "columns" to "n_columns" and "column" to "columns" for clarity
14300
14301 2000-12-16  Havoc Pennington  <hp@pobox.com>
14302         
14303         * gtk/gtktextiter.c: General cleanup of the log attr iteration
14304         stuff. This should make e.g. the delete key work again in the
14305         text widget...
14306         (gtk_text_iter_forward_cursor_positions): handle negative count
14307         (gtk_text_iter_backward_cursor_positions): handle negative count
14308         (gtk_text_iter_forward_word_ends): handle negative count
14309         (gtk_text_iter_backward_word_starts): handle negative count
14310
14311         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
14312         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
14313         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
14314         GObject. No doubt will cause breakage.
14315
14316         * demos/gtk-demo/textview.c: remove hacks around
14317         non-GObject-ification of the text objects
14318
14319         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
14320         the text tag
14321         
14322 2000-12-14  Havoc Pennington  <hp@pobox.com>
14323
14324         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
14325         that we have Xrender
14326
14327 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
14328
14329         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
14330         Add two virtualized functions gdk_drawable_get_clip_region - to
14331         get the clip region when drawing.
14332         
14333         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
14334         use invalidate_region.
14335
14336         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
14337         region.
14338
14339         * acconfig.h configure.in: Check for Xft. For now, assume
14340         that if Xft is found, Pango was compiled with Xft support
14341         as well.
14342
14343         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
14344         gdk_colormap_query_color().
14345         
14346         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
14347         with Xft if appropriate.
14348
14349         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
14350         a pangoxft context if we have XFT and the environment
14351         variable GD_USE_XFT is set.
14352         
14353         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
14354         and also possibly an XftDraw structure.
14355
14356         * gtk/gtkfontsel.c: Handle the case where the font from the
14357         style doesn't match any of the fonts a bit better.
14358         
14359         * gtk/testgtk.c: Add tabs between directional segments for
14360         hebrew/arabic test. (Not really necessary, just a little
14361         prettier.)
14362
14363 2000-12-14  Havoc Pennington  <hp@redhat.com>
14364
14365         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
14366         reading a file
14367
14368 2000-12-14  Havoc Pennington  <hp@redhat.com>
14369
14370         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
14371         unused call to get_last_line()
14372
14373         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
14374         here until boxed is working (and maybe after that - we should
14375         really not gratuitously break old code)
14376
14377         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
14378         specific types for font_desc and tabs args, move them to
14379         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
14380         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
14381
14382         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
14383         use GTK_TYPE_POINTER for signal signatures as a hack-around
14384
14385         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
14386         PangoTabArray
14387
14388         * gtk/gtktextlayout.c (line_display_iter_to_index): 
14389         make static
14390         (line_display_index_to_iter): make static
14391
14392         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
14393         to marshal a string not a boxed
14394
14395         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
14396
14397         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
14398         since the UTF-8 isn't validated yet
14399
14400         * gtk/gtktextsegment.c (char_segment_check_func): don't require
14401         lines to end in '\n'
14402         
14403         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
14404         forward_to_delimiters, and grapheme boundaries
14405         (gtk_text_view_delete_from_cursor): properly handle non-newline
14406         delimiters, and grapheme boundaries
14407
14408         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
14409         to gtk_text_iter_forward_to_delimiters, and make it work properly
14410         if empty lines end with a character other than '\n'
14411
14412         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
14413         position
14414
14415 2000-12-15  Tor Lillqvist  <tml@iki.fi>
14416
14417         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
14418
14419         * gtk/gtk.def
14420         * gdk/gdk.def: Update.
14421
14422         * gdk/win32/gdkmain-win32.c
14423         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
14424         gdkmain-win32.c here.
14425
14426         * gdk/win32/makefile.mingw.in (all): No need to make
14427         gdk-win32res.o here, the makefile one step up will call us to make
14428         it.
14429
14430         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
14431         gdkkeys-win32.
14432
14433         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
14434
14435         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
14436         call to g_source_add().
14437
14438         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
14439         leak. Thanks to Andreas Kemnade.
14440
14441 2000-12-13  Havoc Pennington  <hp@pobox.com>
14442
14443         * gtk/gtktextbtree.h: Remove double _ in front of some functions
14444
14445         * gtk/gtktext*.[hc]: update accordingly
14446         
14447 2000-12-13  Havoc Pennington  <hp@pobox.com>
14448
14449         * gtk/gtktextbtree.h: Put _ in front of every function in this 
14450         header file
14451
14452         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
14453
14454 2000-12-13  Alex Larsson  <alexl@redhat.com>
14455
14456         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
14457         Add support for ps2 intellimouse.
14458
14459         * gdkkeyboard-fb.c:
14460         Move shift-F1 repaint handling to xlate handler only.
14461         
14462         * docs/README.linux-fb:
14463         Add imps2 to docs.
14464         Document the new refresh keys.
14465         
14466 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
14467
14468         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
14469
14470         * gtk/gtkbox.c: change property types from (u)long to (u)int for
14471         ::position and ::padding.
14472
14473         * gtk/gtkcontainer.c: make ::border_width an INT property.
14474
14475         * gtk/gtkpacker.c: make ::position an INT property.
14476
14477         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
14478         guard against NULL h/v scrollbars, since this is used at construction
14479         time.
14480
14481         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
14482         internal gtk_clist_constructor().
14483
14484         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
14485         gtk_ctree_constructor().
14486
14487         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
14488         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
14489
14490         * docs/reference/Makefile.am: fun stuff, disabled docs generation
14491         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
14492
14493         * gtk/gtkwidget.[hc]:
14494         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
14495         and gtk_widget_get().
14496         (gtk_widget_new): use g_object_new_valist().
14497         (gtk_widget_set): use g_object_set_valist().
14498
14499         * gtk/gtkobject.[hc]:
14500         removed gtk_object_arg_get_info(), gtk_object_getv(),
14501         gtk_object_query_args(), gtk_object_newv(),
14502         gtk_object_class_add_signals(),
14503         gtk_object_class_user_signal_new(),
14504         gtk_object_class_user_signal_newv(),
14505         gtk_object_arg_set(), gtk_object_arg_get(),
14506         gtk_object_args_collect(),
14507         gtk_object_default_construct(),
14508         gtk_object_constructed(),
14509         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
14510         removed nsignals, signals and n_args members from GtkObjectClass.
14511         (gtk_object_new): use g_object_new_valist().
14512         (gtk_object_set): use g_object_set_valist().
14513         (gtk_object_get): use g_object_get_valist().
14514         
14515         * gtk/gtkcompat.h: define gtk_object_default_construct().
14516         
14517         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
14518         g_object_new().
14519
14520         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
14521         fucntions, cleaned up method assignments (make sure your structures
14522         are setup properly before calling out). removed all GTK_CONSTRUCTED
14523         hacks ;)
14524
14525 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
14526
14527         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
14528         off-by-one error in checks. (Dave Lambert)
14529
14530 2000-12-12  Alexander Larsson  <alexl@redhat.com>
14531
14532         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
14533         Don't free gdk_fb_keyboard twice.
14534
14535 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
14536
14537         * gtk/testgtk.c:
14538         (create_tooltips): 
14539         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
14540         use GObject swapped_signal:: properties instead.
14541
14542         * gtk/gtkcellrenderertoggle.c: 
14543         * gtk/gtkcellrenderertextpixbuf.c: 
14544         * gtk/gtkcellrenderertext.c: 
14545         * gtk/gtkcellrendererpixbuf.c: 
14546         * gtk/gtkcellrenderer.c:
14547         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
14548         missing warnings for invalid property ids, install properties
14549         with g_object_class_install_property() now.
14550         
14551         * gtk/gtksignal.c:
14552         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
14553         
14554 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
14555         
14556         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
14557         to determine if a window is the focus widget within
14558         its toplevel.
14559
14560         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
14561         to be boolean.
14562
14563         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
14564         of the case where the container CAN_FOCUS to here instead
14565         of having it in each individual move-the-focus place.
14566
14567         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
14568         focusing to be geometric in a much more obvious sense. Arrowing
14569         around is still non-intuitive because it isn't perfect and
14570         because entries, etc, grab the arrow keys, but it at least
14571         usually will do what you expect now.
14572         
14573         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
14574         file.
14575
14576         * gtk/gtknotebook.c: Change tabs to be a single item in
14577         the focus chain. Make movement of focus on tabs with arrow
14578         keys wrap around.
14579         
14580         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
14581         CHECK_FIND_CHILD macro to give informative error messages
14582         instead of silent returns.
14583
14584         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
14585         flag since we handle GdkReturn on the tabs.
14586
14587         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
14588         windows rather than sending expose events directly.
14589
14590         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
14591         definition for GtkNotebookPage into .c file, since it is private.
14592
14593         * gtk/testgtk.c (create_notebook): Add option for 
14594         testing borderless notebook.
14595
14596         * gtk/testgtk.c (page_switch): Removed egregious poking
14597         around in GTK+ internals.
14598
14599         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
14600
14601         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
14602         properly through gtk_clist_focus. Make the title headers a
14603         single item in the tab-focus chain, and make left-right wrap
14604         around.
14605
14606         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
14607         focus method so that wrapping around works properly.
14608
14609         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
14610         that is handled for the widget now. 
14611
14612 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
14613
14614         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
14615         widgets as TOPLEVEL.
14616
14617         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
14618         TOPLEVEL widgets are containers.
14619
14620         * gtk/gtkinvisible.h: Remove useless include.
14621
14622 2000-12-11  Havoc Pennington  <hp@redhat.com>
14623
14624         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
14625         Handle chopping off \r\n and 0x2029 in addition to \n before
14626         passing to PangoLayout
14627
14628         * gtk/gtkimcontextsimple.c
14629         (gtk_im_context_simple_get_preedit_string): 
14630         return an empty string if no match is pending
14631
14632         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
14633         assertion that the returned preedit string was sane
14634
14635         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
14636         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
14637         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
14638
14639 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
14640
14641         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
14642         Fix up finalizer to chain to its parent.
14643
14644 2000-12-11  Alexander Larsson  <alexl@redhat.com>
14645
14646         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
14647         Clearified the difference between the keyboard types. Wrote a note
14648         about the magic sysrq key to get out of raw mode.
14649
14650 2000-12-09  James Henstridge  <james@daa.com.au>
14651
14652         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
14653         member to hold masks for detecting the start of a protocol packet.
14654         (mouse_devs): add packet start masks for ps2 and ms device types.
14655         Left the mask for fidmour blank, as I have no idea what it should
14656         be.
14657         (handle_mouse_io): skip bytes until we get to the start of a
14658         packet.  My Logitech mouse seems to be passing an extra NULL pad
14659         byte, and GPM does a similar thing here.
14660         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
14661         this is the ms mouse driver.
14662         (gdk_fb_mouse_ms_packet): fix up button handling, which was
14663         completely broken except for button1.  It was checking the wrong
14664         bit in the packet for the status of the right mouse button, and
14665         wrongly assuming right == button2 rather than 3.  I fixed that and
14666         also added support for middle button (button2).
14667
14668 2000-12-08  Havoc Pennington  <hp@redhat.com>
14669
14670         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
14671         that cause a segfault on text insertion
14672
14673         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
14674         warning
14675
14676         * gtk/gtktextiter.c (test_log_attrs): use
14677         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
14678
14679         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
14680         Get log attrs for a line, using a cache stored on the buffer
14681         
14682         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
14683         reported by Jeff Franks
14684
14685 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
14686
14687         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
14688         /dev/ttyS0 -> /dev/mouse
14689
14690 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
14691
14692         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
14693         Added dummy gdk_fontset_load.
14694
14695 2000-12-08  Alexander Larsson  <alexl@redhat.com>
14696
14697         * docs/README.linux-fb:
14698         * docs/Makefile.am:
14699         Initial GtkFB docs.
14700         
14701         * gdk/linux-fb/Makefile.am:
14702         Define GDK_DATA_PREFIX.
14703
14704         * gdk/linux-fb/gdkmain-fb.c:
14705         Fix typo.
14706         Change default display to /dev/fb0.
14707
14708         * gdk/linux-fb/gdkpango-fb.c:
14709         Add $(prefix)/share/fonts/ to font path.
14710         
14711 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
14712
14713         * gdk/linux-fb/gdkkeyboard-fb.c:
14714         New file containing the abstracted keyboard driver. Most code
14715         taken from gdkinput-ps2.c
14716
14717         * gdk/linux-fb/gdkinput-ps2.c:
14718         Removed file.
14719         
14720         * gdk/linux-fb/Makefile.am:
14721         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
14722
14723         * gdk/linux-fb/gdkcolor-fb.c:
14724         display->fb was renamed to display->fb_fd.
14725
14726         * gdk/linux-fb/gdkcursor-fb.c:
14727         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14728
14729         * gdk/linux-fb/gdkinput.c:
14730         Moved gdk_input_init here from gdkinput-ps2.c
14731
14732         * gdk/linux-fb/gdkmain-fb.c:
14733         display->fb was renamed to display->fb_fd.
14734         Now the tty and the console is opened here instead
14735         of in the keyboard driver. Also check GDK_VT to see what
14736         tty to open.
14737         Move gdk_beep () here from gdkinput-ps2.c
14738         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14739
14740         * gdk/linux-fb/gdkmouse-fb.c:
14741         Add header.
14742         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14743         Return correct keyboard modifiers.
14744         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
14745
14746         * gdk/linux-fb/gdkprivate-fb.h:
14747         Add tty and vt info to display.
14748         Add orignal modeinfo storage to display
14749         Update global functions
14750
14751         * gdk/linux-fb/gdkwindow-fb.c:
14752         Added gdk_fb_window_find_focus().
14753         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14754
14755 2000-12-07  Havoc Pennington  <hp@pobox.com>
14756
14757         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
14758         function, noticed by Alex
14759
14760 2000-12-06  Elliot Lee  <sopwith@redhat.com>
14761
14762         * configure.in: Detect freetype properly
14763
14764         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
14765         above.
14766
14767 2000-12-06  Alexander Larsson  <alexl@redhat.com>
14768
14769         * gdk/linux-fb/Makefile.am:
14770         Add gdkmouse-fb.c
14771         
14772         * gdk/linux-fb/gdkmouse-fb.c:
14773         New file. Abstracted the mouse drivers a bit.
14774
14775         * gdk/linux-fb/gdkcursor-fb.c:
14776         The cursor hide/show functions was moved here from gdkinput-ps2.c.
14777
14778         * gdk/linux-fb/gdkinput-ps2.c:
14779         Removed old mouse handling code. Moved cursor handling code
14780         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
14781         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
14782         gdk_mouse_get_info.
14783
14784         * gdk/linux-fb/gdkmain-fb.c:
14785         Pass NULL pointers for x,y in gdk_mouse_get_info call.
14786
14787         * gdk/linux-fb/gdkprivate-fb.h:
14788         Removed public gdk_fb_find_common_ancestor, added and renamed
14789         functions for the new mouse handling code.
14790
14791         * gdk/linux-fb/gdkwindow-fb.c:
14792         Moved gdk_fb_window_send_crossing_events here. added global
14793         variable gdk_fb_window_containing_pointer. made
14794         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
14795         renamed to gdk_mouse_get_info.
14796
14797 2000-12-06  Alexander Larsson  <alexl@redhat.com>
14798
14799         * gdk/linux-fb/gdkevents-fb.c:
14800         Update to match latest gmain/gsource changes.
14801
14802         * gdk/linux-fb/gdkinput-ps2.c:
14803         Bogus gdk_keymap_get_entries_for_keycode implementation so that
14804         it links. Will be implemented later.
14805
14806 2000-12-03  Havoc Pennington  <hp@pobox.com>
14807
14808         * gdk/Makefile.am: add gdkkeys.[hc]
14809
14810         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
14811         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
14812
14813         * acconfig.h, configure.in: add checks and command line options
14814         for XKB
14815
14816         * gdk/x11/gdkkeys-x11.c: Implement the above functions
14817         
14818         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
14819         and group in the key event
14820
14821         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
14822         field with the low-level hardware key code, and a group
14823         field with the keyboard group
14824
14825         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
14826         and declare a couple globals used for keymap handling
14827         
14828         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
14829         hold down Shift-Control and type a hex number to get a Unicode 
14830         character corresponding to the hex number
14831         (gtk_im_context_simple_get_preedit_string): Fix cursor position
14832         (return bytes not chars)
14833
14834 2000-12-05  Elliot Lee  <sopwith@redhat.com>
14835
14836         * gdk/gdkcolor.h: Make GdkColor specify element sizes
14837         to avoid waste on 64-bit platforms.
14838
14839 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
14840
14841         * INSTALL: Fix link to PNG home, remove reference
14842         to fribidi.
14843
14844         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
14845         
14846         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
14847         tested.)
14848
14849         * gtk/gtkcheckmenuitem.c: Permanently turn on
14850         always_show_toggle.
14851
14852         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
14853         be NULL. (Vladimir Klebanov, #26545)
14854
14855         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
14856         some signed/unsigned comparison problems. (#6510,
14857         David Kaelbling)
14858
14859         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
14860         return type to boolean (Oskar Liljeblad, #18648)
14861
14862 2000-12-05  Alexander Larsson  <alexl@redhat.com>
14863
14864         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
14865         Remove bogus colormap setting.
14866
14867 2000-12-05  Alexander Larsson  <alexl@redhat.com>
14868
14869         * gdk/linux-fb/gdkcolor-fb.c:
14870         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
14871
14872         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
14873         Must set colormap.
14874         
14875 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
14876
14877         * docs/tutorial/gtk-tut.sgml: DND updates
14878
14879 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
14880
14881         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
14882         Remove old debug g_warning().
14883         (gdk_fb_draw_drawable): The src argument can be either a wrapper
14884         or an implementation, just pass the implementation to draw_drawable_2.
14885         
14886         * gdk/linux-fb/gdkprivate-fb.h:
14887         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
14888
14889         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
14890         clear and invalidate area when window is destroyed.
14891         (send_map_events): Remove old commented out code.
14892
14893 2000-12-05  Alexander Larsson  <alexl@redhat.com>
14894
14895         * gdk/linux-fb/gdkpango-fb.c:
14896         Use italic instead of oblique in font aliases.
14897         
14898         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
14899         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
14900         other unsupported functions.
14901
14902 2000-12-04  Havoc Pennington  <hp@redhat.com>
14903
14904         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
14905
14906         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
14907
14908         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
14909
14910         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
14911         hack to avoid infinite loops (synthetic expose event) - 
14912         Owen has more appropriate fixes in a branch he'll check in later.
14913
14914         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
14915         separator, CR, and CRLF as line ends
14916
14917         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
14918         into lines using pango_find_paragraph_boundary(); other bits of
14919         the widget are still going to be broken if the boundary isn't '\n'
14920         though
14921
14922 2000-12-04  Alexander Larsson  <alexl@redhat.com>
14923
14924         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
14925         multiply.
14926
14927         * gdk/linux-fb/gdkpango-fb.c:
14928         Copied some 26.6 scaling macros from pango to clean up the rounding.
14929         (pango_fb_font_get_glyph_info): Correct sign on x value.
14930
14931         * gdk/linux-fb/gdkprivate-fb.h:
14932         Removed unreferenced external functions.
14933
14934         * modules/linux-fb/Makefile.am: Use ` instead of '.
14935
14936         * modules/linux-fb/basic.c:
14937         Remove dead code. In particular the dummy lang engine which broke all
14938         pango layouts in GtkFB. Don't include tables-big.i anymore.
14939
14940         * modules/linux-fb/tables-big.i:
14941         Upgrade to latest version from pango. Left for reference, basic_ranges
14942         moved to basic.c.
14943         
14944 2000-12-04  Havoc Pennington  <hp@redhat.com>
14945
14946         Fix bugs Alex found:
14947         
14948         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
14949         to "draw"
14950
14951         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
14952
14953         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
14954
14955         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
14956         implementation in here, apparently the expose() implementation was
14957         dead code.
14958
14959 2000-12-04  Alexander Larsson  <alexl@redhat.com>
14960
14961         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
14962         Return positive descent.
14963
14964 2000-12-02  Havoc Pennington  <hp@pobox.com>
14965
14966         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
14967         method and signal
14968         
14969         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
14970         calls gdk_window_process_updates() to push the exposes through
14971         (gtk_widget_class_init): No more draw signal, no
14972         gtk_widget_real_draw()  
14973         
14974         * gtk/gtkbin.c (gtk_bin_draw): remove
14975
14976         * gtk/gtkbox.c (gtk_box_draw): remove
14977
14978         * gtk/gtkbutton.c (gtk_button_draw): remove
14979
14980         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
14981
14982         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
14983
14984         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
14985
14986         * gtk/gtkclist.c (gtk_clist_draw): remove
14987
14988         * gtk/gtkentry.c (gtk_entry_draw): remove
14989
14990         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
14991
14992         * gtk/gtkfixed.c (gtk_fixed_draw): remove
14993
14994         * gtk/gtkframe.c (gtk_frame_draw): remove
14995
14996         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
14997
14998         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
14999
15000         * gtk/gtklayout.c (gtk_layout_draw): remove
15001
15002         * gtk/gtklist.c (gtk_list_draw): remove
15003
15004         * gtk/gtklistitem.c (gtk_list_item_draw): remove
15005
15006         * gtk/gtkmenu.c (gtk_menu_draw): remove
15007
15008         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
15009
15010         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
15011
15012         * gtk/gtknotebook.c (gtk_notebook_draw): remove
15013
15014         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
15015
15016         * gtk/gtkpacker.c (gtk_packer_draw): remove
15017
15018         * gtk/gtkrange.c (gtk_range_draw): remove
15019
15020         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
15021
15022         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
15023
15024         * gtk/gtktable.c (gtk_table_draw): remove
15025
15026         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
15027
15028         * gtk/gtktext.c (gtk_text_draw): remove
15029
15030         * gtk/gtktextview.c (gtk_text_view_draw): remove
15031
15032         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
15033
15034         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
15035
15036         * gtk/gtktree.c (gtk_tree_draw): remove
15037
15038         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
15039
15040         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
15041
15042         * gtk/gtkviewport.c (gtk_viewport_draw): remove
15043
15044         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
15045
15046         * gtk/gtkvscale.c (gtk_vscale_draw): remove
15047
15048         * gtk/gtkwindow.c (gtk_window_draw): remove
15049
15050 2000-20-01  Anders Carlsson  <andersca@gnu.org>
15051
15052         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
15053         a GtkToggleButton is both insensitive and active, it was being
15054         drawn by the GtkButton draw handler which doesn't check the
15055         state. Now it's calling gtk_toggle_button_paint instead.
15056         
15057 2000-12-01  Havoc Pennington  <hp@redhat.com>
15058
15059         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
15060         dangling pointers to the appearance attributes from the 
15061         line display
15062
15063         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
15064         width/height to mean "full width/height of drawable"
15065
15066         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
15067         click to select word/line
15068         
15069         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
15070         when getting log attrs. Get a slice, so that pixmaps and stuff
15071         are properly handled.
15072
15073         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
15074         paste into the selection (replaces selection now, previously
15075         crashed or added to selection). Reveals longstanding btree bug -
15076         select multiple lines, middle-click on the selection, boom. This
15077         isn't related to my changes though.
15078
15079         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
15080         PangoLogAttrs changes
15081         (gtk_entry_move_backward_word): ditto
15082
15083         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
15084         functions return bool whether the iter moved onto a
15085         dereferenceable position.
15086  
15087         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
15088         functions for motion in terms of display lines.
15089
15090         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
15091         get the buffer a mark is inside
15092         
15093 2000-12-01  Alexander Larsson  <alexl@redhat.com>
15094
15095         * gdk/linux-fb/Makefile.am:
15096         * modules/linux-fb/Makefile.am:
15097         Freetype 2 final uses freetype-config
15098
15099         * gdk/linux-fb/gdkpango-fb.c:
15100         Upgrade to use Freetype 2 final.
15101         More flexible support for font aliases, this also fixes a bug with
15102         GtkFontSelector, as the aliases must be visible in the font/family list,
15103         or GtkFontSelector reads uninitialized memory.
15104
15105 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
15106
15107         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
15108         XGetIMValues to properly terminate variable argument list, and do
15109         NULL return check for ic_values and xim_styles.
15110
15111         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
15112         Restore preedit state after XmbResetIC().
15113         
15114         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
15115         XvaCreateNestedList() should take XvaNestedList, but not
15116         XvaNestedList*.
15117
15118         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
15119         preedit_draw_callback, preedit_caret_callback): Match
15120         "preedit-changed" signal name to "preedit_changed" to be
15121         consistent to the spec.
15122
15123         * gtk/gtkimcontextsimple.c (check_table):
15124         Match "preedit-changed" to "preedit_changed" to be consistent
15125         to the spec.
15126
15127 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
15128
15129         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
15130         gc->clip_region == NULL>
15131
15132 2000-11-30  Tor Lillqvist  <tml@iki.fi>
15133
15134         Changes by Hans Breuer:
15135         
15136         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
15137         Dont't use negative width and height as max_hints. This fixes
15138         Owen's recent testgtk changes for win32.
15139
15140         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
15141         gdk_win32_hdc_release): These are exported and may be called with
15142         other drawable types than our GdkDrawableImplWin32 (?).
15143
15144         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
15145         so always #define USE_BACKING_STORE.
15146
15147         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
15148         of printf for debugging output.
15149
15150         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
15151         
15152         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
15153
15154         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
15155         declaration.
15156
15157         * gtk/gtktexttypes.h: Ditto.
15158
15159         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
15160         (GDK_VoidSymbol) also if in case of arg check failure.
15161
15162         * gtk/gtkimcontextsimple.c
15163         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
15164         position to the pointer, but to the variable it points to.
15165
15166         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
15167
15168         * gtk/gtk.def: Updates.
15169
15170 2000-11-29  Elliot Lee  <sopwith@redhat.com>
15171
15172         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
15173         GTK_TYPE_TREE_MODEL.
15174
15175 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15176
15177         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
15178         Set the size of the font from the description.
15179         (gdk_text_width): Gross hack that calculates the width
15180         of text by text_length * size/2. This is necessary because
15181         GtkLabel does some ugly gtk_string_width call to calculate
15182         an good size.
15183         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
15184
15185 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
15186
15187         * docs/tutorial/gtk-tut.sgml: DND updates
15188
15189 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15190
15191         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
15192         If you pass width or height == 0 to gdk_window_clear_area they
15193         should be calculated from the window size.
15194
15195 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15196
15197         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
15198         a grab, but no grab-cursor, use the cursor from the grabbed
15199         window. (gdk_fb_window_send_crossing_events): Send normal
15200         enter/leave notifications if grab and owner_events == TRUE.
15201
15202 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15203
15204         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
15205         Do implicit button grabs, even if the window doesn't
15206         want the event.
15207         (gdk_fb_window_send_crossing_events): If there is a
15208         grab, only the grabbed window gets normal enter/leave
15209         notifications. On ungrab go from grabbed window to current.
15210         Don't send any notification to b when propagating from c -> b.
15211         If setting a grab on window, don't set prev_window.
15212         (handle_mouse_input): Send enter/leave events to the window the
15213         mouse is over, not the grabbed one.
15214         
15215 2000-11-28  Elliot Lee  <sopwith@redhat.com>
15216
15217         * gdk/gdkregion-generic.c: Zap warning.
15218         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
15219         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
15220
15221 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
15222
15223         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
15224         The cursor should be hidden if it is part of either the
15225         source or destination region. Not only if it is in both.
15226         (gdk_window_set_transient_for): Silence warnings.
15227
15228 2000-11-28  Alexander Larsson  <alexl@redhat.com>
15229
15230         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
15231         The default mode in X is Pie Arcs, therefore that is
15232         what Gtk+ uses.
15233
15234 2000-11-28  Alexander Larsson  <alexl@redhat.com>
15235
15236         * gdk/linux-fb/gdkinput-ps2.c:
15237         Implement correct EnterNotify/LeaveNotify:
15238         (gdk_fb_window_send_crossing_events): New function that sends
15239         all GdkCrossingEvents from the last mouse-window to the specified
15240         destination.
15241         (gdk_fb_window_visibility_crossing): Removed function.
15242         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
15243         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
15244         instead of gdk_window_get_pointer() for better readability.
15245
15246         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
15247         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
15248
15249         * gdk/linux-fb/gdkprivate-fb.h:
15250         removed gdk_fb_window_visibility_crossing, added
15251         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
15252
15253         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
15254         New function that finds the least common ancestor of two windows.
15255         (gdk_window_show, gdk_window_hide):
15256         Use gdk_fb_window_send_crossing_events.
15257         (gdk_fb_window_move_resize): Send configure events to toplevel
15258         windows. Use gdk_fb_window_send_crossing_events.
15259
15260 2000-11-27  Havoc Pennington  <hp@redhat.com>
15261
15262         * gtk/gtkprivate.h (enum): Remove a trailing comma
15263
15264 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
15265
15266         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
15267         the "changed" callback of the adjustment.  We need to redraw the
15268         spin button's arrows when the adjustment's range changes.
15269         (adjustment_changed_cb): Draw the arrows.
15270         (gtk_spin_button_value_changed): Draw the arrows.
15271
15272 2000-11-23  Alexander Larsson  <alexl@redhat.com>
15273
15274         * gdk/linux-fb/gdkselection-fb.c:
15275         Initial selection implementation.
15276
15277         * gtk/gtkselection.c:
15278         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
15279         requestor in gtk_selection_request.
15280         
15281         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
15282         Added gdk_selection_property atom.
15283
15284         * gdk/linux-fb/gdkprivate-fb.h:
15285         Export _gdk_selection_window_destroyed.
15286         Removed mask_off_x/y from GdkCursorPrivateFB.
15287         Removed hbearing, added top, left to PangoFBGlyphInfo.
15288
15289         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
15290         Call _gdk_selection_window_destroyed
15291         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
15292         the root window has been created.
15293         (static_dx_hack, static_dy_hack, compare_draw_rects,
15294         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
15295         in region. They are already sorted. Instead just traverse them in
15296         reverse if draw_direction < 0.
15297         
15298         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
15299         Double-clicks must be sent after the normal button_press.
15300         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
15301         
15302         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
15303         Pass _gdk_fb_screen_gc instead of NULL.
15304
15305         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
15306         Initialize gdk_selection_property.
15307         (gdk_event_make): Remove unused code.
15308
15309         * gdk/linux-fb/gdkcursor-fb.c:
15310         Make the pixmap for the cursor the same size as the mask. Also remove
15311         the mask_off_x/y fields in GdkCursorPrivateFB and combine
15312         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
15313         Now the whole cursor is visible.
15314
15315         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
15316         Fix bug where xdest+height instead of ydest+height was used
15317         to calculate if the source and dest overlapped. This fixes the
15318         redraw bug when the main window in testgtk was scrolled when
15319         partially covered by a tall window.
15320         Copy rectangles in region in order depending on draw_direction.
15321         Also moved the draw_direction flipping of start_y and end_y into
15322         the gc functions, as this might not be what all of them want.
15323         (gdk_fb_draw_lines): Support dashed lines.
15324         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
15325         so that the text is positioned correctly (was 1 pixel high).
15326
15327         gdk/linux-fb/gdkgc-fb.c:
15328         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
15329         all lines were drawn a pixel to short. Also checked the default of
15330         the rest of the values, and they're the same as X now.
15331
15332         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
15333         Clean up pixel positioning of the glyphs. Just use bgy->top and
15334         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
15335         to all divisions to get correct rounding behaviour.
15336
15337         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
15338         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
15339         Moved start_y/end_y flip into draw_drawable implementations.
15340         Flip also x rendering when draw_direction < 0.
15341         Remove unneccesary multiply with draw_direction.
15342
15343 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
15344
15345         * docs/tutorial/gtk-tut.sgml:
15346           - get rid of gtk_toggle_button_toggled FUD
15347           - start DND section - needs work - based on:
15348                 http://wolfpack.twu.net/docs/gtkdnd/
15349
15350 2000-11-22  Alexander Larsson  <alexl@redhat.com>
15351
15352         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
15353         Correct calculation of font metrics. Now GtkEntrys have sane
15354         size.
15355
15356 2000-11-22  Alexander Larsson  <alexl@redhat.com>
15357
15358         * gdk/gdktypes.h:
15359         Add new type GdkSpan
15360         
15361         * docs/reference/gdk/gdk-sections.txt,
15362         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
15363         gdk/gdkregion.h:
15364         Implement and document gdk_region_spans_intersect_foreach.
15365
15366         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
15367         Add new file gdkrender-fb.c which contains all core
15368         rendering code.
15369         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
15370         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
15371         (optimized rectangle fillers).
15372
15373         * gdk/linux-fb/gdkdrawable-fb2.c:
15374         Move all rendering code to gdkrender-fb.c.
15375         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
15376         Use the new span intersection functions in gdk_fb_fill_spans.
15377         gdk_fb_draw_rectangle() clips filled rectangles and calls
15378         gc->fill_rectangle with the result.
15379         gdk_fb_fill_spans() gets extra argument "sorted".
15380
15381         * gdk/linux-fb/gdkevents-fb.c:
15382         Remove unused includes and defines.
15383         New function gdk_fb_get_time() to get correct time for events.
15384
15385         * gdk/linux-fb/gdkinput-ps2.c:
15386         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
15387         Make sure to set the time of all events.
15388
15389         * gdk/linux-fb/gdkmain-fb.c:
15390         Use gdk_fb_get_time ().
15391
15392         * gdk/linux-fb/gdkprivate-fb.h:
15393         New virtual GC calls: fill_span & fill_rectangle.
15394         Export gdk_fb_get_time().
15395         gdk_fb_fill_spans() gets extra argument "sorted".
15396
15397         * gdk/linux-fb/mi*.c:
15398         Use GdkSpan instead of GdkRectangle.
15399         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
15400         from XFree 4 source)
15401         
15402 2000-11-22    <jrb@redhat.com>
15403
15404         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
15405         reversing the order in an if statement will do.  Doing so managed
15406         to make the treemodelsort half work.  Other half will follow after
15407         I get the insert function fully fixed.
15408
15409 2000-11-21  Elliot Lee  <sopwith@redhat.com>
15410         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
15411         more than 2 bits. Besides, I need to implement an evil hack. :)
15412
15413 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
15414
15415         * docs/tutorial/gtk-tut.sgml: minor corrections
15416
15417 2000-11-20  Jonathan Blandford <jrb@redhat.com>
15418         * gtk/gtktreemodelsort.h: Add convertion functions to let you
15419           convert to and from relative path's and iters.
15420
15421         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
15422           testing sorting functions a bit better.  Currently broken -- will
15423           fix in morning.
15424
15425 2000-11-20  Havoc Pennington  <hp@redhat.com>
15426
15427         * gtk/gtkwidget.c: Documented a bunch of functions in here
15428         (gtk_widget_realize): Warn if you try to realize
15429         a widget with no parent that isn't a toplevel
15430         (gtk_widget_intersect): return a gboolean
15431
15432 2000-11-20  Havoc Pennington  <hp@redhat.com>
15433
15434         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
15435         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
15436         scrolling to be implemented in GDK to finish. Also, right now
15437         we just size_allocate all children on every layout change,
15438         which is pretty lame. Test commented out of testtext.c, 
15439         until it works better.
15440
15441 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
15442
15443         * gdk/linux-fb/gdkdrawable-fb2.c:
15444         Removed unused arguments from gdk_fb_drawable_get_pixel().
15445
15446         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
15447         Renamed fidur specific mouse packet data in MouseDevice to
15448         generic. Used it in ps2 mouse handling code to avoid blocking
15449         reads.
15450
15451 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
15452
15453         * demos/gtk-demo/main.c: Changed to have the list become
15454         non-italic when the demo window is destroyed through an external
15455         event (like a close button).  Doing so found three bugs in the
15456         widget.
15457
15458         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
15459
15460         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
15461         we actually set the cell.
15462
15463         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
15464
15465         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
15466         free a leaked path.  Thanks memprof.
15467
15468 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
15469
15470         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
15471         off-by-one error when destroying allocated segments
15472         on failure. (Elliot)
15473
15474 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
15475
15476         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
15477         memleaks found by Evan Martin.
15478
15479 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
15480
15481         * Released 1.3.2
15482         
15483         * NEWS: Updates for 1.3.2
15484
15485 2000-11-17  Tor Lillqvist  <tml@iki.fi>
15486
15487         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
15488         but in general for window system specific events.
15489
15490         * gtk/gtk.def
15491         * gtk/makefile.mingw.in
15492         * gtk/makefile.msc.in: Update.
15493         
15494         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
15495
15496 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
15497
15498         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
15499         distribute gtk.immodules.
15500
15501         * gtk/Makefile.am (install-data-local): Don't install the
15502         gtk.immodules file created for the uninstalled modules;
15503         instead run gtk-query-immodules after install
15504
15505 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
15506
15507         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
15508         -rpath to the right install location.
15509
15510         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
15511         -export-dynamic.
15512
15513         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
15514         properly.
15515
15516 2000-11-15  Havoc Pennington  <hp@pobox.com>
15517
15518         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
15519         patch from Mikael Hermansson to temporarily stop blinking while
15520         the user is using the keyboard to type or navigate. 
15521
15522         Also, when blinking, stay on for longer than we stay off. Also,
15523         return from start_cursor_blink if !cursor_visible, to save
15524         checking that flag all over the place before we call
15525         start_cursor_blink.
15526
15527 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
15528
15529         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
15530         only contain a "fontset" line, which is now ignored.
15531
15532         * gtk/gtkentry.c (gtk_entry_button_release): Make 
15533         double-click-to-select-word work.
15534         
15535 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
15536
15537         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
15538         Don't move back one char when we are actually at the end of the 
15539         paragraph.
15540
15541 2000-11-15  Robert Brady  <robert@suse.co.uk>
15542
15543         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
15544         'o' < 'p'.
15545         
15546         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
15547         bind_textdomain_codeset.
15548
15549         (gtk_init_check): Make the warning about translating default:LTR
15550         sterner.
15551         
15552 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
15553
15554         * **/Makefile.am : remove unecessary rules for win32-specific
15555         config-substituted targets. If you want these rules, use
15556         --enable-maintainer-mode (called automatically by autogen.sh).
15557         Stops a lot of unneccessary make-time warnings.
15558
15559         * gtk/gtktext{layout,display}.c: Factor in total width as
15560         well as screen when figuring alignment for word-wrap as well as
15561         no wrap; this is necessary to handle lines that cannot be wrapped
15562         at all.
15563
15564 2000-11-15  Havoc Pennington  <hp@redhat.com>
15565
15566         * gtk/testtext.c: Implement essential color cycling feature
15567
15568 2000-11-15  Havoc Pennington  <hp@redhat.com>
15569
15570         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
15571         when we invalidate the main window.
15572
15573         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
15574         GtkTextView will now invalidate the side windows for us when text
15575         changes.
15576
15577 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
15578
15579         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
15580         unconditionally, since we may need to update the horizontal
15581         scrollbars even if the height didn't change.
15582
15583         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
15584         the extra attrs, since some of them affect size.
15585
15586         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
15587         x_offset correctly.
15588
15589 2000-11-15  Havoc Pennington  <hp@redhat.com>
15590
15591         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
15592         don't move the first line out into the margin, instead move the
15593         whole paragraph in order to make space for the first line within 
15594         the margin
15595
15596 2000-11-15  Havoc Pennington  <hp@redhat.com>
15597
15598         * gtk/gtktextview.c (changed_handler): offset redraw rect by
15599         xoffset in addition to yoffset, so horizontal scrolling doesn't
15600         break redraws
15601
15602 2000-11-15  Havoc Pennington  <hp@redhat.com>
15603
15604         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
15605         from the cursor
15606         (render_layout_line): fix reversed test that caused weird
15607         underlines to get drawn
15608
15609 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
15610
15611         * gdk/linux-fb/gdkprivate-fb.h:
15612         Fix debug macros.
15613         
15614 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
15615
15616         * gdk/linux-fb/gdkprivate-fb.h:
15617         Added virtual functions set_pixel, get_color,
15618         fill_span and draw_drawable to the GC.
15619         Added global _gdk_fb_screen_gc to use instead of
15620         NULL when drawing to the screen.
15621         Added _gdk_fb_gc_calc_state() prototype.
15622
15623         * gdk/linux-fb/gdkgc-fb.c:
15624         Call _gdk_fb_gc_calc_state() on any gc state change.
15625
15626         * gdk/linux-fb/gdkglobals-fb.c:
15627         Add _gdk_fb_screen_gc
15628                 
15629         * gdk/linux-fb/gdkdrawable-fb2.c:
15630         _gdk_fb_gc_calc_state() calculates best functions
15631         for the GC state and depth.
15632         Moved bpp specialized code to separate functions.
15633         Added optimized 24 bpp AA draw_drawable.
15634
15635         * gdk/linux-fb/gdkevents-fb.c:
15636         Silence gcc warning.
15637
15638         * gdk/linux-fb/gdkimage-fb.c:
15639         Use _gdk_fb_screen_gc
15640
15641         * gdk/linux-fb/gdkwindow-fb.c:
15642         Init and use _gdk_fb_screen_gc
15643
15644         * gdk/linux-fb/mitypes.h:
15645         Remove unused types.
15646
15647 2000-11-14  Havoc Pennington  <hp@pobox.com>
15648
15649         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
15650         to pixels
15651
15652 2000-11-14  Havoc Pennington  <hp@pobox.com>
15653
15654         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
15655
15656         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
15657         unknown char, no real reason we were using a variable. 
15658         Remove gtk_text_unknown_char variable. Fix all the text widget
15659         files accordingly.
15660
15661         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
15662         since the Unicode spec seems to prefer that character for our
15663         purposes.
15664
15665 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
15666
15667         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
15668         value of g_getenv() isn't freeable, so g_strdup it.
15669
15670         * modules/input/inuktitut.c: Inuktitut input method.
15671
15672         * modules/input/Makefile.am: Build this.
15673         
15674 2000-11-14  Elliot Lee  <sopwith@redhat.com>
15675
15676         * gtk/Makefile.am: Install gtk.immodules, needed for operation
15677         of gtk programs.
15678
15679 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
15680
15681         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
15682         reversed > that was causing Home to go to end of previous line.
15683
15684         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
15685         modified-keypresses (leave for bindings.)
15686
15687         * modules/input/Makefile.am: Remove useless -export-dynamic
15688         from module LDFLAGS.
15689
15690 2000-11-14  Havoc Pennington  <hp@redhat.com>
15691
15692         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
15693         higher.
15694
15695         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
15696         account. Also, render rise, underline, background, etc. for
15697         pixbufs as well as text. Also, draw underlines one pixel higher.
15698
15699         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
15700         PangoAttribute for the rise, so it gets drawn properly. Also,
15701         add the GtkTextAppearance attribute for pixbuf/widget segments
15702         as well; we should go ahead and have rise, underline, background,
15703         stipple work for those
15704
15705         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
15706         Pango
15707
15708 2000-11-15  Tor Lillqvist  <tml@iki.fi>
15709
15710         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
15711
15712         * gtk/gtk.def: Update.
15713
15714         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
15715         included.
15716         (gtk_rc_get_im_module_file): Use run-time installation directory
15717         on Win32.
15718
15719         * gdk/win32/rc/gdk.rc: Remove.
15720         * gdk/win32/rc/gdk.rc.in: New file.
15721         * gdk/win32/rc/Makefile.am: New file
15722         * gdk/win32/Makefile.am: Corresponding changes.
15723
15724         * gtk/gtk.rc: Remove.
15725         * gtk/gtk-win32.rc.in: New file.
15726         * gtk/Makefile.am: Corresponding changes.
15727
15728         * configure.in: Corresponding changes.
15729
15730         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
15731         has a built gtkcompat.h. Developers using CVS code on Win32 can
15732         hand-edit it from gtkcompat.h.in.
15733
15734         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
15735         gtkcompat.h from gtkcompat.h.win32.
15736
15737 2000-11-14  Havoc Pennington  <hp@redhat.com>
15738
15739         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
15740         to default to GDK_ACTION_MOVE if the drag is within a single
15741         widget. Defaults to GDK_ACTION_COPY between widgets.
15742
15743 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
15744
15745         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
15746
15747         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
15748
15749         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
15750         srcdir != builddir
15751
15752         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
15753
15754         * configure.in (GTK_VERSION): Up to 1.3.2
15755
15756         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
15757         gtkimcontextxim.h
15758
15759         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
15760         missing doc comment.
15761
15762 2000-11-14  Alexander Larsson  <alexl@redhat.com>
15763
15764         * modules/linux-fb/basic.c:
15765         Use the glib iconv wrappers.
15766
15767 2000-11-13  Havoc Pennington  <hp@pobox.com>
15768
15769         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
15770         still more bugs.
15771
15772         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
15773         scroll the GdkWindows before realization.
15774
15775 2000-11-13  Havoc Pennington  <hp@redhat.com>
15776
15777         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
15778         where GC didn't always get updated properly
15779
15780         * demos/gtk-demo/textview.c (create_tags): Use subattributes
15781         of fonts instead of setting the entire font
15782
15783         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
15784         setting entire font
15785
15786         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
15787
15788         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
15789         a bunch of individually-settable font attributes. You can still 
15790         use the "font" and "font_desc" args, they just set all the font
15791         attributes at once.
15792
15793 2000-11-13 Elliot Lee <sopwith@redhat.com>
15794
15795         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
15796
15797 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
15798
15799         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
15800         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
15801
15802         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
15803         work better.
15804
15805 2000-11-13  Havoc Pennington  <hp@redhat.com>
15806
15807         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
15808         the module file.
15809
15810         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
15811         dest->language
15812
15813         * gtk/testtext.c: Test pixels above/below/inside paragraphs
15814         settings
15815
15816         * gtk/gtktextview.c: Implement object args and setters/getters for
15817         all the aspects of the GtkTextAttributes that are not set from
15818         GtkWidget attributes. This is spacing, justification, margins,
15819         etc.
15820
15821         (gtk_text_view_set_arg)
15822         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
15823         args
15824         (gtk_text_view_class_init): Add args for justify, left_margin,
15825         right_margin, indent, and tabs
15826         
15827
15828         * gtk/gtktextlayout.c (set_para_values): fix to display indent
15829         attribute properly
15830
15831         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
15832         replace with indent attribute
15833
15834         * gtk/gtktextlayout.c (set_para_values): multiply indent by
15835         PANGO_SCALE
15836
15837         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
15838         rearranging code to do that
15839         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
15840         i.e. don't subtract the top_margin first, just to keep
15841         all margin-futzing in one place.
15842
15843         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
15844
15845         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
15846         special case of last line, Pango now handles this itself.
15847         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
15848         Y coordinate
15849         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
15850         (find_display_line_above): wasn't moving the byte index as it
15851         iterated over lines, so always returned byte 0. Also, port to use
15852         PangoLayoutIter.
15853         (find_display_line_below): same problem as
15854         find_display_line_above. Also, port to use PangoLayoutIter.
15855
15856 2000-11-13  Alexander Larsson  <alexl@redhat.com>
15857
15858         * gdk/linux-fb/*.[ch]:
15859         Massive reindent to gtk+ standard. My hands hurt.
15860
15861         * gdk/linux-fb/gdkcolor-fb.c:
15862         Move GdkColorPrivateFB from inherited to windowing_data
15863
15864         * gdk/linux-fb/gdkcursor-fb.c:
15865         _gdk_cursor_new_from_pixmap made static
15866
15867         * gdk/linux-fb/gdkdnd-fb.c:
15868         GdkDragContextPrivate moved to windowing_data
15869
15870         * gdk/linux-fb/gdkdrawable-fb2.c:
15871         Removed endian.h, use glib endianness macros instead
15872         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
15873         and GDK_DRAWABLE_IMPL_FBDATA
15874
15875         * gdk/linux-fb/gdkfont-fb.c:
15876         Add empty gdk_font_load(). Needed for linking of Gtk+.
15877
15878         * gdk/linux-fb/gdkimage-fb.c:
15879         Removed endian.h, use glib endianness macros instead
15880         Moved GdkImagePrivateFB to windowing_data
15881         gdk_image_new_bitmap didn't always allocate enough
15882         memory.
15883
15884         * gdk/linux-fb/gdkinput-ps2.c:
15885         Added semi-working support for MS serial mice.
15886
15887         * gdk/linux-fb/gdkprivate-fb.h:
15888         s/GdkWindowPrivate/GdkWindowObject/
15889         Removed GdkWindowPrivate typedef
15890         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
15891         Removed GDK_DRAWABLE_P
15892         Move GdkColorPrivateFB from inherited to windowing_data
15893         Moved GdkImagePrivateFB to windowing_data
15894
15895         * gdk/linux-fb/gdkvisual-fb.c:
15896         Removed some unused debug code.
15897
15898         * gdk/linux-fb/gdkwindow-fb.c:
15899         Use stock cursors instead of including X headers.
15900         s/GdkWindowPrivate/GdkWindowObject/
15901
15902         * gdk/linux-fb/mitypes.h:
15903         Removed unused types.
15904
15905         * modules/linux-fb/basic.c:
15906         Use the pango fribidi wrappers.
15907
15908 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
15909
15910         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
15911         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
15912         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
15913         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
15914         GEqualFunc where applicable.
15915         
15916         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
15917         pango_font_description_equal as changed in pango.
15918         
15919         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
15920
15921         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
15922
15923         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
15924
15925         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
15926
15927         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
15928
15929         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
15930
15931         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
15932         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
15933
15934         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
15935         gtk_rc_styles_compare -> gtk_rc_styles_equal.
15936
15937 2000-11-12  Havoc Pennington  <hp@pobox.com>
15938
15939         * demos/gtk-demo/Makefile.am (democodedir): change demo install
15940         dir to datadir/gtk+-2.0/demo
15941
15942         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
15943         sorts of text widget and Pango font bugs. Urgh.
15944
15945         * demos/gtk-demo/Makefile.am (demos): Add textview.c
15946
15947         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
15948         tree that you should double click to see the demo. Fix 
15949         types of variables to reflect changed return values from 
15950         GtkTreeStore and GtkTreeViewColumn constructors.
15951
15952         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
15953         newly-created buffer to prepare for GObject semantics
15954
15955         * gtk/testtext.c: don't leak the buffer with GObject semantics
15956
15957         * gtk/testtextbuffer.c: ditto
15958         
15959 2000-11-12  Havoc Pennington  <hp@pobox.com>
15960
15961         Rename this testgtk to gtk-demo to avoid confusion, and 
15962         install it so people can use it as a supplement to 
15963         the documentation.
15964         
15965         * demos/gtk-demo: Moved from demos/testgtk
15966
15967         * demos/testgtk: Removed
15968
15969         * configure.in: make Makefile in gtk-demo
15970         
15971         * demos/gtk-demo/Makefile.am: Install sample source to 
15972         datadir/gtk-demo (maybe there's a better place?), and 
15973         rename the binary to gtk-demo
15974         
15975         * demos/gtk-demo/main.c (load_file): Load installed sample
15976         source if source isn't found in pwd.
15977
15978 2000-11-09  Havoc Pennington  <hp@pobox.com>
15979
15980         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
15981         argument to set the char displayed when visibility == FALSE
15982         (gtk_entry_create_layout): If !entry->visible, replace 
15983         all chars with the "invisible char"
15984
15985         * gtk/testgtk.c: Test the invisible_char deal
15986         
15987 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
15988
15989         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
15990         can't get a native font in the right encoding.
15991
15992 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
15993
15994         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
15995         respectively.
15996
15997 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
15998
15999         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
16000         Fix warning when moving between paragraphs.
16001
16002         * gtk/gtkentry.[ch]: Change move => move_cursor, 
16003         delete => delete_from_cursor, insert => insert_at_cursor
16004
16005 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
16006
16007         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
16008
16009         * modules/input/imthai-broken.c: A Thai input method for use if
16010         Thai keys are really generating Latin1 keysyms.
16011
16012         * modules/input/Makefile.am: Build these.
16013
16014 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
16015
16016         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
16017         g_filename_{to,from}_utf8 now takes an extra parameter.
16018
16019         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
16020         strftime into UTF-8.
16021
16022         (column_from_x, gtk_calendar_paint_day_names): Support RTL
16023         calendars.
16024
16025         (gtk_calendar_paint_day_names): Draw day names in the right 
16026         place.
16027         
16028 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
16029
16030         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
16031         problem with using result of g_get_charset() backwards -
16032         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
16033
16034         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
16035         negative min_width/height and max_width/height to
16036         mean "requisition"; this allows setting a window
16037         to be user-resizable in only one direction easily.
16038
16039         * gtk/testgtk.c (create_main_window): Remove hard-coded
16040         usize - set a default size in the vertical direction.
16041
16042 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
16043
16044         * gtk/gtkrange.c: Add some missing casts. Support 
16045         2 and 3 button clicks on the arrows to mean 
16046         "move by pages" and "jump to end". (Like gtkspinbutton)
16047
16048 2000-11-12 Hans Breuer <Hans@Breuer.Org>
16049
16050         * gdk/win32/makefile.msc : reflect build module changes
16051
16052         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
16053         from GdkPixmap*, cast implementation member instead.
16054
16055         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
16056         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
16057         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
16058         more Gdi functions return value checking. 
16059         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
16060         GdkImagePrivateWin32 *.
16061
16062         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
16063         menus useable again. Add #pragma message to keep reminded on this issue.
16064         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
16065         windows. This allows to enable backing store on Win32!
16066
16067         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
16068         in drawable is of impl type. Correct specific type checks appropriate.
16069  
16070         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
16071         GDK_WINDOW_DESTROYED before allocating new resources.
16072
16073         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
16074
16075         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
16076         (gdk_window_foreign_new) initialize parent handle.
16077         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
16078
16079         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
16080         Let the GDI invalidate the window on MoveWindow call to fix scrolling
16081         problems (e.g. main buttons in testgtk). 
16082
16083 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
16084
16085         * gtk/gtkentry.c (gtk_entry_key_press): Call 
16086         gtk_widget_activate for GDK_Return.
16087
16088         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
16089         of preedit cursor position.
16090
16091 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
16092
16093         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
16094         static.
16095
16096 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
16097
16098         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
16099         out support for multiple locales; that simple doesn't
16100         work reliably with current Xlib
16101
16102         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
16103         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
16104         Add support for positioning the cursor within the preedit string.
16105
16106 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
16107
16108         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
16109         at XIM input method module.
16110
16111         * gtk/gtktextview.c: Check for bindings after passing
16112         events to im context filter.
16113
16114 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
16115
16116         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
16117         empty attribute lists properly.
16118
16119 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
16120
16121         * gtk/queryimmodules.c (main): Return non-zero exit
16122         status if errors were encountered querying any
16123         modules.
16124
16125         * modules/input/Makefile.am (moduledir): remove
16126         leftover bin program target.
16127
16128         * docs/make-todo: Fix typo in error message.
16129
16130 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
16131
16132         * configure.in: Add modules/input/Makefile
16133
16134 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
16135
16136         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
16137         don't include gtkthemes.h.
16138
16139         * gtk/testgtk.c gtk/testtext.c: Set environment variables
16140         to point
16141
16142         * gtk/Makefile.am: Add new .c and .h files, build 
16143         gtk-query-immodules and use it to create a gtk.immodules
16144         file for use of test programs.
16145
16146         * gtk/gtkpreview.c: remove extra blank line.
16147
16148 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
16149
16150         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
16151         Add the ability to add extra tables beyond the default
16152         one, and also the ability to have compose sequences 
16153         that are prefixes of other compose sequences. 
16154
16155         * gtk/gtkimcontextsimple.c: Export a preedit string which
16156         consists of possible candidates for keystrokes that have
16157         been entered but not yet committed.
16158
16159         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
16160         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
16161
16162         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
16163         Add a function to add input-method switching menu items
16164         to a menu.
16165
16166         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
16167         when switching input methods.
16168
16169         * gtk/gtkimcontextsimple.[ch]: Change the format of
16170         the compose table to allow compose tables of different
16171         lengths / sequence.
16172
16173 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
16174
16175         * gtk/gtkimmodule.[ch]: Support routines for loading
16176         GtkIMContext implementations dynamically at runtime.
16177
16178         * modules/input/imcyrillic-translit.c: A sample input
16179         method (based on GtkIMContextSimple with an extra table),
16180         which demonstrates preedit strings and the module
16181         system for input modules
16182
16183         * gtk/queryimmodules.c: Program to query the available
16184         input modules and write the results into a file.
16185          
16186         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
16187         extra config options "im_module_file" (cache file for
16188         input method modules), and "im_module_path" - path
16189         to look for modules when generating cache file.
16190
16191         This doesn't scale.
16192
16193 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
16194
16195         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
16196         generic code from gtkthemes into a new abstraction
16197         GtkModule which has the logic for implementing
16198         a loadable module which implements a number of 
16199         GObject types.
16200
16201 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
16202
16203         * gtk/gtkeditable.[ch]: Convert GtkEditable from
16204         a class into an interface  
16205         
16206         * gtk/gtkoldeditable.[ch]: Move the old editable
16207         implementation into here, so legacy widgets can
16208         still rely on the implemenation. GtkOldEditable
16209         exports GtkEditable. Make selection handling
16210         code use new text conversion functions (and
16211         handle UTF-8 as a side-effect). Use GtkClipboard
16212         for CLIPBOARD.
16213
16214         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
16215         Adopt to match above changes.
16216
16217         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
16218         avoid GtkOldEditable implementation. Restructure
16219         to reduce number of places that modify state directly.
16220         Move to GtkBindingSet. Display the preedit string.
16221         Queue recomputation of PangoLayout and scroll position
16222         to improve effiency of doing complex changes naively.
16223         Add a menu with cut/copy/paste and input method selection.
16224
16225 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
16226
16227         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
16228         to set preedit string and attributes; display preedit string by
16229         inserting string and attributes at cursor when creating the
16230         GtkTextLineDisplay.
16231
16232         * gtk/gtktextlayout.c: Move all conversions between byte
16233         positions in PangoLayout and GtkTextIter into new functions
16234         line_display_iter_to_index/index_to_iter that properly
16235         handle the preedit string.
16236
16237         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
16238         it to return const char * (eventually will end up
16239         as GCONST char *, most likely.)
16240
16241         * gtk/gtktextview.[ch]: Handle the preedit string, call
16242         gtk_im_context_reset() as necessary, add a menu to switch
16243         input methods.
16244         
16245         * gtk/gtktextlayout.[ch]: Remove useless
16246         gtk_text_layout_get_log_attrs() function.
16247
16248 2000-11-11  Tor Lillqvist  <tml@iki.fi>
16249
16250         * gdk/gdk.def
16251         * gtk/gtk.def: Update.
16252
16253         * gdk/win32/*.c: Add last argument to g_type_register_static()
16254         calls.
16255
16256         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
16257
16258         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
16259         generated by older wheel mouse drivers. Get the correct y
16260         coordinate from WM_MOUSEWHEEL messages.
16261
16262         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
16263         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
16264         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
16265         Debugging functions.
16266
16267         * gdk/win32/gdkprivate-win32.h: Declare them.
16268
16269         * gdk/win32/gdkinput-win32.h: Add declaration for
16270         gdk_input_window_destroy().
16271
16272         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
16273
16274 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
16275
16276         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
16277         function to help handle keeping things in sync.
16278
16279 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
16280
16281         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
16282         BOXED marshallers.
16283
16284         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
16285         (gtk_list_store_class_init): use the new BOXED marshallers.
16286
16287         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
16288         new_with_values to new_with_types.
16289         (gtk_tree_store_get_column_type): add this.
16290         (gtk_tree_store_class_init): use the new BOXED marshallers.
16291
16292         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
16293         mirror some POINTER marshallers.
16294
16295 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
16296
16297         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
16298         allow more interesting iterators.  Also, made the lifecycle of
16299         iterators more explicit.
16300
16301         * gtk/gtktreemodelsort.[ch]: New model for sorting.
16302
16303         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
16304         types.
16305
16306 2000-11-09  Alexander Larsson  <alexl@redhat.com>
16307
16308         * demos/testgtk/menus.c:
16309         Changes to make the new testgtk compile after
16310         gtk_menu_append was removed.
16311
16312         * gdk/linux-fb/gdkdrawable-fb2.c
16313         (gdk_fb_get_depth, gdk_fb_get_visual,
16314         gdk_drawable_impl_fb_class_init): Implement
16315         these drawable functions. Now GtkImages work again.
16316
16317         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
16318
16319         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
16320         
16321         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
16322         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
16323         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
16324         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
16325
16326 2000-11-08  Havoc Pennington  <hp@pobox.com>
16327
16328         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
16329         visible_set args, don't know where these had gone, I thought they
16330         used to be there
16331
16332         * gtk/testtext.c: Add a menu item to apply invisibility tag;
16333         now we can test the feature and see that it's totally broken.
16334
16335 2000-11-08  Havoc Pennington  <hp@pobox.com>
16336
16337         Make DND copy pixbufs and tags when source and target share a 
16338         tag table.
16339         
16340         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
16341         in-process GTK_TEXT_BUFFER_CONTENTS target
16342         (gtk_text_view_drag_data_received): Paste from
16343         GTK_TEXT_BUFFER_CONTENTS if we receive it.
16344
16345 2000-11-08  Alexander Larsson  <alexl@redhat.com>
16346
16347         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
16348         API changes.
16349
16350         * gtk/gtkmenu.c: Add support for scrolling menus.
16351         Remove gtk_menu_append/prepend/insert, these have been moved to
16352         gtkcompat.h as #defines.
16353
16354         * gtk/gtkcompat.h.in:
16355         Add compatibility #defines for gtk_menu_append/prepend/insert
16356
16357         * gtk/gtkmenu.h: Add data needed for scrolling menus.
16358         GtkMenuPositionFunc gets an extra argument push_in.
16359         gtk_menu_append/prepend/insert removed.
16360         
16361         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
16362         positioning behaviour to fit to scrolling menus.
16363
16364         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
16365         into menuitem->submeny. That is wrong, and broke torn
16366         off submenus of torn off menus, since they were unrealized
16367         when the first menu was unrealized.
16368
16369         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
16370         gtk_menu_shell_select_item() since these need to be overridden in
16371         GtkMenu.
16372
16373         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
16374         positioning behaviour to fit to scrolling menus.
16375         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
16376         the current item so that it is prelighted when the menu pops up.
16377         This is a workaround to the fact that the menu doesn't get the
16378         initial enter event (due to grabs).
16379
16380         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
16381         s/gtk_menu_append/gtk_menu_shell_append/
16382
16383         * gtk/gtknotebook.c:
16384         s/gtk_menu_insert/gtk_menu_shell_insert/
16385
16386         * gtk/testgtk.c (create_menu, create_menus):
16387         Create the first menu with 50 items so that menu scrolling
16388         can be tested.
16389         
16390         
16391         Patch from Jonathan Blandford  <jrb@redhat.com>
16392
16393         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
16394         system to handle size requests.  First, we ask what the size of
16395         the toggle is.  Then, when allocating the size, we allocate the
16396         toggle_size first.  This way we can have multiple menu-item
16397         classes w/o needing a seperate class for each.
16398
16399         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
16400         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
16401
16402         * gtk/gtkcheckmenuitem.c
16403         (gtk_check_menu_item_toggle_size_request): New function to handle
16404         the toggle size-request.
16405
16406 2000-11-07  Havoc Pennington  <hp@redhat.com>
16407
16408         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
16409         Half-ass somewhat fix this function, so that scrolling to the
16410         insertion point works. Pango hacking is in the future to really
16411         fix it.
16412
16413         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
16414         length of data, no longer used.
16415
16416         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
16417         method contents in here, get rid of destroy method
16418         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
16419         that were backward. Remove debug spew.
16420         (cut_or_copy): Make the clipboard work with insert_range to
16421         preserve tags and pixbufs, not just the primary selection.
16422
16423 2000-11-07  Havoc Pennington  <hp@redhat.com>
16424
16425         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
16426         to gtk_text_mark_get_visible
16427
16428         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
16429         bug that was generating an invalid iterator
16430
16431         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
16432         ensure_char_offsets() in front of code placing the iter in an
16433         invalid state.
16434
16435         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
16436         make override_location arg const
16437         (paste): Replace the selection if we paste into the 
16438         current selection
16439
16440         * gtk/gtkselection.h: Remove "GtkSelectioData"
16441         (struct _GtkSelectionData): move the definition here.
16442
16443         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
16444         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
16445
16446         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
16447
16448         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
16449         (gtk_text_buffer_insert_range_interactive): implement
16450         (gtk_text_buffer_get_tags): Remove, replaced by
16451         gtk_text_iter_get_tags()
16452
16453         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
16454         limit parameter, to avoid infinite linear scan.
16455         (gtk_text_iter_backward_search): Add search limit
16456         (gtk_text_iter_forward_find_char): Add search limit
16457         (gtk_text_iter_backward_find_char): Add search limit
16458
16459 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
16460
16461         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
16462         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
16463         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
16464         gdk/linux-fb/gdkwindow-fb.c:
16465         use g_object_new() instead of g_type_create_instance() which
16466         is a private function for fundamental type implementations.
16467
16468         * gdk/linux-fb/gdkinput-ps2.c:
16469         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
16470         instead just store the current modifier state. Add a (somewhat broken)
16471         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
16472         Rename exported function gdk_input_ps2_get_mouseinfo to
16473         gdk_input_get_mouseinfo.
16474
16475         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
16476         gdk/linux-fb/gdkwindow-fb.c:
16477         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
16478         
16479
16480 2000-11-02  Havoc Pennington  <hp@redhat.com>
16481
16482         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
16483         use stock buttons. Should be 100% source compatible, appropriate
16484         filesel fields now point to dialog->vbox and dialog->action_area.
16485         On the bizarre side, dialog->action_area and filesel->action_area
16486         are not the same widget.
16487         (gtk_file_selection_init): Put some padding around the selection
16488         entry, so it isn't touching the GtkDialog separator.    
16489
16490         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
16491         use stock buttons, etc. Should also be source compatible.
16492         Set the dialog default title in _init not _new().
16493         
16494         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
16495         Use stock buttons; don't put a button box inside the existing
16496         dialog button box. Don't bother with push/pop colormap anymore.
16497
16498         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
16499         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
16500         for message dialog, and necessary for the font selection and color
16501         selection with help and apply buttons.
16502         
16503         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
16504         to the created button widget. Set GTK_CAN_DEFAULT on the button.
16505         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
16506         between buttons, put less padding around the action area.
16507         (gtk_dialog_run): Exit on unmap rather than on destroy. 
16508         This will also exit the loop if the widget is hidden.
16509         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
16510         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
16511         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
16512         special-case delete event.
16513
16514         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
16515         formatting
16516         
16517 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
16518
16519         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
16520         button to temporarily disable position recording in the
16521         "saved position" test.
16522
16523 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
16524
16525         * gtk/gtkthemes.c: added compat code that temporarily implements
16526         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
16527         going to be revamped by owen's upcoming GtkModule patches, but
16528         untill then people want gtk to build, right? ;)
16529
16530 2000-11-04  Havoc Pennington  <hp@pobox.com>
16531
16532         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
16533         list
16534
16535         * docs/Changes-2.0.txt: Add note about
16536         gtk_container_get_toplevels()
16537
16538         * gtk/gtktextview.h: formatting
16539         
16540         * gtk/gtktextview.c: don't start descriptions with "Returns",
16541         confuses gtk-doc
16542
16543 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
16544
16545         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
16546         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
16547
16548 2000-11-03  Havoc Pennington  <hp@redhat.com>
16549
16550         * gtk/gtktexttagtable.c: Docs
16551         (gtk_text_tag_table_size): return a signed int
16552
16553         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
16554         (gtk_text_tag_event): make the event_object a GObject
16555
16556         * gtk/gtktextview.c: Write API docs for all functions.
16557
16558         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
16559         for gtk_text_view_get_window_type() called on one of the private
16560         windows.
16561
16562         * gtk/gtktextview.c: Instead of accessing text_view->buffer
16563         directly, call get_buffer() which demand-creates a default
16564         buffer. So gtk_text_view_new() can be used to create a view with a
16565         default buffer in it, if you just want an empty text box users can
16566         put data in. Useful for GUI builders also.
16567
16568 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
16569
16570         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
16571         the charset encodign portion MUST be in lowercase.
16572         * gtk/gtkrc.az: added file for Azeri language
16573
16574 2000-11-03  Havoc Pennington  <hp@redhat.com>
16575
16576         Get widgets working on the btree/buffer side. Display of them 
16577         still doesn't work.
16578         
16579         * gtk/gtktextview.c: start implementing child widget stuff
16580
16581         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
16582
16583         * gtk/gtktextlayout.c: handle embedded widgets
16584
16585         * gtk/gtktextdisplay.c: handle embedded widgets
16586
16587         * gtk/gtktextchild.c: Implement all the child anchor goo
16588
16589         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
16590         function
16591
16592         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
16593         (insert_pixbuf_or_widget_segment): abstract out common portions of 
16594         creating a child anchor or a pixbuf segment.
16595         (gtk_text_btree_create_child_anchor): new function
16596         (gtk_text_btree_unregister_child_anchor): new function
16597
16598         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
16599         allocate_child signal on GtkTextLayout
16600
16601         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
16602         values
16603         (gtk_text_iter_get_child_anchor): new function
16604
16605         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
16606         default handler for the changed signal, which calls
16607         gtk_text_buffer_set_modified(), instead of just always emitting
16608         changed then calling set_modified() manually. I guess this is
16609         maybe more flexible. It seems logical.
16610
16611 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
16612
16613         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
16614         now.
16615
16616         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
16617
16618 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
16619
16620         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
16621         been marked static.
16622
16623 2000-11-02  Havoc Pennington  <hp@redhat.com>
16624
16625         * gtk/testgtk.c (create_labels): had a test backward
16626
16627         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
16628         fields, so the dest GC ends up with the correct clip origin, 
16629         etc. Fixes a bug where colored labels didn't redraw 
16630         properly.
16631
16632 2000-11-02  Alexander Larsson  <alexl@redhat.com>
16633
16634         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
16635         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
16636         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
16637         Add last argument to t_type_register_static call.
16638         
16639         * gdk/linux-fb/gdkdrawable-fb2.c:
16640         Add last argument to t_type_register_static call.
16641         export the get_image drawable virtual function.
16642
16643         * gdk/linux-fb/gdkimage-fb.c:
16644         Add last argument to t_type_register_static call.
16645         rename gtk_image_get to _gdk_fb_get_image and
16646         export it for use by gdkdrawable-fb2.
16647
16648         * gdk/linux-fb/gdkprivate-fb.h:
16649         export _gdk_fb_get_image.
16650
16651         * gdk/linux-fb/gdkselection-fb.c:
16652         Add new api call stubs.
16653
16654         * gtk/Makefile.am:
16655         Missing ( in linux-fb part.
16656
16657         * modules/linux-fb/Makefile.am:
16658         Must link with gdk_pixbuf or get unresolved symbol.
16659
16660 2000-11-01  Havoc Pennington  <hp@pobox.com>
16661
16662         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
16663         GTK_TYPE_TEXT_ITER and BOXED marshallers
16664
16665         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
16666
16667         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
16668         
16669         * gtk/gtk-boxed.defs: add GtkTextIter
16670
16671         * gtk/gtkmarshal.list: Add marshallers for text widget that 
16672         properly use OBJECT and BOXED
16673
16674 2000-11-01  Havoc Pennington  <hp@redhat.com>
16675
16676         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
16677
16678         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
16679         before returning it. 
16680         
16681 2000-11-01  Havoc Pennington  <hp@redhat.com>
16682
16683         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
16684         Clip the rectangle to be rendered to the drawable, since
16685         get_from_drawable() requires a region within the drawable
16686
16687 2000-11-01  Havoc Pennington  <hp@redhat.com>
16688
16689         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
16690         from coordinates.
16691
16692 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
16693
16694         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
16695         it isn't NULL.
16696
16697 2000-11-01  Havoc Pennington  <hp@pobox.com>
16698
16699         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
16700         on a label
16701         (gtk_label_finalize): unref the attr list if any.
16702
16703         * gtk/testgtk.c (create_get_image): close test on second click
16704         (make_message_dialog): close dialog if it exists
16705
16706         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
16707
16708         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
16709         gdk-pixbuf
16710
16711         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
16712         from Pango markup format
16713         (gtk_label_set_markup_with_accel): ditto but with accelerator
16714         parsing
16715
16716         * gtk/gtkimage.c (gtk_image_expose): reformatting.
16717
16718         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
16719         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
16720         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
16721         call gdk_window_get_origin().
16722
16723         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
16724         implement GDK_PIXBUF_ALPHA_FULL
16725         
16726 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
16727
16728         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
16729         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
16730         g_signal_handlers_disconnect_matched to block/unblock and disconnect
16731         multiple handlers respectively, instead of only treating the
16732         first handler found (bug reported by owen).
16733
16734 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
16735
16736         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
16737
16738         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
16739
16740         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
16741         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
16742         gtk/gtktreeviewcolumn.h: Fixed inline docs.
16743
16744         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
16745         widget.  Needs writing someday.
16746
16747         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
16748         the docs.
16749
16750 2000-10-30  Havoc Pennington  <hp@redhat.com>
16751
16752         * gtk/gtktextview.h, gtk/gtktextview.c:
16753         Rename delete_at_cursor delete_from_cursor, and 
16754         move to move_cursor.
16755
16756 2000-10-30  Havoc Pennington  <hp@redhat.com>
16757
16758         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
16759         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
16760         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
16761         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
16762         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
16763         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
16764         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
16765         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
16766         gtktexttypes.h, gtktextview.c, gtktextview.h:
16767
16768         Massive reindentation and reformatting. Arg alignment and comments
16769         still need fixing in various places.
16770
16771 2000-10-30  Havoc Pennington  <hp@redhat.com>
16772
16773         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
16774         to be named insert_at_cursor and delete_at_cursor so C++ can
16775         handle them.
16776
16777 2000-10-28  Tor Lillqvist  <tml@iki.fi>
16778
16779         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
16780         to get a double directory separator in case the home directory
16781         ends with one. This would cause trouble especially on Windows,
16782         where the path will be confused with the syntax for an an UNC
16783         (network share) path \\server\share\path.
16784         (gtk_rc_add_initial_default_files): Ditto.
16785
16786 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
16787
16788         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
16789
16790         * gtk/gtktextview.c: Use correct marshallers.
16791
16792 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
16793
16794         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
16795         use new iter stuff, and added all the appropriate signals et al.
16796
16797         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
16798         code is internal to gtk only.
16799
16800 2000-10-28  Tor Lillqvist  <tml@iki.fi>
16801
16802         * gtk/gtk.def
16803         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
16804         glib-genmarshal etc.
16805
16806 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
16807
16808         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
16809         parallel builds.
16810
16811 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
16812
16813         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
16814
16815 2000-10-27  Robert Brady  <robert@suse.co.uk>
16816
16817         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
16818         en_GB (British), ia (Interlingua).
16819
16820 2000-10-26  Havoc Pennington  <hp@redhat.com>
16821
16822         * gtk/gtktextiter.c (my_strrstr): fix constness warning
16823
16824         Fixed output of:
16825         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
16826         
16827         * gtk/gtktextsegment.c (char_segment_new): rename
16828         (_char_segment_new_from_two_strings): rename
16829         (_toggle_segment_new): rename
16830         
16831         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
16832         (make_clipboard_widget): make it static
16833         (text_get_func): static
16834         (text_clear_func): static
16835
16836         * gtk/gtkcolorsel.c (adjustment_changed): make this function
16837         static
16838         (hex_changed): make it static
16839         (hsv_changed): make it static
16840         (opacity_entry_changed): make it static
16841
16842         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
16843         (toggle_segment_check_func): rename with _gtk
16844
16845         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
16846         (_widget_segment_new): rename
16847         (_widget_segment_add): rename
16848         (_widget_segment_remove): rename
16849         (_widget_segment_ref): rename
16850         (_widget_segment_unref): rename
16851
16852         * gtk/gtktextmark.c (_mark_segment_new): Rename
16853         _gtk_mark_segment_new   
16854
16855 2000-10-26  Havoc Pennington  <hp@redhat.com>
16856
16857         * gtk/gtkmarshal.list: add new marshallers used by the text widget
16858         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
16859         types
16860
16861         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
16862         marshaller types
16863
16864         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
16865         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
16866         license on these files.
16867
16868         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
16869         work.
16870
16871         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
16872         runtime random number different for each tree, instead of 
16873         a constant I made up.
16874
16875 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
16876
16877         * gtk/Makefile.am: buncha cleanups, kludged build sources
16878         dependencies with a Makefile: oldest-source-stamp dependancy
16879         for the moment. automake is really fighting us here, with
16880         intentionally not allowing user-defined rules or dependancies
16881         prior to it's -include $(DEP_FILES) statement. sucks rocks!
16882
16883         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
16884         to public headers. tehy have a comment stating that they are
16885         "semi-public" aren't included by gtk.h and if enums popup there,
16886         they can be /*< skip >*/-ed.
16887
16888         * gtk/gtktextlayout.h: 
16889         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
16890         added LGPL... <SIGH>
16891
16892 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
16893
16894         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
16895         GtkTreeIter.  Added iterators everywhere.
16896
16897         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
16898
16899         * gtk/gtktreeviewselection.c: Changed to use the iterators.
16900
16901         * gtk/gtktreestore.c: Changed to use the iterators.
16902
16903         * gtk/gtkliststore.c: Commented out the code.  Will convert to
16904         iterators tomorrow.
16905
16906         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
16907         iterators tomorrow.
16908
16909         * gtk/treestoretest.c: Changed to use iterators.
16910
16911         * demos/testgtk/main.c: Moved to use the new iterator system.
16912
16913 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
16914
16915         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
16916         localization misbehaviour.
16917
16918         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
16919         a useless type without copy/free.
16920
16921         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
16922         of GTK_TYPE_CTREE_NODE.
16923
16924 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
16925
16926         * gtk/gtksignal.c:
16927         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
16928         applicable.
16929
16930         * gtk/gtk-boxed.defs (GtkSelectionData): specify
16931         gtk_selection_data_copy and gtk_selection_data_free
16932         do GtkSelectionData work as params in signals.
16933
16934 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
16935
16936         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
16937         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
16938         couldn't they at least give it a non-standard name?
16939         
16940         * gtk/gtktextlayout.c: arg! yet another implementation of
16941         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
16942
16943         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
16944         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
16945         home. now i know this _is_ a conspiracy.
16946
16947         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
16948         ::state-changed.
16949
16950         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
16951         (gtk_accel_group_create_add): marshaller signature fixups.
16952
16953         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
16954         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
16955
16956         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
16957         anymore.
16958
16959 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
16960
16961         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
16962         due to the signal system changes, it wouldn't build currently. to
16963         be fixed soon.
16964
16965         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
16966
16967         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
16968         so it needs gtk_marshal_VOID__ENUM() instead of
16969         gtk_marshal_NONE__UINT().
16970
16971         * gdk/gdk*.c: adapted type registration functions.
16972
16973         * gtk/gtkbindings.c:
16974         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
16975         gone.
16976
16977         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
16978
16979         * gtk/gtkobject.c:
16980         (gtk_object_destroy):
16981         (gtk_object_shutdown): fixed recursion guards. basically we have to
16982         catch the case where any of GObject.shutdown() or gtk_object_destroy()
16983         is called during ::destroy, and avoid recursion there.
16984
16985         * gtk/gtktypeutils.c:
16986         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
16987         boxed_copy/boxed_free. this needs a more general solution based on a
16988         publically installed code-generator utility.
16989
16990         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
16991         glib's gobject has support for that now.
16992         define GtkSignalMarshaller in terms of GSignalCMarshaller.
16993
16994 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
16995
16996         * gtk/gtksignal.[hc]:
16997         * gtk/gtkmarshal.[hc]:
16998         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
16999         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
17000         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
17001         care of that.
17002
17003         * *.c: marshaller name fixups.
17004
17005         * gtk/gtkmarshal.list: added a comment briefing the format.
17006
17007 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
17008
17009         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
17010         compatibility macros here now. more specifically, most of
17011         the API is preserved (yes, _most_, nonwithstanding the
17012         following exceptions listed, the API is stil lHUGE ;)
17013         things that got removed completely:
17014         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
17015         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
17016         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
17017         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
17018         gtk_signal_remove_emission_hook().
17019         non-functional functions variants:
17020         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
17021         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
17022         not supported anymore.
17023         (gtk_signal_compat_matched): new internal function to aid
17024         implementation of the compatibility macros, it  provides
17025         functionality to block/unblock/disconnect handlers based
17026         on func/data.
17027
17028         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
17029
17030         * *.c: adaptions to new type registration API signatures.
17031
17032 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
17033
17034         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
17035
17036 2000-10-25  Robert Brady  <robert@suse.co.uk>
17037
17038         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
17039         gdk_property_delete): If window == NULL, assume the root window.
17040         (restoring the behaviour that was in 1.2).
17041         
17042         * gtk/testtext.c (save_buffer): Allow creation of new files when
17043         saving.
17044
17045         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
17046         calls to read().
17047
17048 2000-10-25  Tor Lillqvist  <tml@iki.fi>
17049
17050         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
17051
17052         * gdk/win32/gdkdrawable-win32.c
17053         * gdk/win32/gdkimage-win32.c
17054         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
17055         X11 backend.
17056
17057         * gdk/win32/gdkcc-win32.c
17058         * gdk/win32/gdkcolor-win32.c
17059         * gdk/win32/gdkfont-win32.c
17060         * gdk/win32/gdkinput-win32.c
17061         * gdk/win32/gdkmain-win32.c
17062         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
17063
17064 2000-10-24  Havoc Pennington  <hp@redhat.com>
17065
17066         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
17067         it a static function
17068
17069         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
17070         redraw text when a tag is applied to it.
17071
17072         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
17073         (gtk_text_tag_affects_nonsize_appearance): private functions to
17074         see if a tag requires various kinds of redraw/layout to be queued
17075         up.
17076
17077         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
17078
17079         * gtk/testtext.c (fill_example_buffer): Put the cursor 
17080         at the start of the buffer, so search works by default
17081
17082         * gtk/gtktextiter.c (lines_match): init match_start always
17083
17084         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
17085         function, get iter at a line + a byte index
17086
17087         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
17088         to set byte position within a line
17089         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
17090
17091 2000-10-23  Havoc Pennington  <hp@redhat.com>
17092
17093         * gtk/testtext.c: Re-enable the "find" dialog
17094
17095         * gtk/testgtk.c: Add test for gdk_drawable_get_image
17096         
17097         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
17098         the arguments to gdk_draw_drawable were in the wrong order
17099         (gdk_window_paint_init_bg): This function was ignoring the
17100         init_region, instead of clipping to it, so the entire backing
17101         pixmap was cleared on every begin_paint()
17102         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
17103         was in here again, the loop kept using the same GtkWindowPaint
17104         over and over.
17105         (gdk_window_begin_paint_region): Fix a bug where we had two
17106         x_offset instead of x_offset and y_offset
17107
17108         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
17109         before we get the image.
17110         (gdk_draw_drawable): get the composite before we draw the drawable.
17111         (gdk_drawable_real_get_composite_drawable): default
17112         get_composite_drawable implementation that returns the drawable 
17113         itself
17114
17115         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
17116         get_composite_drawable virtual function
17117
17118         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
17119         list-walking bug
17120
17121         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
17122         make this work if the source drawable is a GdkDrawableImplX11
17123         instead of a public drawable type. This is really broken; the
17124         problem is that GdkDrawable needs a virtual method get_xid(), but
17125         of course that doesn't work in practice. Enter RTTI.
17126
17127         Also, improve mismatched depth message.
17128
17129         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
17130         GdkPixmap
17131
17132         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
17133         install _gdk_x11_get_image as our implementation of get_image
17134         
17135         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
17136         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
17137
17138         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
17139         gdk_drawable_get_image
17140
17141         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
17142
17143         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
17144         get_image
17145
17146         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
17147         trailing semicolon after for loop
17148
17149 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
17150
17151         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
17152         where font_desc for widget's context lagged widget's font_desc by
17153         one step.
17154
17155 2000-10-22  Tor Lillqvist  <tml@iki.fi>
17156
17157         * gdk/win32/gdkgc-win32.c
17158         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
17159
17160         * gtk/makefile.mingw.in
17161         * gtk/gtk.def: Updates.
17162
17163         * gtk/testgtk.c: sleep() is called _sleep in MS's C
17164         library.
17165
17166         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
17167
17168         * gtk/makefile.msc: Remove
17169
17170         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
17171
17172         * gtk/Makefile.am: Add it.
17173
17174         * configure.in: Generate it.
17175
17176         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
17177         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
17178         something even if not implemented, to satisfy picky MSVC.
17179
17180         Patches by Hans Breuer:
17181         
17182         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
17183         SetBkMode() and SetTextAlign() before calling
17184         pango_win32_render().
17185
17186         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
17187         Set hcliprgn to NULL after destroying it.
17188         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
17189
17190         * gdk/win32/gdkgeometry-win32.c
17191         (_gdk_windowing_window_queue_antiexpose): More effective
17192         implementation.
17193
17194         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
17195         depth as default, not the visual's.
17196
17197         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
17198         against empty title.
17199
17200         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
17201         IMAGE_PRIVATE_DATA.
17202
17203         * gdk/win32/gdkimage-win32.c: Use it.
17204
17205 2000-10-22  Robert Brady  <robert@suse.co.uk>
17206
17207         * configure.in: Check for bind_textdomain_codeset
17208
17209         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
17210         present, make use of it.
17211
17212         Add a translatable string "default:LTR" which, if translated
17213         to "default:RTL", will cause the default direction to be
17214         Right-to-Left.
17215
17216         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
17217         direction if marked as flippable.
17218
17219         * gtk/gtkhscale.c: Mark widget as flippable.
17220         
17221 2000-10-04  Havoc Pennington  <hp@redhat.com>
17222
17223         * gtk/testgtk.c (create_buttons): create some stock buttons
17224         with the default accel group
17225         (create_image): test some new GtkImage features
17226         (make_message_dialog): test GtkMessageDialog
17227         (create_modal_window): fix someone's bizzarro indentation
17228
17229         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
17230         GTK_WIN_POS_CENTER_ON_PARENT. 
17231         Add "destroy with parent" setting, which means the window goes
17232         away with its transient parent.
17233         (gtk_window_get_default_accel_group): get the default accel group
17234         for the window.
17235         (gtk_window_set_destroy_with_parent): set/unset destroy with
17236         parent flag
17237         (gtk_window_read_rcfiles): invalidate icon set caches
17238         after reloading rcfiles 
17239
17240         * gtk/gtkenums.h (GtkWindowPosition): add
17241         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
17242         on its parent window when the dialog is mapped for the first time.
17243
17244         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
17245         a simple message dialog class
17246         
17247         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
17248         handler to emit response signal, and maybe later it would
17249         honor a hide_on_delete flag - though that isn't there yet.
17250         Set border width on the vbox to 2, so we get some padding.      
17251         Use a button box for the action area.
17252         (gtk_dialog_key_press): synthesize a delete event if Esc
17253         is pressed and the GtkWidget key press handler didn't 
17254         handle the escape key.
17255         (gtk_dialog_new_with_buttons): new function creates a dialog
17256         with some default buttons in it.
17257         (gtk_dialog_add_action_widget): add an activatable widget
17258         as a button in the dialog - you can also add a non-activatable
17259         widget by accessing the action area directly.
17260         (gtk_dialog_add_button): add a simple button - stock ID or 
17261         label - to the action area
17262         (gtk_dialog_response): emit response signal
17263         (gtk_dialog_run): block waiting for the dialog, return 
17264         the response. Override normal delete_event behavior, so that 
17265         delete_event does nothing inside gtk_dialog_run().
17266         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
17267         emitted when an action widget is clicked or the dialog gets
17268         delete_event
17269
17270         * gtk/gtk.h: add gtkmessagedialog.h
17271
17272         * gtk/Makefile.am: add gtkmessagedialog.[hc]
17273
17274 2000-10-18  Havoc Pennington  <hp@redhat.com>
17275
17276         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
17277         where any number of empty lines would get skipped
17278
17279         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
17280         edge.
17281
17282         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
17283         warning about invalid iterators (explain more thoroughly)
17284         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
17285
17286         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
17287         big
17288
17289         * demos/*.c: Add error handling
17290
17291         * gtk/gtktextbuffer.c: don't modify const iterators
17292
17293         * gtk/gdk-pixbuf-loader.c: Add full error handling here
17294
17295         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
17296         on file load
17297
17298         * gtk/gtkiconfactory.c: Update to reflect addition of error
17299         handling to gdk-pixbuf loaders
17300
17301 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
17302
17303         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
17304         move to new modularized testgtk.
17305
17306 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
17307
17308         * gtk/gtktreeview.c: Draw the arrows correctly.
17309
17310         * gtk/gtktreemodel.c: Added user docs.
17311
17312         * gtk/gtk.h: remove gtktreedatalist.h.
17313
17314         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
17315         parent when generating my type.
17316
17317         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
17318         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
17319
17320 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
17321
17322         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
17323         GtkTreeModel from object to interface.
17324
17325 2000-10-16  Havoc Pennington  <hp@redhat.com>
17326
17327         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
17328         compilation
17329
17330 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
17331
17332         * gtk/gtktreeselection.c: Add API documentation to all public
17333         functions.
17334
17335         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
17336         functions.
17337
17338 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
17339
17340         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
17341         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
17342         docs to all public functions.
17343
17344         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
17345         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
17346         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
17347         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
17348         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
17349         issue.
17350
17351 2000-10-14  Robert Brady  <robert@suse.co.uk>
17352
17353         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
17354
17355 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
17356
17357         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
17358         values other then G_TYPE_STRING.
17359         * gtk/gtktreeselection.c: Minor commenting updates.
17360         * gtk/gtktreeview.c: Format updates.
17361
17362 2000-10-09  Tor Lillqvist  <tml@iki.fi>
17363
17364         * README.win32: Update.
17365
17366         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
17367         lines that had been deleted by mistake (?).
17368
17369         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
17370         also the case fg==white and bg==black (but still not randomly
17371         coloured cursors). Thanks to Wolfgang Sourdeau.
17372
17373         * gdk/win32/*.c: Silence gcc -Wall.
17374
17375         * gtk/gtk.def: Add missing entry points.
17376
17377         Fixes by Hans Breuer:
17378
17379         * gdk/makefile.msc
17380         * gdk/win32/makefile.msc: Update.
17381
17382         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
17383         some MSVC thing, presumably), cause breakpoint on failures. Add
17384         GDK_NOR case. Call g_log_set_always_fatal.
17385
17386         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
17387         should be pased by reference.
17388         
17389         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
17390         
17391         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
17392
17393         * gdk/win32/gdkevents-win32.c
17394         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
17395
17396         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
17397         implementation object.
17398
17399         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
17400         not just windows.
17401         
17402         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
17403         Use the wrapper object.
17404         
17405 2000-10-06  Havoc Pennington  <hp@redhat.com>
17406
17407         * Makefile.am (SRC_SUBDIRS): contrib subdir
17408
17409         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
17410         so it can be used in Xlib version
17411
17412         * demos/testpixbuf.c (update_timeout): error checking from 1.0
17413         tree
17414
17415         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
17416         change from 1.0 tree that returns first frame of animation
17417         if the loaded file is an animation.
17418
17419         * contrib: add new directory to hold stuff that comes with GTK+
17420         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
17421         
17422         * configure.in: add contrib/*
17423
17424 2000-10-05  Havoc Pennington  <hp@redhat.com>
17425
17426         * demos/testpixbuf-save.c: add pixbuf save test
17427
17428         * demos/Makefile.am: add testpixbuf-save.c
17429
17430 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
17431
17432         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
17433         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
17434         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
17435         * gtk/gtktreeselection.[ch]: Replaced
17436         "node_selected"/"node_unselected" signal with "selection_changed"
17437         signal.
17438
17439 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
17440
17441         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
17442         tree widget.
17443
17444 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
17445
17446         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
17447         drawing.
17448
17449 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
17450
17451         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
17452         Move list pointer forwards before removing item from
17453         list. (Crash reported by Salmaso Raffaele)
17454
17455         * gdk/gdkwindow.h: Remove spurious trailing ,
17456
17457         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
17458         dependencies on uninstalled libraries, sorry folks.
17459
17460 2000-10-04  Havoc Pennington  <hp@redhat.com>
17461
17462         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
17463         gtk/gtkiconfactory.c: Fix copyrights    
17464
17465         * demos/testpixbuf.c: add inline pixbuf test
17466         
17467 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
17468
17469         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
17470         Add gdk_window_iconify.
17471
17472         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
17473         (gdk_window_set_geometry_hints): Add win_gravity
17474         to geometry structure.
17475
17476         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
17477         Implement _NET_WM_PING.
17478
17479         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
17480         Set _NET_WM_PID on the client leader.
17481
17482         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
17483         Handle UTF-8 better.
17484
17485         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
17486         UTF-8 better, set _NET_WM_NAME as well. Only set
17487         icon name if it hasn't previously been explicitely 
17488         set.
17489
17490 2000-10-03  Havoc Pennington  <hp@redhat.com>
17491
17492         * gtk/testtextbuffer.c: clean up trailing whitespace,
17493         add extensive tests for tag toggle iteration.
17494         
17495         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
17496         distance
17497
17498         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
17499         optimize case where the tag root is on level 1
17500         (gtk_text_line_previous_could_contain_tag): attempt to implement
17501         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
17502         functionality
17503
17504         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
17505         Implement this, though not very efficiently.
17506
17507         * gtk/gtktextiterprivate.h: reformat
17508
17509         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
17510         iterator
17511
17512         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
17513         this to properly revalidate the iterators.
17514
17515         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
17516         properly at the end of the line (and therefore on empty lines)
17517
17518         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
17519         maybe we should return a value...
17520
17521 2000-10-03  Tor Lillqvist  <tml@iki.fi>
17522
17523         * config.h.win32: Guard definition of alloca(). glib.h now handles
17524         that.
17525
17526         * gdk/gdk.def
17527         * gtk/gtk.def: Add new entry points.
17528
17529         Changes just to make GTK+ build without errors on Win32. No hope
17530         of it working in its current state, though...:
17531         
17532         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
17533         some functions from the X11 backend, just to make GTK+ build.
17534
17535         * gdk/makefile.mingw.in
17536         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
17537         number. Add new object files.
17538
17539         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
17540         GetMessageTime to get timestamp (where on X11 uses
17541         gdk_x11_get_server_time()).
17542
17543 2000-10-02  Havoc Pennington  <hp@pobox.com>
17544
17545         * gtk/gtktextview.c: text_window_* weren't static and should have
17546         been.
17547         Start work on child widgets; not yet complete, syncing to 
17548         office computer.
17549
17550         * gtk/gtktextchild.h: change this to contain a public interface,
17551         starting work on child interfaces.
17552         * gtk/gtktextchildprivate.h: move private interfaces here
17553
17554         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
17555
17556         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
17557         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
17558         gtk/gtktextmark.c: copyright notices
17559
17560         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
17561         internal functions      
17562
17563         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
17564         internal function
17565
17566         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
17567         Reformatting    
17568
17569 2000-09-30  Havoc Pennington  <hp@pobox.com>
17570
17571         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
17572         NULL start/end pointers
17573
17574         * gtk/gtktextbuffer.c: Write some docs
17575         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
17576         NULL, so you can just check whether there's a selection.        
17577
17578         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
17579         cleanup_line or segments_changed ourselves, it gets done 
17580         in unlink_segment
17581
17582         * gtk/gtktextmark.h:
17583         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
17584         
17585         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
17586
17587         * gtk/gtktextmark.c: delete some more old Tk cruft
17588
17589         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
17590         mark before removing it, so we can emit MARK_DELETED with a valid
17591         pointer.
17592         (gtk_text_buffer_mark_set): hold ref across signal emission
17593
17594         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
17595         whining about attempts to delete special marks
17596
17597         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
17598         underscore, since it's internal.
17599
17600         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
17601         now implemented in terms of iterators in gtktextiter.h
17602
17603         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
17604         New function, destructively sets contents of buffer. Also 
17605         a convenient way to clear the buffer by setting text to ""
17606
17607         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
17608         multiline string literal
17609
17610         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
17611         text changes.
17612
17613         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
17614         is not dereferenceable
17615         (gtk_text_iter_forward_lines): fix return value
17616
17617 2000-09-29  Havoc Pennington  <hp@redhat.com>
17618
17619         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
17620
17621         * gtk/gtktextview.c: Implement drag thresholding; change functions 
17622         that set border window size to have nicer name
17623         (gtk_text_view_mark_set_handler):  Fix this to have the 
17624         right signature.
17625
17626         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
17627
17628         * gtk/testtext.c: Update with API changes, put line numbers on 
17629         both sides.
17630         
17631         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
17632         with this
17633
17634         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
17635         pixbuf; delete a big block of #if 0 Tk code
17636
17637         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
17638         insert_pixmap with insert_pixbuf
17639
17640 2000-09-29  Martin Baulig  <baulig@suse.de>
17641
17642         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
17643         confusion with the GdkPixbuf of the GNOME 1.x platform.
17644
17645 2000-09-29  Havoc Pennington  <hp@pobox.com>
17646
17647         * gtk/gtktextview.c: Implement the side windows.
17648
17649         * gtk/testtext.c: Implement simple line numbering in the 
17650         left side window; seems to make scrolling sloooow. Oops.
17651         Also, cursor blink is for some reason causing redraws
17652         of the line numbers. Should investigate...
17653
17654 2000-09-28  Havoc Pennington  <hp@redhat.com>
17655
17656         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
17657         scrolling child windows, and draw focus rectangle properly.
17658         
17659         (gtk_text_view_buffer_to_window_coords):
17660         Coordinate transformation to deal with all these freaking windows
17661         and offsets
17662         (gtk_text_view_window_to_buffer_coords): transform the other way
17663
17664         * gtk/testtext.c (create_buffer): Update to match Pango API change
17665
17666         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
17667         anonymous tags
17668         (foreach_unref): don't emit remove signal from finalize, just
17669         set tag's parent to NULL
17670
17671 2000-09-26  Havoc Pennington  <hp@redhat.com>
17672
17673         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
17674         Fix some warnings       
17675
17676 2000-09-26  Havoc Pennington  <hp@redhat.com>
17677
17678         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
17679         headers into the private header list
17680
17681         * Makefile.am (pkgconfig_DATA): install pkg-config files
17682
17683         * configure.in: add pkg-config files
17684
17685         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
17686
17687         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
17688         outstanding icon caches on theme change.
17689
17690         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
17691         important types:
17692
17693         (GtkIconSource): Specification for creating a pixbuf 
17694         appropriate for a direction/state/size triplet from 
17695         a source pixbuf or filename
17696
17697         (GtkIconSet): List of GtkIconSource objects that are used to
17698         create the "same" icon (e.g. an OK button icon), and cache for
17699         rendered icons
17700
17701         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
17702         up the icon set for a given stock ID.  GTK maintains a stack of
17703         GtkIconFactory to search, and applications or libraries can add
17704         additional icon factories on top of the stack
17705         
17706         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
17707         the set of GtkIconSource specified for a given stock ID into 
17708         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
17709         RcStyle, under the specified stock ID.
17710
17711         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
17712         render_icon used to derive a GdkPixbuf from a GtkIconSource.
17713         This allows people to theme how prelight, insensitive, etc. are
17714         done.
17715
17716         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
17717         icon factories for a style, and return the resulting 
17718         icon set if any.
17719
17720         (gtk_style_render_icon): Render an icon using the render_icon 
17721         method in the GtkStyleClass.
17722
17723         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
17724         Use the style for a given widget to look up a stock ID, get the
17725         icon set, and render an icon using the render_icon method 
17726         of the style
17727
17728         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
17729         (contains information about a stock item), the built-in stock item
17730         IDs, and functions to add/lookup stock items.
17731
17732         * gtk/stock-icons/*: Stock icons that come with GTK
17733
17734         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
17735         a button based on a GtkStockItem
17736         (gtk_button_new_accel): Takes a uline string and accel group, and
17737         installs the accelerator.
17738
17739         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
17740         image-display widget.
17741
17742 2000-09-25  Havoc Pennington  <hp@redhat.com>
17743
17744         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
17745
17746         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
17747         Fix a bug when removing node data, we didn't properly 
17748         re-splice the linked list after removing the data.
17749
17750         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
17751         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
17752
17753         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
17754
17755         * gtk/gtktextlayout.c (set_para_values): Set tab array 
17756         for the layout from the GtkTextTag.
17757
17758         * gtk/gtktexttypes.h: delete tab and search cruft, 
17759         remove g_convert() in favor of GLib version
17760
17761         * gtk/gtktexttypes.c: remove tab implementation from here,
17762         move to Pango
17763
17764         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
17765         tab stuff using new PangoTabArray from Pango
17766
17767         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
17768         unused border_width stuff
17769
17770 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
17771
17772         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
17773         glib) and now useless utf_to_latin1() latin1_to_utf()
17774
17775         * gtk/gtktextview.[ch]: Change ::move_insert and
17776         ::delete_text action signals to ::move and ::delete;
17777         create the signals with the right enumeration type,
17778         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
17779         C-v bindings, change Home, End to move to beginning/end
17780         of line, Add C-Home C-End to move to beginning/end
17781         of buffer. Change ::cut_text to ::cut_clipboard, etc;
17782         combine ::scroll_text into ::move; use new GtkSelectionData
17783         functions to simplify DND text handling.
17784         
17785         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
17786         deletion enumerations here, rename enumeration values to 
17787         be consistently plural.
17788
17789         * gtk/gtktextbuffer.c: Use new clipboard interfaces
17790         for cut/copy/paste and primary selection.
17791
17792         * gtk/gtktextbuffer.[ch]: Remove excess time and
17793         'interactive' arguments from cut/copy/paste;
17794         rename cut to cut_clipboard, etc; remove
17795         gtk_text_buffer_get_clipboard_contents().
17796
17797         * gtk/gtktextlayout.[ch]: Add 
17798         gtk_text_layout_move_iter_to_line_end() to move the iter to 
17799         line ends.
17800
17801         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
17802         Functions to set or get a UTF-8 string on the selection
17803         data.
17804
17805         * gtk/gtkclipboard.[ch]: New, simplified selection handling
17806         interfaces.
17807
17808         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
17809         created widgets - one of these is useless if we don't.
17810
17811         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
17812         a public function clear all targets registered for the
17813         widget.
17814
17815         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
17816         Never call gtk_widget_realize() - that was just asking
17817         for bizarre side-effects.
17818
17819         * gtk/gtkselection.c (gtk_selection_owner_set): Call
17820         gdk_selection_owner_set even if the widget is the
17821         same so that we reliably update the timestamp on
17822         the server.
17823
17824         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
17825         gdk_x11_get_server_time() function.
17826         
17827         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
17828         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
17829         Add some tricky filtering on serial numbers for
17830         selection clear events to fix up long-standard
17831         race condition FIXME's in gtkselection.c.
17832
17833         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
17834         routines to convert from utf8 to compound text or
17835         STRING and from a text property to UTF-8.
17836
17837         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
17838         a convenience function gdk_get_current_event_time().
17839
17840         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
17841         and free selection_data->data properly
17842
17843 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
17844
17845         * gtk/gtkthemes.c: Remove some unecessary includes.
17846
17847 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
17848
17849         * gtk/gtktextdisplay.c
17850         * gtk/gtktextlayout.c
17851         * gtk/gtktexttag.c
17852         * gtk/gtktexttag.h
17853         * gtk/testtext.c: Change the overstrike property to strikethrough,
17854         to closer match pango.
17855
17856 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
17857
17858         * gtk/gtktextview.c: Fix up visibility so that focus,
17859         cursor_visible and blink interact properly.  Reenable cursor blink
17860         which had been roughly disabled. Make blink and focus
17861         properly per-view.
17862
17863         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
17864         Add a flag for whether to display insertion cursor and
17865         a function to set the flag.
17866
17867         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
17868         get_line_y() to get_line_yrange(), to be a bit more generally
17869         useful.
17870
17871 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
17872
17873         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
17874           do stop_navigating_submenu, to clear last timeout properly.
17875           Also in gtk_menu_motion_notify move ignore_enter above
17876           the conditional to make it always happen as suggested by Owen
17877
17878 2000-09-07  Tor Lillqvist  <tml@iki.fi>
17879
17880         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
17881
17882         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
17883         w32api headers.
17884
17885         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
17886         declarations.
17887
17888         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
17889         (gdk_win32_get_colormap): A line had been deleted by mistake.
17890
17891         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
17892         (gdk_event_translate): Handle more virtual keycodes to be able to
17893         generate GDK events for Control-comma, Control-period, etc.
17894
17895         * gtk/gtk.def: Add some missing entry points.
17896
17897 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
17898
17899         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
17900         Doc comment fixing. (Mostly non-matching parameter names.)
17901
17902         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
17903         comments a little to avoid looking like a doc comment.
17904
17905         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
17906         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
17907         conversions be changed to GError?)
17908
17909         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
17910         Move private #defines into .c file.
17911
17912         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
17913         order of argument addition, remove duplicates.
17914
17915         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
17916         parent class is FrameClass, not BinClass.
17917
17918         * gtk/gtk.h: Add gtkinvisible, which was missing.
17919         (It's occasionalyl useful for client apps, if seldom.)
17920
17921         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
17922         #define.
17923
17924 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
17925
17926         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
17927         coordinates when creating window, instead of GDK-space
17928         coordinates. (Avoid BadValue on too large windows.)
17929
17930 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
17931
17932         * configure.in (use_mmx_asm): Remove conftest* after use along the
17933         lines of AC_TRY_COMPILE.        
17934         
17935         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
17936         of g_dirname, which is deprecated.
17937         (gtk_rc_parse_any): Removed calls to
17938         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
17939
17940         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
17941         Removed calls to g_hash_table_{freeze,thaw}, as they are
17942         deprecated now.
17943
17944         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
17945         instead of g_basename.
17946         
17947 2000-09-04 Elliot Lee <sopwith@redhat.com>
17948         
17949         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
17950         ANSI warning.
17951
17952 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
17953
17954         * gtk/gtkwidget.h:  Add some documenting comments about 
17955           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
17956           just as owen said on irc.
17957
17958         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
17959           set HAS_DEFAULT.  Only set it if there isn't another window
17960           holding it (a focus window which RECEIVES_DEFAULT) and only unset
17961           it if the widget is not the focused window with RECEIVES_DEFAULT.
17962           This fixes weird double default bugs in dialogs which has things
17963           call gtk_window_set_default at times.
17964
17965 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
17966
17967         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
17968         Nils Barth and David Santiago to improve submenu
17969         navigation. The patch does this by creating a triangular
17970         region from the point where the pointer leaves the
17971         menu to the submenu.  While the pointer is in
17972         that region and a timeout has not expired, events 
17973         that would cause the active submenu to change are
17974         ignored.
17975
17976 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
17977
17978         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
17979         moving a toplevel window immediately after sizing it would
17980         result in it being sized back to the old size since 
17981         impl->width, impl->height aren't updated until we hear
17982         back from the server. There is still a (longstanding) bug
17983         here that gdk_window_get_size() will give the wrong size
17984         until we do hear back.
17985
17986 2000-08-31  Havoc Pennington  <hp@redhat.com>
17987
17988         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
17989         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
17990         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
17991         Rename GtkTextStyleValues to GtkTextAttributes
17992
17993 2000-08-31  Havoc Pennington  <hp@pobox.com>
17994
17995         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
17996         for rapid testing whether an iterator is the end iterator
17997         (gtk_text_btree_new): init end line cache
17998         (gtk_text_line_is_last): use fast cached line to 
17999         see if we're the last line.
18000         (get_last_line): use cached line here too, should 
18001         speed up some random unrelated code.
18002         
18003 2000-08-30  Havoc Pennington  <hp@pobox.com>
18004
18005         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
18006         signals.
18007
18008         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
18009         delete_text signals. This allows the signals to be used for
18010         implementing undo.
18011
18012         * gtk/gtktextbuffer.c: Change signal handler signatures; 
18013         provide "interactive" argument when emitting insert_text or
18014         delete_text signal.
18015         
18016 2000-08-30  Havoc Pennington  <hp@pobox.com>
18017
18018         * gtk/gtktextbuffer.c: Docs
18019
18020 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
18021
18022         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
18023         from switch statements, since Tor removed the enumeration
18024         value.
18025         
18026         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
18027         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
18028
18029 2000-08-29 Elliot Lee <sopwith@redhat.com>
18030         * */*.h: Use G_GNUC_CONST.
18031
18032 2000-08-27  Havoc Pennington  <hp@pobox.com>
18033
18034         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
18035         minor indentation fixes, inserted some FIXME about stuff I
18036         realized was broken while documenting it.
18037         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
18038         GTK convention  
18039
18040 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
18041
18042         * gtk/testgtk.c (create_styles): Fix double free of
18043         font desc.
18044
18045 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
18046
18047         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
18048         
18049         * gtk/testgtk.c (create_styles): Add a test for modifying
18050         the style through gtk_widget_modify_*.
18051
18052         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
18053         a function to get the current modifier style.
18054
18055         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
18056         of the passed in GtkRcStyle instead of ref'ing it.
18057
18058         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
18059
18060 2000-08-20  Tor Lillqvist  <tml@iki.fi>
18061
18062         * gdk/gdkimage.h
18063         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
18064         shared memory image+pixmap GdkImage type, or
18065         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
18066         I am dropping that.
18067
18068         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
18069         actually call gtk_init_abi_check(), passing also
18070         sizeof(GtkWindow). Ditto for gtk_init_check(). 
18071
18072         * gtk/gtk.def
18073         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
18074         New functions, used to check that the GTK+-using code has been
18075         compiled using the correct compiler and switches. In particular,
18076         with gcc one has to use the -fnative-struct switch as GTK+ is
18077         compiled with that.
18078
18079 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
18080
18081         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
18082         ->prev fields when merging lists. (Found simultaneously
18083         by Pawel Salek and Jakub Jelinek)
18084
18085 2000-08-12  Tor Lillqvist  <tml@iki.fi>
18086
18087         * gdk/gdk.def
18088         * gtk/gtk.def: Add missing entries.
18089
18090         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
18091         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
18092
18093         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
18094         function. Dummy implementation at this point.
18095
18096         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
18097         rules. Undefine GTK_COMPILATION when compiling the test programs.
18098         
18099         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
18100
18101 2000-08-11  Tor Lillqvist  <tml@iki.fi>
18102
18103         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
18104         to convert back and forth from UTF-8 and the "system" (or "current
18105         locale") charset when necessary. Indentation/spacing cleanup.
18106
18107 2000-08-10  Havoc Pennington  <hp@redhat.com>
18108
18109         * Makefile.am (snapshot): Change the format of the snapshot
18110         version to match glib
18111
18112         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
18113         from EXTRA_DIST since it doesn't seem to exist
18114
18115 2000-08-10  Tor Lillqvist  <tml@iki.fi>
18116
18117         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
18118         version of the directory name (not the UTF-8 one) when building
18119         the path name to stat().
18120
18121 2000-08-03  Elliot Lee  <sopwith@redhat.com>
18122
18123         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
18124         PANGO_ATTR_SHAPE set.
18125
18126 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
18127
18128         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
18129         Peter Osterlund to simplify the code while keeping the
18130         functionality the same.
18131
18132 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
18133
18134         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
18135         is_viewable() test further inside the function, since removing the 
18136         window from the redraw list without clearing ->update_area
18137         was also very broken.
18138
18139 2000-08-02  Tor Lillqvist  <tml@iki.fi>
18140
18141         * configure.in: Check for <unistd.h>.
18142
18143 2000-08-01  Martin Baulig  <baulig@suse.de>
18144
18145         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
18146         to display the message that this is a development version of GTK+.
18147
18148 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
18149
18150         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
18151         was depending on widget->allocation instead of the width of text_area,
18152         which was incorrect for subclasses like GtkSpinButton.
18153
18154         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
18155         with width == 1 tests that should be width == -1.
18156
18157 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
18158
18159         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
18160         (broken, Elliot, every single window blank on X) custom code with call
18161         to gdk_window_is_viewable() which a) prevents code duplicate and
18162         b) works. 
18163
18164 2000-07-31  Elliot Lee  <sopwith@redhat.com>
18165
18166         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
18167         to get the GDK_PARENT_ROOT() macro to work.
18168         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
18169         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
18170         of, windows that aren't shown.
18171         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
18172         pointer grab stuff.
18173
18174 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
18175
18176         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
18177           s/gtk_main_iteration/g_main_iteration/
18178
18179           Did this already in change:
18180                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
18181           don't know how it got reverted.
18182
18183 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
18184
18185         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
18186         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
18187
18188         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
18189         not gdk_pixbuf.
18190
18191 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
18192
18193         * configure.in,po/{sp,sr}.po: Added Serbian files
18194
18195 2000-07-30  Tor Lillqvist  <tml@iki.fi>
18196
18197         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
18198
18199         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
18200         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
18201         GIOChannel implementation.
18202
18203         * gdk/win32/gdkinput.c
18204         * gdk/win32/gdkpango-win32.c: Update license name here, too.
18205
18206         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
18207         definition to match prototype.
18208
18209         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
18210
18211 2000-07-27  Elliot Lee  <sopwith@redhat.com>
18212
18213         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
18214         function, to allow handling image formats that cannot be detected
18215         by looking at content alone.
18216
18217 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
18218
18219         * docs/tutorial/*.gif *.jpg *.eps
18220           Update these to the same look-n-feel.
18221           Why does including images in DocBook suck so badly?
18222
18223 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
18224
18225         * gtk/gtktable.c: applied patch from Phil Thompson
18226         <phil@river-bank.demon.co.uk> that enables space settings for
18227         the last row/columns as well.
18228
18229 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
18230
18231         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
18232         updates the license headers to the GNU Lesser General Public License,
18233         as well as updating the copyright year to 2000.
18234
18235 2000-07-26  Robert Brady  <rwb197@zepler.org>
18236
18237         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
18238           and po/Makefile, was installing and looking for them under gtk20
18239           and gtk2 respectively.
18240
18241 2000-07-25  Havoc Pennington  <hp@redhat.com>
18242
18243         * gtk/testtext.c: Comment out some stuff that depends on the rest
18244         of my patches.
18245
18246 2000-07-25  Havoc Pennington  <hp@redhat.com>
18247
18248         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
18249         buffer
18250
18251 2000-07-25  Havoc Pennington  <hp@redhat.com>
18252
18253         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
18254         widget changes.
18255
18256         * gtk/gtktextview.h: To be consistent with usage of "line"
18257         throughout the API to mean "newline-terminated thingy", change
18258         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
18259         to MOVEMENT_LINE.
18260
18261         (GtkTextView): Add flags for default editability, and whether to
18262         show the cursor. Add functions to get/set that. Add 
18263
18264         (gtk_text_view_get_iter_location): new function
18265
18266         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
18267         gtktextlayout.h
18268         (g_convert): Add g_convert temporarily, will go in glib in a bit
18269         
18270         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
18271         GtkTextTagTableForeach instead of brokenly using GHFunc.
18272         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
18273
18274         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
18275         moved to public header.
18276
18277         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
18278         "invisible", since "elide" was a bad name.
18279         (gtk_text_tag_get_priority): Added
18280
18281         (GtkTextStyleValues): put this in public header, along with
18282         functions to use it.
18283
18284         * gtk/gtktextmarkprivate.h: Include more headers, since we no
18285         longer include gtktextbtree.h.
18286
18287         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
18288         gtk_text_mark_deleted
18289
18290         * gtk/gtktextlayout.h: Don't include the "really private" headers,
18291         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
18292         to make this possible. Now we only need to install
18293         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
18294         (However the Makefile.am isn't changed yet because of the
18295         logistics of merging gtk-hp-patches piecemeal)
18296
18297         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
18298         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
18299         gtk_text_iter_get_line is now used in the public API for a
18300         different purpose.
18301
18302         * gtk/gtktextiter.h: Clean up function names to be more
18303         consistent. Always call char offset "offset" and byte index
18304         "index". A "line" is always a line number. 
18305
18306         (gtk_text_iter_is_last): new function, more efficient than 
18307         the existing way to check
18308         (gtk_text_iter_is_first): new function, also more efficient
18309
18310         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
18311
18312         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
18313         gtk_text_iter_forward_char, etc.
18314
18315         (gtk_text_iter_forward_to_tag_toggle): Renamed from
18316         forward_find_tag_toggle, since this isn't a linear search
18317
18318         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
18319
18320         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
18321         New functions, search for a buffer substring.
18322
18323         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
18324         interactive and default editable (since we need to store that info
18325         until we receive the selection data).
18326
18327         Remove all the _at_char and at_line etc. versions of functions;
18328         only have iterator versions.
18329
18330         Add _interactive() versions of functions, that consider the
18331         editability of text. (FIXME add interactive flag to the 
18332         insert/delete signals per Darin's suggestion)
18333
18334         (gtk_text_buffer_get_tag_table): new function, demand-creates the
18335         tag table if necessary
18336
18337         Remove declaration of gtk_text_buffer_get_iter_from_string
18338
18339         (_gtk_text_buffer_get_btree): private/internal function, added.
18340         
18341
18342         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
18343         (gtk_text_line_is_last): new function
18344
18345 2000-07-25  Havoc Pennington  <hp@redhat.com>
18346
18347         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
18348         using GtkProgressBar. See Changes-2.0.txt for details.
18349
18350         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
18351         "pulse_step" which are the equivalent of
18352         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
18353         Implement new API.
18354         
18355         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
18356         (use_text_format) to mark whether text set on the progress bar is
18357         a format string. Deprecate entire GtkProgress interface.
18358
18359         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
18360         (gtk_progress_build_string): make this a no-op if use_text_format
18361         is FALSE
18362
18363         * docs/Changes-2.0.txt: Describe progress bar changes.
18364
18365 2000-07-25  Tor Lillqvist  <tml@iki.fi>
18366
18367         * Makefile.am: Include the build directory.
18368
18369         * configure.in: Generate build/Makefile, build/win32/Makefile,
18370         gdk/, gdk/win32/, and gtk/makefile.mingw.
18371
18372         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
18373         Add GETTEXT_PACKAGE.
18374         
18375         * gdk/gdk.def
18376         * gtk/gtk.def: Updates.
18377
18378         * gdk/gdkfont.h
18379         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
18380         need them any longer.
18381
18382         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
18383
18384         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
18385         PANGOWIN32_LIBS and gdk_pixbuf.
18386
18387         * gdk/win32: Compiles, but no doubt doesn't work at all.
18388
18389         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
18390
18391         * gdk/win32/gdkinput.c: New file, temporarily.
18392         
18393         * gdk/win32/gdkinput-win32.h: New file
18394
18395         * gdk/win32/gdkinputprivate.h: Remove.
18396
18397         * gdk/win32/gdkpango-win32.c: New file.
18398
18399         * gtk/makefile.mingw.in: New file
18400
18401         * gtk/makefile.cygwin: Removed
18402         
18403         * gtk/Makefile.am: Update accordingly.
18404
18405         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
18406         made externally visible.
18407
18408         * gtk/gtkmain.c: Use it.
18409         
18410         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
18411         is enough.
18412
18413         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
18414
18415 2000-07-24 Elliot Lee <sopwith@redhat.com>
18416         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
18417         individual backends already.
18418         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
18419         again. Yes, there really is a good reason for this, if you are using the gdkregion
18420         internals, and if you're not, why do you care?
18421         * gdk/gdkwindow.c: Fix inverted condition
18422         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
18423         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
18424         * gtk/gtkrange.c: Redraw trough when moving.
18425         * gtk/gtktypeutils.c: Fix warning by adding const cast.
18426         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
18427
18428 2000-07-23  Tor Lillqvist  <tml@iki.fi>
18429
18430         * configure.in: Check for mkstemp and sigsetjmp. Output
18431         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
18432
18433         More work on GDK for Win32. Still in an intermediate state.
18434
18435         * gdk/makefile.cygwin
18436         * gdk/win32/makefile.cygwin: Removed.
18437         
18438         * gdk/makefile.mingw.in
18439         * gdk/win32/makefile.mingw.in: New files.
18440
18441         * gdk/Makefile.am
18442         * gdk/win32/Makefile.am: Generate and distribute them.
18443
18444         * gdk/win32/gdkwindow-win32.h
18445         * gdk/win32/gdkdrawable-win32.h
18446         * gdk/win32/gdkpixmap-win32.h: New files.
18447
18448         * gdk/win32/gdkcolor-win32.c
18449         * gdk/win32/gdkcursor-win32.c
18450         * gdk/win32/gdkdrawable-win32.c
18451         * gdk/win32/gdkgc-win32.c
18452         * gdk/win32/gdkimage-win32.c
18453         * gdk/win32/gdkprivate-win32.h
18454         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
18455         Rename fields and variables called xcursor, xid, etc (these names
18456         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
18457
18458 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
18459
18460         * gtk/gtkentry.[ch]: Fix some problems with vertical
18461         alignment.
18462
18463         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
18464         char/byte confusion.
18465
18466 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
18467
18468         * gtk/gtktextview.c (changed_handler): Fix bug where
18469         redraw wasn't being done properly when height of
18470         dirty region changed.
18471
18472         * demos/Makefile.am: Remove various references to
18473         -lgmodule
18474
18475 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
18476
18477         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
18478         PangoAttrShape to reserve space for pixmaps, add 
18479         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
18480         in the display functions.
18481         
18482         * gtk/testgtk.c (create_layout): Set some more exotic
18483         scrolled window options
18484
18485         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
18486         Add function to set the shadow type of a window, to allow
18487         putting a shadow around widgets such as GtkLayout or GnomeCanvas
18488         which don't draw their own frame.
18489
18490 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
18491
18492         * docs/tutorial/package-db-tutorial.sh: New file for
18493           packaging DocBook format tutorial
18494
18495 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
18496
18497         * docs/tutorial/gtk-tut.sgml: Minor updates
18498
18499         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
18500
18501 2000-07-19  Tor Lillqvist  <tml@iki.fi>
18502
18503         * gtk/gtksignal.c: Fix C++ comment.
18504
18505         * gtk/gtkimmulticontext.c
18506         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
18507         don't return value from void functions.
18508
18509         * gtk/gtk.def: Add gtk_rc_style_unref.
18510
18511 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
18512
18513         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
18514         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
18515         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
18516         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
18517         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
18518         gtk/gtktypeutils.h: Include files outside of the extern "C"
18519         block. Makes some C++ compiler happy. Reported by Denis Vakatov
18520         <vakatov@peony.nlm.nih.gov>.
18521
18522 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
18523
18524         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
18525           Completes first pass. Hurrah!
18526
18527 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
18528
18529         * docs/tutorial/gtk-tut.sgml: More clean ups.
18530
18531 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
18532
18533         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
18534         paint the background of the text area which was accidentally
18535         removed at some point.
18536
18537         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
18538           
18539          - Move most of the functionality from the theme vtable
18540            into GtkRcStyleClass and GtkStyleClass. The moved
18541            vtable functions were changed a bit in the move to
18542            work better in their new home.
18543
18544          - Get rid of the engine and engine_data fields from
18545            GtkRcStyle and GtkStyle; instead the theme
18546            engine derives theme-specific subclasses of GtkRcStyle
18547            and GtkStyle
18548
18549          - Add extra dlsym() found entry point to themes,
18550            theme_create_rc_style().
18551
18552         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
18553         in gtk_style_real_copy.
18554
18555         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
18556         to register a type associated with an engine. (The engine
18557         won't be unloaded as there is an instance of the type.)
18558
18559
18560 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
18561
18562         * docs/tutorial/gtk-tut.sgml: Clean ups.
18563
18564 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
18565
18566         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
18567           of cleaning up to do.
18568
18569 2000-07-15  Tor Lillqvist  <tml@iki.fi>
18570
18571         * gdk/testgdk.c: New file, quick hack to test backends for
18572         pixel-by-pixel correctness of the most simple graphic operations.
18573
18574 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
18575
18576         * Really release 1.3.1
18577         
18578         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
18579         include structure.
18580
18581 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
18582
18583         * Released 1.3.1
18584
18585 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
18586
18587         * gtk/gtktextlayout.c: use FALSE for size_only most
18588         of the time when calling gtk_text_layout_get_line_display()
18589         to avoid causing double reshapes when a redraw follows
18590         immediately after.
18591
18592 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
18593
18594         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
18595         appropriate region and gdk_window_process_updates() so trough
18596         updating doesn't lag behind the window being scrolled.
18597
18598         * gdk/gdkgc.c: Make parent_class pointer static.
18599          
18600 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
18601
18602         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
18603         include <string.h>.
18604          
18605         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
18606         cut-and-paste error in computing memory offset for 4 channels.
18607
18608 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
18609
18610         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
18611         gtk_rc_append_default_pixmap_path(), since it wasn't
18612         adding an interesting path and we don't have a meaningful
18613         default for this value.
18614
18615 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
18616
18617         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
18618         gtk-config to gtk-config-2.0 move gtk_.m4 to
18619         gtk-2.0.m4
18620
18621         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
18622         gdk/Makefile.am demos/Makefile.am: Change 
18623         library names to libgtk-1.3.la, etc, so that we
18624         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
18625
18626         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
18627         gdk/Makefile.am gdk/x11/Makfile.am
18628         Move include files into /usr/include/gtk-2.0, 
18629         /usr/lib/gtk-2.0/include/
18630          
18631         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
18632         gtk/gtkintl.h: Change package for gettext from 
18633         gtk+ to gtk20. Put hack in autogen.sh to modify
18634         po/Makefile.in.in after gettextize to make this
18635         possible.
18636
18637         * gtk+.spec: Some updates, not tested.
18638
18639         * gdk-pixbuf/Makefile.am: Move loaders into
18640         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
18641
18642         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
18643         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
18644         to THEMENAME/gtk-2.0/. Move engine directory  to
18645         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
18646         
18647 2000-07-12  Tor Lillqvist  <tml@iki.fi>
18648
18649         Win32 changes, still doesn't build though.
18650
18651         * gdk/makefile.cygwin
18652         * gdk/win32/makefile.cygwin
18653         * gtk/makefile.cygwin: Updates.
18654
18655         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
18656         default values for fg and bg pixel as X11 does (0 and 1), not
18657         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
18658         Use 0 for pen width by default (treated as 1 anyway later, but for
18659         apps that might check the value in the GdkGC).
18660         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
18661         interface to gdk_gc_predraw and _postdraw.
18662
18663         * gdk/win32/gdkwin32.h
18664         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
18665
18666         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
18667         extraneous semicolon.
18668
18669         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
18670
18671         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
18672         not the Win32 bitspixel value.
18673
18674         * gdk/win32/gdkcc-win32.c:
18675         * gdk/win32/gdkcolor-win32.c 
18676         * gdk/win32/gdkprivate-win32.h
18677         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
18678         GDK object structure.
18679
18680 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
18681
18682         * docs/tutorial/gtk_tut_12.es.sgml (name): 
18683         * docs/tutorial/gtk_tut_it.sgml (name): 
18684         * docs/tutorial/gtk_tut_fr.sgml (name): 
18685         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
18686         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
18687
18688 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
18689
18690         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
18691           small changes.
18692
18693 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
18694
18695         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
18696         a bug here, never been here and never fixed anything ;(
18697         (don't segfault if tree->root_tree is NULL, which happens prior
18698         to widget realization, but puke instead).
18699
18700 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
18701
18702         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
18703         add the necessary tokens.
18704
18705         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
18706         (gtk_rc_style_to_style): copy thicknesses.
18707         (gtk_rc_init_style): apply thicknesses.
18708         (gtk_rc_parse_style): parse xthickness and ythickness.
18709
18710         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
18711
18712         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
18713         (gdk_window_new): 
18714         (_gdk_windowing_window_init): 
18715         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
18716         (gdk_pixmap_create_from_data): 
18717         (gdk_bitmap_create_from_data): 
18718         (gdk_pixmap_new): 
18719         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
18720         (gdk_image_new): 
18721         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
18722         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
18723         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
18724         (gdk_colormap_get_system): 
18725         (gdk_colormap_new): 
18726         * gdk/gdkwindow.c (gdk_window_init): 
18727         * gtk/gtkstyle.c (gtk_style_new):
18728         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
18729         * gdk/gdkpixmap.c (gdk_pixmap_init): 
18730         * gtk/gtkrc.c (gtk_rc_style_new):
18731         use g_object_new() instead of g_type_create_instance() which
18732         is a private function for fundamental type implementations.
18733
18734 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
18735
18736         * configure.in: Add check for db2html
18737
18738 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
18739
18740         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
18741         hack to set glib_debug_objects based on gtk_debug_flags.
18742
18743 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
18744
18745         * INSTALL.in: Update the Prerequisites section.
18746
18747         * Makefile.am demos/Makefile.am docs/Makefile.am
18748         docs/tutorial/Makefile.am gdk/x11/Makefile.am
18749         gdk/linux-fb/Makefile.am: Dist fixes
18750
18751 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
18752
18753         * NEWS: 10,000 foot view of 1.3.1 changes.
18754
18755 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
18756
18757         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
18758         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
18759         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
18760         gdk/x11/gdkmain-x11.c: 
18761
18762         Patch from George Lebl to add a GdkGrabStatus enumeration to use
18763         as a return value of gdk_*_grab(). Previously, we just
18764         returned the X11 values directly.
18765
18766 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
18767
18768         * gdk/x11/Makefile.am: Patch from George Lebl to 
18769         install all the headers in the right place.
18770
18771 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
18772
18773         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
18774           initial conversion to DocBook.
18775
18776 2000-07-04  Tor Lillqvist  <tml@iki.fi>
18777
18778         * README.win32: Improve a bit.
18779
18780         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
18781         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
18782         Alt+0nnn on the numpad (used to enter characters by numeric code
18783         from current DOS or ANSI codepage) working correctly, as in other
18784         Windows apps.
18785
18786         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
18787         same argument validity tests as in X11 version.
18788         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
18789
18790         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
18791         definitions in case missing from headers.
18792
18793         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
18794         destroy the window-specific cursor.
18795         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
18796         calling GetModuleHandle(NULL).
18797         (gdk_window_set_cursor): Reworked to always copy the passed cursor
18798         with CopyCursor before setting it as the window-specific
18799         cursor. It is OK for the caller to destroy the GdkCursor (and thus
18800         also its Windows cursor) after calling this function. Destroy any
18801         previous window-specific cursor.
18802
18803 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
18804
18805         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
18806         font charset is iso8859-1, not iso-8859-1.
18807
18808 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
18809
18810         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
18811         Use g_get_charset() instead of g_get_codeset().
18812
18813         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
18814         Comment out some strdup'ing functions to keep timj
18815         happy until we finish fighting this out.
18816
18817 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
18818
18819         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
18820         <= width or height.
18821
18822         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
18823         from 1.2 for parent/child states.
18824
18825         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
18826         of typos.
18827
18828         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
18829         event structures, replace with a generic axes field. Replace 
18830         deviceid/sourec with GdkDevice *device.
18831
18832         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
18833         to extract particular axis use value from event. (Also
18834         can be used for normal X/Y.)
18835
18836         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
18837         allow for arbitrary number of axes, namespace everything
18838         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
18839         everywhere.
18840
18841         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
18842         Get rid of the gdk_input_vtable setup if favor of simply
18843         defining the functions in gdkinput-none/gxi/xfree.c in
18844         a similar fashion to the way that the port structure is 
18845         done.
18846
18847         * gtk/gtkdnd.c: Fix fields of synthesized button press event
18848         for new event structures. 
18849
18850         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
18851         new device interfaces.
18852
18853 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
18854
18855         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
18856         set the initial text.
18857
18858         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
18859         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
18860         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
18861         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
18862
18863         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
18864         pango_layout_set_font_description to simplify.
18865
18866 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
18867
18868         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
18869         pango_layout_set_font_description to simplify.
18870
18871 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
18872
18873         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
18874         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
18875         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
18876
18877         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
18878         PANGO_PIXELS() macro.
18879
18880 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
18881
18882         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
18883         that returns a PangoContext owned by the widget and updated to
18884         match future changes in the widget. Also, make 
18885         gtk_widget_create_pango_layout() use this context. If we ever
18886         add a ::changed signal to PangoContext, this will make things
18887         much more convenient. 
18888
18889         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
18890         in the appropriate places instead of destroying the layouts and
18891         creating new ones.
18892
18893         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
18894         in a few strategic places.
18895
18896 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
18897
18898         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
18899         gtk_widget_size_request() on reparented child, if one. Otherwise,
18900         queue_resize() on the child never results in it getting size-requested
18901         at all.
18902
18903         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
18904         in option menus, so that (with luck) people won't copy it into
18905         their apps in the future.
18906
18907         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
18908         to gtk_option_menu_calc_size. This isn't perfect, but should fix
18909         a lot of problems with changing the size of the menu's menu
18910         items after adding it to the option menu.
18911
18912         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
18913
18914         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
18915         the text direction for a widget changes.
18916
18917         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
18918         ::direction_changed to get rid of various hacks.
18919
18920 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
18921
18922         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
18923         name.
18924
18925 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
18926
18927         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
18928         flag to the structure. Do not call XFreePixmap on pixmaps created
18929         by gdk_pixmap_foreign_new().
18930
18931 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
18932
18933         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
18934         value using GdkRGB functionality given GdkColormap and GdkColor.
18935         (name not final, waiting for inspiration.)
18936         
18937         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
18938         set the foreground/background of a GC using the GC's colormap
18939         and GdkRGB. (name not final, waiting for inspiration.)
18940
18941         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
18942         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
18943
18944         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
18945         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
18946         purely a function of the corresponding colormap. Make
18947         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
18948
18949         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
18950         gdk_pixbuf_*create_from_xpm_* in terms of
18951         gdk_pixbuf_new_from_xpm_data(), move into platform independent
18952         code.
18953
18954         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
18955         advantage of the new draw_rgb_32_image_dithalign.
18956
18957         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
18958
18959         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
18960         on each created GC.
18961
18962         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
18963
18964         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
18965         which we initialize from the drawable when the GC is created,
18966         if the drawable has a colormap.
18967
18968         * gdk/x11/gdkgc-x11.c: include string.h for memset.
18969
18970         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
18971
18972         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
18973
18974 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
18975
18976         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
18977         actually returning expose events, make sure to set
18978         the count field properly.
18979
18980         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
18981         accidentally reintroced bug which always cleared
18982         the graphics_exposures value. 
18983
18984 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
18985
18986         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
18987
18988 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
18989
18990         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
18991
18992 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
18993
18994         * docs/faq/gtk-faq.sgml: Start of Section 6.
18995
18996 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
18997
18998         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
18999         
19000         (Fixes problem with drawing childless frames. Pointed out
19001         by and a first patch from Anders)
19002         
19003         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
19004         compute a child_allocation, even if we don't have a child.
19005
19006         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
19007         Always chain to the parent's impl, even if we don't have a child.
19008
19009 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
19010
19011         * gdk/gdkrgb.c: If possible, create only a single shm segment and
19012         use multiple parts of it instead of creating a bunch of separate
19013         segments, since the maximum number of segments per system is not
19014         large. (This might be worth backporting to GTK+-1.2.x if we make a
19015         new release )
19016
19017         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
19018         structure in preparation for per-colormap GdkRGB.
19019
19020         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
19021         to False when we get EINVAL from shmget so that the caller of
19022         gdk_image_new can retry with a smaller segment size.
19023
19024 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
19025
19026         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
19027
19028 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
19029
19030         * configure.in: make the current version number 1.3.1 (binary age 0,
19031         interface age 0).
19032         
19033         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
19034         gtkcompat.h is all we want.
19035
19036         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
19037         GLib primitive types. fixed g_type_register_fundamental() argument
19038         ordering.
19039
19040         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
19041         compiles.
19042
19043         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
19044         object code cleanup, comment trigraph fixes, etc...
19045
19046 2000-06-23  Havoc Pennington  <hp@redhat.com>
19047
19048         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
19049         instead of making up a bogus name for first_para_mark
19050
19051         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
19052         0 as a context ID
19053
19054 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
19055
19056         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
19057
19058 2000-06-21  Havoc Pennington  <hp@pobox.com>
19059
19060         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
19061         we didn't check window->bg_pixmap != GDK_NO_BG.
19062
19063         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
19064         gdk-pixbuf
19065
19066 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
19067
19068         * docs/faq/gtk-faq.sgm: Move file to here.
19069           TODO: Update Makfile.am 
19070
19071 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
19072
19073         * docs/gtk-faq.sgm: Add Section 2
19074
19075 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
19076
19077         * docs/gtk-faq.sgm: New file. Start of DocBook
19078           version of the FAQ.
19079
19080 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
19081
19082         * configure.in (GDK_PIXBUF_MAJOR): Define version
19083         numbers for GDK_PIXBUF_*, as they get substituted
19084         into a header file. Need to consider versioning
19085         for gdk-pixbuf more carefully later.
19086
19087 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
19088
19089         Work with srcdir != builddir.   
19090         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
19091         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
19092         * demos/testpixbuf.c: Likewise.
19093         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
19094         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
19095         <gdk/x11/gdkx.h>.
19096         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
19097         "gdk-pixbuf.h".
19098         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
19099
19100 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
19101
19102         * TODO.xml: Change 1.4 version numbers to 2.0.
19103
19104 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
19105
19106         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
19107         fixups to GTK+ standard.
19108
19109 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
19110
19111         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
19112         gdk-pixbuf.
19113
19114         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
19115         fixups for GObject.
19116
19117         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
19118         gdk-pixbuf with GDK dependencies moved into GDK.
19119         
19120         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
19121         move gdk-pixbuf-loader here until GObject has signals.
19122
19123         * demos/: New directory of demos. Move demos from
19124         gdk-pixbuf here.
19125
19126         * demos/pixbuf-init.c: Small bit of code to check for
19127         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
19128         set GDK_PIXBUF_MODULEDIR appropriately.
19129
19130         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
19131         define which no longer makes sense.
19132
19133 2000-06-21  Havoc Pennington  <hp@redhat.com>
19134
19135         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
19136         gtk_get_default_language
19137
19138         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
19139         new function to get the default language
19140
19141         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
19142         s/gtk_text_view_style_values/gtk_text_style_values/
19143
19144         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
19145         Add a "language" field to tags.
19146
19147         (gtk_text_tag_set_arg): Fix bug in setting
19148         "bg_full_height_set" tag.
19149
19150 2000-06-21  Havoc Pennington  <hp@redhat.com>
19151
19152         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
19153         in the interfaces
19154
19155         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
19156         stuff instead when possible.
19157
19158         * gtk/gtktexttypes.h: Delete some unused constants
19159
19160         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
19161         testtextbuffer.c: use glib instead of custom unicode routines
19162
19163 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
19164
19165         * docs/es/: Removed mistakenly added generated sgml
19166
19167         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
19168         Remove outdated info files.
19169
19170         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
19171         Moved tutorial files into subdir
19172
19173         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
19174         subdir.
19175
19176         * docs/man/gtk_button.pod: Remove. (contents will be
19177         integrated into gtk-reference button page.)
19178
19179         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
19180         docs/faq/Makefile.am: Adjust for new organization
19181
19182 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
19183
19184         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
19185         not $(MKINSTALLDIRS)
19186
19187 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
19188
19189         * gtk/testgtk.c (create_text): Finish the job Elliot started
19190         of removing font setting test for text widget. (Since text widget
19191         and GdkFont are not deprecated, and cause portability problems.)
19192
19193 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
19194
19195         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
19196         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
19197         Remove use of libunicode in favor of new GLib functions.
19198
19199         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
19200         nano-x, framebuffer. The X11 include is just a hack until we get
19201         the necessary functions in gdkcolor.h, so there is no reason to
19202         add other includes of platforms.
19203
19204         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
19205         window bigger than the screen change.
19206
19207         * gtk/testgtk.c: Revert some random changes from Elliot
19208         that had no particular point and were causing testgtkrc
19209         not to function correctly.
19210         
19211         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
19212         because GdkSegment and GdkRegionBox have the same fields,
19213         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
19214         results in clearer code.
19215
19216         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
19217         gdk_input_translate_coordinates): Fix missed GdkObjectification
19218
19219 2000-06-18  Elliot Lee  <sopwith@redhat.com>
19220
19221         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
19222         * gtk/gtk{plug,socket}.h: Missed commits from previous.
19223
19224 2000-06-20  Havoc Pennington  <hp@redhat.com>
19225
19226         * modules/linux-fb/Makefile.am: Make this compile
19227         without framebuffer enabled
19228
19229         * gdk/linux-fb/Makefile.am: Add conditional to not build
19230         framebuffer unless specified in configure
19231
19232         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
19233         the size of the target instead of source if -1 was passed for
19234         width/height
19235
19236         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
19237         width/height confusion.
19238
19239 2000-06-19  Havoc Pennington  <hp@redhat.com>
19240
19241         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
19242         GDK_DRAWABLE_XID. In the future, we probably want to make it
19243         faster with G_DISABLE_CHECKS turned on.
19244
19245 2000-06-14  Havoc Pennington  <hp@redhat.com>
19246
19247         * gdk/Makefile.am: add gdkpixmap.c
19248
19249         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
19250         s/gdk_image_init/_gdk_windowing_image_init
19251
19252         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
19253         ref/unref
19254
19255         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
19256
19257         * gdk/gdkcompat.h: remove GdkWindowType compat, since
19258         GdkWindowType is now non-deprecated; 
19259         change gdk_window_get_type() compat to be
19260         gdk_window_get_window_type().
19261
19262         * gdk/gdkdnd.h: make GdkDragContext a GObject.
19263
19264         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
19265         virtual GObject. Make all functions call into the vtable.
19266         Move gdk_image_put() guts in here. Remove GdkDrawableType
19267         and gdk_drawable_get_type(), these are now GdkWindow-specific.
19268         draw_image, get_depth, get_size, set_colormap, get_colormap,
19269         get_visual added to the vtable.
19270         
19271         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
19272         GObject. Virtualize everything. 
19273         (gdk_gc_new_with_values): remove check for destroyed window,
19274         because now GdkWindow::create_gc will check this.
19275         (gdk_gc_set_values): New function to set GC values, this 
19276         was already implemented but wasn't in the header
19277
19278         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
19279
19280         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
19281         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
19282         remove _gdk_window_class; add _gdk_window_impl_get_type() and
19283         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
19284         _gdk_windowing_window_init, rename gdk_image_init to
19285         _gdk_windowing_image_init.
19286         
19287         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
19288         (gdk_draw_layout): Remove check for destroyed window, 
19289         because all the drawable methods already check it.
19290         
19291         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
19292         Add gdkpixmap.c which contains implementation of GdkDrawable
19293         virtual table (by chaining to a platform-specific implementation
19294         object).
19295         
19296         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
19297         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
19298         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
19299         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
19300         GdkColormapPrivate. 
19301
19302         * gdk/gdktypes.h: #include <glib-object.h>
19303
19304         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
19305         Move most functionality to platform-specific implementation
19306         object. GdkWindow itself now handles the backing store, then
19307         chains to the platform-specific implementation.
19308         (gdk_window_get_window_type): return GdkWindowType of the window.
19309         (gdk_window_peek_children): New routine, returns the children of 
19310         a GdkWindow
19311         (gdk_window_get_children): Was in X11-specific code and did 
19312         XQueryTree. Changed to simply return a copy of window->children; 
19313         so it can go in cross-platform code.
19314         
19315         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
19316
19317         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
19318         GdkColormap; just changed to use the new private data instead
19319         of casting to GdkColormapPrivate.
19320
19321         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
19322         gdk_cursor_new().
19323
19324         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
19325         (private data member in the GObject). 
19326         (xdnd_manager_source_filter): Function had broken 
19327         error handling, fix it (use gdk_error_trap_push).
19328
19329         * gdk/x11/gdkdrawable-x11.c: This file now implements
19330         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
19331         base class is purely for the convenience of the X port,
19332         and not part of the interface to cross-platform GDK.
19333
19334         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
19335         
19336         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
19337         specific to X, and returned by the create_gc virtual method
19338         of GdkDrawableImplX11. 
19339         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
19340         rather than gchar, this was also changed in the GdkGC vtable.
19341         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
19342         mask is 0, return immediately, instead of checking every flag.
19343         This is faster, and keeps us from segfaulting if values is NULL
19344         and the mask contains some nonzero flags.
19345
19346         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
19347         GdkWindow.
19348
19349         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
19350         GdkWindowPrivate is gone.
19351
19352         * gdk/x11/gdkim-x11.c: rename things that got renamed.
19353
19354         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
19355         remove the image_put stuff that got transferred to GdkDrawable.
19356         
19357         * gdk/x11/gdkinput.c: renamings
19358
19359         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
19360
19361         * gdk/x11/gdkpixmap-x11.c: GObject conversion
19362
19363         * gdk/x11/gdkprivate-x11.h: indentation fixes
19364
19365         * gdk/x11/gdkproperty-x11.c: renamings
19366
19367         * gdk/x11/gdkselection-x11.c: renamings
19368
19369         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
19370         implements the platform-specific "impl" object.
19371         Moved gdk_window_get_children to gdk/gdkwindow.c
19372
19373         * gdk/x11/gdkx.h: Remove all the private structs and private datas
19374         that no longer exist. Add declaration of GdkGCX11 object here.
19375         Fix all the macros to still work. 
19376
19377         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
19378         GdkDragContext from the boxed types since they are now GObjects.
19379
19380         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
19381         moved xthickness/ythickness into the instance. GtkStyleClass
19382         functions are now in the standard vtable for GtkStyle, so you have
19383         to create a GObject subclass to write a theme engine.
19384         (gtk_style_copy): fixed a leaked PangoFontDescription
19385         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
19386         can be the standard GObject function.
19387         
19388         * Throughout GTK:
19389         s/style->klass->[xy]thickness/style->[xy]thickness
19390         s/pango_layout_unref/g_object_unref/
19391
19392         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
19393         
19394         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
19395         accessing GDK internals.
19396
19397         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
19398         accessing GDK internals.
19399
19400 2000-06-18  Elliot Lee  <sopwith@redhat.com>
19401
19402         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
19403
19404         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
19405         problem by calculating event position relative to the trough
19406         rather than the slider.
19407         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
19408
19409         * gdk/gdkgc.h: Add GDK_NOR.
19410
19411         * configure.in, Makefile.am: Add modules top level dir
19412         * configure.in: Only use pangox library if building x11 target.
19413         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
19414
19415 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
19416
19417         * gtk/gtkcolorsel.c: Change private class member to be named
19418         private_data throughout the file.
19419
19420         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
19421         private_data to avoid clashing with keyword.
19422
19423 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
19424
19425         * gdk/gdkdnd.h: Add comment to remove warning.
19426
19427 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
19428
19429         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
19430         Byelorussian language; changed the Makefile and file names 
19431         to reflect that.
19432
19433 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
19434
19435         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
19436         rather than gdk_window_hide; this makes things work
19437         correctly if the window is programmatically hidden while
19438         iconified.
19439
19440 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
19441
19442         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
19443         cut and paste typo where wrong pixmap was being
19444         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
19445
19446 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
19447
19448         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
19449         Add helper function to compute format / bytes 
19450         relationship. Use in a couple places to fix up
19451         errors which assume 8 * format.
19452
19453         * gtk/gtkselection.c (gtk_selection_request): Use 32
19454         rather than 8 * sizeof (GdkAtom), to work correctly
19455         on Alpha.
19456
19457 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
19458
19459         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
19460         libgtk.la
19461         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
19462         versions
19463
19464         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
19465         checking macros return NULL since the function has a return value.
19466
19467 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
19468
19469         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
19470         GTK+ from building at all.
19471
19472         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
19473
19474 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
19475
19476         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
19477         gtk/Makefile.am: make it possible to configure gtk for different
19478         targets on the same platform. The library name is now 
19479         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
19480         flag. Only the x11 target compiles right now.
19481         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
19482         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
19483         * gdk/nanox/gdk*generic*: delete generic region code.
19484         * gdk/linux-fb/gdk*generic*: delete generic region code.
19485         * README.nanox: update information.
19486         
19487 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
19488
19489         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
19490         prepend not append. (Pointed out by Brett Hall.)
19491
19492 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
19493
19494         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
19495
19496 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
19497
19498         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
19499         need this later, and this makes sure that the atexit for
19500         glib gets called after that for GDK, so atexits are
19501         properly ordered for object leak checking.
19502
19503         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
19504
19505         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
19506         pango_x_shutdown_display()
19507
19508         * gtk/simple.c (main): Close window on destroy.
19509
19510 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
19511
19512         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
19513         to treat initial creation different from setting with 
19514         regards to the graphics-exposures parameter, so add a parameter
19515         indicating whether this is initial or not.
19516
19517 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
19518
19519         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
19520         to sort of work by adding an extra return_exposes arg
19521         to gdk_event_translate() - it might be better to simply
19522         deprecate the function altogether and force people to rewrite
19523         without it. gdk_window_scroll() handles most of it, and where
19524         gdk_window_scroll() doesn't work, simply redrawing more does.
19525
19526         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
19527         assertion.
19528
19529         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
19530
19531         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
19532         bunch of pretty much useless /* Print debugging info */ comments 
19533         which had drifted away from the code they were commenting.
19534
19535 2000-06-02  Havoc Pennington  <hp@pobox.com>
19536
19537         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
19538         is in working order.
19539         
19540         * gtk/testtext.c: Change to reflect anonymous mark API
19541
19542         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
19543
19544         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
19545         field, which was unused.
19546
19547         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
19548         saves some typing.
19549
19550         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
19551
19552         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
19553         flag on the insertion point and selection bound
19554
19555         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
19556         make mark-manipulation functions take a GtkTextMark* instead of a
19557         mark name.
19558         
19559         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
19560         GtkTextMarkBody; will be used to detect attempts to delete
19561         the permanent marks (insert and selection bound)
19562
19563         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
19564
19565 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
19566
19567         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
19568         flag to on.
19569
19570         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
19571         Honor DOUBLE_BUFFRED_FLAG
19572
19573         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
19574         function to set the DOUBLE_BUFFERED flag.
19575
19576         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
19577         or not exposes done on the widget should be double-buffered.
19578
19579         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
19580         to be what would be expected. (Fixes problem with a
19581         g_return_if_fail() validating a TextDirection enumeration)
19582
19583 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
19584
19585         * gtk/gtkwidget.c: Remove all references to 
19586         offscreen flag which was no longer used.
19587
19588         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
19589
19590         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
19591         for non-null label_widget->parent.
19592
19593         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
19594         which no longer was used.
19595
19596         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
19597
19598         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
19599         for null arguments.
19600
19601         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
19602         check for destroyed windows.
19603
19604 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
19605
19606         * gtk/gtkimmulticontext.c: Add a finalize method and unref
19607         the slave context there.
19608
19609         * gtk/gtkinvisible.[ch]: Make reference counting behavior
19610         identical to GtkWindow.
19611
19612 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
19613
19614         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
19615         pangox to here, so we can write them independent of rendering
19616         system, using GDK primitives.
19617
19618         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
19619         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
19620         since we have a rendering-system independent implementation in
19621         terms of draw_glyphs().
19622         
19623         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
19624         function to render a single line.
19625
19626         * gdk/x11/gdkpango.c: Move the guts of this file mostly
19627         into ../gdkpango.c, which simplifies things, since we
19628         don't have to deal with raw X gc's.
19629
19630 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
19631
19632         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
19633         get the logical attributes for a given GtkTextLine.
19634
19635 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
19636
19637         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
19638         g_locale_get_codeset() to g_get_codeset() change.
19639
19640 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
19641
19642         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
19643         descriptions.
19644
19645         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
19646         the entry.
19647
19648         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
19649         redoing (vastly simplifying) for Pango. Still needs quite
19650         a bit of work. (Size selection is currently poor. List of 
19651         predefined sizes is not a good idea, since all of these
19652         sizes won't necessarily be distinct.)
19653
19654 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
19655
19656         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
19657         CODESET results for LANG=C.
19658
19659 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
19660
19661         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
19662         which takes a stringized pango font description;
19663         ignore the older 'font' and 'fontset' declarations.
19664
19665         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
19666         field with a GdkFont derived via gdk_font_from_description(),
19667         for compatibility. (Should we just remove it entirely?
19668         Probably too much compatibility breakage, but people
19669         should be migrating to the new Pango stuff as quickly
19670         as possible.)
19671
19672 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
19673
19674         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
19675
19676 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
19677
19678         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
19679         redoing; there are some bugs in size allocation right
19680         now, the semi-existant distinction between header / day
19681         fonts was removed, but, with Pango, could actually
19682         be made functional in a nice way.
19683         
19684         * gtk/testcalender: Move calender from examples into this
19685         directory as a test program. (We really need to restrcture
19686         testgtk into a whole directory full of tests for every
19687         widget or functionality group, separated into multiple .c
19688         files.)
19689
19690 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
19691
19692         * gtk/testgtk.c (file_exists): Fix stupid typo that
19693         was keeping RC file from being loaded.
19694
19695         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
19696         RC file font code.
19697
19698 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
19699
19700         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
19701         Add function to load a GdkFont from a PangoFontDescription.
19702
19703 2000-05-29  Tor Lillqvist  <tml@iki.fi>
19704
19705         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
19706         variable should be of type GdkEventPrivate.
19707
19708 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
19709
19710         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
19711         to have any widget for the label, use a GtkLabel widget
19712         to display the text. (Based partially on a patch from
19713         Anders Carlson.)
19714
19715         (Quite a bit of code reorganization - strip 90% of the
19716         guts out of gtkaspectframe and add a single virtual
19717         func to GtkFrameClass - compute_child_allocation.)
19718
19719 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
19720
19721         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
19722         (Removed clist->row_center_offset field because caching
19723         it wasn't saving time or code, added private function
19724         _gtk_clist_create_cell_layout()).
19725
19726 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
19727
19728         * gtk/gtkaccellabel.c: Pangoized.
19729
19730         * gtk/[hv]ruler.c: Pangoized
19731
19732 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
19733
19734         * gtk/gtkfilesel.c (gtk_file_selection_init):
19735         Use gtk_clist_set_column_auto_resize() to remove need
19736         need for manual column width computations.
19737
19738 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
19739
19740         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
19741         ensuring Pango correctness, and considerably simplifying the
19742         code.
19743         
19744         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
19745
19746         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
19747         getting of numbers of lines.
19748
19749         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
19750         to the actual requested width of the lable, not to the wrap
19751         width we set.
19752
19753         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
19754
19755         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
19756           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
19757
19758         * gtk/gtktextview.c: Fix structure inheritance.
19759
19760         * gtk/gtkprogressbar.c: Pangoize.
19761
19762 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
19763
19764         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
19765         in a function.
19766
19767         * gtk/gtktextlayout.c (find_display_line_above): Fixed
19768         bug with computing line tops.
19769
19770         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
19771
19772 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
19773
19774         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
19775         and y_offset coordinates to do what we need now. (The offset between
19776         buffer and layout coordinates has been reintroduced, but is a 
19777         bit different than before.)
19778
19779         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
19780         handle the adjustments ourselves, and scroll as necessary using
19781         the new gdk_window_scroll().
19782         
19783         The advantage of this is that when we are incrementally revalidating,
19784         we are essentially rearranging things around the visible portion
19785         of the screen. With the old setup, the visible portion of the
19786         screen was moved around in the layout, so scrolling and redrawing
19787         to track that caused jumping of the display. Since we now
19788         control the scrolling ourselves, we can suppress this and
19789         only redraw when things actually change.
19790
19791 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
19792
19793         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
19794         the region not just redisplay it after-all, since we store the
19795         cursors in the LineDisplay. (Ugly interactions here between
19796         GtkLayout and GtkTextBTree here.)
19797         
19798         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
19799
19800 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
19801
19802         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
19803         Added function to scroll contents of a window while keeping the
19804         window constant. Works by XCopyArea or guffaw-scrolling depending
19805         on the details of how the window is set up. (guffaw-scrolling
19806         still needs to be filled in.)
19807
19808 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
19809
19810         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
19811         move the debugging that was tied to a global variable
19812         to that.
19813
19814         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
19815
19816         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
19817         validated flag, in line data instead of setting height/width to
19818         -1. This allows us to perform operations with partially invalid
19819         buffer (using the old size for invalid lines) and thus to do
19820         incremental vaidation. Keep height/width aggregates up to date
19821         when deleting text and rebalancing the tree.
19822
19823         * gtk/gtktextbtree.[ch]: Add functions validate a line
19824         (gtk_text_btree_validate_line), and to validate up
19825         to a number of pixels (gtk_text_btree_validate).
19826
19827         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
19828         that indicates that something is changed and a revalidation
19829         pass is needed. Change ::need_repaint to ::changed, and
19830         make it take old and new yranges instead of a rectangle.
19831
19832         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
19833         the line_data_destroy() function from 
19834         gtk_text_btree_add_view() to a virtual function in 
19835         GtkTextLayout
19836
19837         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
19838         since we are handling partial repaints in a different fashion
19839         now.
19840
19841         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
19842         of the selection instead of queueing a repaint on the
19843         entire widget.
19844
19845         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
19846         get_selection_bounds() down to btree, make the function
19847         in buffer a wrapper around the btree function.
19848
19849         * gtk/gtktextlayout.[ch]: Add functions to check if the
19850         layout is valid and to recompute either a range of pixels
19851         aroudn a line or a certain total number of pixels.
19852
19853         * gtk/gtktextlayout.[ch]: Cache a single line display;
19854         now that we only redraw the needed portions, the hit rate
19855         for this cache is quite high.
19856         
19857         * gtk/gtktextview.[ch]: Keep track of the first paragraph
19858         on the screen so that when re-laying-out the buffer, we can
19859         keep the same place. This requires connecting to ::value_changed
19860         on the adjustments
19861
19862         * gtk/gtktextview.[ch]: Add idle functions to revalidate
19863         the buffer after we receive an ::invalidated signal.
19864         
19865 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
19866
19867         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
19868         to max of allocation and layout size, not just to the
19869         layout size.
19870
19871         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
19872         Invalidate window so it gets redrawn properly.
19873
19874         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
19875         to mean the entire window.
19876
19877         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
19878         into public header.
19879
19880 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
19881
19882         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
19883         to get the name of a mark.
19884
19885         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
19886         to find the paragraph from a y position.
19887
19888 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
19889
19890         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
19891         nodes have width/height >= 0, not > 0.
19892
19893 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
19894
19895         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
19896         Add a size_only flag, so when we only need the size, we don't create
19897         useless appearance attributes.
19898
19899         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
19900         duplicate setting of font description.
19901
19902         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
19903
19904 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
19905
19906         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
19907         EXTRA_DIST. It does not work well when the file that
19908         everything depends on is not in the tarball.
19909
19910 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
19911
19912         * gtk/testgtk.c: Some hacks and fixes so that it basically
19913         works when not sitting in the GTK+ build tree.
19914
19915 2000-05-03  Havoc Pennington  <hp@redhat.com>
19916
19917         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
19918         Properly determine the ordering of the tag root and the current
19919         line within the tree. Previous algorithm only worked if the tag
19920         root's immediate parent was the common root of both the current
19921         line and the tag root.
19922
19923 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
19924
19925         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
19926         alignment.
19927
19928         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
19929         the widget text directional dynamically.
19930
19931         * gtk/gtktextview.[ch]: Added functions to get and set default
19932         wrap mode.
19933
19934 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
19935
19936         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
19937         in cursor location computation.
19938
19939 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
19940
19941         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
19942         vadjusment values properly when layout gets smaller.
19943
19944         * gtk/gtktextview.c (need_repaint_handler): Areas being
19945         passed in are far completely inaccurate, and sometimes
19946         too small, so, for now, just queue a redraw on the
19947         whole visible region.
19948
19949 2000-04-25  Havoc Pennington  <hp@redhat.com>
19950
19951         * gtk/gtktextbtree.c (summary_destroy): new function to 
19952         destroy tag summary nodes
19953         (gtk_text_line_next_could_contain_tag): this function was 
19954         totally broken if the line passed in wasn't below the tag
19955         root. Fix it.
19956         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
19957         "wildcard" case, we have to do a linear scan. Blah.
19958         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
19959         we have to do the linear scan
19960         (tag_removed_cb): When a tag is removed from the tag table, 
19961         remove the GtkTextTagInfo node from the btree.
19962         (gtk_text_btree_spew): Implement the spew function, for 
19963         our debugging pleasure.
19964
19965 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
19966
19967         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
19968         a problem with referring to the wrong buffer.
19969
19970         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
19971
19972         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
19973         font description to gtk_style_new() - otherwise things
19974         don't work without a .gtkrc file.
19975
19976         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
19977         tags table if we create it ourself, too.
19978
19979         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
19980         it was conflicting with XKB modifiers.
19981
19982         * gtk/gtktextview.[ch]: Add simple support for 
19983         GtkIMContext.
19984
19985 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
19986
19987         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
19988         with deletion from last commit.
19989
19990 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
19991
19992         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
19993         in the context from the current locale.
19994         
19995         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
19996         context, not hardcoded value.
19997
19998         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
19999         not logical.
20000
20001 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
20002
20003         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
20004         attributes - that doesn't handle partial-glyph selection
20005         properly. Instead use new pango_layout_line_get_x_ranges()
20006         functionality to draw the selection.
20007
20008         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
20009         now properly handles out-of-range coordinates.
20010
20011         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
20012
20013         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
20014         public.
20015
20016         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
20017         for paragraphs opposite to the base direction of the widget.
20018
20019         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
20020
20021         * gtk/gtktextlayout.c: Don't split segments on marks, since that
20022         causes Arabic words to reshape as you cursor through.
20023
20024         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
20025         cursor position when moving vertically with the arrow keys and
20026         scrolling with page-up/page-down. (Arrow keys save only the X,
20027         scrolling saves both X and Y.)
20028
20029         This means you can line-up / line-down or page-up / page-down
20030         without losing your place, and also that moving vertically
20031         with the cursor keys keeps the same X position, not the same
20032         character count:
20033
20034         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
20035         arrow keys move by display lines, not paragraphs.
20036
20037 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
20038
20039         * gtk/gtklayout.c: Make sure that the bin window is at least
20040         as big as the allocation. (Should we also make sure that the
20041         bin window is big enough to completely cover widget->window?)
20042
20043         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
20044         function to get the onscreen rectangle.
20045
20046         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
20047         for offsets in window coordinates.
20048
20049 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
20050
20051         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
20052         confusion.
20053
20054         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
20055         from the widget direction.
20056
20057         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
20058         Add a "direction" attribute.
20059
20060         * gtk/gtktextview.c: global s/tkxt/text_view/.
20061
20062         * gtk/testtext.c: Added long block of text in Arabic, to test out
20063         the direction attributes. (Some problems with the shaping system
20064         for arabic become obvious - like the fact the cursor splits words
20065         into unjoined pieces.)
20066
20067 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
20068
20069         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
20070
20071         * gtk/gtktextlayout.c: Fix up alignment.
20072
20073         * gtk/testtext.c: Add some tests for centering, wrapping.
20074
20075 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
20076
20077         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
20078         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
20079         If we wrote GTK+-specific layout-render function this could just replace
20080         the draw_layout() operation in the vtable.
20081
20082         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
20083         pango_layout_get_cursor_pos() and use that function.
20084
20085         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
20086         is a non-static symbol.
20087
20088         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
20089         with gtk_text_btree_find_line_by_y()
20090
20091         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
20092         renderer that handles GtkTextAppearance attributes.
20093
20094         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
20095
20096           - Move the values in the style that don't affect geometry into a
20097             GtkTextAppearance structure.
20098           - Change underline to take a PangoUnderline and "font" a string
20099             representation of a font description
20100           - Add a "font_desc" attribute which takes a FontDescription structure.
20101
20102         * gtk/gtktextlayout.[ch]:
20103
20104           - Get rid of the display-line list per each line. Instead, we
20105             generate, on demand, a GtkTextLineDisplay structure which]
20106             contains a PangoLayout * and other necesary information
20107             (offsets, cursor locations) for displaying a paragraph.
20108           - Get rid of the code to wrap lines, create display chunks,
20109             etc. Instead, we just go through a paragraph and convert
20110             it into the necessary inputs to a PangoLayout.
20111           - Implement a new attribute type, GtkTextAttrAppearance. This
20112             holds a GtkTextAppearance, and is used to pass colors, 
20113             stipple, etc, through from the layout to the display without
20114             having to use lots and lots of individual attributes.
20115           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
20116             in terms of PangoLayout functions.
20117         
20118         * gtk/gtktextview.c: 
20119          
20120           - Handle passing the necessary PangoContext to the layout
20121           - Some fixups in painting to deal with the automatic backing store
20122             and offsetting of GTK+-1.4
20123           - Add a style_set handler so that the default style reacts
20124             properly to theme changes.
20125         
20126         * gtk/gtktext?*.[ch]: Random code-style fixes.
20127
20128         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
20129
20130 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
20131
20132         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
20133         in original form preparatory to Pango-ization and gdkimcontext-ization.
20134
20135 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
20136
20137         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
20138         so that we can derive from gtkimcontext in language bindings properly.
20139
20140 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
20141
20142         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
20143         Add a compose table including (almost) all the compose combinations
20144         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
20145         data in the XIM implementation.
20146
20147         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
20148         Moved functions to convert keyvalues from and to unicode here from
20149         the win32 port and made them public.
20150
20151 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
20152
20153         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
20154
20155 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
20156
20157         * gtk/gtkimcontext.[ch]: Base class for new input context system
20158
20159         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
20160         the real input context implementation to be loaded from modules
20161         and switched on the fly.
20162
20163         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
20164         context that just does direct keysymbol => unicode translation.
20165
20166         * gtk/gtkentry.[ch]: Start switching editing over to using
20167         GtkInputContext. (No handling of preedit yet.)
20168
20169 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
20170
20171         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
20172         many substitutions. (klass should not be subsituted.)
20173
20174 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
20175
20176         * configure.in: Add checks for Pango
20177
20178         * configure.in docs/Makefile.am: Add test for sgml2html
20179         and allow 'make dist' without building html, but print out
20180         warnings in that case. (For making snapshots)
20181
20182         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
20183         Add Pango libraries and C flags
20184
20185         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
20186         Add function (gdk_draw_layout) to draw a pango layout.
20187
20188         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
20189         for getting Pango contexts for GDK.
20190
20191         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
20192
20193         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
20194         editing.
20195
20196         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
20197         keysym => unicode translations. More languages can be added
20198         here, but real input-method support is needed.
20199
20200         * docs/Changes-1.4.txt: Added note about entry behavior.
20201         
20202         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
20203         to set the reading direction for a widget and the global direction.
20204         Add test which allows toggling the global direction. Two private
20205         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
20206
20207         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
20208           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
20209
20210         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
20211
20212         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
20213         underlining now handled by Pango.
20214
20215         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
20216         to RCStyle and Style. (Having both this and the old font name and GdkFont 
20217         is temporary.)
20218
20219         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
20220         convenience functions for creating contexts and layouts for widgets.
20221
20222         * gtk/testgtk.c: Enhance label tests with multilingual labels.
20223
20224 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
20225
20226         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
20227         titles to be active, even if they aren't visible.
20228         (gtk_clist_column_titles_passive):  Ditto.
20229
20230 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
20231
20232         * gtkmenu.c:
20233         * gtkmenu.h:
20234         * gtktypeutils.h: Spelling/grammar fixes in comments.
20235
20236 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
20237
20238         * gdk/nanox/*.h: add missing header files.
20239
20240 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
20241
20242         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
20243         send_event to TRUE.
20244         (gtk_drawing_area_size): queue a resize.
20245
20246 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
20247
20248         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
20249         the handlers, also invalidate them. bug nailed down by Karl Nelson
20250         <kenelson@ece.ucdavis.edu>.
20251
20252 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
20253
20254         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
20255         "(nil)" foundries, patch from Grigorios Magklis.
20256
20257         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
20258         on non-available fonts, based on a patch by Grigorios Magklis
20259         <maglis@cs.rochester.edu>.
20260
20261 2000-05-18  Elliot Lee  <sopwith@redhat.com>
20262
20263         * gdk/x11/gdkregion-generic.c: If a region does not have any
20264         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
20265         instead of GDK_OVERLAP_RECTANGLE_IN.
20266
20267 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
20268
20269         * gtk/gtklayout.c (gtk_layout_map): Remove references to
20270         OFFSCREEN, as it is no longer necessary.
20271
20272 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
20273
20274         * gtk/gtkcolorsel.c: Patch from David Santiago
20275         <mrcooger@cyberverse.com> to change things so that the 
20276         indicator of the active palette entry is done independently,
20277         not via the focus, since it should always be visible.
20278
20279 2000-05-17  Tor Lillqvist  <tml@iki.fi>
20280
20281         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
20282         refcount leaks as in the X11 backend.
20283
20284         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
20285         cosmetics.
20286
20287         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
20288         backend. Add _gdk_windowing_window_destroy().
20289
20290         * gtk/gtkcolorsel.c: Include correct backend-specific header.
20291         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
20292         either, but these probably do exist on nanox?)
20293         
20294         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
20295         which isn't necessarily defined by <math.h>.
20296
20297         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
20298         ancestry past GtkObject.
20299
20300         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
20301         from DLL on Win32.
20302
20303         * gtk/gtk.def: Update corresponding to recent changes.
20304
20305         * gtk/makefile.{cygwin,msc}: Updates.
20306
20307 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
20308
20309         * docs/Changes-1.4.txt: A bit of editing.
20310
20311         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
20312         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
20313         to clear the update area for the window, and clear it
20314         when hiding a window.
20315
20316         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
20317         if window destroyed.
20318
20319         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
20320
20321         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
20322         gdk_window_destroy() to the generic code, since there was a lot of 
20323         window-system-independent logic it in. Add a function:
20324         
20325          _gdk_window_destroy() 
20326
20327         to the internal API to destroy a window without unreferencing it.
20328         Add a function:
20329
20330          _gdk_windowing_window_destroy()
20331
20332         That does the windowing-system-dependent part of destroying 
20333         the window.
20334
20335 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
20336
20337         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
20338
20339 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
20340
20341         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
20342         Make gtk_widget_shape_combine_mask() keep a reference count on
20343         the pixmap since it keeps it around.
20344
20345 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
20346
20347         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
20348         leak.
20349
20350         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
20351         leak with event filters.
20352
20353 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
20354
20355         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
20356         signal handlers with the right data arguments. (Fixes
20357         some warnings when a widget was repeatedly set as a drag
20358         destination.)
20359
20360         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
20361         window so we can avoid avoid setting the DND properties on the
20362         toplevel window repeatedly.
20363
20364 2000-05-13  Tor Lillqvist  <tml@iki.fi>
20365
20366         * gdk/win32/gdkwin32.h: Define more message types missing from
20367         mingw headers.
20368
20369         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
20370         call gdk_window_destroy_notify(). It was never called. This
20371         probably meant that the GdkWindow was never freed. Thanks Owen for
20372         noticing (!).
20373
20374         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
20375         window as destroyed before calling DestroyWindow(). DestroyWindow()
20376         causes a call to the window procedure (gdk_WindowProc), which
20377         calls gdk_event_translate(), which calls
20378         gdk_window_destroy_notify(), which gets confused unless the window
20379         is set as destroyed.
20380
20381         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
20382         this function to indicate it's win32 only. Put inside #ifdef
20383         G_ENABLE_DEBUG.
20384
20385         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
20386         debugging function. (gdk_event_translate:) Add a default branch
20387         that uses the above function to print debug messages with all
20388         Windows messages symbolically.
20389
20390         * gdk/win32/gdkprivate-win32.h: Declare it, and
20391         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
20392
20393 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
20394
20395         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
20396         public header file.
20397
20398 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
20399
20400         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
20401
20402         * gtk/gtktext.c: made the adjustments no-construct args, simply
20403         provide default adjustments.
20404         (gtk_text_destroy): release adjustments.
20405
20406         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
20407         adjustment argument non-construct.
20408
20409         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
20410         instead of in finalize.
20411         (gtk_progress_get_text_from_value): 
20412         (gtk_progress_get_current_text): 
20413         (gtk_progress_set_value): 
20414         (gtk_progress_get_percentage_from_value): 
20415         (gtk_progress_get_current_percentage): 
20416         (gtk_progress_set_percentage): 
20417         (gtk_progress_configure): ensure an adjustment is present.
20418
20419 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
20420
20421         * gtk/gtkcolorsel.[hc]:
20422         * gtk/gtkcolorseldialog.[hc]:
20423         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
20424         their parent implementation, use bit fields for boolean values, don't
20425         create unused widgets, usage of glib types, braces go on their own
20426         lines, function argument alignment, #include directives etc. etc. etc..
20427
20428         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
20429
20430 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
20431
20432         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
20433
20434         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
20435         of NULL.
20436
20437         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
20438         to freed data.
20439         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
20440
20441         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
20442         to NULL when the toplevel is getting destroyed.
20443         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
20444         (gtk_menu_destroy): 
20445         (gtk_menu_init): store the information of whether we have to
20446         readd the initial child ref_count during destruction in a new
20447         GtkMenu field needs_destruction_ref_count.
20448
20449         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
20450         here, those reading: learn from my mistake! ;)
20451         in order for set_?adjustment to support a default adjustemnt if
20452         invoked with an adjustment pointer of NULL, the code read (pseudo):
20453         if (v->adjustment) unref (v->adjustment);
20454         if (!adjustment) adjustment = adjustment_new ();
20455         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
20456         now imagine the first unref to actually free the old adjustment and
20457         adjustment_new() creating a new adjustment from the very same memory
20458         portion. here, the latter comparision will unintendedly fail, and
20459         all hell breaks loose.
20460         (gtk_viewport_set_hadjustment):
20461         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
20462         after unreferencing it.
20463
20464         * gtk/gtkcontainer.[hc]: removed toplevel registration
20465         functions: gtk_container_register_toplevel(),
20466         gtk_container_unregister_toplevel() and
20467         gtk_container_get_toplevels() which had wrong semantics
20468         anyways: it didn't reference and copy the list.
20469
20470         * gtk/gtkwindow.c: we take over the container toplevel registration
20471         bussiness now. windows are registered across multiple destructions,
20472         untill they are finalized. the initial implicit reference count
20473         users are holding on windows is removed with the first destruction
20474         though.
20475         (gtk_window_init): ref & sink and set has_user_ref_count, got
20476         rid of gtk_container_register_toplevel() call. add window to
20477         toplevel_list.
20478         (gtk_window_destroy): unref the window if has_user_ref_count
20479         is still set, got rid of call to
20480         gtk_container_unregister_toplevel().
20481         (gtk_window_finalize): remove window from toplevel list.
20482         (gtk_window_list_toplevels): new function to return a newly
20483         created list with referenced toplevels.
20484         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
20485
20486         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
20487         adjustment a non-construct arg.
20488         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
20489         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
20490         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
20491
20492         * gtk/gtkrange.c: added some realized checks.
20493         (gtk_range_destroy): get rid of the h/v adjustments in the
20494         destroy handler instead of finalize. remove timer.
20495         (gtk_range_get_adjustment): demand create adjustment.
20496
20497         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
20498         we simply create them on demand now and get rid of them in
20499         the destroy handler.
20500         (gtk_viewport_destroy): get rid of the h/v adjustments in the
20501         destroy handler instead of finalize.
20502         (gtk_viewport_get_hadjustment): 
20503         (gtk_viewport_get_vadjustment): 
20504         (gtk_viewport_size_allocate): demand create h/v adjustment
20505         if required.
20506
20507         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
20508         gtk_widget_real_destroy () functionality.
20509         (gtk_widget_real_destroy): reinitialize with a new style, instead
20510         of setting widget->style to NULL.
20511
20512 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
20513
20514         * gtk/gtkcalendar.c:
20515         * gtk/gtkbutton.c: ported _get_type() implementation over to
20516         GType, either to preserve memchunks allocation facilities,
20517         or because Gtk+ 1.0 GtkTypeInfo was still being used.
20518
20519         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
20520         over. prepare for ::destroy to be emitted multiple times.
20521         removed reference tracer magic. chain into GObjectClass.shutdown()
20522         to emit ::destroy signal.
20523
20524         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
20525         fundamental.
20526
20527         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
20528         cludge.
20529
20530         * gtk/gtksocket.c:
20531         * gtk/gtkplug.c:
20532         * gtk/gtklayout.c:
20533         * gtk/gtklabel.c:
20534         * gtk/gtkargcollector.c:
20535         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
20536         not being a fundamental anymore, and to work with the new
20537         type system (nuked fundamental type varargs clutter).
20538
20539         * gtk/*.c: install finalize handlers in the GObjectClass
20540         part of the class structure.
20541         changed direct GTK_OBJECT()->klass accesses to
20542         GTK_*_GET_CLASS().
20543         changed direct object_class->type accesses to GTK_CLASS_TYPE().
20544
20545         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
20546         GType. made most of the GTK_*() type macros and Gtk* typedefs
20547         simple wrappers around macros and types provided by GType.
20548         most notably, a significant portion of the old API vanished:
20549         GTK_TYPE_MAKE(),
20550         GTK_TYPE_SEQNO(),
20551         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
20552         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
20553         GTK_TYPE_ARGS,
20554         GTK_TYPE_CALLBACK,
20555         GTK_TYPE_C_CALLBACK,
20556         GTK_TYPE_FOREIGN,
20557         GtkTypeQuery,
20558         gtk_type_query(),
20559         gtk_type_set_varargs_type(),
20560         gtk_type_get_varargs_type(),
20561         gtk_type_check_object_cast(),
20562         gtk_type_check_class_cast(),
20563         gtk_type_describe_tree(),
20564         gtk_type_describe_heritage(),
20565         gtk_type_free(),
20566         gtk_type_children_types(),
20567         gtk_type_set_chunk_alloc(),
20568         gtk_type_register_enum(),
20569         gtk_type_register_flags(),
20570         gtk_type_parent_class().
20571         replacements, where available are described in ../docs/Changes-1.4.txt.
20572         implemented compatibility functions for the remaining API.
20573
20574         * configure.in: depend on glib 1.3.1, use gobject module.
20575
20576 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
20577
20578         * TODO.xml: Various updates to current status.
20579
20580 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
20581
20582         * gtk.m4: Print out version when test succeeds.
20583
20584 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
20585
20586         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
20587         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
20588         
20589         (Original triangle color selector from Simon Budig
20590         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
20591         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
20592         Santiago <mrcooger@cyberverse.com>)
20593
20594         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
20595         out into a separate widget.
20596
20597         * gtk/testgtk.c: Add some checkbuttons for toggling palette
20598         and opacity controls.
20599
20600 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
20601
20602         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
20603         snuck in prematurely.
20604
20605 2000-05-07  Tor Lillqvist  <tml@iki.fi>
20606
20607         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
20608         had deleted a ! operator by mistake, which caused
20609         GDK_SELECTION_CLEAR events never to be generated, which caused
20610         only the first copy to the clipboard from an gtkeditable to
20611         actually cause a copy to the Windows clipboard.
20612
20613 2000-05-06  Tor Lillqvist  <tml@iki.fi>
20614
20615         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
20616         compilation, too. Current mingw gcc distributions include the
20617         necessary headers. Also the necessary IIDs are now in mingw
20618         headers/libraries, and own definitions unnecessary.
20619
20620         More hacking on OLE2 DND, still doesn't work though, and thus
20621         ifdeffed out.
20622
20623         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
20624         here, too.
20625
20626 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
20627
20628         * gdk/nanox/*: nano-X port work in progress.
20629         * gdk/simple.c: simple test for Gdk.
20630         * README.nanox: notes about the port: read this first!
20631         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
20632         with nano-X.
20633
20634 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
20635
20636         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
20637         gdk_window_clear() into common code, implement in terms of
20638         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
20639         not redirected to the backing rectangle.
20640
20641 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
20642
20643         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
20644         EXTRA_DIST. It does not work well when the file that
20645         everything depends on is not in the tarball.
20646
20647 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
20648
20649         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
20650         with recursion where process_updates() is called from
20651         an expose handler. (GtkTextView is highly broken in
20652         doing this, but it should work, so it is a nice test
20653         case.)
20654
20655 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
20656
20657         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
20658         handle the case where updates are queued during processing of
20659         updates.
20660
20661 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
20662
20663         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
20664         window is on gdk_display - use that instead of segfaulting.
20665
20666 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
20667
20668         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
20669         broken and require an empty arg, give it to them.
20670
20671 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
20672
20673         * gtk/gtklabel.h: indentation fixes.
20674
20675 2000-05-02  Tor Lillqvist  <tml@iki.fi>
20676
20677         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
20678         draw too narrow or too low arcs, they seem to fail, at least with
20679         some display drivers.
20680
20681         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
20682
20683         Large changes to the Win32 backend, partially made necessary by
20684         the changes to the backend-independent internal
20685         structures. Attempts to implement similar backing store stuff as
20686         on X11. The current (CVS) version of the Win32 backend is *not* as
20687         stable as it was before the no-flicker branch was merged. A
20688         zipfile with that version is available from
20689         http://www.gimp.org/win32/. That should be use by "production"
20690         code until this CVS version is usable. (But note, the Win32
20691         backend has never been claimed to be "production quality".)
20692
20693         * README.win32: Add the above comment about versions.
20694
20695         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
20696
20697         * gdk/gdk.def: Update.
20698
20699         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
20700         presumably be replaced by some more better mechanism as 1.4 gets
20701         closer to release shape.
20702
20703         * gdk/makefile.{cygwin,msc}: Update.
20704
20705         * gdk/win32/*.c: Correct inclusions of the backend-specific and
20706         internal headers. Change code according to changes in these. Use
20707         gdk_drawable_*, not gdk_window_* where necessary.
20708
20709         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
20710         our old DND.
20711
20712         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
20713         to interpret single characters as UTF-8. Thanks to Hans Breuer.
20714         Use correct function name in warning messages.
20715
20716         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
20717         GSourceFuncs gdk_event_prepare and gdk_event_check.
20718         (gdk_event_get_graphics_expose): Do implement, use
20719         PeekMessage. Thanks to Hans Breuer.
20720         (event_mask_string): Debugging function to print an GdkEventMask.
20721         (gdk_pointer_grab): Use it.
20722
20723         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
20724         (old) book I used claimed was Hangul actually is CJK Unified
20725         Ideographs Extension A. Also, Hangul Syllables were missing.
20726         Improve logging.
20727
20728         * gdk/win32/gdkgc-win32.c: Largish changes.
20729
20730         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
20731         g_win32_getlocale() from GLib, and not setlocale() to get current
20732         locale name.
20733
20734         * gdk/win32/gdkprivate-win32.h
20735         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
20736         gdkwin32.h, similarily as in the X11 backend.
20737
20738         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
20739         assignment was used instead of equals in if test. Thanks to Hans
20740         Breuer.
20741
20742         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
20743         the X11 version.
20744
20745         * gdk/win32/makefile.{cygwin,msc}
20746         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
20747         path to the Win32 headers that works also with the mingw compiler.
20748
20749         * gtk/gtkstyle.c: Include <string.h>.
20750
20751 2000-04-26  Havoc Pennington  <hp@redhat.com>
20752
20753         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
20754         replacing the broken gtk_label_get ()
20755
20756 2000-04-15  Havoc Pennington  <hp@pobox.com>
20757
20758         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
20759         this keeps scanner scripts from getting confused.
20760
20761         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
20762         data, rather than void
20763
20764 2000-04-15  Tor Lillqvist  <tml@iki.fi>
20765
20766         * gtk/gtkclist.c (gtk_clist_motion)
20767         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
20768         with is_hint FALSE, get x and y from the event. They used to be
20769         used uninitialised. The Win32 backend never sends motion events
20770         marked as hints. This for instance fixes the annoying file and
20771         font selector behaviour in the Win32 version.
20772
20773 2000-04-14  Tor Lillqvist  <tml@iki.fi>
20774
20775         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
20776         gtk_private_n_signals variables, they are used by some software,
20777         sigh.
20778
20779         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
20780         installation directory from the Registry, where the installer
20781         should have put it.
20782
20783 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
20784
20785         * gdk/x11/Makefile.am: Fix problem with installation directory for
20786         gdkx.h
20787
20788         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
20789         <mrcooger@cyberverse.com> so that when selecting menus with the
20790         mouse, the first item will not be selected, but when selecting
20791         with an accelerator, or navigating left-right on a menubar with
20792         the menus popped up, the first item will be selected.
20793
20794 2000-04-05  Dan Damian  <dand@dnttm.ro>
20795
20796         * configure.in: Added "ro" to ALL_LINGUAS.
20797
20798 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
20799
20800         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
20801         indentation.
20802
20803         * Makefile.am (EXTRA_DIST): Fix typo.
20804
20805         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
20806         to catch gdkconfig.h
20807
20808         * gtk/gtkitemfactory.c: Added FIXME.
20809
20810 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
20811
20812         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
20813         s/return_if_fail/return_val_if_fail/g and add a return value.
20814
20815 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
20816
20817         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
20818         merge slipup.
20819
20820         * gdk/gdkinput.h: Fix missing line from merge.
20821
20822 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
20823
20824         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
20825         instead of gdkprivate.h.
20826
20827 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
20828
20829         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
20830         parent class to correctly be GtkDialogClass.
20831
20832 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
20833
20834         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
20835         toplevel windows and their immediate children by their parents,
20836         since the size of toplevel windows is out of our immediate
20837         control and we don't get any real benefit from trying to track
20838         this size for clipping.
20839
20840         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
20841         for input_only windows.
20842
20843         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
20844         to fix some hacks and make sure that we don't try to set the
20845         background of input only windows.
20846
20847 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
20848
20849         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
20850         the _really_ internal stuff, and leave gdkprivate.h for the fake private
20851         stuff that we've traditionally exposed.
20852
20853         * gdk/**.c: Use gdkinternals.h where appropriate.
20854
20855         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
20856         not include gdkprivate-x11.h, move all stuff of conceivable public
20857         interest into gdkx.h; keep all really private stuff in
20858         uninstalled header gdkprivate-x11.h.
20859
20860         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
20861         image->image_put on windows through a new function _gdk_window_draw_image()
20862         to allow us to do backing store for images. (Sort of ugly)
20863
20864         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
20865         contexts locally so that we can offset them properly when drawing 
20866         onto backing pixmaps.
20867
20868         * gdk/gdkinput.h: Reindented
20869
20870         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
20871         pixmap or color for the window, so we can properly initialize
20872         our double-buffer pixmaps, and also so that we temporarily set
20873         a background of None while scrolling.
20874
20875         * gdk/gdkregion.h: Revise region boolean operators to have an
20876         interface that is actually convenient - switch from creating new
20877         regions on every op, to "methods" that modify existing regions
20878         (A = A OP B). 3 argument forms which allow dest == src, would also
20879         be possible, but the current interfaces seem to map nicely
20880         onto what needs to be done. (There is quite a lot of region
20881         code in GDK now.)
20882
20883         * gdk/gdkregion.h: Add constructor from rectangle and a copy
20884         operator.
20885
20886         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
20887         gdkpoly-generic.h: Copy region code from Xlib, switch it over
20888         to 32 bit coordinates, modify it to be mostly GTK+ style
20889         and to have interfaces that match gdkregion.h.
20890
20891         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
20892         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
20893         create a backing pixmap and redirect all drawing to
20894         that backing pixmap until a matching gdk_window_end_paint().
20895
20896         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
20897         Create a special drawable class for GtkWindow's that 
20898         redirects the drawing to the backing pixmap as necessary
20899         and then calls the real operations in _gdk_windowing_window_class.
20900
20901         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
20902         Store invalid region for each window. Generate expose events for invalid
20903         region in an idle. This replaces both the expose compression
20904         and the redrawing queuing in GTK+. It is both more efficient and
20905         simpler than either one individually and far more so then the
20906         combination.
20907
20908         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
20909         Emulate 32 bit coordinates for windows with 16 bit coordinates
20910         by offsetting drawing, guffaw scrolling techniques and
20911         mapping/unmapping child windows as necessary.
20912
20913         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
20914         where, when invalid regions are processed, the region is stored,
20915         and if expose events come in that are detectably duplicate
20916         the processed exposes (by comparison of event serial numbers),
20917         the stored region is subtracted out of those exposes.
20918
20919         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
20920         regions newly exposed when scrolling or resizing windows.
20921         This, combined with forcing processesing of queued invalidated
20922         regions, gives nice flicker-free scrolling.
20923
20924         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
20925         invalidated regions after every scroll.
20926
20927         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
20928         emulation in GDK. Its, for all practical purposes just a
20929         GtkViewport/GtkFixed hybrid now.
20930
20931         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
20932         (16-bit) structures as necessary instead of just casting.
20933
20934         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
20935         in terms of the structures from gdkregion-generic.c, using appropriate
20936         offsets from GDK to X11 coordinates. Cache clip mask and
20937         origin and ts origin locally and only flush to the server
20938         when drawing, to avoid constantly setting and resetting these
20939         values when offsetting GC's for scrolling and backing pixmaps.
20940
20941         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
20942
20943         * gtk/gtkcontainer.c: Call process_all_updates at end
20944         of resizing to reduce flicker. (Avoids having redraw
20945         lag arbitrarily behind resize under some circumstances)
20946
20947         * gtk/gtkentry.c: Remove old backing store code, and simply take
20948         advantage of the new backing store capabilities of GDK.
20949
20950         * gtk/gtkmain.c: Simple implementation of widget backing
20951         store - simply push a paint while handling each expose.
20952         (Should really be configurable widget for widget.)
20953         
20954         * gtk/gtkwidget.c: Remove all the old complicated redraw
20955         code, and simply invalidate the GDK windows from
20956         gdk_window_queue_clear(), etc. (Sigh, so much carefully
20957         debugged complexity ... gone to the winds.)
20958
20959         Remove all the code for suppressing expose events while
20960         resizes are pending; this isn't needed since the invalid
20961         areas won't be processed until after the resizes are
20962         processed, since they are in a lower priority idle.
20963
20964 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
20965
20966         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
20967         and height of dest rectangle for non-intersecting rectangles.
20968
20969 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
20970
20971         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
20972         for GdkRectangle.
20973
20974 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
20975
20976         * gdk/gdk{events,image,private,types,window}.h
20977          gdk/x11/gdkinputprivate.h: Change all coordinates
20978          from int16 to int. Also, Change width and height from
20979          unsigned to signed to avoid all the stupid C 
20980          signedness bugs.
20981
20982 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
20983
20984         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
20985         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
20986         Add some more detailed checking.
20987
20988         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
20989         New function to retrieve the depth of a drawable.
20990
20991         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
20992         field, reorder fields to save memory. 
20993
20994 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
20995
20996         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
20997         of the background image instead of scaling the background down to
20998         a line.
20999
21000         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
21001         which temporarily set slider to wrong size.
21002
21003         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
21004         queue_clear().
21005
21006 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
21007
21008 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
21009
21010         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
21011
21012 2000-03-17  Tor Lillqvist  <tml@iki.fi>
21013
21014         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
21015         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
21016
21017         * gdk/win32/gdkfont-win32.c
21018         * gdk/win32/gdkproperty-win32.c
21019         * gdk/win32/gdkselection-win32.c
21020         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
21021         now declared such.
21022
21023 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
21024
21025         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
21026
21027 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
21028
21029         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
21030         is called without trapping X errors.
21031
21032 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
21033
21034         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
21035         way into the fontset lists.
21036
21037 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
21038
21039         * gtk/gtkthemes.h: add extern "C" scope.
21040
21041 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
21042
21043         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
21044         to make appends to the list constant. (gtk-guy-990901-0.patch)
21045
21046 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
21047
21048         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
21049         for the typename hash table.
21050
21051 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
21052
21053         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
21054         to make sure we never divide by zero. 
21055         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
21056
21057 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
21058
21059         * gtk/gtkfontsel.c: Apply patch from
21060         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
21061         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
21062
21063         Also, some cleanups in atom handling.
21064
21065 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
21066
21067         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
21068         not GtkWidget.
21069
21070 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
21071
21072         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
21073         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
21074         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
21075         more guint wrap-around bugs before going to bed.
21076
21077 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
21078
21079         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
21080         guint wrap arounds in allocation.width.
21081
21082         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
21083         process untill we fit the allocation given.
21084
21085 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
21086
21087         * gtk/gtkwidget.c:
21088         (gtk_widget_unrealize): guard widget access with ref/unref
21089         around signal emission.
21090         (gtk_widget_hide): same here, but also check its destroyed
21091         state before queueing a resize.
21092
21093 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
21094
21095         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
21096         of gtk_default_insensitive_bg as insensitive base color.
21097
21098         * gtk/gtktext.c (gtk_text_style_set): set the background color according
21099         to the widget's state.
21100         (gtk_text_realize): same here.
21101         (gtk_text_state_changed): same here.
21102         (draw_bg_rect): compare background color against base[] from
21103         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
21104
21105 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
21106
21107         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
21108         grabs are active, unless a delete event is send to the toplevel
21109         of the currently grab holding widget.
21110
21111 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
21112
21113         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
21114         debugging g_print's.
21115
21116 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
21117
21118         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
21119         ever make the scrolled-window requisition ever depend on the 
21120         visibility state of the scrollbars for the AUTOMATIC policy. 
21121         This breaks the GTK+ requisition model, and causes loops.
21122
21123 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
21124
21125         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
21126         the default font to avoid problems with XFree86-4.0 where the
21127         default charset is iso10646-1, not iso8859-1.
21128
21129 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
21130
21131         * acinclude.m4
21132         * config.guess
21133         * config.sub
21134         * ltconfig
21135         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
21136
21137         * gtk/Makefile.am: minor cosmetic consistency tweak
21138
21139 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
21140
21141         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
21142         the activate_time to 0, so that we handle a quick
21143         press/release press/release properly and don't suppress
21144         the second release. (Red Hat bug #7545)
21145
21146 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
21147
21148         * gtk/gtkctree.c (row_delete):
21149         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
21150         bugs with destruction notifier, *always* update internal
21151         structures *before* calling user code.
21152
21153 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
21154
21155         A few more fixes for bug #5487, #2051, #2677.
21156         * gtk/gtkclist.c : 
21157         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
21158         not GDK_BUTTON_PRESS.
21159         (resync_selection): resync only if selection_mode is
21160         GTK_SELECTION_EXTENDED
21161         * gtk/gtkctree.c (resync_selection): same here
21162
21163 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
21164
21165         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
21166         gdk_drag_get_selection() and gtk_menu_detach().
21167
21168         [ From Jeroen Ruigrok/Asmodai ]
21169
21170 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
21171
21172         * gtk/gtknotebook.c (gtk_notebook_size_request): 
21173         page->tab_label can be NULL.
21174
21175 2000-01-25  Havoc Pennington  <hp@pobox.com>
21176         
21177         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
21178         arg is boolean
21179
21180         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
21181
21182         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
21183
21184         * gdk/gdkproperty.c (gdk_property_get): return boolean
21185
21186         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
21187
21188         * gdk/gdkim.c (gdk_im_ready): return boolean
21189
21190         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
21191
21192         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
21193         glib clash, should fix glib)
21194
21195         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
21196         (gdk_get_show_events): return gboolean, and canonicalize 
21197         to TRUE/FALSE
21198
21199         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
21200         colormap is private
21201         (gdk_colors_alloc): gboolean whether to be contiguous
21202         (gdk_color_equal): return gboolean since we are a predicate
21203         and not a qsort() (this looks semi-wrong due to glib breakage,
21204         IMO glib should be fixed)
21205         
21206         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
21207         (gdk_get_use_xshm): return gboolean
21208         (gdk_pointer_is_grabbed): return gboolean
21209
21210         * gdk/gdk.h: Change prototypes to match all the above changes,
21211         and re-run egtk-format-protos as required.
21212
21213 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
21214
21215         * gtk/gtkctree.c (resync_selection): 
21216         * gtk/gtkclist.c (resync_selection):
21217
21218         Return immediately if clist->drag_pos < 0. This is a workaround
21219         for the corrupt state that the clist gets into when a
21220         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
21221
21222         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
21223         
21224         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
21225         variable from recent commit.
21226
21227 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
21228
21229         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
21230
21231 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
21232
21233         * gtk/Makefile.am: prefix all autogenerated source that get build in
21234         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
21235         in builddir. since we subsequently cd into srcdir for autogeneration,
21236         the paths have to be stripped from the target file names, thusly we
21237         use $(@F) as target names now.
21238         put a comment about configure.in's --disable-rebuilds option,
21239         which can be used for non-writable source directories, for development
21240         setups though, srcdir has to be *writable*.
21241
21242 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
21243
21244         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
21245           Finish the job of allowing event to be NULL.
21246           (Fixes bug #4283, reported by Chris Blizzard)
21247
21248         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
21249           things so that the cursor appears on screen, properly
21250           take into account INNER_BORDER.
21251           (Fixes bug #4754, reported by Antonio Campos)
21252
21253 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
21254
21255         * gtk/gtknotebook.c (gtk_notebook_map): Don't
21256           show the tab_label unless it itself is visible.
21257
21258           gtk/gtknotebook.c (gtk_notebook_size_request):
21259           Do a better job of making sure that the visibility
21260           of the tab label corresponds to whether it should
21261           be mapped or not.
21262
21263 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
21264
21265         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
21266           Use the requisition, not the allocation, since the
21267           allocation has not necessarily been computed yet.
21268           (Pointed out by Eugene Osintsev)
21269
21270 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
21271
21272         * gtk/gtkstyle.c (gtk_style_new): Dont' set
21273           style/base[GTK_STATE_INSENSITIVE] both to
21274           gtk_default_insensitive_bg!
21275           (Bug #2187, reported by Jonathan Blandford)
21276
21277         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
21278           Add Alt_L, Alt_R to list of invalid accelerators.
21279           (Bug #3736, reported by Vlad Harchev)
21280
21281 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
21282
21283         * gtk/gtkfilesel.c (open_ref_dir): Fix several
21284         bugs which occured after an attempt to open 
21285         invalid home directory left cmpl_state->reference_dir == NULL.
21286
21287          - completion on files in home directory didn't work
21288          - completion on an empty string caused  segfault
21289
21290          (Bug #3678, reported by Steve Ratcliffe)
21291
21292         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
21293         cut and paste error that was causing scales to
21294         be incorrectly positioned.
21295         (Bug #2956,
21296          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
21297
21298 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
21299
21300         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
21301         when checking for dcgettext, if we've found we needed
21302         it for dgettext.
21303 +
21304 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
21305
21306         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
21307         queue_clear on NO_WINDOW widgets during a reparent,
21308         since at that point the window and widget heirarchies
21309         are out of sync. This stops crashing in some cases
21310         (the scrolled window reparent test, for instance), and
21311         _probably_ won't cause drawing errors.
21312
21313         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
21314         test do what it was supposed to do and be robust against
21315         window closings, etc. (Bug #2443)
21316
21317 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
21318
21319         * gtk/gtkentry.c: Fix return values on mouse events.
21320         (Bug #2686, Sky <seb_sky@yahoo.com>)
21321
21322         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
21323         (pointed out by George Lebl)
21324
21325         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
21326         (From Ettore Perazzoli  <ettore@helixcode.com>)
21327  
21328 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
21329
21330         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
21331         clicks between rows or outside calender area correctly.
21332         (Patch from Damon Chaplin)
21333
21334         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
21335         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
21336           Call destroy function when overwriting existing data. 
21337           (Pointed out by Damon Chaplin)
21338
21339 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
21340
21341         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
21342           which was causing problems on various systems with Xmu.
21343           This hasn't been needed for a very long time.
21344           (Fixes #1185 3167)
21345
21346 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
21347
21348         * gdk/gdki18n.h: Include <ctype.h> when defining
21349           gdk_isw* in terms of is* as a fallback.
21350           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
21351
21352 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
21353
21354         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
21355           realize the widget when it is size allocated!
21356           (old, old bug)
21357
21358         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
21359           Removed unused call to gdk_window_get_size() that
21360           showed up when the above was fixed.
21361
21362 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
21363
21364         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
21365           fix up widget->window when the widget is a
21366           NO_WINDOW container widget.
21367
21368 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
21369
21370         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
21371           to account for the fact that feof() does _not_ 
21372           return TRUE on errors, and thus avoid infinite loops
21373           when trying to use gdk_pixmap_create_from_xpm()
21374           on unreadable values.
21375
21376 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
21377
21378         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
21379
21380 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
21381
21382         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
21383           gdk_gc_set_dashes to take gint8 instead of gchar to
21384           make it clearer that it is _not_ a NULL terminated string.
21385
21386         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
21387           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
21388           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
21389           arguments.
21390
21391 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
21392
21393         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
21394         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
21395         background size relative to our allocation, guard against small
21396         allocations, we may have not yet been size allocated.
21397
21398 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
21399
21400         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
21401         not just version == 3. We implement all 3 + most of 4 - 
21402         (we don't support matching text/plain;charset=iso-8859-1
21403         to a dest that expects text/plain). We'll still advertise
21404         3 to be safe, but any client implementing version >= 3
21405         must interoperate with 3.
21406         
21407 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
21408
21409         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
21410         background and gc members, add a warning in gtk_tooltips_set_color()
21411         indicating that this function is deprecated.
21412
21413 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
21414
21415         * docs/gtkfaq.sgml: FAQ Update:
21416           - Minor cleanups (Emmanuel, me)
21417           - New questions:
21418                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
21419                 How can I retrieve the text from a GtkMenuItem? (timj)
21420                 How do I validate/limit/filter the input to a GtkEntry? (me)
21421                 Memory does not seem to be released when I free the list
21422                         nodes I've allocated (timj)
21423
21424 2000-03-07  Tor Lillqvist  <tml@iki.fi>
21425
21426         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
21427         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
21428         for which it is no use to call GetLastError onWin9x.
21429         (gdk_other_api_failed) New function, for general error
21430         reporting without calling GetLastError.
21431         (gdk_win32_api_failed) OTOH, this function always calls
21432         GetLastError. (gdk_win32_last_error_string) Remove this function,
21433         GLib has the equivalent now.
21434
21435         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
21436         call them with function name, file name and line number in the
21437         arguments.
21438
21439         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
21440         functions.
21441         
21442         * gtk/gtk.def: Add some missing entry points.
21443
21444         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
21445         gtk_paned_set_gutter_size, which don't exist any longer, as void.
21446         
21447         Fixes by Hans Breuer:
21448
21449         * gdk/makefile.msc: Update for debugging.
21450
21451         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
21452         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
21453         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
21454         in the dash_list.
21455
21456         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
21457         the x11 backend.
21458
21459         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
21460
21461         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
21462
21463 2000-03-04  Tor Lillqvist  <tml@iki.fi>
21464
21465         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
21466         just pixel value of background colour.
21467
21468         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
21469         containing code snippet previously duplicated in a couple of
21470         places.
21471         
21472         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
21473         gdk_colormap_color.
21474
21475         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
21476         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
21477         events for autorepeated Shift, Control and Alt keys. Use
21478         gdk_colormap_color.
21479
21480         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
21481         pointer is inside the window the cursor of which we are setting,
21482         call SetCursor immediately.
21483
21484         * gdk/win32/makefile.cygwin
21485         * gtk/makefile.cygwin: If we don't have the build number stamp
21486         file, use zero.
21487
21488         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
21489         gtk_paned_set_gutter_size as empty.
21490
21491         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
21492         
21493 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
21494
21495         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
21496           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
21497           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
21498           docs/gtk_tut.sgml docs/gtk.texi TODO:
21499
21500           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
21501
21502 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
21503
21504         * gtk/gtkcalendar.c: Implement num_marked_dates,
21505           and don't emit mutiple day_selected signals on
21506           month_prev.
21507
21508 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
21509
21510         * docs/make-todo (lineno): let title and logo be configurable so
21511         that GNOME can use this script too.
21512
21513         * TODO.xml: added logourl and a title
21514
21515 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
21516
21517         * TODO.xml: Added some UI items, and an explanatory
21518         comment at the top of the file.
21519
21520 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
21521
21522         * TODO.xml: some updates, added abunch of new entries.
21523         a note for those fiddeling with this file, when done
21524         with it, invoke:
21525         $ ./docs/make-todo TODO.xml >/dev/null
21526         and correct output errors before comitting changes.
21527
21528 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
21529
21530         * TODO.xml: Added XML-structured TODO file.
21531         * docs/make-todo: python script to turn TODO.xml into
21532           pretty XML output. 
21533
21534 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
21535
21536         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
21537         the function to let it draw the seven dots, instead of the old,
21538         much maligned, method.
21539         (draw_dot): New function to draw a dot.
21540
21541         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
21542         to draw the handle inside the border width as opposed to outside.
21543         Use paint function instead of gdk_draw_point.
21544
21545         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
21546         to draw the handle inside the border width as opposed to outside.
21547         Use paint function instead of gdk_draw_point.
21548
21549         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
21550         Change indenting to be more GTK like.
21551
21552 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
21553
21554         * docs/gtk_tut.sgml: New section on GtkCalendar
21555         * examples/calendar: Update example code
21556
21557 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
21558
21559         * docs/gtkfaq.sgml: FAQ Update
21560
21561 2000-02-19  Anders Carlsson  <andersca@gnu.org>
21562
21563         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
21564         to prevent the scroll event to be propagated upwards.
21565
21566 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
21567
21568         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
21569         OwnerGrabButtonMask from button entries for
21570         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
21571
21572         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
21573         to the event mask (which will result in button/press release
21574         being added to the event mask on Unix) so scrolling works
21575         for layouts in scroll windows.
21576
21577         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
21578
21579         Patch from Anders Carlsson  <andersca@gnu.org> to add
21580         a scroll event.
21581
21582         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
21583         scrolling to the "Test Scrolling" part of testgtk.
21584  
21585         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
21586  
21587         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
21588         it against GDK_SCROLL.
21589  
21590         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
21591         way of mouse wheel scrolling.
21592  
21593         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
21594  
21595         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
21596  
21597         * gtk/gtkmain.c: Removed previous mouse wheel hack.
21598  
21599         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
21600         gdk_event_mask_table.
21601  
21602         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
21603         GdkEventScroll handler.
21604  
21605         * gdk/gdkevents.h: Added GdkEventScroll structure.
21606  
21607 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
21608
21609         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
21610         and Anders Carlsson to change the Paned widgets so that they
21611         can be dragged from anywhere along the length. Also change
21612         the way that this is drawn to make this apparent.
21613
21614         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
21615         from George Lebl to check that option_menu->menu is present
21616         before getting history.
21617
21618 2000-02-14  Tor Lillqvist  <tml@iki.fi>
21619
21620         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
21621         before the assertion for non-NULL segment list.
21622
21623         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
21624         Seems that pattern brushes *must* be 8x8 pixels! At least on my
21625         machine, but it might be display driver dependent. Sigh, so make
21626         sure the stipple is that size. Does Windows suck or what?
21627
21628         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
21629         places.
21630
21631 2000-02-13  Havoc Pennington  <hp@pobox.com>
21632
21633         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
21634         refcount to 1
21635         (gdk_cursor_new): init refcount to 1
21636
21637         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
21638
21639 2000-02-13  Tor Lillqvist  <tml@iki.fi>
21640
21641         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
21642         so that we don't have to do unnecessary settings to the HDC.
21643
21644         * gdk/win32/gdkdrawable-win32.c
21645         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
21646         gdk_gc_predraw.
21647
21648         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
21649         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
21650         GDI paths, call WidenPath to get the outline of the stroken path,
21651         and then fill the outline (with the brush that was built from the
21652         stipple).
21653
21654         * gdk/win32/gdkgc-win32.c: Factor out common code from
21655         _gdk_win32_gc_new and gdk_win32_gc_set_values into
21656         gdk_win32_gc_values_to_win32values. Use correct colour for
21657         SetBkColor() (Until now the code actually used a random colour in
21658         the call to SetBkColor()... but that didn't show up as not many
21659         GDI APIs use the background colour. Pattern (opaque stippled)
21660         brushes do.)
21661
21662         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
21663         gdk_win32_api_failed): New functions for error logging.
21664
21665         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
21666         WIN32_API_FAILED to call them, passing function or file name and
21667         line number.
21668
21669         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
21670
21671         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
21672         GdkColor for foreground and background in GdkGCWin32Data.
21673
21674         * gdk/makefile.cygwin: Link in the resource object separately.
21675
21676         * gdk/win32/rc/gdk.rc
21677         * gtk/gtk.rc (New file)
21678         * gdk/win32/makefile.cygwin
21679         * gtk/makefile.cygwin: Update build number in DLLs automatically,
21680         as in GLib.
21681
21682 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
21683
21684         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
21685         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
21686         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
21687         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
21688         parameters given and cursor->ref_count. coding style fixups.
21689
21690         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
21691         not GtkWidget.
21692         
21693         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
21694         fix up widget macros and add _GET_CLASS() variant.
21695         
21696         * gtk/*.c: some GtkType fixups.
21697
21698 2000-02-09  Tor Lillqvist  <tml@iki.fi>
21699
21700         * gdk/win32/gdkproperty-win32.c
21701         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
21702         were reversed.
21703
21704 2000-02-04  Tor Lillqvist  <tml@iki.fi>
21705
21706         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
21707         g_filename_to_utf8 to convert the font names Windows gives us from
21708         whatever is the default codepage to UTF-8.
21709         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
21710         in the other direction.
21711
21712         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
21713         error in debugging output.
21714
21715 2000-02-02  Tor Lillqvist  <tml@iki.fi>
21716
21717         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
21718         and height parameters to gdk_window_clear_area(). Not minus one.
21719
21720 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
21721
21722         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
21723         checks if the widget passed to gtk_drag_get_data() was not the
21724         dest widget.
21725
21726 2000-02-01  Tor Lillqvist  <tml@iki.fi>
21727
21728         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
21729         g_filename_from_utf8 functions (which were added a moment ago to
21730         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
21731         size buffers.
21732
21733         gtk_file_selection_get_filename returns the filename in the C
21734         runtime encoding. It calls g_filename_from_utf8, but copies the
21735         returned string to a static buffer, which is returned. I think
21736         this is better than returning the result from g_filename_from_utf8
21737         directly, which would mean all apps that use it would have to free
21738         the return value. Or should this function care about this issue at
21739         all? Maybe a new function with clearly defined semantics.
21740
21741         * gtk/gtkfilesel.h: Add comment about
21742         gtk_file_selection_get_filename returning the filename in the C
21743         runtime's encoding.
21744
21745         * README.win32
21746         * gdk/gdk.def
21747         * gdk/makefile.{cygwin,msc}
21748         * gtk/gtk.def: Updates.
21749
21750         * gdk/gdkcursor-win32.c: Initialise refcount.
21751
21752 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
21753
21754         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
21755
21756 2000-01-30  Havoc Pennington  <hp@pobox.com>
21757
21758         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
21759         destroy
21760
21761         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
21762
21763         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
21764         implemented in platform-specific code
21765
21766         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
21767
21768         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
21769         underscore in front
21770
21771         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
21772         put an underscore in front
21773
21774         * gdk/gdkcursor.c: new file, implements
21775         gdk_cursor_ref/gdk_cursor_unref
21776
21777         * gdk/gdkcursor.h: Refcount GdkCursor
21778
21779         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
21780
21781 2000-01-29  Tor Lillqvist  <tml@iki.fi>
21782
21783         * gdk/gdkwindow.h
21784         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
21785
21786 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
21787
21788         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
21789         structures to properly inherit from GtkWidget not GtkBin.
21790
21791 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
21792
21793         * gtk+.spec.in: Added lib/gtk+/include/* to %files
21794         (bug #5178 - Peter Wainright)
21795         
21796         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
21797         so that it will be installed.
21798         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
21799
21800 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
21801
21802         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
21803         for the GtkStyleClass vtable const.
21804
21805         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
21806         take a const string argument like GtkTranslateFunc. This will
21807         require changes in use code.
21808
21809 2000-01-19  Tor Lillqvist  <tml@iki.fi>
21810
21811         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
21812         semantics (to mimic the X11 backend, which just calls XClearArea)
21813         is to check for zero width (and height), and in that case use the
21814         window's width minus x (height minus y). This fixes for instance
21815         some redraw problems with gtkclist, which were easily noticeable
21816         in the gtk file selection widget.
21817
21818         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
21819         windows.
21820
21821 2000-01-13  Tor Lillqvist  <tml@iki.fi>
21822
21823         * configure.in
21824         * gdk/Makefile.am
21825         * gdk/x11/Makefile.am
21826         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
21827         (bug #5177).
21828         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
21829         out later.
21830
21831 2000-01-09  Tor Lillqvist  <tml@iki.fi>
21832
21833         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
21834         WM_MOVE for iconified or invisible windows. This fixes various
21835         problems when minimising windows. Thanks to Bernd Herd.
21836
21837 2000-01-05  Tor Lillqvist  <tml@iki.fi>
21838
21839         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
21840         backend's draw_lines method, not draw_points.
21841
21842 2000-01-02  Tor Lillqvist  <tml@iki.fi>
21843
21844         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
21845         before Owen's reorganisation: Don't have queued_events and
21846         queued_tail statics in this file, but use gdk_queued_events and
21847         gdk_queued_tail. This makes exposure event compression work again.
21848
21849         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
21850         seem to be needed?
21851
21852 1999-12-30  Tor Lillqvist  <tml@iki.fi>
21853
21854         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
21855         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
21856         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
21857         doesn't do anything.
21858
21859         * gdk/gdk.def: Add gdk_xid_table_insert.
21860
21861         * gdk/win32/gdkprivate-win32.h
21862         * gdk/win32/gdkevents-win32.c
21863         * gdk/win32/gdkinput-win32.c
21864         
21865         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
21866         extension_events field in the GdkWindowWin32Data struct. Use only
21867         the extension_events field in GdkWindowPrivate. Previously one was
21868         set, and the other one tested, which broke tablet
21869         functionality. Thanks to Keishi Suenaga for pointing this out.
21870
21871 1999-12-18  Tor Lillqvist  <tml@iki.fi>
21872
21873         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
21874         When handling a single character (text length == 1), don't handle
21875         it as if it was UTF-8.
21876
21877 1999-12-11  Tor Lillqvist  <tml@iki.fi>
21878
21879         * Makefile.am: Distribute README.win32.
21880         
21881         * gdk/Makefile.am
21882         * gdk/win32/Makefile.am: Distribute Win32 files.
21883
21884         * gdk/makefile.msc: New file.
21885
21886         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
21887         after label).
21888
21889         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
21890         gdk_error_code as GDKVAR, as they are referred outside GDK.
21891
21892         * gdk/win32/makefile.msc: Update.
21893
21894         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
21895         tweaks. Check only if at least one of those Unicode subrange bits
21896         we care for is set. If no code page bits are set, guess (wildly)
21897         based on the charset.
21898
21899         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
21900
21901         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
21902         non-NULL.
21903
21904         * gtk/gtkdnd.c
21905         * gtk/gtklayout.c
21906         * gtk/gtkplug.c
21907         * gtk/gtkselection.c
21908         * gtk/gtksocket.c
21909         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
21910         appropriate. There must be a cleaner way to handle this?
21911
21912         * gtk/gtkrc.c: Must include windows.h on Win32.
21913
21914         * gtk/testgtk.c: No need to include gdkx.h.
21915
21916         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
21917
21918 1999-12-07  Tor Lillqvist  <tml@iki.fi>
21919
21920         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
21921         the rbearing is set to the same as the width, but this should be
21922         fixed.
21923
21924 1999-12-06  Tor Lillqvist  <tml@iki.fi>
21925
21926         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
21927         function. If Windows doesn't tell us what Unicode subranges a font
21928         covers, guesstimate based on the codepages it covers. This will
21929         hopefully help those Windows versions or fonts that don't give us
21930         any useful Unicode subrange information with GetTextCharsetInfo.
21931         Call this function in gdk_font_load_internal.
21932
21933         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
21934         minor changes.
21935
21936 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
21937
21938         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
21939         New function, long needed.
21940
21941 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
21942
21943         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
21944         only_if_exists argument of gdk_atom_intern to
21945         bool.
21946
21947 1999-11-25  Tor Lillqvist  <tml@iki.fi>
21948
21949         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
21950         Fix two copy&paste errors.
21951
21952         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
21953         win32 has changed.
21954
21955         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
21956         GdkWin32SingleFont struct.
21957
21958         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
21959         subranges of loaded fonts. Clear font signature first, in case
21960         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
21961         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
21962
21963         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
21964         Unoffset clip region.
21965
21966 1999-11-23  Tor Lillqvist  <tml@iki.fi>
21967
21968         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
21969         event->any.window before calling filter functions.
21970
21971 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
21972
21973         * gtk/gtkgamma.h: Adapt cast macros to standard.
21974
21975 [ Merges from 1.2 ]
21976
21977 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
21978
21979         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
21980         If translation does not include a '/', use entire
21981         translation instead of crashing.
21982
21983 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
21984
21985         * docs/gtk_tut.sgml:
21986         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
21987
21988 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
21989
21990         * gtk/gtkselection.c (gtk_target_list_remove): Use
21991         g_list_remove_link, not g_list_remove.
21992
21993         [ From Geert Bevin <gbevin@thunderstorms.org> ]
21994         
21995 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
21996
21997         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
21998         statement upon unselection (how the heck did that slip in?).
21999
22000 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
22001
22002         * gtk/gtktext.c (gtk_text_freeze): 
22003         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
22004         in frozen state (and aparently crashes). patch provided by Anders
22005         Melchiorsen <and@kampsax.dtu.dk>.
22006
22007 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
22008
22009         * fix insensitive default/focus widget activation,
22010         reported by Matt Goodall <mgg@isotek.co.uk>.
22011
22012         * gtk/gtkwindow.c (gtk_window_key_press_event): 
22013         (gtk_window_activate_default):
22014         (gtk_window_activate_focus):
22015         return handled=FALSE for actiavtion of insensitive default
22016         widgets. return handled=TRUE for activation of insensitive
22017         focus widgets. don't activate in either case.
22018
22019 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
22020
22021         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
22022         and $glib_cflags to match library order and in the
22023         theory that an old version of GLib is more likely to
22024         be in the include directory for X then vice-versa.
22025         (Bug #2776)
22026
22027 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
22028
22029         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
22030         to determine the locale for fontsets, not LC_MESSAGES;
22031         the user may want English messages with a handling
22032         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
22033         will still be broken) (Bug #2891)
22034
22035 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
22036
22037         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
22038
22039 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
22040
22041         * gtk/gtkrc.ko: Changed the Korean default fontset.
22042
22043 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
22044
22045         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
22046         where when scrolling to the left or top double exposes
22047         were done, causing major slowdowns.
22048
22049 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
22050
22051         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
22052         names to lowercase and alphanumeric, before looking
22053         them up.
22054
22055         * gtk/Makefile.am: Install codeset variant gtkrc files
22056         with normalized names.
22057
22058 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
22059
22060         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
22061         popup menus when the menu is already visible, but its parent
22062         is still hidden, (happens after tornoff window got hidden).
22063
22064 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
22065
22066         * gtk/Makefile.am (install-data-local): Fix
22067         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
22068         deleted, causing error messages on install.
22069
22070 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
22071
22072         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
22073         the handle as well, since we now sometimes ignore
22074         exposes on the handle while resizing.
22075
22076 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
22077
22078         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
22079         extra g_free introduced in one of the last one or two 
22080         commits.
22081
22082 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
22083
22084         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
22085         consistent, put each style that a gtkrc.* file creates
22086         in a unique namespace, remove old files before installing.
22087
22088 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
22089
22090         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
22091         gtk_rc_init is called multiple times. (Yes, people who
22092         do that have bugs in their code.)
22093
22094 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
22095
22096         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
22097         Remove it since it's generated by the Makefile anyway
22098
22099 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
22100
22101         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
22102         device->info.axes for core pointer.
22103
22104 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
22105
22106         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
22107         idle_id, to deal with obsolete, broken C libraries.
22108
22109 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
22110
22111         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
22112         allocation->x/y twice!
22113
22114         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
22115         consistent with gtk_vscale_pos_trough().
22116
22117 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
22118
22119         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
22120         be queueing a resize on a toplevel container between
22121         the time we show it and when we map it. So, we need
22122         to test GTK_WIDGET_VISIBLE() for toplevels, and only
22123         use GTK_WIDGET_DRAWABLE() for child windows.
22124
22125 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
22126
22127         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
22128         (fixes bug #2144)
22129
22130 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
22131
22132         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
22133         container DRAWABLE (instead of VISIBLE), so we don't queue
22134         resizes on non-toplevel containers.
22135
22136 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
22137
22138         * gtk/gtkselection.[ch]: Make the data argument
22139         const guchar *.
22140
22141 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
22142
22143         * gtk/gtkwindow.c: Try to behave sensibly if 
22144         the focus widget is the window itself. (Should
22145         we allow this at all?)
22146
22147 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
22148
22149         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
22150         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
22151         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
22152         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
22153         in prototypes and implementations consistent (Tomas Ogren).
22154
22155         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
22156         before the widget is unparented (reported by damon).
22157
22158         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
22159         since we provide unsigned data anyways.
22160
22161 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
22162
22163         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
22164         the call to gtk_tooltips_layout_text() until later.
22165
22166         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
22167         Call gtk_widget_ensure_style() before using the style.
22168
22169 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
22170
22171         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
22172         for old widgets that don't propagate draws to all
22173         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
22174
22175 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
22176
22177         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
22178         for a redraw but just the widget that requested the resize.
22179
22180 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
22181
22182         * gtk/gtkcontainer.c: added new widget level method
22183         gtk_container_set_reallocate_redraws() and a GtkContainer flag
22184         reallocate_redraws : 1 to reflect the setting, exported this through
22185         the argument system as a boolean ::reallocate_redraws.
22186
22187         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
22188         on the widget because the allocation changes, do so as well for
22189         widget->parent if the parent has reallocate_redraws set to TRUE.
22190         with that containers requesting reallocation redraws get automatically
22191         redrawn if their children changed allocation (this unfortunately
22192         affects also other children that didn't change allocation, but we
22193         cannot work around that before 1.3).
22194
22195 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
22196
22197         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
22198         _and_ height are >0 (not _or_).
22199
22200         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
22201         instead of gtk_container_queue_resize(), which is a core gtk internal
22202         function (must have been on crack when i queued that).
22203
22204         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
22205         we can check more reliably if we want to discard expose events.
22206         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
22207         flag.
22208         
22209         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
22210         we simply trust these events. for deciding whether to discard exposes,
22211         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
22212         
22213 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
22214
22215         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
22216         queues of areas that are completely off screen.
22217
22218         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
22219         logic for handleboxes.
22220
22221         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
22222         check on width/height.
22223
22224 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
22225
22226         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
22227         we are fine with using $@ the way we do (if we actually encounter
22228         brokeness with $@ in VPATH builds because of additional path prefixes,
22229         we need to use $(@F) actually).
22230
22231 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
22232
22233         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
22234         short lived bugs, that would allow language bindings to do surgeries
22235         to our guts.
22236
22237 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
22238
22239         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
22240         where comparison was being done against an uninitialized
22241         value causing intermittant results depending on
22242         compiler flags. Also make it clearer that we aren't
22243         ever initializing the child as 0x0 (though this will
22244         be caught in gtk_widget_size_allocate())
22245
22246 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
22247
22248         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
22249         gtk_window_unset_transient_for() call after we do checks
22250         involving the old transient parent.
22251         [ From Lance Capser <lmc@cyberhighway.net> ]
22252
22253 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
22254
22255         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
22256         an empty file.
22257
22258 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
22259
22260         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
22261         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
22262
22263 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
22264
22265         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
22266         `$@' is valid only in the build dir, not after we've done 
22267         `cd $srcdir'.  Also use `test -f' instead of less portable
22268         `test -e'.
22269
22270 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
22271
22272         * gtk/gtktext.c (correct_cache_insert): Rewrite
22273          for simplicity, and hopefully correctness.
22274          (Fixes bug #1322, which was a segfault when
22275           on some insertions with the properties around
22276           the insertion set up just wrong.)
22277
22278         * gtk/gtktext.c (gtk_text_adjustment): When we receive
22279          a "changed" signal, clamp the new value to the adjustment
22280          bounds to avoid segfaulting if someone tries to change
22281          the adjustment to a bogus value. (Bug #1795)
22282
22283 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
22284
22285         * gtk/gtkmain.c: Ignore unexpected destroy notifies
22286         for children, for toplevel windows handle them
22287         like delete_event.
22288
22289         * gtk/gtkplug.c: Add an unrealize handler so that
22290         we unref plug->socket_window when we are done
22291         with it.
22292
22293 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
22294
22295         * gtk/gtktext.c (clear_area): Fix stupid signedness
22296          problem that was causing background to sometimes
22297          be misaligned.
22298
22299 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
22300
22301         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
22302         
22303         * gtk/gtkmenu.c (gtk_menu_position): Make
22304          sure we never position menus with negative x, y,
22305          since gtk_widget_set_uposition() can't handle that.
22306
22307         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
22308          Modify the positioning code a bit so that we always
22309          put the top-left corner onscreen. (This is for
22310          UI reasons, gtk_menu_position() now takes care of
22311          gtk_widet_set_uposition() brokeness.)
22312
22313 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
22314
22315         * gtk/Makefile.am: fixed up things for -jx, x > 1.
22316
22317 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
22318
22319         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
22320           RC style that is passed in. The lack of the ref
22321           before was a bug. If people worked around this
22322           bug, this will introduce a slight memory leak
22323           in their code. The code should typically look like:
22324
22325             rc_style = gtk_rc_style_new ();
22326             [...]
22327             gtk_widget_modify_style (widget, rc_style);
22328             gtk_rc_style_unref (rc_style);
22329
22330         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
22331           the style if it was already set.
22332
22333         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
22334           style if it was set before.
22335
22336 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
22337
22338         * gtk/testgtk.c (main): Add a check to see if we
22339           are being run from the correct directory and
22340           to quit nicely if we are not.
22341
22342         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
22343           static.
22344
22345 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
22346
22347         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
22348
22349         * gtk/gtkwindow.c:
22350         queue resizes unconditionally (gtk_widget_queue_resize will figure
22351         what to do if the window is not realized).
22352         (gtk_window_move_resize): only recenter the window
22353         for GTK_WIN_POS_CENTER_ALWAYS.
22354         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
22355         the same way as GTK_WIN_POS_CENTER.
22356
22357 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
22358
22359         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
22360         with (!(info->last_flags & GDK_HINT_POS)) instead of
22361         (!info->last_flags & GDK_HINT_POS).
22362
22363         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
22364         new_height unconditionally, because we use these values even if
22365         !default_size_changed && !hints_changed.
22366         comented the (default_size_changed || hints_changed) case with
22367         respect to resize rejects from the window manager.
22368
22369         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
22370         in the zvt condition hack, since this includes the window hints, set
22371         the hints after the handling_resize case.
22372
22373         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
22374         window is initially shown with to the geometry.
22375
22376 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
22377
22378         * gtk/gtkwindow.c (gtk_window_move_resize):
22379         s/size_changed/default_size_changed/g so i know what's
22380         really going on (frying brain on smaller flame now).
22381
22382 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
22383
22384         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
22385         we have size_changed upon handling_resize. this is a gross
22386         workaround for the broken zvt widget and should be removed in
22387         1.3 again (search for FIXME).
22388         Owen provided an accurate comment for this:
22389
22390         /* We could be here for two reasons
22391          *  1) We coincidentally got a resize while handling
22392          *     another resize.
22393          *  2) Our computation of size_changed was completely
22394          *     screwed up, probably because one of our children
22395          *     is broken. It's probably a zvt widget.
22396          *
22397          * For 1), we could just go ahead and ask for the
22398          * new size right now, but doing that for 2)
22399          * might well be fighting the user (and can even
22400          * trigger a loop). Since we really don't want to
22401          * do that, we requeue a resize in hopes that
22402          * by the time it gets handled, the child has seen
22403          * the light and is willing to go along with the
22404          * new size. (this happens for the zvt widget, since
22405          * the size_allocate() above will have stored the
22406          * requisition corresponding to the new size in the
22407          * zvt widget)
22408          *
22409          * This doesn't buy us anything for 1), but it shouldn't
22410          * hurt us too badly, since it is what would have
22411          * happened if we had gotten the configure event before
22412          * the new size had been set.
22413          */
22414
22415 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
22416
22417         * gtk/gtkrc.c: deal properly with the fact that RC
22418           style lists may include rc styles more than once.
22419
22420         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
22421           unused static function.
22422
22423         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
22424           stack of directories of RC files currently being
22425           parsed and implicitely add them to pixmap path.
22426           
22427           This fixes a bug where the directory would get
22428           appended then overwritten by pixmap_path declarations.
22429
22430           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
22431
22432         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
22433           theme's exit function. (Patch from Peter Wainwright,
22434           bug #1454)
22435
22436         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
22437           Add a destroy() handler to take care of removing
22438           group for menu item. (Fixes bug #1197)
22439
22440         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
22441           in warning message.
22442
22443 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
22444
22445         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
22446         roundtrip to figure window's width and height, since we know that
22447         anyways from widget->allocation.
22448
22449 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
22450
22451         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
22452           the hints after we request the new size.
22453
22454 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
22455
22456         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
22457           GTK_WIDGET_REALIZED() assertion - we can compute the
22458           hints before we are realized.
22459
22460         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
22461           hint changing so that we have a value of hints_changed
22462           when we decide whether to constrain the window size.
22463
22464         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
22465
22466         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
22467         change back to G_MAXINT.
22468
22469 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
22470
22471         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
22472         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
22473         contain uncluttered values.
22474         (gtk_window_compute_hints): simply assert that window is realized
22475         and that geometry_info is valid, since we rely on this anyways.
22476         (gtk_window_constrain_size): major cleanups to the code.
22477         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
22478         for the base size, instead of the minimums. use 32767 as max width
22479         and height (like in gtkwindow.c) instead of G_MAXINT.
22480
22481 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
22482
22483         * cleaned up the GtkContainer.need_resize flag handling mess, we
22484         only need to force resize requests when we were prematurely
22485         realized, or our widget tree was modified when we were temporarily
22486         hidden. handling these cases directly upon showing the window (i.e.
22487         while the GdkWindow is still unmapped) avoids the need to wait for
22488         a configure event response and therefore makes the GUI more snappier
22489         and avoids blank windows during the roundtrip.
22490
22491         * gtk/gtkwidget.c:
22492         (gtk_widget_hide): 
22493         (gtk_widget_show): don't queue resizes on toplevels, they know how
22494         to deal with matters.
22495
22496         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
22497         flag directly for not visible resize containers and spare us unecessary
22498         signal emissions.
22499
22500         * gtk/gtkwindow.c:
22501         (gtk_window_realize): if we need to enforce premature size allocation,
22502         queue a container resize so we are correctly resized later on.
22503         (gtk_window_init):
22504         (gtk_window_size_request):
22505         don't freak around with the ->need_resize flag,
22506         gtk_container_queue_resize() will care about that.
22507         (gtk_window_show):
22508         handle initial resizing issues here, we can handle matters better in
22509         this place, especially since we know that our GdkWindow is still
22510         unmapped.
22511         (gtk_window_move_resize):
22512         don't care about ->need_resize at all.
22513         handle size changes properly that occoured while we waited for a
22514         configure event.
22515
22516 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
22517
22518         * gtk/gtkwidget.c (gtk_widget_set_uposition):
22519         * gtk/gtkwindow.[hc] (gtk_window_reposition):
22520         Move the hint setting code from gtk_widget_set_uposition
22521         to here; set the hints so that we respect any previously
22522         set geometry hints.
22523
22524         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
22525         change the window hints here or move the window here,
22526         let that happen in gtk_window_move_resize().
22527
22528 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
22529
22530         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
22531         to already queued resizes (and therefore redraws) on a widget, check
22532         its anchestry as well.
22533
22534         * gtk/gtkcontainer.c:
22535         (gtk_container_queue_resize): clear resize widgets for resize
22536         containers before aborting prematurely. this is especially important
22537         for toplevels which may need imemdiate processing or their resize
22538         handler to be queued.
22539         (gtk_container_dequeue_resize_handler): added new internal function for
22540         gtkwindow.c.
22541
22542         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
22543         configure event, take possible changes in window position into account
22544         as well.
22545         if we request a new window size, queue up a resize handler that will
22546         last until the configure event response arrives.
22547         combined the ->need_resize case (initial show) with the general size
22548         (hints) changed case and added even more comments.
22549         if !auto_shrink, only revert to the old allocation if the new size
22550         is smaller than the current allocation.
22551
22552 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
22553
22554         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
22555                            gtk_window_set_geometry_hints
22556                            gtk_window_set_default_size):
22557         When hints are set, queue a resize so that the hints will
22558         be eventually reset on the toplevel.
22559
22560         * gtk/gtkwindow.c (gtk_window_show): Use
22561         gtk_window_compute_default_size(). Clear the need_resize flag
22562         on the initail map so that we don't unnecessarily trigger the
22563         resize code.
22564
22565         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
22566         into separate functions. Compare the hints we are setting
22567         with what we set last time so that we can accurately
22568         tell when we need to reset the hints.
22569
22570         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
22571         function to figure out the size from requisition
22572         and default_size.
22573
22574         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
22575         from fvwm to constrain a size to the geometry hints.
22576
22577         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
22578         to compare two sets of geometry hints.
22579
22580         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
22581         from gtk_window_set_hints(), just compute the hints,
22582         don't set them.
22583
22584         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
22585         code from gtk_window_move_resize() to separate function,
22586         rationalize a bit.
22587
22588 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
22589
22590         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
22591         structure into a new private structure.
22592
22593         * gtkrc.c: Split GtkRcStyle into public/private.
22594         In the private part, add a list of pointers to the
22595         RcStyle lists this RcStyle participates in.
22596
22597         * gtkrc.c: When a RcStyle is free, remove all
22598         lists referencing it from the 
22599         realized_style_ht hash, and free those lists.
22600         
22601         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
22602         gtk_rc_init(), since that adds the default styles
22603         to the list of parsed RC files again.
22604
22605         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
22606         
22607 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
22608
22609         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
22610         checks that ensure that a widget's allocation is at least 1 in width
22611         and height. (GNOME note: this doesn't affect old panel code anymore,
22612         because GtkSocket will request width and height of at least 1 since
22613         Fri Jul 23).
22614
22615         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
22616         allocated yet (happens if the user realizes the window prematurely),
22617         size request and allocate it.
22618         (gtk_window_size_allocate): guard against guint underflows.
22619
22620 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
22621
22622         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
22623         in gtk_built_sources, so gtk.defs gets built prior to all other
22624         sources.
22625
22626 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
22627
22628         * gtk/Makefile.am:
22629         invoke indent on gtkmarshal.*. 
22630         rewrote source generation rules, use COPYING as oldest source tag for
22631         a piggyback rule to generate all sources from (don't touch it ;).
22632         major cleanups, strip spaces on build rules for GNU Make.
22633
22634         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
22635         source and target files from commandline arguments. don't invoke indent.
22636
22637 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
22638
22639         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
22640         notebook after switch to avoid drawing problems.
22641         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
22642         
22643         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
22644         show them instead. 
22645         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
22646
22647 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
22648
22649         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
22650         notebook after switch to avoid drawing problems.
22651         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
22652         
22653         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
22654         show them instead. 
22655         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
22656
22657 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
22658
22659         * gtk/gtkwindow.c:
22660         we use window->need_resize from configure_event now, to indicate that
22661         the gtkwindow should keep its allocation (e.g. because the user resized
22662         the window through window manager handles). resize_count is now reliably
22663         used to figure whether we got the allocation we requested from the
22664         window manager.
22665         configure events get queued as resizes now, the real stuff (size
22666         computation and allocation) now only goes on in gtk_window_move_resize().
22667         GtkWindow's requisition now contains its *real* requisition (like all
22668         other widgets), *not* taking usize into account.
22669         geometry_info->last_{width|height} is now updated from set_hints() only
22670         so it always contains the last hints we set for the window manager.
22671         made some event handlers return TRUE instead of FALSE.
22672         the overall code should be much more straight forward now, and the
22673         significant code portions are accompanied by comments now.
22674         (gtk_window_set_hints):
22675         removed requisition argument and made it
22676         fetch the requisition through gtk_widget_get_child_requisition.
22677         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
22678         does that now.
22679         (gtk_window_show):
22680         ensure that the widget is realized before calling 
22681         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
22682         ensure that we got properly size requested and allocated before
22683         realization.
22684         (gtk_window_configure_event):
22685         ignore plain window moves, or reallocate the widget tree through the
22686         resize queue otherwise.
22687         (gtk_window_move_resize):
22688         mostly rewrote this function to figure window manager hints more
22689         reliably, coalesce window moves and resizes to reduce configure events
22690         and do actuall size allocations.
22691
22692 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
22693
22694         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
22695         that have a resize pending, because a redraw is already queued for them.
22696
22697         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
22698         hack to clear resize_widgets.
22699
22700         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
22701         for resize containers prior to size allocation. (this is also a bit
22702         ugly, but avoids side effects for stopped emissions and is thus more
22703         reliable).
22704         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
22705
22706         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
22707         function from gtk_tooltips_expose, as we connect to ::expose_event
22708         *and* ::draw now.
22709
22710 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
22711
22712         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
22713         checks.
22714         (gtk_target_list_unref): Likewise.
22715
22716         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
22717
22718 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
22719
22720         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
22721         guard against division by zero. (Fixes bug #1339)
22722
22723 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
22724
22725         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
22726         Prevent the trivial leak of information of allowing
22727         word motion when the entry is not visible.
22728
22729 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
22730
22731         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
22732         modality to error dialog as well as confirmation dialogs.
22733         (Bug #1803, reported by Rosanna Wing Sze Yuen)
22734
22735 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
22736
22737         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
22738         tree->view_lines.
22739         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
22740
22741         * gtk/Makefile.am (install-data-local): Solaris apparently
22742         has various troubles with ln -f; use rm first instead.
22743         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
22744
22745 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
22746
22747         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
22748         use `cp' followed by `rm' (the `rm' was already there).
22749
22750 July 30, 1999 Elliot Lee <sopwith@redhat.com>
22751         
22752         * configure.in: Fix autoconf warnings about cross compilation by
22753         trying to provide sane defaults for AC_TRY_RUN.
22754         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
22755         put them into $(srcdir) when generated. Also add a dependency of
22756         gtksignal.h on gtkmarshal.h for -j builds. 
22757         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
22758
22759 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
22760
22761         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
22762         GDK_THREADS_{LEAVE,ENTER} pair.
22763         (From Paul Fisher <pnfisher@redhat.com>)
22764
22765 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
22766
22767         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
22768         width and height are always >0 (owen).
22769
22770 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
22771
22772         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
22773         change that assured that a widget's allocated with and height are
22774         always >1, since this breaks *buggy* panel code. unfortunately this
22775         back-breaks the gimp's color selector.
22776
22777         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
22778         allocation is always >0 in width and height, before sending the
22779         configure event; this is a *gross* hack to get the gimp back to work.
22780         
22781         * marked both cases with TODO-1.3
22782
22783 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
22784
22785         * gtk/gtktext.c: Don't display wrap indicators when
22786         text is not editable and word wrap is on.
22787
22788 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
22789
22790         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
22791         option menus here as they are not derived from menu shell, assure that
22792         the option menu has a menu we can add items to.
22793
22794 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
22795
22796         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
22797         width/height to (gint) before calculations and check against < 0 to
22798         avoid guint wraparounds.
22799
22800 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
22801
22802         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
22803         width and height is never zero. sanity check both dimensions against
22804         32767 and issue a warning if the allocation is greater than that.
22805
22806 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
22807
22808         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
22809         to g_main_pending() as well.
22810
22811 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
22812
22813         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
22814         call to g_main_iteration() - since that will regrab
22815         GTK+ lock to process events.
22816
22817 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
22818
22819         * gtk/gtkwindow.c
22820         - Regularize with the rest of GTK+ by making widget->requisition
22821           not reflect the set_usize()
22822         - Always recompute geometry hints, then check if they
22823           changed before sending them to the X server. The
22824           previous checks for changes would fail in a number
22825           of circumstances. 
22826
22827 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
22828
22829         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
22830
22831 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
22832
22833         * gtk/gtkdnd.c:
22834         - Code cleanups
22835         - Instantaneously update on modifier key presses
22836         - Allow cancellation of the drag with Escape.
22837
22838 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
22839
22840         * gtk/testgtk.c (create_handle_box): Set the policy
22841         to auto_shrink - otherwise the appearance is rather
22842         strange when flipping between horizontal and vertical.
22843
22844 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
22845
22846         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
22847         (gtk_window_set_default_size): don't change a value if it's < 0.
22848         queue a resize.
22849
22850 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
22851
22852         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
22853
22854 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
22855
22856         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
22857         add an extra "/" when concating "/" + filename.
22858         (From Matt Grossman <mattg@oz.net>)
22859
22860 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
22861
22862         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
22863         for fg_gc if we set it for drawing pixmap.
22864
22865 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
22866
22867         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
22868         
22869         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
22870         already set, call old engine's destroy function and
22871         unref the old engine.
22872
22873 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
22874
22875         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
22876
22877 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
22878
22879         * gtk/gtkaccelgroup.h: mark certain functions as internal.
22880
22881 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
22882
22883         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
22884         expand behaviour changed.
22885
22886         * gtk/gtklabel.c (gtk_label_set_pattern):
22887         (gtk_label_set_justify):
22888         (gtk_label_set_line_wrap):
22889         don't bother invoking queue_clear, the reallocation does
22890         that for us, always free_words so the upcoming resize will
22891         relayout the label's contents.
22892
22893 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
22894
22895         * applied argument implementation patches from Elena Devdariani
22896         <elena@cogent.ca>.
22897
22898         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
22899         ::space_style, ::relief
22900         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
22901         * gtk/gtkpreview.c: ::expand
22902         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
22903         * gtk/gtknotebook.c: ::homogeneous
22904         * gtk/gtklabel.c: ::wrap
22905         * gtk/gtklist.c: ::selection_mode
22906         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
22907         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
22908         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
22909         * gtk/gtkclist.c: ::sort_type
22910         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
22911         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
22912
22913 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
22914
22915         * gtk/gtkstyle.c: Removed ill-thought-out part of last
22916         comment.
22917
22918 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
22919
22920         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
22921         counting right when we have to attach a new style
22922         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
22923
22924         * gtk/gtkstyle.c: Documented the refcounting
22925         peculularities of gtk_style_attach.
22926
22927 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
22928
22929         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
22930         window types.
22931
22932         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
22933         of GTK_TOPLEVEL for creating the window.
22934
22935 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
22936
22937         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
22938         the last argument (reported by Per Winkvist).
22939         
22940 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
22941
22942         Fixes for invisible XOR lines (Frank Loemker
22943         <floemker@TechFak.Uni-Bielefeld.DE>)
22944         
22945         * gtk/gtkclist.c (gtk_clist_realize): Always use
22946         a non-zero pixel for GDK_XOR.
22947
22948         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
22949         Use GDK_INVERT instead of GDK_XOR.
22950
22951 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
22952
22953         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
22954         signals if h/voffsets differ from adjustment values.
22955         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
22956
22957 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
22958
22959         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
22960         ::selection-done emissions up to the topmost menu shell.
22961
22962 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
22963
22964         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
22965         the user data on the window before destroying it.
22966
22967         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
22968         unrealize handler to take care of destroying 
22969         notebook->panel properly. 
22970         (Bug #1198 - Morten Welinder <terra@diku.dk>)
22971
22972         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
22973         of g_new and g_realloc to stop memory leak. (Actually,
22974         we could just use g_realloc(), but I'm not 100% sure
22975         that is portable).
22976         (Bug #1196 - Morten Welinder <terra@diku.dk>)
22977
22978 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
22979
22980         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
22981
22982         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
22983         for fontsets.
22984
22985         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
22986         with bin/button confusion.
22987
22988 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
22989
22990         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
22991         and show how preselection of radio items is done.
22992
22993 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
22994
22995         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
22996         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
22997         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
22998         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
22999         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
23000         * gtk/gtktable.c (gtk_table_attach): 
23001         * gtk/gtklist.c (gtk_list_insert_items): 
23002         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
23003         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
23004         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
23005         * gtk/gtkbin.c (gtk_bin_add): 
23006         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
23007         * gtk/gtkfixed.c (gtk_fixed_put): 
23008         * gtk/gtklayout.c (gtk_layout_put):
23009         general fixups to container_add logic. always realize child if
23010         child->parent is realized, only map the child and queue a resize
23011         if child and child->parent are both visible.
23012
23013 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
23014
23015         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
23016         instead of gtk_container_foreach to walk and unrealize children, so
23017         composite children get also unrealized.
23018         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
23019         (gtk_widget_map): assert that the widget is visible (basic constrain).
23020         (gtk_widget_real_map): assert that the widget is realized (basic
23021         constrain).
23022
23023 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
23024
23025         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
23026
23027 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
23028
23029         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
23030         file for iso-8859-2 locales.
23031
23032         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
23033
23034 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
23035
23036         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
23037          (Pointed out by andy@rz.uni-karlsruhe.de and others).
23038          Remove some suspicious and useless lines. 
23039
23040 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
23041
23042         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
23043         width,height = 0, 0 to mean - here to edge of window,
23044         instead of -1, -1, since the former is all we support.
23045
23046 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
23047
23048         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
23049         when removing from quit_functions list.
23050
23051 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
23052
23053         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
23054
23055 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
23056
23057         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
23058          When redrawing characters on non-visible entry, use appropriate
23059          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
23060
23061 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
23062
23063         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
23064         from drag coordinates.
23065         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
23066         use drag_dest_cell.
23067
23068         * gtk/gtktree (drag_dest_cell)
23069         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
23070         (Bug #1129)
23071
23072 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
23073
23074         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
23075         translate_* fields.
23076         (gtk_item_factory_finalize): invoke translate_notify independant from
23077         translate_data.
23078         (gtk_item_factory_set_translate_func): likewise.
23079         (gtk_item_factory_destroy): only remove ifactory pointer from those
23080         widgets that belong to us (stupid me).
23081
23082 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
23083
23084         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
23085         rc_style list when lookup succeeeds.
23086
23087 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
23088
23089         * gtk/gtkctree.c (resync_selection): 
23090         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
23091         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
23092         bug.
23093
23094 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
23095
23096         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
23097         Add some missing GDK_THREADS_ENTER()/LEAVE around
23098         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
23099
23100 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
23101
23102         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
23103         rather than emit_by_name.
23104
23105         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
23106         on the widget across multiple signal emissions.
23107         (gtk_editable_delete_text): same here.
23108         (gtk_editable_class_init): set widget_class->activate_signal after
23109         editable_signals[ACTIVATE] has been created.
23110
23111 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
23112
23113         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
23114         position here prematurely -- we might not have the
23115         right ->min_position and ->max_position yet.
23116
23117 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
23118
23119         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
23120         Add error traps so if the other end of the connection
23121         dies, we survive.
23122
23123         * gtk/gtkselection.c (gtk_selection_notify): Clean
23124         up properly when selection property retrieval fails.
23125         
23126         * gtk/gtkselection.c (gtk_selection_request): Correctly
23127         reject SelectionRequest notifies where the handler
23128         returns no data.
23129
23130 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
23131
23132         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
23133         when we've previously highlighted.
23134
23135         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
23136         emit two "drag_leave" signals for Motif drops.
23137
23138         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
23139         back the correct status messages when dropping from
23140         Motif onto a proxy window that is rejecting the
23141         drop.
23142
23143 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
23144
23145         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
23146         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
23147         to compare two argument values. added gtk_arg_to_valueloc() to set a
23148         variable from an arg through its location (pointer).
23149
23150         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
23151         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
23152         as gfloat*, uchars are collected as guchar*, ints are collected as
23153         gint*, etc...
23154
23155 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
23156
23157         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
23158         Include <string.h> instead of <strings.h>.
23159
23160         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
23161         (actually, a lot more duplicate includes occur if
23162          you trace through the sequence of #include's)
23163         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
23164         
23165 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
23166
23167         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
23168         gtk-a-higuti-990322-[0-3]
23169
23170         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
23171         that was causing -DX_LOCALE not to work.
23172
23173         * gtk/gtkrc.c (gtk_rc_init):
23174         X_LOCALE will never have LC_MESSAGES defined
23175
23176 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
23177
23178         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
23179         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
23180
23181         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
23182         left/right as well (gtk-michael-980726-0.patch.gz).
23183
23184         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
23185         for pointer values, use gchar instead of char. fixed uline allocation
23186         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
23187         chunks instead of G_ALLOC_ONLY.
23188         (gtk_label_size_request): always alter requisition as passed and leave
23189         widget->requisition alone.
23190         (gtk_label_set_text): allow NULL strings.
23191         (gtk_label_new): likewise.
23192
23193 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
23194
23195         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
23196
23197 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
23198
23199         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
23200         *and* mapped (i.e. drawable).
23201         (gtk_bin_expose): only send exposes to drawable children.
23202
23203         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
23204         (gtk_box_expose): only send exposes to drawable children.
23205
23206         * gtk/gtkhscale.c (gtk_hscale_draw): 
23207         * gtk/gtkvscale.c (gtk_vscale_draw):
23208         hm, this is an ugly one. we first compute the size of our trough area
23209         here (window relative) and then check intersection with the draw_area
23210         which is parent relative because we're a NO_WINDOW widget, so we need
23211         to offset the trough area by allocation.x and allocation.y before the
23212         check. (this must not be done for the background area though, since
23213         that's already computed parent relative).
23214
23215 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
23216
23217         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
23218         unrealize title buttons.
23219
23220 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
23221
23222         * gtk/gtkclist.c (gtk_clist_column_title_passive)
23223         (gtk_clist_column_title_active): 
23224         only connect/disconnect to GtkWidgetClass::event to block mouse events.
23225
23226         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
23227         zero initialize event, removed superfluous gdk_window_get_pointer call
23228
23229         * gtk/gtklist.c (gtk_list_vertical_timeout)
23230         (gtk_list_horizontal_timeout): removed superfluous
23231         gdk_window_get_pointer call
23232
23233 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
23234
23235         * plugging problems reported by "Bruce Mitchener, Jr."
23236         <bruce@puremagic.com> due to a purify session.
23237
23238         * gtk/gtkstyle.c:
23239         (gtk_style_ref): 
23240         (gtk_style_unref): assert ref_count to be > 0.
23241
23242         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
23243         the requisition.
23244         (gtk_clist_set_shift): likewise.
23245
23246         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
23247         adjustments.
23248
23249         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
23250         event before sending it and set send_event to TRUE (which needs to
23251         be done for *all* synthesized events).
23252         (gtk_list_vertical_timeout): likewise.
23253
23254         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
23255         leaks.
23256
23257         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
23258         to TRUE when synthesizing events.
23259
23260 [ *** end of merges from 1.2 *** ]      
23261         
23262 1999-11-21  Tor Lillqvist  <tml@iki.fi>
23263
23264         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
23265         (or copied from gdkconfig.h.win32 on Win32, sigh).
23266
23267         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
23268
23269         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
23270
23271         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
23272
23273         * gdk/gdkconfig.h.win32: New file.
23274
23275         * gdk/win32/makefile.cygwin: Build just a static archive here.
23276
23277         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
23278         for the DLL from the static archive built above.
23279
23280         * gdk/gdk.def: Moved here from the win32 subdirectory.
23281
23282         * gdk/win32/*: Adapt for the changed private struct organisation.
23283
23284         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
23285
23286 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
23287
23288         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
23289         for wheel mice (buttons 4 and 5).
23290
23291 1999-11-18  Tor Lillqvist  <tml@iki.fi>
23292
23293         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
23294         drawables use just the pixel field in the foreground and
23295         background GdkColor of the GdkGC.
23296
23297         gdk_gc_set_{fore,back}ground() are called in the GIMP with
23298         GdkColors containing uninitialized (red,green,blue) fields, and
23299         just the pixel field filled in, and furthermore in the
23300         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
23301         It thus turns out that we really don't need to have the full
23302         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
23303         it later to have just the pixel values.
23304
23305 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
23306
23307         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
23308
23309 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
23310
23311         * docs/gtkfaq.sgml: threads example from Erik Mouw.
23312         New question on GtkLabel background colors.
23313
23314         * docs/gtk_tut.sgml:
23315           - Correct the example code callback
23316             function definitions.
23317           - Update the gtkdial example code, from Frans van Schaik.
23318           - Update setselection.c to current API.
23319
23320         * examples/Makefile examples/*/*.c: Update to code
23321         listed in tutorial.
23322
23323 1999-11-10  Tor Lillqvist  <tml@iki.fi>
23324
23325         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
23326         subrange table (from the "Developing International Software for
23327         WIndows 95 and Windows NT" book) was missing the Hangul syllable
23328         block... Get the loaded font's charset correctly.
23329
23330         (Note that this, and the other *-win32.c files, still really are
23331         the old ones, the win32 subdirectory is not ready for compilation
23332         yet after the reorg.)
23333
23334 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
23335
23336         * gtk/gtkclist.c: Fix off-by-one bug in parameter
23337         check.
23338
23339 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
23340
23341         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
23342         on results of XQueryDeviceState().
23343
23344 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
23345
23346         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
23347         we need to accesss only ->children. We need an accessor
23348         for the children.
23349
23350         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
23351         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
23352         to get rid of gdkx.h include.
23353         
23354         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
23355         and random references to 'None'.
23356
23357         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
23358         Get rid of unused #include <gdk/gdkx.h>
23359
23360         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
23361         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
23362         gdkconfig.h.
23363
23364 1999-11-08  Tor Lillqvist  <tml@iki.fi>
23365
23366         * gdk/win32/gdkdraw.c
23367         * gdk/win32/gdkfont.c
23368         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
23369         following yesterday's changes. (Unrelated to Owen's reorg.)
23370
23371 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
23372
23373         * gdk/x11/gdkinput-gxi.c: Add missing include,
23374           fix GdkWindowPrivate => GdkDrawablePrivate.
23375
23376         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
23377
23378         * gdk/x11/Makefile.am (xinput_sources): Add missing
23379         backslash to fix building with --with-xinput=none
23380
23381 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
23382
23383         Move all X specific code into the x11/ directory.
23384         Aside from shuffling things around, did the following:
23385
23386        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
23387          gdk_arg_context_* - a simple argument parsing system
23388          in the style of popt.
23389
23390        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
23391          gdk/x11/gdkprivate-x11.h:
23392          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
23393          add ->klass and ->klass_data fields. The klass_data
23394          field points to an auxilliary structure that is
23395          windowing system dependent.
23396
23397        * gdk/gdkfont.c: Make most of the measurement functions
23398          simply wrappers around gdk_text_extents().
23399
23400        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
23401          _gdk_font_strlen() function that hides the weird
23402          behavior in gtk+-1.[02] where a string is interpreted
23403          differently for 8-bit and 16-bit fonts.
23404
23405        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
23406          to store common code for synthesizing double/triple
23407          press events.
23408         
23409        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
23410          Make all the function that modify an existing GC
23411          simply wrappers around gdk_gc_set_values().
23412          
23413        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
23414          for throwing out later.
23415
23416        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
23417          GdkImagePrivate and GdkColormapPrivate to have a
23418          windowing system dependent part (GdkFontPrivateX etc.)
23419          that "derives" from the system-independent part.
23420
23421        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
23422          Got rid of the included-source-files for XInput in
23423          favor of automake conditionals. (Which didn't exist
23424          when XInput support was originally added.)
23425
23426        * gdk/gdkrgb.c: Remove the visual id from the debugging
23427          statements since that is X11 specific; print out
23428          type/depth info instead.
23429          
23430
23431 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
23432
23433         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
23434         loading duplicates of hashed fonts.
23435
23436         * gdk/gdk.c (gdk_keysym_convert_case): rename
23437         gdk_XConvertCase to gdk_keysym_convert_case, allow
23438         results to be NULL in the GTK+ style.
23439
23440         * gdk/gdkcompat.h: Started compatibility header
23441         for renames.
23442
23443 1999-11-07  Tor Lillqvist  <tml@iki.fi>
23444
23445         * gdk/win32/gdkprivate.h: New font private structures, related to
23446         fontsets.
23447
23448         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
23449         gdk_font_list_free(). On X11, will just be wrappers to
23450         XListFonts() and XFreeFontNames(). On Win32, the code previously
23451         in gtkfontsel.c is now here.
23452
23453         New function gdk_font_xlfd_create(). On X11 will get the FONT
23454         property of the font (for GDK_FONT_FONTs), or call
23455         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
23456         builds a XLFD style name from the font information in the LOGFONT
23457         struct(s).
23458
23459         New function gdk_font_xlfd_free(), which correspondingly frees the
23460         string returned by gdk_font_xlfd_create().
23461
23462         Implement fontsets on Win32. Add a function that iterates over a
23463         wide char string and calls a callback function for each substring
23464         of wide chars from the same Unicode subrange (and thus probably
23465         available in the same real font).
23466
23467         Improve the XLFD emulation a bit.
23468
23469         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
23470
23471         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
23472         Beta3, WM_IME_CHAR messages don't seem to contain the composed
23473         multi-byte char as with the Active IMM on Win9x. Oh well, handle
23474         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
23475         ImmGetCompositionStringW() to get the composed Unicode chars.
23476
23477         * gdk/win32/gdkgc.c
23478         * gdk/win32/gdkdraw.c: Changes needed because of the font private
23479         struct changes.
23480
23481         * gdk/win32/gdk.def: Add the new functions.
23482
23483 1999-11-04  Tor Lillqvist  <tml@iki.fi>
23484
23485         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
23486         get the Platform SDK to get <dimm.h>.
23487
23488         * gdk/win32/gdkevents.c: More event handling fixes and
23489         simplification. Never generate motion events with is_hint true. We
23490         used to do that on bogus grounds earlier. Windows sends
23491         WM_MOUSEMOVE messages on button events even if the mouse hasn't
23492         moved, ignore these.
23493
23494         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
23495
23496         * gdk/win32/gdkglobals.c
23497         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
23498         the TrackMouseEvent function, and use it.
23499
23500         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
23501         char before calling WideCharToMultiByte in order to get a string
23502         for the window title.
23503
23504         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
23505
23506         * gdk/win32/gdk.def: Remove obsolete functions.
23507
23508         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
23509         /nodefaultlib and /defaultlib switches.
23510
23511         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
23512
23513 1999-10-31  Tor Lillqvist  <tml@iki.fi>
23514
23515         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
23516         EuroSign).
23517
23518         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
23519         same type as GdkWChar, especially on Win32.
23520
23521         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
23522
23523         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
23524         before passing to Windows GDI for drawing etc. Convert to the
23525         system default codepage before passing to Windows as window
23526         titles.
23527
23528         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
23529         support changing input locale on the fly.
23530
23531         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
23532         on-the-fly changes. Convert incoming characters from the current
23533         codepage to Unicode (and then to a UTF-8 multi-byte string) based
23534         on the current input language. Use keysym<->Unicode mapping tables
23535         and functions borrowed from xterm sources.
23536
23537         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
23538         editions of Win9x, use the ActiveX-based Active IMM (Input Method
23539         Manager) if available. IMEs and the Active IMM are available under
23540         the disguise of Chinese, Korean and Japanese support for IE and
23541         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
23542         support is present in all editions (as long as you install it).
23543
23544         Call DispatchMessage from gdk_events_queue() (and thus
23545         gdk_WindowProc()), instead of duplicating the code in
23546         gdk_WindowProc().
23547
23548         Reworked the grab handling and propagation code, factored out
23549         duplicated code snippets into separate functions. Other cleanups,
23550         too.
23551
23552         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
23553         the <dimm.h> header describing the Active IMM.
23554
23555         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
23556         just do the same as for "single" fonts.
23557
23558         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
23559         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
23560         the new keysyms from gdkkeysyms.h.
23561
23562         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
23563         fontset, so that gtkentry uses wide characters.
23564
23565         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
23566         GTk+'s system directory "gtk+", not "gtk".
23567
23568 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
23569
23570         * docs/gtkfaq.sgml: FAQ update
23571
23572 1999-10-21  Tor Lillqvist  <tml@iki.fi>
23573
23574         * gdk/win32/gdkprivate.h: Add more font private data.
23575
23576         * gdk/win32/gdkfont.c
23577         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
23578         fonts and strings. Now works much better. You still have to
23579         have a correct font selected, though. No fontset emulation yet.
23580
23581 1999-10-19  Tor Lillqvist  <tml@iki.fi>
23582
23583         * gtk/maketypes.awk: Use G_OS_WIN32.
23584
23585         * gtk/gtk.def: Add some missing entry points. Also some non-public
23586         ones, but PyGTK porter claims to need them.
23587
23588         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
23589         built-in type generation.
23590
23591 1999-10-14  Tor Lillqvist  <tml@iki.fi>
23592
23593         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
23594         GDK_FONT_FONT fonts (which is all we have for now, we don't
23595         emulate fontsets). The X11 version uses plain XDrawString in that
23596         case, too. The string passed to gdk_draw_text_wc seems to be in
23597         fact (at least, when used by gtkentry and gtktext) either in a
23598         single-byte charset, or a DBCS. Not Unicode.
23599
23600         This fixes the problem in gtkfontsel, where even if you had
23601         selected a font with a non-Latin1 charset (windows-greek, for
23602         instance), the preview still used Latin-1 glyphs.
23603
23604         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
23605         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
23606         (gdk_font_load): Recognize the demibold etc weights, even if we
23607         don't have the corresponding constants in the headers.
23608         (gdk_font_hash_insert): Use same hash mechanism as in the X11
23609         version. Should save font resources a bit, when we don't have
23610         multiple HFONTs for the same font.
23611
23612         * gdk/win32/gdkprivate.h: Add the names field as in the X11
23613         version.
23614
23615 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
23616
23617         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
23618         X values
23619
23620 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
23621
23622         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
23623         layout support (as mentioned on
23624         http://www.jcinteractive.com/gnome-ui/software/widgets/)
23625
23626 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
23627
23628         * gtk/fnmatch.c
23629         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
23630
23631 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
23632
23633         * configure.in (ALL_LINGUAS): Added Galician (gl)
23634
23635 1999-10-05  Tor Lillqvist  <tml@iki.fi>
23636
23637         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
23638
23639         * gdk/win32/gdkcompat.c: New file, actually provide an
23640         implementation for the deprecated functions. (Just temporarily.)
23641
23642         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
23643
23644         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
23645
23646         * gdk/win32/gdk.def gtk/gtk.def: Updates.
23647
23648 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
23649
23650         * configure.in: Added "uk" to ALL_LINGUAS.
23651         
23652 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
23653
23654         * configure.in: correct checking for BeOS check
23655
23656         * gdk/gdktypes.h
23657         * gtk/fnmatch.c
23658         * gtk/gtkfilesel.c
23659         * gtk/gtkitemfactory.c
23660         * gtk/gtkmain.[ch]
23661         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
23662
23663 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
23664
23665         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
23666         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
23667         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
23668         by Bulgarian). 
23669
23670 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
23671
23672         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
23673         Fix a reference to window_private->destroyed.   
23674
23675         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
23676         (ugly) setting of an internal GdkWindow member to use
23677         a _slightly_ cleaner macro.
23678
23679         * gdk/gdkprivate.h: Split GdkWindowPrivate into
23680         GdkDrawablePrivate and GdkWindowPrivate.
23681         Add extra macros for accessing GDK_DRAWABLE_ components.
23682
23683         * *.[ch]: Massive adjustments for the above, use the
23684         new macros in a lot of places.
23685
23686 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
23687
23688         * gdk/gdktypes.h: Make GdkDrawable the base type,
23689         not GdkWindow.
23690
23691 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
23692
23693         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
23694
23695 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
23696
23697         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
23698
23699 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
23700
23701         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
23702         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
23703
23704         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
23705
23706         * docs/gtk-config.1: Now autogenerated.
23707         * docs/Changes-1.4.txt: started
23708         
23709 1999-10-03  Tor Lillqvist  <tml@iki.fi>
23710
23711         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
23712         to #ifdef also here.
23713
23714         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
23715         Owen did to the X11 backend.
23716
23717         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
23718         ScrollWindowEx when blitting inside a window, it can't be correct
23719         in the general case.
23720
23721         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
23722         WM_GETMINMAXINFO is easier.
23723
23724         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
23725         depth equal to the bitspixel value, not the visual's depth.
23726
23727         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
23728         to 24 even if the bitspixel value is 32.
23729
23730         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
23731         need to check for depth==32 when bpp==32, depth will always be 24.
23732
23733 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
23734
23735         * docs/Changes-1.4.txt: Started
23736         
23737         * gtk/Makefile.am (gdk_headers): Include all the new headers.
23738
23739         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
23740         
23741         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
23742         into C file.
23743         
23744         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
23745         header to gdkinputprivate.h.
23746
23747         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
23748         unused since before 1.2.
23749
23750 1999-09-30  Tor Lillqvist  <tml@iki.fi>
23751
23752         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
23753         expand possible hex escapes in the font family (put there by
23754         logfont_to_xlfd if the font name isn't a legal XLFD font family,
23755         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
23756         On Win32, add hex escapes here, too.
23757
23758 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
23759
23760         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
23761         to #ifdef GDK_WINDOWING_X11.
23762
23763 [ Merges from gtk-1-2 ]
23764
23765 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
23766
23767         * configure.in: fixed "GNU Make" check to pass with new make version
23768         3.77.95.
23769
23770 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
23771
23772         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
23773         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
23774         AM_PATH_GTK() macros don't get confused by the -pre1.
23775
23776 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
23777
23778         * configure.in (REBUILD): Change check for perl5
23779           to check explicitely for v >= 5.002. (5.001
23780           does not work with our scripts.)
23781
23782 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
23783
23784         * configure.in: evaluate $PERL for the perl version check. added
23785         --disable-rebuilds to give the user an option to completely disable
23786         any source autogeneration rules.
23787
23788 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
23789
23790         * configure.in: evaluate $ac_make when checking for GNU Make.
23791
23792 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
23793
23794         * docs/Makefile.am: added generation.txt.
23795
23796         * Makefile.am: require automake 1.4, build README from README.in and
23797         INSTALL from INSTALL.in in dist-hook.
23798         
23799         * README.in:
23800         * INSTALL.in: new files to autogenerate README and INSTALL from.
23801
23802         * configure.in: figure whether we have GNU Make
23803
23804         * docs/generation.txt: minor additions/corrections.
23805
23806 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
23807
23808         * docs/gtkfaq.sgml: FAQ Update
23809
23810 July 30, 1999 Elliot Lee <sopwith@redhat.com>
23811         
23812         * configure.in: Fix autoconf warnings about cross compilation by
23813         trying to provide sane defaults for AC_TRY_RUN.
23814
23815 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
23816
23817         * ltconfig
23818         * ltmain.sh: upgrade to libtool 1.3.3
23819
23820 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
23821
23822         * INSTALL: Indicate that the --with-glib= configure
23823         time flag is unsupported.
23824
23825 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
23826
23827         * docs/generation.txt: Added a file that gives
23828         documenation about the autogeneration process for
23829         various autogenerated files.
23830         
23831 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
23832
23833         * configure.in (LIBS): Look for libgmodule in the
23834         right location.
23835
23836 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
23837
23838         * docs/gtk_tut.sgml: Removed references to
23839         code examples in my directory on gtk.org as
23840         they should all be in the tutorial now.
23841
23842         * docs/gtk_tut.sgml: Added sources for dial-test
23843         and scribble-xinput programs that were previously
23844         missing.
23845
23846 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
23847
23848         * TODO: Added entry about menu keyboard navigation, removed
23849         some finished items.
23850
23851 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
23852
23853         * acinclude.m4: Standardize on func_dgettext
23854         not func_gettext, so that the checks for dgettext
23855         actually are paid attention to.
23856
23857 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
23858
23859         * configure.in (LIBS): Add $INTLLIBS into $LIBS
23860         directly, rather than repeating the checks for
23861         gettext.
23862
23863         * INSTALL: Added information about gettext and
23864         NLS support.
23865
23866         * acinclude.m4 (LIBM): Check for dgettext, not
23867         just gettext. This should hopefully fix things wrt
23868         systems with old versions of GNU gettext installed.
23869
23870 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
23871
23872         * configure.in (LIBS): Look for libgmodule in the
23873         right location.
23874
23875 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
23876
23877         * autogen.sh: add --enable-maintainer-mode
23878
23879         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
23880
23881 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
23882
23883         * docs/gtk-config.1.in:
23884           docs/Makefile.am:
23885           configure.in: gtk-config is now generated.
23886
23887         * docs/gtk-config.1: Removed, now generated.
23888
23889 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
23890
23891         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
23892         handle CreateNotify itself, still put out a debuging message for
23893         --gdk-debug=events. made the ReparentNotify debugging message more
23894         verbose.
23895         wrap xcoords translation for ConfigureEvents into an error trap,
23896         a destroy event may already be pending, and in that case, the
23897         actuall coordinate values are not at all critical.
23898
23899 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
23900
23901         * gdk/gdkcc.c: Stop leaking the color_hash all over
23902         the place. Simplify and improve the logic.
23903
23904 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
23905
23906         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
23907         for prototypes and function implementations consistent (reported
23908         by Tomas Ogren).
23909
23910 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
23911
23912         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
23913         send_event set in debugging output.
23914         (gdk_compress_exposures): default initialize the event so we don't
23915         operate on bogus values (namely send_event).
23916
23917 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
23918
23919         * gdk/gdkwindow.c: When we receive an unexpected
23920         destroy notify on one of our windows, don't just
23921         warn about it, also mark our windows as destroyed.
23922
23923 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
23924
23925         * gdk/gdkfont.c (gdk_font_hash_insert): Add
23926           name => font and name => fontset hashes. The 
23927           name => fontset hash is a _big_ win since we
23928           weren't previously caching fontsets at all and loading
23929           fontsets is expensive. The name => font hash
23930           is less of a win, but it does save us from doing
23931           repeated XQueryFont calls on the same font.
23932
23933         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
23934           list so we can remove font/fontset from hash.
23935
23936 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
23937
23938         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
23939           and slightly confusing test. [ XInternAtom (,,TRUE)
23940           will never return None ].
23941
23942 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
23943
23944         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
23945           gdk/gdkwindow.c (gdk_window_set_hints):
23946
23947         Don't omit setting the properties if flags == 0 -
23948         there may be an existing set of properties there
23949         already. (Very old bug. Would it be better to
23950         delete the property instead?)
23951
23952         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
23953           spelling error in comment.
23954
23955 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
23956
23957         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
23958           to avoid stomping over gdk_error_warnings.
23959
23960         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
23961           as (bits_per_pixel + 7) / 8. This gives the same
23962           result as before for multiples of 8, but actually
23963           a "reasonable" value for 1bit or 4bit displays.
23964
23965 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
23966
23967         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
23968         GNU Make.
23969
23970 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
23971
23972         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
23973         discarding configure events.
23974
23975 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
23976
23977         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
23978         refcount is greater than zero.
23979
23980         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
23981
23982         * gdk/gdkfont.c (gdk_font_unref): Likewise.
23983
23984         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
23985
23986         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
23987
23988 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
23989
23990         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
23991         that format 32 => sizeof(item) == 4. It really is
23992         sizeof(long).
23993
23994 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
23995
23996         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
23997         core dump at all on X IO errors, only core dump
23998         if --enable-debug for X errors.
23999
24000 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
24001
24002         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
24003         unknown window:" message. disabled ConfigureNotify discarding code,
24004         because it led to events being processed out of order.
24005
24006 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
24007
24008         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
24009
24010         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
24011         we export this function, supress error warnings and don't reset the
24012         error code in the first half of this function.
24013
24014         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
24015         code (instead of just -1) so gdk_error_trap_pop() reveals something
24016         actually informative about the error that happened.
24017
24018         * gdk/*.c:
24019         don't rely on gdk_error_code being -1 if an error occoured, but just
24020         gdk_error_code != 0.
24021
24022 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
24023
24024         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
24025         pointer *before* invoking the filter function, so we at least don't
24026         crash if a filter is removed that is currently executed. window filters
24027         *really* need to be made truely reentrant at some point.
24028
24029 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
24030
24031         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
24032         PropertyNotify debug messages.
24033
24034 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
24035         
24036         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
24037         
24038         * gdk/gdkim.c: Fix cut-and-paste errors for 
24039         x/y and PreeditAttributes/StatusAttributes.
24040
24041 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
24042
24043         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
24044         G_MAXINT to 2^16 to alleviate overflow problems in
24045         various window managers.
24046
24047 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
24048
24049         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
24050         for fontsets.
24051
24052 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
24053
24054         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
24055         Initialize size_hints.x and size_hints.y because kwm
24056         brokenly pays attention to them.
24057         (Bug #1181 -  Lars Heete <hel@admin.de>)
24058
24059 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
24060
24061         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
24062         return value of gdk_list_visuals(). 
24063         (Bug #1193 - Morten Welinder <terra@diku.dk>)
24064
24065 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
24066
24067         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
24068         XSetIMValues to (void *) when comparing to NULL, to workaround
24069         the problem of some compilers barfing since older X headers don't
24070         have the prototype for it.
24071
24072 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
24073
24074         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
24075         for pseudocolor where colormap->colors was double
24076         allocated.
24077
24078         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
24079         color value in the hash table with the pixel filled
24080         in so when we do later hash table lookups, the color
24081         value is correct.
24082         
24083 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
24084
24085         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
24086         making the call
24087
24088 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
24089
24090         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
24091         pointed out by Morten Welinder <terra@diku.dk>.
24092
24093 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
24094
24095         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
24096           default filter from the list
24097
24098 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
24099
24100         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
24101           default filter from the list
24102
24103 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
24104
24105         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
24106
24107         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
24108         g_strdup_printf instead of calcing the length separately
24109
24110 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
24111
24112         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
24113         that we don't do in many other places. (Fixing duplicate 
24114         #include of config.h)
24115
24116         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
24117         Otherwise, #ifndef XINPUT_NONE check in the latter
24118         doesn't work. (Bug #546)
24119
24120 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
24121
24122         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
24123         "None" case insensitive.
24124
24125 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
24126
24127         * gdk/gdkselection.c: 
24128         Add error traps so if the other end of the connection
24129         dies, we survive.
24130
24131 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
24132
24133         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
24134         dest_xid field into two fields - one for the window
24135         to send in messages, one to indicate the last looked
24136         up window for caching purposes. This is needed, so
24137         that Leave messages get the correct window.
24138
24139 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
24140
24141         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
24142         Fix warning created by people mucking around
24143         with the gsource API.
24144
24145         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
24146         Change mapping between GIOCondition and GdkInputCondition
24147         to match the way the Linux kernel does it. This should
24148         fix problems where closed pipes were no longer signalling
24149         GDK_INPUT_READ on systems with a native poll().
24150
24151 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
24152
24153         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
24154         explicitly for the string "None" - it is in the XPM
24155         spec and some servers treat unknown colors in odd ways
24156         (like asking the user!)
24157
24158 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
24159
24160         * gdk/gdkevents.c: made "->" into a "." of previous change so
24161         it compiles
24162
24163 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
24164
24165         * gdk/gdkevents.c (gdk_compress_exposures): Set the
24166         window field of the event structure before calling
24167         user filters.
24168
24169 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
24170
24171         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
24172         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
24173
24174 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
24175
24176         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
24177         intermediate text property - prevents major memory
24178         leak when gdk_use_mb.
24179         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
24180
24181 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
24182
24183         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
24184         gtk-a-higuti-990322-[0-3]
24185
24186         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
24187         sizeof(wchar_t) != sizeof (GdkWChar)
24188
24189         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
24190         that was causing -DX_LOCALE not to work.
24191
24192         * gtk/gtkrc.c (gtk_rc_init):
24193         X_LOCALE will never have LC_MESSAGES defined
24194
24195         * gdk/gdk.c (gdk_init_check):
24196         Remove --xim-preedit and --xim-status from argv properly.
24197
24198         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
24199         that the client window is present on the X server
24200         before we pass it to the input method.
24201
24202 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
24203
24204         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
24205         if --display is specified on the command line, than
24206         the drag window will not be created on that display.
24207         
24208 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
24209
24210         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
24211         lookups with only_if_exists == TRUE were inserting
24212         bogus values into the atom cache.
24213
24214 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
24215
24216         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
24217         then reset it to NULL.
24218
24219         * gdk/gdkcolor.c:
24220         (gdk_colors_free): 
24221         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
24222         key for g_hash_table_remove() in both functions, this prevents us
24223         from accessing possibly uninitialized portions of a GdkColor structure
24224         where we are only interested in its pixel value.
24225
24226 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
24227
24228         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24229         font hash table, if we have a GdkFontPrivate entry for this font
24230         already, simply increment its reference count, provided by Olaf Dietsche
24231         <olaf.dietsche+list.gtk@netcologne.de>.
24232
24233 1999-09-21  Tor Lillqvist  <tml@iki.fi>
24234
24235         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
24236         just to be sure.
24237
24238         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
24239         unused variables, leftovers from the X11 version.
24240
24241         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
24242
24243         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
24244         downcase fields on X11.
24245
24246 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
24247         
24248         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
24249         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
24250
24251 1999-09-17  Tor Lillqvist  <tml@iki.fi>
24252
24253         * gdk/win32/gdk.def: Add gdk_threads_mutex.
24254
24255         * gtk/makefile.msc: Correct path to libintl.
24256
24257         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
24258         use of gint vs. int, and gint vs. gboolean in headers and
24259         definitions. Use GtkType for the *_get_type functions. Note that
24260         these changes preserve binary compatibility.
24261
24262         * gdk/gdk.c
24263         * gdk/win32/gdk.c
24264         * gdk/gdk.h: Fix inconsistencies: gint vs int.
24265
24266         * gtk/gtkmain.c
24267         * gtk/gtkclist.c
24268         * gtk/gtkmenufactory.c
24269         * gtk/gtknotebook.c
24270         * gtk/gtkwidget.c: Fix inconsistencies, also gint
24271         vs. gboolean.
24272
24273         * gtk/gtkcolorsel.[ch]
24274         * gtk/gtkcombo.[ch]
24275         * gtk/gtkdrawingarea.[ch]
24276         * gtk/gtkgamma.[ch]
24277         * gtk/gtkhandlebox.[ch]
24278         * gtk/gtkhpaned.[ch]
24279         * gtk/gtkhruler.[ch]
24280         * gtk/gtkplug.[ch]
24281         * gtk/gtkpreview.[ch]
24282         * gtk/gtkruler.[ch]
24283         * gtk/gtksocket.[ch]
24284         * gtk/gtkstatusbar.[ch]
24285         * gtk/gtktoolbar.[ch]
24286         * gtk/gtkvbbox.[ch]
24287         * gtk/gtkvpaned.[ch]
24288         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
24289         functions.
24290
24291         * gtk/gtkgamma.h: Fix bug, missing () in call of
24292         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
24293
24294 1999-09-14  Tor Lillqvist  <tml@iki.fi>
24295
24296         * gdk/gdkcolor.c (gdk_colormap_new)
24297         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
24298         colormap->colors was allocated twice.
24299
24300         * gdk/win32/gdk.c: Remove some unused stuff.
24301
24302         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
24303         colormap.
24304
24305         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
24306         * gtk/gtklabel.h (gtk_label_get_type)
24307         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
24308         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
24309         in a couple of places, not guint.
24310
24311 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
24312
24313         * configure.in,po/et.po: added Estonian language file
24314
24315 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
24316
24317         * configure.in,po/da.po: added Danish file
24318
24319 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
24320
24321         * docs/gtkfaq.sgml: Minor FAQ Update
24322
24323 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
24324
24325         * docs/gtkfaq.sgml: FAQ update
24326
24327 1999-08-27  Tor Lillqvist  <tml@iki.fi>
24328
24329         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
24330         way to get window contents continually refreshed while resizing. I
24331         didn't like the effects myself, so it's not on by default.
24332
24333         * gdk/win32/gdkprivate.h: New flag variable
24334         gdk_event_func_from_window_proc, FALSE by default.
24335
24336         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
24337         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
24338         are passed --gdk-event-func-from-window-proc.
24339
24340         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
24341         and we have am event_func, call it instead of enqueing the event.
24342
24343 1999-08-23  Tor Lillqvist  <tml@iki.fi>
24344
24345         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
24346         Kelley: Set expose_count in GdkEventExposes correctly.
24347
24348         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
24349         MULTIPLE_WINDOW_CLASSES).
24350
24351         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
24352         for bug in NT, apparently NT *does* draw the end pixel, too, in
24353         LineTo with a one-pixel pen, so we don't have to do it ourselves.
24354
24355 1999-08-21  Tor Lillqvist  <tml@iki.fi>
24356
24357         Improvements by Hans Breuer: 
24358
24359         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
24360
24361         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
24362         CS_?REDRAW flags as they cause lots of (late) redraws when "show
24363         window contents while dragging" is turned on. Allocate at least
24364         one unique class for every GdkWindowType. If support for single
24365         window-specific icons is ever needed (eg. Dialog specific), every
24366         such window should get its own class.
24367
24368 1999-08-19  Tor Lillqvist  <tml@iki.fi>
24369
24370         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
24371         error that caused crashes.
24372
24373 1999-08-17  Tor Lillqvist  <tml@iki.fi>
24374
24375         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
24376         window, use ScrollWindowEx, and call UpdateWindow. This prevents
24377         bugs when for instance part of the window was outside the
24378         display. Thanks to Philippe Colantoni for finding and fixing this.
24379
24380 1999-08-16  Tor Lillqvist  <tml@iki.fi>
24381
24382         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
24383         endpoint calculations which were totally wrong. (A little RTFMing
24384         helps a lot ;-)
24385
24386         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
24387         from a separate directory, not from gettext, because of licensing
24388         issues (we want to use the LGPL version).
24389
24390         * README.win32: Mention the intl from glibc vs from gettext issue.
24391
24392 1999-08-13  Tor Lillqvist  <tml@iki.fi>
24393
24394         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
24395         in the key event handling: Now AltGr chars work again. Also,
24396         now Alt-digits are passed up as well as Control-digits.
24397         Pass keypad plus and minus as normal plus and minus.
24398
24399 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
24400
24401         * docs/gtkfaq.sgml: FAQ Update
24402
24403 1999-07-25  Tor Lillqvist  <tml@iki.fi>
24404
24405         * README.win32
24406         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
24407         the Wintab SDK.
24408
24409         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
24410         OK, but getting closer. Guard against bogus tilt data from Wacom
24411         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
24412         enable easier building without Wintab.
24413
24414         * gdk/win32/gdkinput.h
24415         * gdk/win32/gdkevents.c 
24416         * gdk/win32/gdkwindow.c: Minor changes related related to above.
24417         
24418         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
24419         code. As we have just one visual on Win32, no sense to have it in a
24420         table, and no need for the hash table.
24421
24422         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
24423         better on white background.
24424
24425 1999-07-21  Tor Lillqvist  <tml@iki.fi>
24426
24427         * README.win32: Update gcc build instructions. Mention gettext is
24428         GPL.
24429
24430         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
24431         supported cursor size with GetSystemMetrics.
24432
24433         * gdk/win32/gdkfont.c
24434         * gtk/gtkfontsel.c: Guard against some font weight and charset
24435         symbols being undefined (in mingw32 headers).
24436
24437         * gdk/win32/makefile.cygwin
24438         * gtk/makefile.cygwin
24439         * gtk/gtkthemes.c: No longer need to have differently named
24440         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
24441
24442 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
24443
24444         * docs/gtkfaq.sgml: Long awaited FAQ update.
24445
24446 1999-07-15  Tor Lillqvist  <tml@iki.fi>
24447
24448         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
24449         it. Obscure bit manipulation needed.
24450
24451         * gdk/win32/gdkevents.c: Logging.
24452         
24453         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
24454         style (file name include compiler name) for theme engines.
24455
24456 1999-07-13  Tor Lillqvist  <tml@iki.fi>
24457
24458         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
24459
24460         * gdk/win32/gdkevents.c: Fix long-standing bug in key
24461         events. The key.string wasn't zero-terminated, still we strdup'ed
24462         it in gdk_event_copy(). Synthesize crossing events for button
24463         events before possible propagation.
24464
24465         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
24466
24467         * gdk/win32/makefile.cygwin
24468         * gtk/makefile.cygwin: Use new DLL naming style for the
24469         GCC-compiled ones.
24470
24471         * gdk/win32/makefile.msc
24472         * gtk/makefile.msc: Cosmetics mostly.
24473
24474         * gtk/gtk.def: Add missing entry points.
24475
24476         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
24477
24478 1999-07-09  Tor Lillqvist  <tml@iki.fi>
24479
24480         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
24481         or height is zero. Don't print a warning if Pie or Arc fails, they
24482         always fail (?) for very narrow ellipses.
24483
24484         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
24485         the part or the destination window corresponding to source area
24486         outside of the source drawable's boundary.
24487
24488         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
24489         anything if less than two points.
24490
24491         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
24492         return NULL. Gtk cut-and-paste inside a single program works
24493         better this way. (It always gets the clipboard contents from
24494         Windows, not from its own copy, which is cleared anyway. I can't
24495         say I fully understand what happens... Emulating the X selection
24496         and property stuff is a bit of a mess.)
24497
24498         * gdk/win32/gdkevents.c
24499         * gdk/win32/gdkproperty.c: A bit more verbose logging.
24500
24501         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
24502         that never got deleted). Revamp gdk_region_shrink.
24503
24504         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
24505         after use.
24506
24507         * gtk/gtk.def: Add some missing entry points.
24508
24509         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
24510         component.
24511
24512 1999-07-04  Tor Lillqvist  <tml@iki.fi>
24513
24514         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
24515         Control-digits specially.
24516
24517 1999-07-03  Tor Lillqvist  <tml@iki.fi>
24518
24519         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
24520
24521 1999-06-28  Tor Lillqvist  <tml@iki.fi>
24522
24523         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
24524         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
24525         finding this.)
24526
24527 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
24528
24529         * gtk+.spec.in: Corrected some typos in files section.
24530         
24531 1999-06-15  Tor Lillqvist  <tml@iki.fi>
24532
24533         * README.win32: Mention using GNU gettext.
24534         * config.h.win32: Enable NLS stuff.
24535         * gtk/makefile.msc: Use GNU gettext.
24536         * gdk/win32/gdkdnd.c: Minor header reorg.
24537         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
24538         cosmetics.
24539         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
24540         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
24541
24542 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
24543
24544         * acinclude.m4
24545         * config.guess
24546         * config.status
24547         * ltconfig
24548         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
24549
24550 1999-05-30  Tor Lillqvist  <tml@iki.fi>
24551
24552         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
24553         SafeAdjustWindowRectEx. Don't override all calls to
24554         AdjustWindowRectEx by it, but use it only in two places: When
24555         creating a new top-level window and when moving a top-level
24556         window.
24557
24558         Use screen coordinate rectangle, not client rectangle, in
24559         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
24560         when we try to place a window so that the decoration (mainly,
24561         title bar) isn't visible.
24562
24563         These changes fix the bug that showed up for instance as the
24564         GIMP's saved top-level windows moving right and down (by an amount
24565         equal to the window decoration) for each session. This bug showed
24566         up also in testgtk's "Saved Position".
24567
24568         gdk_window_resize also redone a bit.
24569
24570 1999-05-25  Tor Lillqvist  <tml@iki.fi>
24571
24572         * gtk/testgtkrc: Add (commented out) Windows-style theme
24573         include line.
24574
24575         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
24576
24577 1999-05-18  Tor Lillqvist  <tml@iki.fi>
24578
24579         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
24580         gdkx.h to a gdk subdirectory, so that applications can include
24581         these with <gdk/*.h> without trouble.
24582
24583         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
24584         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
24585         have their bitmap destroyed.
24586
24587         * gdk/win32/gdk.def: Add gdk_root_parent.
24588
24589 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
24590
24591         * configure.in
24592           gtk-config.in
24593           ltconfig
24594           ltmain.sh     
24595           gtk/Makefile.am: changes to compile nicely (with xlib) 
24596           on BeOS
24597
24598 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
24599
24600         * acinclude.m4
24601         * config.guess
24602         * config.sub
24603         * ltconfig
24604         * ltmain.sh: upgrade to libtool 1.3
24605
24606 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
24607
24608         * gtk/gtkclist.c:
24609         * gtk/gtkctree.c: merges from gtk-1-2
24610
24611 1999-04-25  Tor Lillqvist  <tml@iki.fi>
24612
24613         Support added for building using a GNU toolchain on Win32,
24614         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
24615
24616         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
24617         * config.h.win32: Changes for gcc.
24618         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
24619         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
24620         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
24621         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
24622         Protect shl stuff unavaiilable with mingw32 headers.
24623         * gdk/win32/gdkevents.c: Fix typo.
24624         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
24625         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
24626         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
24627         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
24628         the mingw32 headers.
24629         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
24630         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
24631         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
24632         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
24633         Test for NATIVE_WIN32, not _MSC_VER.
24634         * gtk/gtkmain.c: No use warning about developer version on Win32,
24635         there aren't any non-developer versions anyhow.
24636         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
24637         * gtk/makefile.msc: Use pthread from another directory. Minor other
24638         changes. 
24639
24640 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
24641
24642         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
24643           default filter from the list
24644
24645 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
24646
24647         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
24648          when gtk_widget_grab_default() is called for a widget that
24649          is not within a GtkWindow.
24650
24651 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
24652
24653         * docs/gtk_tut.sgml, examples/clist.c: use a
24654           scrolled window in the clist example. Minor
24655           tutorial fixes.
24656
24657 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
24658
24659         * docs/gtk_tut.sgml: Style check from David King
24660           <dking@youvegotmail.net>
24661
24662 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
24663
24664         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
24665         compile with unknown value of GDK_WINDOWING
24666
24667 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
24668
24669         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
24670         after the rule is fired.
24671         (install-exec-local): Install gdkconfig.h only if the contents are
24672         different from the currently installed gdkconfig.h.
24673
24674 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
24675
24676         * gdk/Makefile.am (configexecincludedir): Rename from 
24677         configincludedir so that gdkconfig.h will be installed 
24678         as part of `make install-exec'. 
24679
24680 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
24681
24682         * acinclude.m4
24683         * config.guess
24684         * config.sub
24685         * ltconfig
24686         * ltmain.sh: upgrade to libtool 1.2f
24687
24688         * autogen.sh: libtool is not required to autogen gtk+
24689
24690         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
24691         needed)
24692
24693 1999-03-18  Tor Lillqvist  <tml@iki.fi>
24694
24695         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
24696         declaring gdk variables exported/imported from the DLL. New image
24697         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
24698         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
24699         GDK_DRAG_PROTO_OLE2.
24700
24701         * gdk/gdk.h: Merge in Win32 version: Two new functions,
24702         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
24703         declared only for the Win32 version, but could be in the X11
24704         version as well. (Needed for a Xlib-less gdk_imlib.)
24705         gdk_color_hash should have only one parameter. Declare
24706         gdk_threads_mutex with GDKVAR.
24707         
24708         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
24709         just one parameter.
24710
24711         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
24712         per pixel, not bits.
24713
24714         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
24715         Fetch bpp (which means bits-per-pixel here) from another place on
24716         Win32. Accept also depth==32 (which we might get on Win32) with
24717         bpp==32.
24718
24719         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
24720         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
24721         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
24722         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
24723         in the backend-dependent directory, not in the common gdk
24724         directory.
24725
24726         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
24727         headers.
24728
24729 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
24730
24731         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
24732         want to use the Gtk+ devel version (which is true, and yes - even i am
24733         currently working with the 1.2.x branch). so everyone reading this, you
24734         probably want to issue
24735         cvs checkout -r glib-1-2 glib
24736         and
24737         cvs checkout -r gtk-1-2 gtk+
24738         as your next two comands.
24739
24740 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
24741
24742         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
24743         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
24744
24745         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
24746         file. strongly deprecated the GTK_HAVE_* macros, we provide
24747         GTK_CHECK_VERSION() for people that need to check for certain
24748         Gtk+ versions.
24749
24750         * gtk/gtkcompat.h: removed this from CVS.
24751         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
24752         idea right from the start, it just didn't seem like that back then.
24753
24754 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
24755
24756         * merges from gtk-1-2:
24757
24758 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
24759
24760         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
24761         item factory class has been created.
24762         (gtk_item_factory_parse_rc): likewise.
24763
24764         * gtk/gtkmenu.c:
24765         keep proper references for old_active_menu_item.
24766         (gtk_menu_reparent): unset the usize of the new parent,
24767         so the menu can sanely be size requested and we don't get nasty screen
24768         artefacts upon next reparentation.
24769         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
24770         enter notify. only synthesize enter notifies if the pointer really is
24771         inside the event window.
24772         (gtk_menu_popdown): use gtk_menu_shell_deselect().
24773         (gtk_menu_popup): move the background setting stuff into
24774         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
24775
24776         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
24777         gtk_menu_shell_select_item() to select the new item.
24778         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
24779         do the right thing for deselection as well.
24780
24781 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
24782
24783         * gtk/gtkwidget.[hc]:
24784         (gtk_widget_accelerators_locked): return whether a widget's accelerators
24785         are locked.
24786
24787         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
24788         existing accelerators if the widget's accelerators are locked.
24789
24790 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
24791
24792         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
24793
24794         * gtk/gtkmenu.c: truely forward key press and key release events to
24795         the menu widget from the toplevel or tearoff window. we can't simply
24796         connect to that, we need to stop further processing of the events as
24797         well.
24798
24799 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
24800
24801         * gtk/gtkmenu.c:
24802         (gtk_menu_key_press): pass event->keyval, event->state to
24803         gtk_accelerator_valid, instead of event->keyval twice.
24804         refuse to install single letter accelerators for menus that use
24805         single letter shortcuts.
24806
24807         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
24808         gtk_menu_ensure_uline_accel_group().
24809
24810         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
24811         which will always return an uline accel group, made
24812         gtk_menu_get_uline_accel_group() return NULL if the group isn't
24813         yet created.
24814
24815 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
24816
24817         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
24818
24819         * gtk/gtkclist.c (gtk_clist_column_title_passive):
24820         Leave button sensitive, trap  button_press, button_release,
24821         motion_notify, enter_notify and leave_notify events instead.
24822         (gtk_clist_column_title_active): disconnect event handler.
24823         (gtk_clist_drag_data_get): fixed memory leak. Reported by
24824         Guillaume Laurent <glaurent@worldnet.fr>
24825
24826 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
24827
24828         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
24829         width/height mixups.
24830
24831         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
24832         if needed.
24833
24834 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
24835
24836         * gtk/testgtk.c (create_item_factory): unref the item factory after
24837         window's destruction.
24838
24839         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
24840         count on the menu shell around the menu item's activation, since the
24841         signal emission may cause menu shell destruction.
24842
24843         * gtk/gtkitemfactory.c:
24844         the previous code leaked one accel group per menu. we use
24845         gtk_menu_get_uline_accel_group() now to fix that, and with that
24846         also create the underline accelerator group of the menus only if
24847         required (i.e. an underline accelerator has been specified).
24848         (gtk_item_factory_construct):
24849         (gtk_item_factory_create_item): removed code that would create an
24850         extra accel group for the menu (and leak references).
24851         (gtk_item_factory_create_item): adapted the underline accelerator
24852         installation code to properly feature gtk_menu_get_uline_accel_group().
24853
24854         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
24855         menu->accel_group, this may return NULL if the accelerator group
24856         hasn't been set yet.
24857         added gtk_menu_get_uline_accel_group() to retrive the underline
24858         accelerator group of the menu, this will be created on demand
24859         and proper care is taken about its reference count.
24860
24861         * gtk/gtkitemfactory.h:
24862         * gtk/gtkitemfactory.c:
24863         dumped the approach of keeping a widgets by action list on the
24864         factory since the factory<->widget destroy negotiation didn't work
24865         and would be hard to get going at all. instead we keep a list of
24866         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
24867         persistant throughout a program's life time).
24868         also, i removed the static const gchar *key_* variables, and made
24869         them inline strings (they weren't actually used anyways).
24870         (gtk_item_factory_add_item): update ifactory->items.
24871         (gtk_item_factory_destroy): destroy ifactory->items (and remove
24872         the item factory pointer from the remaining ifactory widgets).
24873         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
24874         list to find the widget.
24875         (gtk_item_factory_get_item): new function that works around
24876         gtk_item_factory_get_widget() limitations, this function will only
24877         return menu items, even for <Branch> entries.
24878
24879 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
24880
24881         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24882         font hash table, if we have a GdkFontPrivate entry for this font
24883         already, simply increment its reference count, provided by Olaf Dietsche
24884         <olaf.dietsche+list.gtk@netcologne.de>.
24885
24886         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
24887         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
24888
24889 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
24890
24891         * gtk/gtkcontainer.c:
24892         (gtk_container_add_with_args):
24893         (gtk_container_addv):
24894         (gtk_container_add): before adding a child to a conatiner, make sure
24895         it is (default) constructed, this is neccessary because under certain
24896         circumstances the child will get relized and mapped immediatedly, in
24897         which case it has to be constructed already.
24898
24899 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
24900
24901         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
24902         values > 1 as TRUE also.
24903
24904 1999-03-16  Tor Lillqvist  <tml@iki.fi>
24905
24906         * README.win32: New file.
24907                 
24908         * configure.in: Check for lstat.
24909
24910         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
24911         completeness.
24912
24913         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
24914
24915         * gtk/gtk.def: Removed CRs.
24916
24917         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
24918         ..\gdk\win32).
24919
24920         * gdk/win32/makefile.msc: Correct upwards relative paths.
24921         
24922 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
24923
24924         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
24925           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
24926           it was connecting a void function to expose_event and the int
24927           returning function to the draw signal
24928
24929 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
24930
24931         * configure.in:
24932         Use correct path to libgmodule.la when ref'ing uninstalled copy
24933         of glib.  (Already in stable branch, Bug #417)
24934
24935 1999-03-15  Tor Lillqvist  <tml@iki.fi>
24936
24937         Win32 merge and general portability stuff:
24938                 
24939         * acconfig.h,configure.in: Check for <sys/time.h>.
24940
24941         * gdk/win32: New directory (actually, been there for a while).
24942         
24943         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
24944         NATIVE_WIN32, and use these. Always case fold on Win32. No
24945         backslashed escapes on native Win32.
24946
24947         * gtk/{gtk.def,makefile.msc}: New files.
24948
24949         * gtk/Makefile.am: Add above new files.
24950         
24951         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
24952         instead of <strings.h>.
24953
24954         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
24955         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
24956         <unistd.h> appropriately.
24957
24958         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
24959         Use ABS() (from <glib.h>) instead of abs().
24960         
24961         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
24962         of gtk (and thus glib) headers, so that WIN32 will be
24963         defined. With MS C, include <direct.h> for mkdir prototype.
24964
24965         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
24966         some casts, needed by MS C.
24967
24968         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
24969         implemented).
24970
24971         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
24972         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
24973         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
24974
24975         * gtk/gtkmain.h: Mark variables for export/import on Win32.
24976                 
24977         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
24978         the event is not a hint, or its window is not the slider. Needed
24979         on Win32, at least.
24980
24981         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
24982         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
24983         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
24984         a subdirectory of the Windows directory as gtk system
24985         configuration directory.
24986
24987         * gtk/gtkselection.c: No chunks on Win32.
24988
24989         * gtk/gtksocket.c: Not implemented on Win32.
24990
24991         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
24992
24993         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
24994
24995         * gtk/maketypes.awk: Declare variables with a macro that expands to
24996         necessary export/import magic in the case of Win32.
24997                 
24998         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
24999
25000 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
25001
25002         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
25003         since those were meant only for gdki18n.h.  
25004         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
25005         for widechar tests.
25006         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
25007
25008 1999-03-13  Tor Lillqvist  <tml@iki.fi>
25009
25010         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
25011         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
25012
25013         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
25014         installed) to CFLAGS.
25015
25016         * gdk/Makefile.am: Add rules for gdkconfig.h.
25017
25018         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
25019         APIs.
25020
25021         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
25022         gdkx.h anyway when compiling for X11.
25023         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
25024         general): Merge in Win32 version.
25025         
25026         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
25027         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
25028         expansion (if we don't have HAVE_PWD_H), allow for drive
25029         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
25030         included code from Craig Setera's port to Win32 (the one that uses
25031         X11, and the cygwin dll), even if it probably will be abandoned.
25032
25033         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
25034         the user entered one herself.  This way one can complete *.h and
25035         don't get matches on any .help files, for instance.
25036         
25037 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
25038
25039         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
25040         font hash table, if we have a GdkFontPrivate entry for this font
25041         already, simply increment its reference count, provided by Olaf Dietsche
25042         <olaf.dietsche+list.gtk@netcologne.de>.
25043
25044         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
25045         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
25046
25047 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
25048
25049         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
25050         the number of calls to gdk_draw_point() (and thus to X) by
25051         clipping the points by hand.
25052
25053         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
25054         the clip parameter.
25055         (gtk_handle_box_paint): Only paint the handle if the expose area
25056         intersects it.
25057
25058 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
25059
25060         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
25061
25062 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
25063
25064         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
25065         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
25066
25067 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
25068
25069         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
25070          textmode (O_TEXT) for OS/2 version.
25071
25072 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
25073
25074         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
25075         GtkSpinButton, "input" and "output", to make the output more flexible.
25076         The user has to provide a mapping between adjustment->value and the
25077         output string (and vice versa, if the spin button is editable). 
25078         See testgtk for examples.
25079
25080 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
25081
25082         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
25083         new one.
25084         
25085         * configure.in: set gtk+ version to 1.3.0.
25086
25087         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog,