]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-0
Set MATH_LIB to empty also on Win32.
[~andy/gtk] / ChangeLog.pre-2-0
1 2002-03-15  Tor Lillqvist  <tml@iki.fi>
2
3         * configure.in: Set MATH_LIB to empty also on Win32.
4
5 Fri Mar 15 15:37:01 2002  Owen Taylor  <otaylor@redhat.com>
6
7         * gdk/x11/gdkdrawable-x11.c (convert_to_format): 
8         Fix byte shift arithmetic for big-endian. (Tracked
9         down with help from Tuomas Kuosmanen)
10
11 Fri Mar 15 11:28:41 2002  Jonathan Blandford  <jrb@redhat.com>
12
13         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
14         make args const, 74159
15         (gtk_tree_view_insert_column_with_attributes): ditto
16
17         * gtk/gtktreeviewcolumn.c
18         (gtk_tree_view_column_cell_process_action): remov unused variables.
19
20 Fri Mar 15 13:31:51 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
21
22         * gtk/gtkmenu.c (gtk_menu_leave_notify): Fix test for "active
23         submenu".
24
25 2002-03-15 Padraig O'Briain <padraig.obriain@sun.com>
26
27         * gdk/x11/gdkkeys-x11.c (update_keymaps): Fudge keymap to have lower
28         upper case variants if there is only a single keysym per keycode and
29         the key symbol has upper and lower case variants (#74512)
30
31 Thu Mar 14 17:09:52 2002  Owen Taylor  <otaylor@redhat.com>
32
33         * gdk/gdkwindow.c (gdk_window_process_all_updates): Fix rather
34         improbable reentrancy problem if a window is destroyed
35         while updates are being processed on another window. (Noticed
36         by Michael Meeks, #74708)
37
38 2002-03-14 Vitaly Tishkov <tvv@sparc.spb.su>
39
40         * gtk/gtktreemodelsort.c
41         typo in docs for gtk_tree_model_sort_convert_iter_to_child_iter() fixed
42
43
44 Thu Mar 14 11:17:18 2002  Owen Taylor  <otaylor@redhat.com>
45
46         * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): When
47         removing keys from the key hash, reinsert the right list
48         back into the hash. (Dave Camp, #74571)
49
50 Wed Mar 13 17:17:40 2002  Owen Taylor  <otaylor@redhat.com>
51
52         * gtk/gtkobject.h: Remove left-over GTK_OBJECT_CONNECTED
53         macro that was defined in terms of the now-gone GTK_CONNECTED
54         flag. (Seth Burgess, #74028)
55
56 Wed Mar 13 17:11:10 2002  Owen Taylor  <otaylor@redhat.com>
57
58         * gtk/gtkaccelgroup.c (accel_group_weak_ref_detach): Unset 
59         the acceleratable_groups qdata because qdata isn't removed
60         on ->dispose but rather on ->finalize. (#74569, found
61         by Matt Wilson.)
62
63 Tue Mar 12 23:14:23 2002  Jonathan Blandford  <jrb@redhat.com>
64
65         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
66         cut-n-paste bug.
67
68 Sat Mar  9 18:23:25 2002  Richard Hestilow  <hestilow@ximian.com>
69
70         * gtk/gtkimage.c (gtk_image_set_from_filename): Allow NULL
71         filenames.
72         
73 Tue Mar 12 10:50:09 2002  Owen Taylor  <otaylor@redhat.com>
74
75         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress):
76         Fix incorrect return value, filter out returns of 0x7f for
77         the delete key. (#74179, Kang Jeong-He)
78
79 Mon Mar 11 23:42:11 2002  Jonathan Blandford  <jrb@redhat.com>
80
81         * gtk/gtktreemodel.c (gtk_tree_model_foreach): fix totally broken
82         foreach function.
83
84 2002-03-11  Matthias Clasen  <maclas@gmx.de>
85
86         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document
87         gtk_{menu_item,widget}_set_accel_path() as the recommended API.  
88         (#69244)
89
90 2002-03-11  James Henstridge  <james@daa.com.au>
91
92         * configure.in: set CCAS and CCASFLAGS to get automake 1.6
93         compatibility without breaking things for people using 1.4.
94
95 Sun Mar 10 21:04:30 2002  Jonathan Blandford  <jrb@redhat.com>
96
97         * gtk/gtktreeview.c (gtk_tree_view_button_press): finally get the
98         right behavior.
99
100 Mon Mar 11 01:25:14 2002  Kristian Rietveld  <kris@gtk.org>
101
102         * gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with
103         cursor path and not with the selected iter in the 'decide to edit'
104         check
105
106 Fri Mar  8 14:45:00 2002  Owen Taylor  <otaylor@redhat.com>
107
108         * ======== Released GTK+-2.0 ========
109
110 Fri Mar  8 20:41:51 2002  Kristian Rietveld  <kris@gtk.org>
111
112         * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): handle
113         gtk-tree-model-drop-append like the ListStore, includes some
114         tweaks to work right with trees
115
116 Fri Mar  8 14:22:43 2002  Owen Taylor  <otaylor@redhat.com>
117
118         * gtk/gtkfilesel.c (gtk_file_selection_init): Some packing
119         tweaks.
120
121         * configure.in: Include GLIB_LIBS when checking
122         for bind_textdomain_codeset, to catch the case where
123         it is in -lintl.
124
125 Thu Mar  7 16:46:58 2002  Jonathan Blandford  <jrb@redhat.com>
126
127         * gtk/gtktreeview.c (validate_visible_area): get rid of really
128         bad focus loop.
129         (gtk_tree_view_clamp_node_visible): only clamp the node when
130         realized.  Need to replace this with scroll_to_cell sometime.
131         (gtk_tree_view_header_focus): clickable or reorderable columns are
132         focusable, #73656
133
134         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_widget): fix
135         docs to reflect behaviour change, #73682
136
137 Fri Mar  8 11:12:32 2002  Owen Taylor  <otaylor@redhat.com>
138
139         * NEWS: Fix version numbers. (Johan Dahlin.)
140
141         * INSTALL.in: Update, just refer to gtk-building.html
142         rather than duplicating information.
143
144         * README.in: Add release specific notes.
145
146         * Makefile.am (EXTRA_DIST): Remove TODO and TODO.xml
147         from the distribution.
148
149 Thu Mar  7 23:29:35 2002  Owen Taylor  <otaylor@redhat.com>
150
151         * NEWS: Final updates for 2.0.0
152
153         * README.in: Updates.
154
155 2002-03-08  Tor Lillqvist  <tml@iki.fi>
156
157         * gdk/Makefile.am (LDFLAGS): Add missing .la suffix for libgdk_pixbuf.
158
159 Thu Mar  7 21:32:01 2002  Kristian Rietveld  <kris@gtk.org>
160
161         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed): increase
162         value of new_location by one if cmp_a > 0 and we hit the end of
163         the list.
164
165 Thu Mar  7 10:31:57 2002  Owen Taylor  <otaylor@redhat.com>
166
167         * gtk/gtknotebook.c (gtk_notebook_timer): Fix problem where
168         there were two copies of the "do an arrow step" code, 
169         one correct for rotated notebooks, one not. (#73855,
170         Thomas Leonard.)
171
172 Wed Mar  6 23:20:51 2002  Jonathan Blandford  <jrb@redhat.com>
173 and                       Kristian Rietveld  <kris@gtk.org>
174
175         Finishing touch for 2.0.0 release, fixes #70782, #72729, the
176         'stealth' bug and other last-minute minor issues.
177
178         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set dnd dest line
179         drawing right. We can't draw the line at the position of the next
180         row, because that one still has to be drawn. So draw everthing at
181         a -1 offset.
182         (validate_visible_area): add check for invalid descendants and
183         NULL scroll_to_path path, get scrolling right.  Also, fix the
184         area_above value.  Pretty amazing I got it wrong.
185         (get_logical_dest_row): add gtk-tree-model-drop-append magic, so
186         dragging a row to the end of the model works right.
187         (gtk_tree_view_get_dest_row_at_pos): minor floating point fix
188         (gtk_tree_view_start_editing): add call to validate_row
189         (gtk_tree_view_tree_to_widget_coords): Never subtract
190         HEADER_HEIGHT from y values anymore!!!
191         (gtk_tree_view_widget_coords_to_tree): ditto.
192         (gtk_tree_view_scroll_to_point): allow -1 as values for the
193         scroll_to coords
194         (gtk_tree_view_move_cursor_page_up_down): Don't need scroll_to_y
195         as clamp_node_visible will make it work.
196
197         * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): also check
198         path depth, as we can't get iters from empty paths
199
200         * gtk/gtkliststore.c (gtk_list_store_drag_data_received): handle
201         gtk-tree-model-drop-append
202
203         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): free path_str
204
205         * tests/testtreeflow.c (main): select path where we are scrolling to
206
207 2002-03-06  Darin Adler  <darin@bentspoon.com>
208
209         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_insert_value):
210         Update offsets before finding where to insert the new value.
211
212         * gtk/gtktreeview.c: (validate_visible_area): Make sure we redraw when
213         we scroll, instead of just updating the scroll position variables.
214
215 2002-03-06  Manish Singh  <yosh@gimp.org>
216
217         * gdk/Makefile.am
218         * gtk/Makefile.am: rework so that only things that really need to be
219         done post install are in the hook
220
221 2002-03-06  Anders Carlsson  <andersca@gnu.org>
222
223         * gtk/gtkiconfactory.c (get_default_icons): Register 16x16 version
224         of properties stock icon.
225
226         * gtk/stock-icons/Makefile.am: Add stock_properties_16.png
227
228 Wed Mar  6 00:38:29 2002  Owen Taylor  <otaylor@redhat.com>
229
230         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix various problems
231         when truncating the inserted text to fit into the GtkEntry
232         size limit of 65kb. (#73119)
233
234 Wed Mar  6 00:20:59 2002  Jonathan Blandford  <jrb@redhat.com>
235
236         * gtk/gtktreeviewcolumn.c
237         (gtk_tree_view_column_cell_process_action): move event handling to
238         the process_action function so we can have the event go to
239         individual cells.
240
241 Tue Mar  5 22:16:58 2002  Owen Taylor  <otaylor@redhat.com>
242
243         * GTK+-2.0.0 rc1
244
245         * docs/tutorial,faq/Makefile.am: Deal with the html directory
246         already being there.
247
248         * docs/faq/Makefile.am (EXTRA_DIST): Add gtk-faq.sgml to EXTRA_DIST.
249
250 2002-03-05  Manish Singh  <yosh@gimp.org>
251
252         * gdk/Makefile.am
253         * gtk/Makefile.am: use install-foo-hook instead of install-foo-local,
254         since foo-local is run before the their respective builtin targets
255         in automake 1.5
256
257 2002-03-05  jacob berkman  <jacob@ximian.com>
258
259         * configure.in: change an == to =
260
261 2002-03-06  Tor Lillqvist  <tml@iki.fi>
262
263         * gdk-pixbuf/gdk_pixbuf.rc.in
264         * gdk/win32/rc/gdk.rc.in
265         * gtk/gtk-win32.rc.in: Use GTK_API_VERSION.
266
267 2002-03-05  Manish Singh  <yosh@gimp.org>
268
269         * configure.in: Fix up the freetype checking logic. Suppress
270         suprious "no" with --disable-modules.
271
272 2002-03-06  Tor Lillqvist  <tml@iki.fi>
273
274         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab,
275         gdk_pointer_ungrab): Bypass calls to the grab/ungrab functions in
276         gdkinput-win32.c, as they don't effectively do anything anyway.
277         (build_key_event_state): Set MOD2 bit if key is in AltGr group.
278         (gdk_event_translate): Call _gdk_windowing_window_get_offsets()
279         each time the offsets are used, on the window they refer to,
280         instead of once in the beginning. The window in question might
281         change due to event propagation.
282         (gdk_event_translate): Set key event group to 0 for non-AltGr
283         keys. Do set the SHIFT bit in the key event state also for
284         ISO_Left_Tab. Now backtabbing finally works again.
285
286         * gdk/win32/gdkunput-win32.c: Minor debugging output change.
287
288         * gdk/win32/gdkkeys-win32.c (update_keymap): Set VK_TAB mapping to
289         Gdk_Tab and GDK_ISO_Left_Tab, like on X11.
290         (gdk_keymap_translate_keyboard_state): Add similar code as in the
291         non-XKB case on X11 to generate a more correct
292         consumed_modifiers. Add debugging output.
293         (gdk_keyval_name): Use the U+xxxx format for UCS characters
294         encoded as keyvals. Never return NULL, but hex number
295         representation if keyval not in table.
296
297         * gdk/win32/gdkwindow-win32.c (gdk_window_focus): Call
298         SetFocus(). Doesn't seem to have any harmful effect, and probably
299         is close to what this function is supposed to do. But it didn't
300         fix GtkCombo as I had hoped.
301         (gdk_window_set_type_hint): Don't intern the _NET_WM_* atoms that
302         weren't used and wouldn't have any meaning on Win32 anyway.
303
304 Tue Mar  5 19:19:19 2002  Owen Taylor  <otaylor@redhat.com>
305
306         * gtk/gtkwindow.c (gtk_window_set_focus): When setting
307         the focus to NULL, clear the existing focus chain so
308         that when we focus into the window again, we start
309         at the beginning. (Pointed out by Tim Janik.)
310
311 2002-03-06  James Henstridge  <james@daa.com.au>
312
313         * configure.in: libpango is now called libpango-1.0
314
315 Tue Mar  5 18:17:31 2002  Jonathan Blandford  <jrb@redhat.com>
316
317         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
318         remove sizing == AUTOSIZE check.  Update docs.
319
320 Tue Mar  5 17:43:43 2002  Owen Taylor  <otaylor@redhat.com>
321
322         * gtk/gtkfontsel.c (gtk_font_selection_init): Don't
323         create ->font_entry, ->font_style_entry at all rather
324         than just not showing them to avoid the problem of
325         them popping up if gtk_widget_show_all() is done
326         on the dialog. (#72913, Charles Kerr.)
327
328 Tue Mar  5 18:06:49 2002  Jonathan Blandford  <jrb@redhat.com>
329
330         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_resizable):
331         doc fix proposed by tvv@sparc.spb.su (Vitaly Tishkov), #73567.
332
333 2002-03-05  Matthias Clasen  <maclas@gmx.de>
334
335         * gtk/gtktreemodel.c (gtk_tree_row_reference_deleted): Fix docs.
336
337         * gtk/gtkwindow.c (gtk_window_remove_mnemonic): 
338         (gtk_window_add_mnemonic): 
339         (gtk_window_mnemonic_activate): Add docs.
340
341         * gtk/gtktreeview.c (gtk_tree_view_get_search_equal_func): Fix
342         typo in docs.
343
344 Tue Mar  5 17:02:59 2002  Owen Taylor  <otaylor@redhat.com>
345
346         * docs/tutorial/gtk-tut.sgml: s/menu_new/menu_item_new/.
347         (#69199, Akira Tagoh.)
348
349 Tue Mar  5 16:53:05 2002  Owen Taylor  <otaylor@redhat.com>
350
351         * docs/faq/Makefile.am: Build the docbook version, not
352         the old linuxdoc version.
353
354 Tue Mar  5 15:47:54 2002  Owen Taylor  <otaylor@redhat.com>
355
356         * configure.in test/makefile.msc **.pc.in **/*.am:
357         Update version to 2.0.0
358
359         * gtk/Makefile.am (MAINTAINERCLEANFILES): Add stamp
360         files.
361
362         * configure.in (GDK_PIXBUF_VERSION): Require GLib 2.0.0,
363         Pango, Atk, 1.0.0.
364
365         * m4macros/gtk-2.0.m4: Default to 2.0.0 as the minimum
366         version.
367
368 2002-03-05  Havoc Pennington  <hp@redhat.com>
369
370         * gtk/gtktextview.c (gtk_text_view_size_allocate): don't assign
371         yoffset here, just let it get updated in response to the
372         value_changed. Fixes #72479
373
374 Tue Mar  5 10:29:09 2002  Owen Taylor  <otaylor@redhat.com>
375
376         * gtk/gtktreeview.c (do_presize_handler)
377         gtk/gtktreeview.c (do_validate_rows): Don't use this 
378         same functions as idle callbacks and directly, to avoid
379         threading deadlocks. (#72392, Scott Guilbeaux)
380
381         * gtk/gtktable.c (gtk_table_size_request_init): Fix 
382         row/column confusion from recent patch. (#73505,
383         Vitaly Tishkov.)
384
385 2002-03-04  Matthias Clasen  <maclas@gmx.de>
386
387         * docs/tutorial/gtk-tut.sgml: Make color selection and selection 
388         examples work.
389
390         * tests/testselection.c (selection_toggled, selection_clear):
391         Use selection_widget as selection owner - otherwise clearing the
392         selection doesn't work.
393
394 Mon Mar  4 12:43:48 2002  Owen Taylor  <otaylor@redhat.com>
395
396         Fixes for non XKB operation. (#73103)
397
398         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
399         Fix problem where GDK_Tab was converted to GDK_ISO_Left_Tab
400         always, not just if Shift was pressed.
401         
402         * gdk/x11/gdkkeys-x11.c gdk/x11/gdkprivate-x11.c 
403         gdk/x11/gdkevents-x11.c: Move determination of group
404         to _gdk_x11_get_group_for_state(), fix to handle non-XKB.
405
406         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Only
407         add in SHIFT_MASK | LOCK_MASK to consumed_modifiers if the shifted
408         and unshifted keysyms are different. Only add in group_switch_mask
409         if the group-switched and non-group-switched keysyms are diferent.
410
411         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): 
412         When calling XKeycodeToKeysym, use group * keysyms_per_keycode / 2
413         not group * keysyms_per_keycode. (Tor Lillqvist)
414
415         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
416         Remove the hack to fudge the return value for GDK_Tab + Shift
417         since that didn't work -- it didn't affect the reverse mapping.
418         Instead fudge the non-XKB keymap instead.
419
420 Mon Mar  4 11:02:18 2002  Owen Taylor  <otaylor@redhat.com>
421
422         * gtk/gtkfilesel.c (gtk_file_selection_get_selections): Fix
423         memory leak. (#73370, Paolo Maggi).
424
425 Mon Mar  4 10:35:28 2002  Owen Taylor  <otaylor@redhat.com>
426
427         * gtk/gtknotebook.c (gtk_notebook_set_current_page): Fix docs
428         in terms of what out of range @page_num does. (#73371,
429         Vitaly Tishkov.)
430
431 2002-03-02  Havoc Pennington  <hp@pobox.com>
432
433         * demos/gtk-demo/editable_cells.c (cell_edited): const fix
434
435 Sun Mar  3 18:47:13 2002  Owen Taylor  <otaylor@redhat.com>
436
437         * gtk/gtkwindow.c (gtk_window_parse_geometry): Fix
438         to properly take the default window into account by
439         setting a flag and in gtk_window_compute_configure_request_size ()
440         multiplying by the increments and adding in the base
441         size. (#72393)
442
443         * tests/testgtk.c (create_gridded_geometry): Add a
444         test for gridded geometry and for gtk_window_parse_geometry().
445
446 2002-03-04  Hans Breuer  <hans@breuer.org>
447
448         * gtk/makefile.msc.in : don't build gtk.defs anymore
449
450 2002-03-04  Tor Lillqvist  <tml@iki.fi>
451
452         * gtk/gtkrc.h: Remove obsolete Win32-only declaration of
453         gtk_win32_get_installation_directory().
454
455 Sun Mar  3 17:03:30 2002  Owen Taylor  <otaylor@redhat.com>
456
457         * gtk/gtkmenushell.c gtk/gtkmenubar.[ch]: Back out
458         changes to propagate keys to parent menu shells, since
459         that broke stuff; rather implement ::cycle-focus as
460         a key binding on GtkMenuShell rather than on GtkMenuBar.
461
462         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): Add
463         add bindings for ::cycle-focus. (In gtkmenubar.c, were 
464         mistakently bound to ::move-focus.)
465
466 2002-03-03  Tor Lillqvist  <tml@iki.fi>
467
468         * README.win32: Minor edits.
469
470         * config.h.win32.in: Update to match a recent configure-generated
471         config.h
472
473 Sun Mar  3 15:16:07 2002  Owen Taylor  <otaylor@redhat.com>
474
475         * gtk/gtktable.c: When increasing the row or column
476         requisitions to make them sufficient for spanning widgets,
477         favor rows or columns with expandable children in them.
478         (#1261, Jonathan Blandford.)
479
480 Sun Mar  3 14:26:33 2002  Owen Taylor  <otaylor@redhat.com>
481
482         * gtk/gtkstyle.[ch] (_gtk_get_insertion_cursor_gc):
483         Centralize lookup and caching of cursor GC's here.
484
485         * gtk/gtkentry.[ch] gtk/gtktextview.[ch] gtk/gtktextdisplay.c
486         gtk/gtklabel.c: Move to using _gtk_get_insertion_cursor_gc().
487
488         * gtk/gtkentry.c (gtk_entry_expose): Draw cursors
489         under the text, not over the text.
490
491         * gtk/gtkwidget.c (gtk_widget_class_init): add
492         a secondary-cursor-color property.
493
494         * gtk/gtkwidget.c (gtk_widget_class_init): Decrease
495         the default aspect ratio to 1/25 (0.04).
496         
497         * tests/testgtkrc (bell_duration): Comment out
498         cursor color setting.
499         
500 Sun Mar  3 20:48:12 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
501
502         * gtk/gtkmenu.c (gtk_menu_set_submenu_navigation_region): change
503         offset of cursor corner of navigation region from (-2, 2) to 
504         (-2, 0).
505
506 2002-03-03  jacob berkman  <jacob@ximian.com>
507
508         * Makefile.am (EXTRA_DIST): add sanitize-la.sh
509
510 2002-03-03  Anders Carlsson  <andersca@gnu.org>
511
512         * gdk/x11/gdkwindow-x11.c (gdk_window_move_resize): Fix tyop
513         in docs.
514
515 Sat Mar  2 03:49:31 2002  Kristian Rietveld  <kris@gtk.org>
516
517         * gtk/gtktreeview.c (gtk_tree_view_button_press): move edit
518         ifs above _set_cursor code, don't collapse/expand row on double
519         click, only activate (#63269)
520         (validate_visible_area): add two missing lines (#73161, #73162)
521
522 Sun Mar  3 12:13:56 2002  Owen Taylor  <otaylor@redhat.com>
523
524         * configure.in: Fix typo where pangoxft was being
525         required instead of pangox. (Reported by Miles
526         Lane)
527
528 Sun Mar  3 11:12:16 2002  Owen Taylor  <otaylor@redhat.com>
529
530         * gtk/gtktextlayout.c (add_cursor): When in split cursor
531         mode, always add the cursor as both strong and weak
532         so that it is drawn with the correct non-split color.
533
534 Sun Mar  3 11:05:13 2002  Owen Taylor  <otaylor@redhat.com>
535
536         * modules/input/Makefile.am (moduledir): Fix
537         install location.
538
539 Sun Mar  3 10:28:32 2002  Owen Taylor  <otaylor@redhat.com>
540
541         * gtk/Makefile.am: add missing dependency of objects on
542         gtkmarshalers.h.
543
544         * gtk/Makefile.am gtk/gtk-boxed.defs: Remove completely
545         out of date and unused gtk-boxed.defs and the accompanying
546         Makefile rule to generate the complete gtk.defs.
547
548 2002-03-03  Hans Breuer  <hans@breuer.org>
549
550         * gtk/gtkmain.c : make rewrite_event_for_window() static
551         * gtk/gtkrc.c : gtk_rc_clear_realized_style() static
552
553         * gtk/makefile.msc.in : adapt to makeenums build changes
554
555         * gtk.def : sorted alphabetical again
556
557 2002-03-03  Sven Neumann  <sven@gimp.org>
558
559         * m4macros/gtk-2.0.m4: lowercase configure --help output.
560
561 Sun Mar  3 06:39:19 2002  Tim Janik  <timj@gtk.org>
562
563         * gtk/gtkfilesel.c: added compile time switch to put the tree views
564         into a hpaned for owen to play with.
565
566         * gtk/gtktreedatalist.c (_gtk_tree_data_list_header_free): 
567         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func),
568         (gtk_tree_view_column_finalize): 
569         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func),
570         (gtk_tree_store_set_sort_func), (gtk_tree_store_finalize): 
571         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): 
572         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_reset_default_sort_func),
573         (gtk_tree_model_sort_set_default_sort_func),
574         (gtk_tree_model_sort_set_sort_func):
575         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func),
576         (gtk_list_store_set_default_sort_func),
577         (gtk_list_store_set_sort_func), (gtk_list_store_finalize): 
578         add reentrancy protection around destroy() function invocation.
579
580         * gtk/gtktreeselection.c (gtk_tree_selection_set_select_function): fix
581         destroy function invocation (which was missing).
582
583 Sat Mar  2 23:08:23 2002  Owen Taylor  <otaylor@redhat.com>
584
585         Fixes for uninstalled operation with module suffixes
586         other than .so and in general for platforms like AIX where
587         the module suffix isn't predictable. (#72185, problems
588         reported by Miroslaw Dobrzanski-Neumann)
589
590         * modules/input/Makefile.am (gtk.immodules): Query .la
591         files rather than shared objects in .libs when creating the
592         uninstalled gtk.immodules file.
593
594         * gtk/gtkmain.c (_gtk_find_module): Look for .la files
595         after looking for the normal soname extension to handle
596         cases where the soname extension isn't predictable,
597         like AIX.
598
599         * gtk/gtkthemes.c (gtk_theme_engine_load): Don't
600         call g_module_build_path... leave that to 
601         gtk_rc_find_module_in_path.
602
603         * demos/gtk-demo/main.c (main) demos/pixbuf-init.c (pixbuf_init):
604         tests/testgtk.c (test_init): tests/testtext.c (test_init)
605         tests/testdnd.c (test_init): Point gdk-pixbuf to .la
606         files rather than poking in .libs for .so files.
607
608         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Remove
609         .libs from GDK_PIXBUF_MODULEDIR.
610
611 Sat Mar  2 20:58:30 2002  Owen Taylor  <otaylor@redhat.com>
612
613         * gtk/gtkwidget.c (gtk_widget_reparent): Handle NO_WINDOW
614         widgets with windows that are children of widget->window.
615         (#50279)
616
617         * tests/testgtk.c: Add eventboxes to the example so that
618         we are reparenting between different GdkWindows.
619
620 Sat Mar  2 20:39:38 2002  Owen Taylor  <otaylor@redhat.com>
621
622         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): 
623         Add a note to the docs about how to use this in the 
624         context of changeable accelerators. (#72382, Mark Patton)
625
626 Sat Mar  2 19:48:10 2002  Owen Taylor  <otaylor@redhat.com>
627
628         * configure.in: Fix missing -lX11 into x_libs with pangoxft.
629
630 Fri Mar  1 00:46:49 2002  Owen Taylor  <otaylor@redhat.com>
631
632         * configure.in: Add a --enable-explicit-deps option to control
633         whether dependency libraries are written into .la files and .pc
634         files.  Default is auto: if static libraries are off and shlib
635         dependencies are found, don't write deps.
636
637         * gdk/Makefile.am gtk/Makefile.am sanitize-la.sh: Shell script
638         used to strip dependencies out of .la files.
639
640         * Makefile.am: Add a slightly modified distcheck rule that passes
641         --enable-gtk-doc to the configure inside.
642         (So that 'make dist' succeeds inside.)
643
644         * configure.in: If pango was compiled with
645         --disable-explicit-deps, then repeat the checks for X and
646         freetype ourselves so we don't depend on linking to libraries
647         that pango doesn't reveal in the link line. Add some more paranoia
648         for whether what we detect ourselves matches what Pango backends
649         we found.
650         
651 2002-03-03  Tor Lillqvist  <tml@iki.fi>
652
653         * configure.in: Output gdk-pixbuf/gdk_pixbuf.rc.
654
655         * gdk/gdk.def
656         * gdk/win32/gdkevents-win32.c: Add and (trivially) implement
657         gdk_pointer_grab_info_libgtk_only() and
658         gdk_keyboard_grab_info_libgtk_only().
659
660 2002-03-02  Tor Lillqvist  <tml@iki.fi>
661
662         * gdk/win32/gdkevents-win32.c (build_keypress_event): Reorder
663         code, keyval should get a value in all cases now.
664         (build_keyrelease_event): Set GDK_CONTROL_MASK here, too, if it
665         was a control character produced with Alt+keypad digits.
666         (gdk_event_translate): Minor cleanups to keyboard input
667         handling. Still need more major work.
668         
669 Sat Mar  2 16:12:03 2002  Owen Taylor  <otaylor@redhat.com>
670
671         * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't
672         do special focus handling if draw_indicator is not set.
673         (#64723, Damon Chaplin.)
674
675 Sat Mar  2 15:48:04 2002  Owen Taylor  <otaylor@redhat.com>
676
677         * gtk/gtkentry.c (gtk_entry_new_with_max_length,
678         gtk_entry_set_max_length): Clamp @max parameter passed in to 
679         [0, MAX_SIZE], improve docs. Fix default and range 
680         for ::max-length property, range for ::ncursor_position,
681         ::selection_bound properties. (#55916, Vitaly Tishkov)
682
683         * gtk/gtkmain.c (rewrite_event_for_grabs): Fix typo
684
685 Fri Mar  1 18:39:44 2002  Owen Taylor  <otaylor@redhat.com>
686
687         * gdk/x11/{gdkevents-x11.c,gdkmain-x11.c,gdkprivate-x11.h,
688         gdkwindow-x11.c}: Robustify tracking of pointer grab window.
689
690         * gdk/x11/gdkmain-x11.c: Keep track of current keyboard
691         grab window.
692
693         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab_info_libgtk_only,
694         gdk_keyboard_grab_info_libgtk_only): Private libgtk => libgtk
695         API for finding out current grab information.
696         
697         * gtk/gtkmain.c (rewrite_event_for_grabs): Rewrite events
698         so that the effective behavior of owner_events = TRUE is changed
699         to "deliver events to same window group normally" instead
700         of "deliver events to same application normally. #69934
701
702         * gtk/gtkrange.c: Use an explicit gtk_grab_add() so that
703         it works within the GtkList combo, where there is a 
704         owner_events = FALSE gdk_pointer_grab() already in effect.
705         (#65006, reported by Damon Chaplin)
706
707 Sat Mar  2 14:32:50 2002  Owen Taylor  <otaylor@redhat.com>
708
709         * configure.in: Default to --disable-gtk-doc (avoid Jade
710         breakage) and --disable-static (static linking causes
711         problems with Xft changes.)
712
713         * autogen.sh: Add --enable-gtk-doc by default.
714
715         * Makefile.am: Add a 'mydistcheck' rule that passes
716         --enable-gtk-doc to the configure since that is needed
717         for 'make dist'.
718
719         * docs/tutorial/Makefile.am (dist-hook): Don't distribute
720         the PDF file. (Rule doesn't work on my system, plus it's
721         big.)
722
723         * gtk/Makefile.am: 'make dist' fixes.
724
725 Sat Mar  2 13:26:58 2002  Owen Taylor  <otaylor@redhat.com>
726
727         * gtk/Makefile.am: Switch style of stamp file usage.
728
729         * gtk/Makefile.am gtk/typeutils.[ch]: Switch all the exported
730         enumeration/fags TYPE variables over to macros for get_type() functions,
731         for lazy definition and to get rid of expensive relocations.
732
733         * gtk/gtkiconfactory.[ch] gtk/gtkselection.[ch] gtk/gtkstyle.[ch]
734         gtk/gtktextiter.[ch] gtk/gtktexttag.[ch] gtk/gtktreemodel.[ch]
735         gtk/gtktypeutils.[ch] gtk/gtkwidget.[ch]: Switch boxed type
736         definitions over manually coded get_type() functions.
737
738         * gtk/gtk.def: Updates for above
739
740         * gtk/{genmarshal.pl,makeenums.awk,makeenums.h,maketypes.awk}:
741         Remove from CVS, no longer used.
742
743         * configure.in: Remove checks for awk.
744         
745 Sat Mar  2 04:44:10 2002  Tim Janik  <timj@gtk.org>
746
747         * gtk/gtkaccelgroup.c (gtk_accel_group_connect_by_path): fix typo.
748
749 Fri Mar  1 23:59:35 2002  Kristian Rietveld  <kris@gtk.org>
750
751         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size): set
752         first_cell to FALSE after first iteration
753
754         * gtk/gtktreeview.c (validate_visible_area): reduce usage of
755         GTK_RBNODE_GET_HEIGHT, check for node != NULL,
756         (gtk_tree_view_top_row_to_dy): remove call to gtk_adjustment_changed
757         (gtk_tree_view_search_iter): select iter after scrolling
758
759 2002-03-02  Tor Lillqvist  <tml@iki.fi>
760
761         * gtk/gtkitemfactory.c: Remove unneeded Win32 stuff inside #ifdef
762         G_OS_WIN32. (Leftover from when gtkitemfactory.c handled files.)
763
764 2002-03-01  Tor Lillqvist  <tml@iki.fi>
765
766         * gdk/gdkkeys.c (gdk_keyval_convert_case)
767         * gdk/x11/gdkkeys-x11.c (gdk_keyval_convert_case): If the keyval
768         to be converted is one of those that consist of a Unicode
769         character plus our special flag bit, use the
770         g_unichar_to{lower,upper} functions (Bug#73112).
771
772         * gdk/gdkkeys.c (gdk_keyval_convert_case): Drop the #ifdefs for
773         the GDK keysym symbols. As we include gdkkeysyms.h, we know they
774         are there. And if GDK keysyms some day are added/removed, this
775         function needs changes, too, anyway.
776
777 Fri Mar  1 17:00:28 2002  Owen Taylor  <otaylor@redhat.com>
778
779         * gdk/gdkpolyreg-generic.c: Fix some reported (but not significant)
780         UMR's from purify. (#73160, Morten Welinder)
781
782 Fri Mar  1 16:48:19 2002  Owen Taylor  <otaylor@redhat.com>
783
784         * gtk/gtkscrolledwindow.c: Initialize the scrollbar spacing
785         variable in the class to -1, and then take that to mean
786         "default" (3) rather than putting 3 in the class directly.
787         This gives us some wiggle room to make it a per-instance
788         rather than a per-class property later.
789
790 2002-03-01  jacob berkman  <jacob@ximian.com>
791
792         * Makefile.am (install-data-hook): 
793         (dist-hook): replace uses of test -e with more portable test -f
794
795 Fri Mar  1 14:49:35 2002  Owen Taylor  <otaylor@redhat.com>
796
797         * gtk/gtktextview.c (gtk_text_view_commit_text): Don't delete
798         forward across line boundaries when in overwrite mode.
799         (#73145, reported by Ettore Perazzoli)
800
801 Fri Mar  1 14:47:39 2002  Owen Taylor  <otaylor@redhat.com>
802
803         * gtk/gtktextview.c (gtk_text_view_commit_text): Don't
804         join up lines.
805
806 Fri Mar  1 10:31:14 2002  Owen Taylor  <otaylor@redhat.com>
807
808         * gtk/gtknotebook.c (gtk_notebook_reorder_child):
809         Fix signed-unsigned error that was accidentally causing
810         negative values to append, do it intentionally. Fix docs 
811         to say that negative values append. (Alexey A. Malyshev,
812         #73108) 
813
814 2002-03-01 Alexey Malyshev <maa@sparc.spb.su>
815         
816         * gtk+/gtk/gtkitemfactory.c
817         fixed a little type in docs for gtk_notebook_set_show_border()
818         
819 Fri Mar  1 09:05:19 2002  Owen Taylor  <otaylor@redhat.com>
820
821         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entries):
822         Really make it work for paths with underline accelerators. (#69247)
823
824 2002-02-28  Havoc Pennington  <hp@pobox.com>
825
826         * gtk/gtktextview.c (gtk_text_view_finalize): free the tab array
827         for custom tabs, reported by Paolo Maggi #72980
828         
829 Thu Feb 28 19:55:01 2002  Owen Taylor  <otaylor@redhat.com>
830
831         * gdk/gdkkeys.c: include gdkkeysysms.h if
832         compiling gdk_keyval_convert_case.
833
834         * gtk/gtkmenubar.c (gtk_menu_bar_cycle_focus): Implement
835         <Control>Tab <Control><Shift>Tab to cycle between
836         all menu bars in a toplevel once one is up.
837
838         * tests/testgtk.c: Add a second menubar, this
839         example is already full of crack anyways.
840
841         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): Padd
842         unhandled events up to the parent menu shell.
843
844         * gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): Only
845         pop up the menu if the parent menu shell is still active.
846
847         * gtk/gtkcontainer.[ch] (_gtk_container_focus_sort): Add a
848         old_focus argument, export privately.
849
850 2002-02-28  Darin Adler  <darin@bentspoon.com>
851
852         * gtk/gtkfilesel.c: (open_new_dir): Add missing NULL check.
853
854 2002-03-01  Tor Lillqvist  <tml@iki.fi>
855
856         * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove
857         the event_mask, it is now in GdkWindowObject.
858
859         * gdk/win32/gdkwindow-win32.c: Change accordingly. Set the
860         GDK_STRUCTURE_MASK in gdk_window_set_events(), as it is always set
861         in gdk_window_new(), too. (Bug#72921)
862
863         * gdk/win32/gdkevents-win32.c: Change accordingly here, too.
864         (vk_from_char): New function, calculates the virtual keycode
865         corresponding to the char in a WM_CHAR message.
866         (build_keypress_event, build_keyrelease_event): Use it.
867         (build_keypress_event): Call ImmReleaseContext() after using the
868         input context. This might plug a memory or resource leak.
869         (build_key_event_state): Remove #if 0 code.
870         (gdk_event_translate): Actually, it would be preferrable to always
871         handle just the WM_KEYDOWN and WM_KEYUP messages, not WM_CHAR at
872         all, and thus drop the contorted logic with ignore_wm_char etc.
873
874         * gdk/win32/gdkkeys-win32.c: (gdk_keymap_get_entries_for_keyval):
875         Debugging output.
876         (gdk_keymap_translate_keyboard_state): Return correct value. (But
877         _gtk_key_hash_lookup() doesn't check the return value...)
878
879 Thu Feb 28 14:49:08 2002  Owen Taylor  <otaylor@redhat.com>
880
881         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): Initialize
882         private->event_mask from attributes we retrieved for
883         the window.
884
885 2002-02-22  Havoc Pennington  <hp@redhat.com>
886
887         * gtk/gtktextbuffer.c (save_range): change gravity of start/end
888         marks so that text added at either end of the range doesn't end up
889         inside the range.
890         (gtk_text_buffer_real_insert_range): fix to handle pasting a range
891         into itself.
892
893 2002-02-28  Sven Neumann  <sven@gimp.org>
894
895         * configure.in: beautified configure --help output.
896
897 2002-02-28  Tor Lillqvist  <tml@iki.fi>
898
899         * gdk/win32/Makefile.am: Move bdfcursor.c from
900         libgdk_win32_la_SOURCES to EXTRA_DIST.
901
902         * gdk/win32/gdkgc-win32.c (gdk_win32_colormap_color_pack): In the
903         bitmap case, use just the LSB of the pixel value. Does this match
904         X11 semantics? Or should it be pixel!=0?
905
906 Wed Feb 27 19:16:50 2002  Owen Taylor  <otaylor@redhat.com>
907
908         * gdk/x11/gdkwindow-x11.c (gdk_window_new): 
909         * gdk/x11/gdkwindow-x11.c (gdk_window_get_events): 
910         * gdk/x11/gdkwindow-x11.c (gdk_window_set_events): 
911         * gdk/win32/gdkwindow-win32.c (gdk_window_set_events): 
912         * gdk/win32/gdkwindow-win32.c (gdk_window_new): 
913         * gdk/gdkwindow.h (struct _GdkWindowObject): 
914         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_events):
915         Save the window's event mask in window->event_mask.
916
917         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Only
918         generate expose events if GDK_EXPOSE_MASK is included
919         window->event_mask. (#54506)
920
921 Wed Feb 27 18:50:29 2002  Owen Taylor  <otaylor@redhat.com>
922
923         * gtk/gtkwidget.c (gtk_widget_event): Allow focus-change
924         events to be sent to unrealized widgets; they aren't
925         really normal events in that they have anything to
926         do with widget->window. (#72914, Andreas J. Guelzow)
927
928 Wed Feb 27 18:39:25 2002  Owen Taylor  <otaylor@redhat.com>
929
930         * gtk/stock-icons/Makefile.am: Split big VARIABLES variable
931         that was causing overlong lines into 6 variables with 20
932         in each one.
933
934 Wed Feb 27 18:01:03 2002  Owen Taylor  <otaylor@redhat.com>
935
936         * gtk/gtkaccellabel.c (gtk_accelerator_name) po/POTFILES.in: 
937         Mark Ctrl, Shift, Alt for translation.
938         (#60590)
939
940         * gtk/gtkfontsel.c: Mark PREVIEW_TEXT for translation.
941         (Vlad Harchev, #53223)
942
943 Wed Feb 27 17:32:09 2002  Owen Taylor  <otaylor@redhat.com>
944
945         * gtk/gtkrange.c (gtk_range_get_props): if CAN_FOCUS
946         reserve focus_line_width + focus_line_pad extra
947         space and draw the focus in that space. #72027.
948
949 Wed Feb 27 23:02:55 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
950
951         * gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
952
953 Wed Feb 27 14:58:12 2002  Owen Taylor  <otaylor@redhat.com>
954
955         * gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate): 
956         Don't reserve space for border when the shadow type
957         for the menubar is "none". (#61843)
958
959         * gtk/gtkmenubar.c (gtk_menu_bar_size_allocate): Fix
960         offset for right-justified menu items.
961
962 Wed Feb 27 14:45:21 2002  Owen Taylor  <otaylor@redhat.com>
963
964         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Go
965         back to old style of drawing children over the bevel.
966         (#58615)
967
968 Wed Feb 27 14:08:26 2002  Owen Taylor  <otaylor@redhat.com>
969
970         * modules/input/imxim.c: Add ko and zh to the locales
971         where this is the default.
972
973 Wed Feb 27 12:34:21 2002  Owen Taylor  <otaylor@redhat.com>
974
975         * gtk/gtkiconfactory.c: Register all stock icons
976         "unscaled" so that we don't have icons only available
977         at some sizes. (#68896)
978
979 Wed Feb 27 11:59:05 2002  Owen Taylor  <otaylor@redhat.com>
980
981         Some ASCII vs. locale fixes from Darin Adler (#55837)
982
983         * gtk/gtkcombo.c (gtk_combo_find): Implement real
984         case-insensitive comparison using g_utf8_casefold().
985
986         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Fix
987         assignment of gunichar to char by replacing g_unichar_totitle
988         with g_ascii_toupper ... the contents would only be ascii
989         here anyways.
990
991         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale) 
992         * gtk/gtkfontsel.c (gtk_font_selection_show_available_fonts): 
993         Replace a calls to g_strcasecmp() with g_ascii_strcasecmp().
994
995 2002-02-27  Hans Breuer  <hans@breuer.org>
996
997         * demos/gtk-demo/makefile.msc.in : new file
998
999         * gdk-pixbuf/gtk-pixbuf.rc.in : new file to include
1000           version resource
1001         * gdk-pixbuf/makefile.msc : create and use gdk-pixbuf.res
1002
1003         * gdk/win32/gdkkeys-win32.c : handle undefined LANG_URDU,
1004         (gdk_keyval_name) : fix endless looping
1005
1006         * gtk/gtkfilesel.c : translate_win32_path() static
1007         * gtk/queryimmodules : print_escaped(), query_module() static
1008
1009         * gtk/makefile.msc.in : added gtkkeyhash, build gtk-win32.res
1010
1011         * gtk/stock-icons/makefile.msc : regenerated from directory
1012         listing (almost all filenames changed)
1013
1014 Wed Feb 27 10:34:46 2002  Owen Taylor  <otaylor@redhat.com>
1015
1016         * gtk/gtkrange.c (gtk_range_set_range): After computing
1017         the clamped value, actually set it. (#62639, Sergey Kuzminov)
1018
1019 Tue Feb 26 22:22:37 2002  Owen Taylor  <otaylor@redhat.com>
1020
1021         * gtk/gtkbox.c (gtk_box_reorder_child): Clean up
1022         the code so < 0 == end wasn't just a side effect,
1023         remove most of the manual linked list manipulation
1024         code in favor of g_list_* functions.
1025
1026 Tue Feb 26 21:44:01 2002  Owen Taylor  <otaylor@redhat.com>
1027
1028         * config.status config.guess: Remove these files
1029         from CVS so we more-or-less current versions from
1030         automake --add-missing. (Reported by Finlay Dobbie,
1031         #60342)
1032
1033         * gdk/gdkkeyuni.c: Shouldn't map KP_Enter to '\n',
1034         or KP_Tab to \t' since we don't map the corresponding
1035         main keyboard characters in that way. (#61561,
1036         Padraig O'Briain)
1037
1038 Tue Feb 26 19:45:29 2002  Owen Taylor  <otaylor@redhat.com>
1039
1040         * gtk/gtkcombo.c (gtk_combo_set_popdown_strings):
1041         Call gtk_combo_set_popdown_strings() in case
1042         the combo is up currently. (#63535, Skip Montaro)
1043
1044 Tue Feb 26 19:38:14 2002  Owen Taylor  <otaylor@redhat.com>
1045
1046         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
1047         Switch control-home/end and home/end with
1048         the idea that scrolled windows more typically contain
1049         vertical sets of controls and to correspond to the bindings
1050         in GtkTreeView.
1051
1052 Tue Feb 26 19:32:42 2002  Owen Taylor  <otaylor@redhat.com>
1053
1054         * gtk/gtk[hv]vscale.c (gtk_[hv]scale_expose): Chain
1055         up before drawing the scale values so that the number
1056         is drawn in the right place instead of one step 
1057         back. (#61743, patch from Satyajit Kanungo)
1058
1059 Tue Feb 26 19:16:28 2002  Owen Taylor  <otaylor@redhat.com>
1060
1061         * gdk/win32/gdkkeys-win32.c (gdk_keyval_name): 
1062         * gdk/x11/gdkkeys-x11.c (gdk_keyval_name): 
1063         Make sure Page_Up, Page_Down get those names, not Prior,
1064         Next.
1065
1066 Tue Feb 26 18:58:49 2002  Owen Taylor  <otaylor@redhat.com>
1067
1068         * gtk/gtkaccelgroup.c (gtk_accelerator_set_default_mod_mask):
1069         OR in the three default modifiers to any value passed
1070         in by the caller, so that the caller won't break the
1071         the default bindings. (#70142, Jody Goldberg, though he
1072         wasn't in favor of this particular way of solving it.)
1073
1074 Tue Feb 26 18:47:44 2002  Owen Taylor  <otaylor@redhat.com>
1075
1076         * gtk/gtkwindow.c (gtk_window_add_mnemonic): Append
1077         mnemonics rather than prepending them so that the 
1078         order is typically forward rather than typically
1079         backward. (Partial fix for #52395)
1080
1081 Wed Feb 27 00:45:39 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1082
1083         * gtk/gtkarrow.c, gtk/gtkmenuitem.c, gtk/gtkrange.c
1084         gtk/gtkspinbutton.c gtk/gtkstyle.c: Draw arrows better (without
1085         extra baseline)
1086
1087 Tue Feb 26 18:38:17 2002  Owen Taylor  <otaylor@redhat.com>
1088
1089         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): 
1090         Display any "g_unicode_isgraph()" char literally,
1091         not just latin1. (#65679)
1092
1093 Tue Feb 26 18:01:10 2002  Owen Taylor  <otaylor@redhat.com>
1094
1095         * gtk/gtkwidget.c (gtk_widget_grab_focus): Don't
1096         focus insensitive widgets. (#68203)
1097         
1098         * gtk/gtkentry.c (gtk_entry_state_changed): Clear any
1099         current selection if we become insensitive. (#68203)
1100
1101         * gtk/gtkentry.c (gtk_entry_grab_focus): Don't
1102         select the text if the entry isn't editable. (#67203)
1103
1104         * gtk/gtkentry.c: Activate keybindings when not editable,
1105         but supress keybindings that change the text. (#65848, #68203)
1106
1107         * gtk/gtkentry.c (gtk_entry_set_property): Reset the
1108         IM context for the entry when it is made not editable.
1109
1110 Tue Feb 26 17:04:44 2002  Owen Taylor  <otaylor@redhat.com>
1111
1112         * gtk/gtkcolorsel.c (update_color): Emit ::color_changed
1113         every time we notify current_color. (Brute force 
1114         fix for #72470, Matthias Clasen). Some fixes to improve
1115         reentrancy.
1116
1117 Tue Feb 26 15:04:33 2002  Owen Taylor  <otaylor@redhat.com>
1118
1119         * gtk/gtkentry.c (gtk_entry_enter_text): use
1120         the cursor position _after_ deleting the text
1121         as the position to insert at. (#72717, Jan Mynarik)
1122
1123 2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
1124
1125         * gtk/gtktreemodel.c
1126         misprints in documentation for gtk_tree_row_reference_inserted() 
1127         and gtk_tree_path_new () are fixed
1128
1129 Tue Feb 26 19:47:16 2002  Kristian Rietveld  <kris@gtk.org>
1130
1131         * gtk/gtktreeview.c (validate_visible_area): take into account
1132         that a path from a rowref can be NULL. (#72623 and #72650)
1133
1134         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_render_or_focus):
1135         let focus_rectangle be the same as cell_area for empty cells (#69900)
1136
1137 Tue Feb 26 11:51:56 2002  Owen Taylor  <otaylor@redhat.com>
1138
1139         * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): Fix
1140         double free.
1141
1142 Tue Feb 26 10:38:14 2002  Owen Taylor  <otaylor@redhat.com>
1143
1144         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval): Handle
1145         a keyval of 0, by returning an empty list. (#72617,
1146         Kevin Breit)
1147
1148 2002-02-26  Richard Hult  <rhult@codefactory.se>
1149
1150         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix
1151         #72586. Silently accept empty tree.
1152         (gtk_tree_view_collapse_all): Likewise.
1153
1154 2002-02-26  Tor Lillqvist  <tml@iki.fi>
1155
1156         * gtk/gtk.def: A couple of name changes.
1157
1158 Mon Feb 25 22:10:47 2002  Owen Taylor  <otaylor@redhat.com>
1159
1160         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): Fix
1161         double set of bindings for page-up/down. (#72605, Tor Lillqvist)
1162
1163         * gtk/gtkmenu.c (gtk_menu_key_press): Remove consumed modiifers
1164         when setting up accelerator to make accelerators look prettier.
1165         (#65416, Guillermo S. Romero)
1166
1167 2002-02-26  Tor Lillqvist  <tml@iki.fi>
1168
1169         * gdk/win32/gdkkeys-win32.c: Implement the functions that until
1170         now just were non-functional stubs. For "hardware keycodes", we
1171         use Windows virtual keycodes. Not scancodes, although that at
1172         first might seem more low-level and a better match to X11
1173         keycodes. 
1174
1175         The Windows API is really mixed up and confused with respect to
1176         scancodes and virtual keycodes. (Surprised?) Some scancodes are
1177         generated by two keys on the keyboard (!), and although the
1178         keyboard messages do have a flag to indicate which key the user
1179         pressed, other API that take a scan code as input don't let you
1180         specify which actual key you mean.
1181
1182         (update_keymap): Function to build a X11-like representation of
1183         the keyboard. Each key has four keysyms: two levels (nonshifted
1184         and shifted) and two groups (normal and with AltGr).
1185
1186         (gdk_keymap_get_direction): Use the codepage corresponding to the
1187         thread's input locale, not the system codepage.
1188
1189         * gdk/win32/gdkglobals.h
1190         * gdk/win32/gdkmain-win32.c
1191         * gdk/win32/gdkprivate-win32.h
1192         * gdk/win32/gdkwindow-win32.h
1193         * gdk/win32/gdkwindow-win32.c: Remove the input_locale and
1194         charset_info fields from GdkWindowImplWin32. Input locale is
1195         per-thread in Windows, and as GDK on Windows really only works
1196         when the GDI interaction all happens in just one thread anyway,
1197         this state can be global. Use globals _gdk_input_locale and
1198         _gdk_input_codepage instead. Set these based on the thread's input
1199         locale (keyboard layout, or which IME is active).
1200
1201         * gdk/win32/gdkevents-win32.c: Set the group and hardware_keycode
1202         fields in GDK key events. On input locale change messages, set
1203         the global state variables, and inform update_keymap() that it
1204         has to rebuild the keymap.
1205         
1206 2002-02-25  Matthias Clasen  <maclas@gmx.de>
1207
1208         * docs/tutorial/gtk-tut.sgml: Fix typos in pkg-config 
1209         invokations.  (#72476) 
1210
1211 Mon Feb 25 18:59:27 2002  Owen Taylor  <otaylor@redhat.com>
1212
1213         * gtk/gtktooltips.c (start_keyboard_mode): Set the keyboard-mode
1214         flag before popping up the tooltip so that pop it up
1215         in the right place. (#71917, Narayani Pattipati)
1216
1217 Mon Feb 25 22:11:34 2002  Kristian Rietveld  <kris@gtk.org>
1218
1219         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_visible): call
1220         _gtk_tree_view_column_cell_set_dirty when visible, so this column
1221         gets some space allocated. (#70996)
1222
1223         * gtk/gtkliststore.c (gtk_list_store_get_path): add simple
1224         optimization for the tail case
1225         (gtk_list_store_real_set_value): remove unneeded _get_path calls
1226
1227 Mon Feb 25 12:47:25 2002  Owen Taylor  <otaylor@redhat.com>
1228
1229         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): 
1230         Fix precendence problem. (Sven Neumann)
1231
1232 Sun Feb 24 23:23:28 2002  Owen Taylor  <otaylor@redhat.com>
1233
1234         * tests/testselection.c (main): Convert over to using
1235         an GtkInvisible - selections don't work properly
1236         with now NO_WINDOW GtkToggleButton. (Example really
1237         should be using GtkClipboard.)
1238
1239         * gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
1240         Fix  problems if sizeof(GdkAtom) != sizeof(Atom). (Unlikely)
1241
1242         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Set 
1243         actual_length when converting atoms as well.
1244         (Gregory Merchan, #72074)
1245
1246 2002-02-24  Havoc Pennington  <hp@pobox.com>
1247         
1248         * gtk/gtktextview.c (gtk_text_view_value_changed): add dx/dy to
1249         child allocation, don't subtract them. Also, copy code from CList
1250         to recursively adjust the child allocation, instead of just 
1251         adjusting immediate children. #69115
1252
1253 2002-02-24  Havoc Pennington  <hp@pobox.com>
1254
1255         * gtk/gtkstyle.c (_gtk_draw_insertion_cursor): change to pass in
1256         the cursor direction always, not just when we need an arrow, so we
1257         can flip the cursor around its axis for RTL. Resolves #72372
1258
1259         * gtk/gtkentry.c (gtk_entry_draw_cursor): update for
1260         draw_insertion_cursor change
1261         
1262         * gtk/gtklabel.c (gtk_label_draw_cursor): ditto
1263
1264         * gtk/gtktextdisplay.c (gtk_text_layout_draw): ditto
1265         
1266 2002-02-24  Alexander Larsson  <alla@lysator.liu.se>
1267
1268         * gdk/x11/gdkwindow-x11.c (gdk_window_set_background):
1269         Always NULL out bg_pixmap, even when it used to be None
1270         or parent relative.
1271
1272 2002-02-24  Havoc Pennington  <hp@pobox.com>
1273
1274         * gtk/gtktextbuffer.c (parent_class): parent_class variable was
1275         GtkObjectClass instead of GObjectClass
1276
1277         * gtk/gtktextview.c (widget_to_buffer): fix this the way 
1278         buffer_to_widget was fixed, to avoid duplicating 
1279         the code that computes text_window->allocation.x/y
1280
1281 Sun Feb 24 21:18:20 2002  Owen Taylor  <otaylor@redhat.com>
1282
1283         * gtk/gtksocket.c (gtk_socket_end_embedding): Fix
1284         off-by-one error. (Pointed out by Anders Carlsson)
1285
1286 2002-02-25  Matthias Clasen  <maclas@gmx.de>
1287
1288         * docs/tutorial/gtk-tut.sgml, docs/tutorial/images/*, examples/*: More
1289          GTK+ 2.0 updates.
1290
1291         * docs/tutorial/Makefile.am: build and dist the new tutorial, not
1292         the old Linuxdoc one.
1293
1294 Mon Feb 25 01:14:26 2002  Kristian Rietveld  <kris@gtk.org>
1295
1296         * gtk/gtktextlayout.c (find_display_line_above): free iter before
1297         going to done
1298
1299         * gtk/gtktreeview.c (validate_visible_area): free above_path,
1300         (set_destination_row): free path before returning,
1301         (gtk_tree_view_set_drag_dest_row): free current_dest
1302
1303 Sun Feb 24 14:15:45 2002  Owen Taylor  <otaylor@redhat.com>
1304
1305         * gtk/gtktextview.c (widget_to_buffer): Take border
1306         width into account.
1307
1308         * gtk/gtklabel.c (get_label_wrap_width): Don't use GdkFont
1309         to compute wrap width ... GdkFont will pull in X11 core
1310         fonts.
1311
1312 Sun Feb 24 00:06:58 2002  Owen Taylor  <otaylor@redhat.com>
1313
1314         * Released 1.3.15.
1315
1316         * configure.in: Version 1.3.15, binary, interface age 0.
1317
1318         * NEWS: Updates
1319
1320         * configure.in: Update version requirements.
1321
1322 Sat Feb 23 22:37:23 2002  Owen Taylor  <otaylor@redhat.com>
1323
1324         * gtk/gtkstyle.c (gtk_style_init): Sanity check default
1325         font family name and size.
1326
1327         * gtk/gtkwindow.c (gtk_window_set_default_size): Remove
1328         incorrect comment about the geometry widget.
1329
1330         * gtk/gtkwindow.c (gtk_window_move_resize): Unset the
1331         gtk_window_resize)() information once we've set the size
1332         once, to avoid it coming back next time we queue a resize.
1333         (#72359)
1334
1335         * gtk/gtkwindow.c (gtk_window_move_resize): Remove
1336         sething of ->need_default_position from here, Havoc
1337         says that it should correspond more or less exactly
1338         to GTK_WIDGET_MAPPED (window).
1339
1340 Sat Feb 23 23:00:48 2002  Jonathan Blandford  <jrb@redhat.com>
1341
1342         * gtk/gtktreemodel.h: add () to function macros as per owen's
1343         request.
1344
1345         * gtk/gtkfontsel.c: (gtk_font_selection_select_best_style),
1346         (gtk_font_selection_show_available_sizes),
1347         (gtk_font_selection_set_font_name):
1348         * gtk/gtktreemodel.c: (gtk_tree_model_get_iter_first),
1349         (gtk_tree_model_foreach):
1350         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_sort_level),
1351         (gtk_tree_model_sort_build_level):
1352         * gtk/gtktreeselection.c: (gtk_tree_selection_selected_foreach):
1353         * gtk/gtktreeview.c: (validate_visible_area),
1354         (gtk_tree_view_focus_to_cursor), (gtk_tree_view_set_model),
1355         (gtk_tree_view_map_expanded_rows), (gtk_tree_view_search_move),
1356         (gtk_tree_view_search_init):
1357         * tests/testtreeview.c: (run_automated_tests): change iter_root
1358         to iter_first
1359
1360 Sat Feb 23 22:10:52 2002  Jonathan Blandford  <jrb@redhat.com>
1361
1362         * gtk/gtktreemodel.c (gtk_tree_path_new_first): change new_root to
1363         new_first to avoid confusion.
1364         (gtk_tree_model_get_iter_first): ditto.
1365
1366 Sat Feb 23 20:59:05 2002  Owen Taylor  <otaylor@redhat.com>
1367
1368         * gtk/gtkstyle.c gtk/gtkrc.[ch]: gtk/gtksettings.c gtk/gtkstyle.c:
1369         Patch from Richard Hestilow to add a gtk-font-name GtkSetting.
1370
1371         * gdk/x11/gdkevents-x11.c: Add Gtk/FontName XSETTING.
1372
1373 2002-02-24  Tor Lillqvist  <tml@iki.fi>
1374
1375         * gtk/gtkfilesel.c: Move inclusion of <windows.h> before inclusion
1376         of <winsock.h>, to actually get STRICT prototypes for Win32
1377         API. Include glib.h early to get G_OS_WIN32 and G_WITH_CYGWIN.
1378         Don't declare static functions that aren't defined if !HAVE_PWD_H
1379         or if G_OS_WIN32.
1380         (win32_gtk_add_drives_to_dir_list): Remove #if 0 code, reindent.
1381         (gtk_file_selection_get_selections): Don't crash if nothing has
1382         been selected.
1383
1384 Sat Feb 23 20:33:29 2002  Owen Taylor  <otaylor@redhat.com>
1385
1386         * gtk/gtkplug.[ch] gtk/gtksocket.[ch] gtk/xembed.h: Implement 
1387         accelerator propagation using a custom XEMBED_GTK_KEY_GRAB
1388         XEMBED_GTK_KEY_UNGRAB pair of messages.
1389
1390         * gtk/gtkwindow.[ch]: private export _gtk_window_keys_foreach().
1391
1392         * gtk/gtkplug.c (gtk_plug_set_is_child): Clear focus and default
1393         widgets.
1394
1395 2002-02-23  Havoc Pennington  <hp@redhat.com>
1396
1397         * gtk/gtktextbuffer.c (save_range): change gravity of start/end
1398         marks so that text added at either end of the range doesn't end up
1399         inside the range.
1400         (gtk_text_buffer_real_insert_range): fix to handle pasting a range
1401         into itself. #71412
1402         
1403 Sat Feb 23 19:05:34 2002  Jonathan Blandford  <jrb@redhat.com>
1404
1405         * gtk/gtktreeview.c (validate_visible_area): Didn't refind node
1406         when it was NULL.  Bug found by Tor Lillqvist.
1407
1408 2002-02-24  Tor Lillqvist  <tml@iki.fi>
1409
1410         * gdk/win32/gdkevents-win32.c (build_keypress_event,
1411         build_keyrelease_event, gdk_event_translate): Set also group in
1412         the key press/release events, always to zero for now.
1413
1414 2002-02-24  Anders Carlsson  <andersca@gnu.org>
1415
1416         * gtk/stock-icons/stock_dialog_error_48.png: 
1417         * gtk/stock-icons/stock_sort_ascending_16.png:
1418         * gtk/stock-icons/stock_undelete_24.png: 
1419         * gtk/stock-icons/stock_sort_descending_16.png: 
1420         Alpha-pad icons so they get the correct size.
1421         
1422 Sat Feb 23 16:52:38 2002  Owen Taylor  <otaylor@redhat.com>
1423
1424         * gtk/gtkentry.c: Patch from Matthias Clasen to remove some
1425         excessive ::changed signals for GtkEntry. (#53130)
1426
1427 2002-02-23  Tor Lillqvist  <tml@iki.fi>
1428
1429         * gtk-zip.sh.in: Include the gtkrc files for themes.
1430
1431 2002-02-23  Anders Carlsson  <andersca@gnu.org>
1432
1433         * gtk/gtkiconfactory.c (get_default_icons): Register 16x16 
1434         versions of most icons.
1435
1436         * gtk/stock-icons: Add 16x16 versions
1437         of most icons.
1438
1439 Wed Feb 20 16:44:05 2002  Jonathan Blandford  <jrb@redhat.com>
1440
1441         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): delay
1442         scrolling until we try to draw the window.
1443
1444         * gtk/gtktreeview.c (validate_visible_area): Implement
1445         scroll_to_cell.
1446
1447 2002-02-23  Tor Lillqvist  <tml@iki.fi>
1448
1449         * gtk/gtk.def: Add missing gtk_file_selection_get_select_multiple.
1450         Remove gtk_tree_view_column_cell_* entry points that were made
1451         private.
1452
1453 Sat Feb 23 15:43:46 2002  Owen Taylor  <otaylor@redhat.com>
1454
1455         * gtk/gtktogglebutton.c: Make button draw depressed whenever
1456         the user clicks / activates it, whether it's off/on/inconsistent.
1457
1458 Sat Feb 23 11:54:12 2002  Owen Taylor  <otaylor@redhat.com>
1459
1460         * gtk/*.h gdk/*.h: Massive padding addition to class structures.
1461
1462         * gtk/gtktextmark.h: Fix a FIXME about G_CONST_RETURN.
1463
1464 Fri Feb 22 20:28:18 2002  Owen Taylor  <otaylor@redhat.com>
1465
1466         * gtk/gtkrange.c: Applied patch from Thomas Leonard to make
1467         stepper click to scroll take effect immediately, rather than after
1468         a delay (#67649).
1469
1470         * gtk/gtkrange.c: Remove right-click == step in trough since it
1471         isn't a useful binding and it's a large area to hit accidentally.
1472         (Leave it on the steppers since its more useful there and less
1473         likely to do accidentally.)
1474
1475 2002-02-23  Pablo Saratxaga  <pablo@mandrakesoft.com>
1476
1477         * configure.in (ALL_LINGUAS): Add "cy" to the language list.
1478
1479 2002-02-23  Jody Goldberg <jody@gnome.org>
1480
1481         * gtk/gtkaccelgroup.c (gtk_accel_group_connect) : lower case the
1482           key_val.
1483         (gtk_accel_group_connect_by_path) : ditto.
1484         (gtk_accel_group_disconnect_key) : ditto.
1485
1486         * gtk/gtkwidget.c (gtk_widget_real_key_release_event) : simplify.
1487         (gtk_widget_real_key_press_event) : ditto.
1488
1489 Sat Feb 23 00:28:47 2002  Jonathan Blandford  <jrb@redhat.com>
1490
1491         * gtk/gtktreeviecolumn.c: Documented undocumented functions.
1492
1493         * gtk/gtktreemodel.c: Documented undocumented functions.
1494
1495 Sat Feb 23 03:10:20 2002  Kristian Rietveld  <kris@gtk.org>
1496
1497         * gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
1498         max_width while resizing columns (pointed out by Jorn Baayen)
1499
1500 Fri Feb 22 19:17:46 2002  Owen Taylor  <otaylor@redhat.com>
1501
1502         Patch from Matthias Clasen (#54488)
1503
1504         * gtk/gtkwindow.c: Set/unset HAS_FOCUS flags here,
1505         and do ::has-focus notifications.
1506
1507         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtksocket.c
1508         gtk/gtktext.c gtk/gtktextview.c gtk/gtkwidget.c:
1509         Remove unecessary focus_in/out handles and unecessary
1510         flag setting.
1511
1512         * gtk/gtkwidget.c: Adda missing notification on ::parent.
1513
1514 Fri Feb 22 18:36:45 2002  Owen Taylor  <otaylor@redhat.com>
1515
1516         Fixes for AIX compilation from Miroslaw Dobrzanski-Neumann,
1517         #72182.
1518
1519         * demos/gtk-demo/main.c gtk/gtktreeview.c gtk/gtktoolbar.c
1520         gtk/gtkpaned.c gtk/gtkobject.c gtk/gtkcontainer.c 
1521         gtk/gtkcolorsel.c gtk/gtkcellrender.c gdk/x11/xsettings-client.h:
1522         Squash trailing commas on enumerations.
1523
1524         * gdk/gdktypes.h: Drop GDK_RELEASE_MASK to 1 << 30 instead
1525         of 1 << 31 to work around AIX compiler problem. (C standard
1526         seems to imply that compiler is required to use an unsigned
1527         type for the enum value in this case.)
1528
1529         * gdk/gdkpixbuf-drawable.c: Fix lvalue casts.
1530
1531         * gtk/gtkwindow.h: Fix use of enum types for bitfields ... 
1532         compilers may choose to use a signed type for bitfields.
1533
1534 Sat Feb 23 00:34:01 2002  Kristian Rietveld  <kris@gtk.org>
1535
1536         * gtk/gtktreeview.c (validate_rows_handler): leave threads before
1537         returning (#72045)
1538
1539 2002-02-22  Anders Carlsson  <andersca@gnu.org>
1540
1541         * gtk/stock-icons/*: Rename icons.
1542         
1543         * gtk/stock-icons/Makefile.am: Update for new icon names.
1544
1545         * gtk/gtkiconfactory.c (init_icon_sizes): Set the 
1546         GTK_ICON_SIZE_BUTTON size to be 20x20.
1547         (get_default_icons): Change stock names.
1548
1549 Fri Feb 22 22:39:59 2002  Kristian Rietveld  <kris@gtk.org>
1550
1551         * gtk/gtktreeprivate.h: add last_single_clicked and
1552         last_single_clicked_2 rowrefs and add disable_popdown to the
1553         bitfield
1554
1555         * gtk/gtktreeview.c (gtk_tree_view_destroy): add destroy stuff
1556         for two new rowrefs
1557         (gtk_tree_view_button_press): add some 'advanced' button handling,      
1558         so double click is being handled right (double click madness was
1559         discovered by Anders Carlsson)
1560
1561         * gtk/gtktreeview.c (gtk_tree_view_set_property): add missing
1562         break
1563         (gtk_tree_view_class_init): default value of headers_visible
1564         should be TRUE (both pointed out by Damon Chaplin, #71986)
1565
1566         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1567         connect to populate_popup,
1568         (gtk_tree_view_search_disable_popdown): new function,
1569         (gtk_tree_view_real_search_enable_popdown): ditto,
1570         (gtk_tree_view_search_enable_popdown): ditto,
1571         (gtk_tree_view_search_dialog_destroy): check for
1572         gtk-tree-view-popdown-disabled (#71868)
1573
1574         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): move
1575         ->priv->reorderable assignment to bottom. (#72122)
1576
1577 2002-02-22  Havoc Pennington  <hp@redhat.com>
1578
1579         * gtk/gtkstyle.c (_gtk_draw_insertion_cursor): subtract 1 from
1580         line endpoint, to avoid cursor dirt in the text widget.
1581         zero-width lines appear to draw the endpoint always. #67999
1582
1583 2002-02-22  Havoc Pennington  <hp@redhat.com>
1584
1585         * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by
1586         using text_window->allocation.x/y instead of recomputing it. 
1587         Fixes a bug caused by leaving out the border width here.
1588
1589 2002-02-22  Havoc Pennington  <hp@redhat.com>
1590
1591         * gtk/gtktextview.c (changed_handler): call
1592         gtk_size_group_queue_resize to avoid invalidating the widget every
1593         time its requisition changes. Instead we use the btree invalid
1594         lines to know what to redraw. Fixes #71429
1595
1596 Fri Feb 22 14:08:38 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1597
1598         * gtk/gtkradiobutton.c, gtk/gtkcheckbutton.c, gtkbutton.h,
1599         gtktogglebutton.c: feedback when check and radio buttons are
1600         depressed.      
1601
1602 2002-02-22  Matthias Clasen  <maclas@gmx.de>
1603
1604         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable):
1605         s/columns/rows/ in docs.  (#70199)
1606
1607         * gtk/gtktreestore.c (gtk_tree_store_insert): s/before/after/ in 
1608         docs. (#71852, #68405)
1609
1610         * gtk/gtkcalendar.c (gtk_calendar_select_day): Correct a comment.
1611
1612 Thu Feb 21 23:02:29 2002  Kristian Rietveld  <kris@gtk.org>
1613
1614         * gtk/gtktreeview.[ch]: add keynav handling for unselect all,
1615         focus column header, change focus with arrow keys in column headers,
1616         column reordering, column resizing, small try to fix page up/down
1617         (this fixes #70889, and fixes a great deal of #53580)
1618
1619 Thu Feb 21 16:51:17 2002  Owen Taylor  <otaylor@redhat.com>
1620
1621         * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Add
1622         GDK_ISO_Next_Group/Prev_Group/Level3_Shift/
1623         First_Group/Last_Group to list of invalid accelerators.
1624         (A lot more that should be added, but probably would
1625         want a range mechanism. These are the ones found in
1626         the standard XFree86 config files.)
1627
1628         * gtk/gtkbindings.c (gtk_bindings_activate): Fix problem
1629         that broke bindings for menus.
1630
1631         * gtk/gtkwindow.[ch]: Export _gtk_window_activate_key()
1632         privately.
1633
1634         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): Use
1635         _gtk_window_activate_key(), gtk_bindings_activate_event().
1636
1637 Thu Feb 21 12:24:22 2002  Owen Taylor  <otaylor@redhat.com>
1638
1639         * gtk/gtkctree.c (gtk_ctree_class_init): Remove some workarounds
1640         for +/= and shift key handling.
1641
1642 Wed Feb 20 14:26:47 2002  Owen Taylor  <otaylor@redhat.com>
1643
1644         * gtk/gtkkeyhash.[ch]: Implement "fuzzy" key binding lookups;
1645         allow matches on key and level but not group. Also, implement 
1646         ignoring "consumed modifiers correctly."
1647
1648         * gtk/gtkaccelgroup.c gtk/gtkbindings.c: Convert to using
1649         GtkKeyHash.
1650         
1651         * gtk/gtkdebug.h gtk/gtkmain.c: Support GTK_DEBUG=keybindings
1652
1653         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fill in
1654         the group for key release events as well as key press events.
1655
1656         * gdk/gdkkeys.h gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): 
1657         Rename unused_modifiers to consumed_modifiers, make the docs and
1658         non-Xkb implementation match the Xkb implementation.
1659
1660         * gdk/linux-fb/gdkkeyboard-fb.c gdk/win32/gdkkeys-win32.c: Propagate
1661         doc and parameter name changes.
1662
1663         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
1664         XkbTranslateKeyCode doesn't handle LockMask, we need to handle
1665         it ourselves.
1666
1667         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Force
1668         <Shift>Tab to give GDK_ISO_Left_Tab, since we need consistency
1669         to allow dealing with ISO_Left_Tab.
1670         
1671         * gtk/gtkwindow.c gtk/gtktextview.c gtk/gtkscrolledwindow.c
1672         gtk/gtkpaned.c gtk/gtkcombo.c  gtk/gtknotebook.c:
1673         Remove inappropriate uses of GDK_ISO_Left_Tab. (GDK_ISO_Left_Tab
1674         or <Shift>Tab both are equivalent as a binding specifier.)
1675
1676         * gtk/gtkbutton.c (gtk_button_class_init): Make ::activate
1677         GTK_RUN_ACTION, so you can bind an accelerator to it.
1678
1679         * gtk/gtklabel.c (gtk_label_set_uline_text_internal): Call 
1680         gdk_unicode_to_keyval on the mnemonic character.
1681
1682         * tests/testgtk.c: Add a test for the new fuzzy key binding matching.
1683
1684 2002-02-21  jacob berkman  <jacob@ximian.com>
1685
1686         * gtk/theme-bits/Makefile.am (EXTRA_DIST): inconsitent files are
1687         .pngs too
1688
1689 Wed Feb 20 21:52:13 2002  Owen Taylor  <otaylor@redhat.com>
1690
1691         * gtk/gtkselection.c (gtk_selection_request): Set the property
1692         as type ATOM_PAIR, not ATOM. (#72074, Gregory Merchan.)
1693
1694         * gdk/x11/gdk{property,selecton}-x11.c: Auto-convert properties
1695         of type ATOM_PAIR as well as properties of type ATOM.
1696
1697 2002-02-21  Matthias Clasen  <maclas@gmx.de>
1698
1699         * docs/tutorial/images/*.png: screenshots of examples.
1700         
1701         * docs/tutorial/gtk-tut.sgml: remove deprecated widgets, add
1702         screenshots, fix chapters 1-4 for GTK+ 2.0. 
1703
1704         * demos/gtk-demo/Makefile.am (INCLUDES): add -DGDK_PIXBUF_DISABLE_DEPRECATED.
1705
1706 Thu Feb 21 00:31:41 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1707
1708         * gtk/gtkspinbutton.c: Many cleanups and fixes. Draw exclusively
1709         in expose handler. Feedback when buttons are depressed.
1710
1711         * gtk/gtkstyle.c: update for changes in gtkspinbutton.c. Fix
1712         spinbuttons for RTL langauges.
1713
1714 Wed Feb 20 23:00:08 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1715
1716         * gtk/gtkstyle.c: new radio buttons. handle inconsistent state for
1717         check- and radiobuttons.
1718
1719         * gtk/theme-bits/check-13-inconsistent.png,
1720         gtk/theme-bits/radio-13-inconsistent.png: new files
1721
1722         * gtk/theme-bits/radio-13.png: new radio buttons
1723
1724         * gtk/theme-bits/Makefile.am (EXTRA_DIST): add new
1725         -inconsistent.png files
1726
1727 Wed Feb 20 16:19:49 2002  Owen Taylor  <otaylor@redhat.com>
1728
1729         * gdk/x11/gdkevents-x11.c: Add a XSETTING mapping for
1730         gtk-can-change-accels. (#70218, Thomas Leonard.)
1731
1732 2002-02-20  Sven Neumann  <sven@gimp.org>
1733
1734         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): check
1735         handler_id before disconnecting the signal handler since it might
1736         have never been connected if the GtkColorSelection is destroyed
1737         before it was realized.
1738
1739 2002-02-20  Matthias Clasen  <maclas@gmx.de>
1740
1741         * docs/tutorial/gtk-tut.sgml: Fold back Svens g_signal fixes from
1742         the examples.  
1743
1744         * docs/tutorial/gtk-tut.sgml, examples/progressbar/progressbar.c,
1745         examples/progressbar/Makefile: Make the progressbar example 
1746         deprecation-clean.
1747
1748 Tue Feb 19 22:10:59 2002  Kristian Rietveld  <kris@gtk.org>
1749
1750         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_mnemonic_activate): new
1751         function
1752         (gtk_tree_view_column_create_button): use g_signal_* instead of
1753         gtk_signal_*, hook up _mnemonic_activate callback
1754         (gtk_tree_view_column_update_button): use
1755         gtk_label_set_text_width_mnemonic instead of gtk_label_set_text
1756         (#69095)
1757
1758         * gtk/gtktreeview.c (gtk_tree_view_class_init): remove key bindings
1759         for C-f and C-b, let treeview search use C-f (instead of C-s)
1760         (#61866)
1761
1762         * gtk/gtkrc.key.emacs: add some GtkTreeView bindings
1763
1764 Tue Feb 19 20:56:32 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1765
1766         * gtk/theme-bits/decompose-bits.c (do_part): fix bug (skipping all
1767         black pixels).
1768
1769 2002-02-19  Sven Neumann  <sven@gimp.org>
1770
1771         * examples/*/*.c: finish conversion to g_signal_* functions by
1772         using G_OBJECT and G_CALLBACK and other assorted changes.
1773
1774 Tue Feb 19 17:36:31 2002  Kristian Rietveld  <kris@gtk.org>
1775
1776         * gtktreeprivate.h, gtktreeviewcolumn.[ch], gtktreeview.c: change
1777         gtk_tree_view_column_cell_render,
1778         gtk_tree_view_column_cell_focus,
1779         gtk_tree_view_column_cell_draw_focus and
1780         gtk_tree_view_column_cell_set_dirty to be private functions.
1781
1782         * gtktreeviewcolumn.[ch]: add install_handler argument to
1783         _cell_set_dirty to control if _mark_rows_col_dirty (which calls
1784         install_presize_handler) gets called, set widths correctly so
1785         autosizing works (#71870)
1786
1787         * gtktreeview.c (gtk_tree_view_column_autosize): new function,
1788         (gtk_tree_view_button_press): make double click on column
1789         separator resize the row (#71870)
1790         (gtk_tree_view_get_dest_row_at_pos): change DnD threshold to 33%
1791         (#71869, suggestion by Anders Carlsson)
1792
1793 Mon Feb 18 23:16:16 2002  Owen Taylor  <otaylor@redhat.com>
1794
1795         * gtk/gtkmain.[ch]: Add routines _gtk_find_module(),
1796         _gtk_get_module_path() to look up a module of an arbitrary type in
1797         a standard fashion. (#68474)
1798
1799         * gtk/gtkrc.c: Make module_path keyword warn and do
1800         nothing. Remove the im_module_path keyword.
1801
1802         * gtk/gtkrc.c (gtk_rc_get_im_module_path): Fix
1803         to return the standard path instead of one determined
1804         from im_module_path and GTK_IM_MODULE_PATH.
1805         
1806         * gtk+-2.0.pc.in: Add gtk_host to go along with gtk_binary_version.
1807
1808 2002-02-19  Matthias Clasen  <maclas@gmx.de>
1809
1810         * docs/tutorial/gtk-tut.sgml, docs/examples/*: Trivial formatting
1811         fixes to all examples, simple functional fixes to rangewidgets example.
1812
1813 Mon Feb 18 18:27:45 2002  Owen Taylor  <otaylor@redhat.com>
1814
1815         * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Select
1816         the right item in the family list. (Reported by Mark Patton,
1817         Patch from Satajyit Kanungo, #64240)
1818
1819         * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Update
1820         the size and face entry lists as well, fix memory leak.
1821         (Also #64240)
1822
1823         * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): 
1824         Allow fractional sizes, unselect the selected row if none
1825         matches.
1826
1827         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_focus): Fix
1828         a bug where the scrolled window would always get focus
1829         when focusing out of the child.
1830
1831 2002-02-18  Hans Breuer  <hans@breuer.org>
1832
1833         * gdk/win32/gdkevents-win32.c : process WM_PAINT messages
1834         for bg_pixmap == GDK_NO_BG, fixes The GIMP's canvas
1835         rendering glitches on win32
1836
1837         * gdk/win32/gdkinput-win32.c : use g_object_new to create
1838         GdkDevice instead of g_new
1839  
1840         * gtk/gtkpaned.c : make LAST_SIGNAL the last in enum. 
1841         This avoids to smash totally unrelated static data and
1842         resulting random crashes. (as reported on gtk-devel-list, 
1843         2002-02-10 : testgtk crashes)
1844
1845         * gtk/gtk.def : add new file selection entry points
1846
1847 Mon Feb 18 17:34:43 2002  Owen Taylor  <otaylor@redhat.com>
1848
1849         * gtk/gtkentry.c gtk/gtktextview.c: Remove support for
1850         the poorly defined text/plain type for now. (#55117)
1851
1852 Mon Feb 18 16:44:00 2002  Owen Taylor  <otaylor@redhat.com>
1853
1854         * docs/widget_system.txt: Add some docs for GTK_NEED_REQUEST
1855         GTK_NEED_ALLOCATION.
1856
1857         * gtk/gtkmenu.c (gtk_menu_popup): Scroll the menu
1858         to the right place before showing the menu to
1859         avoid spurious enter events.
1860
1861         * gtk/gtkmenu.c (gtk_menu_realize): Only scroll
1862         if there is an active menu item.
1863
1864         * gtk/gtkwidget.c (gtk_widget_init): Set RESIZE_NEEDED
1865         ALLOC_NEEDED initially.
1866
1867 2002-02-18  Matthias Clasen  <maclas@gmx.de>
1868
1869         * NEWS: fix version number.
1870
1871 2002-02-18  Manish Singh  <yosh@gimp.org>
1872
1873         * Makefile.am: don't comment out the lines to dist the packer
1874         example, just simply remove it. (the continuation line confused
1875         make even though it was in the comment, barf)
1876
1877 Mon Feb 18 14:40:22 2002  Owen Taylor  <otaylor@redhat.com>
1878
1879         * gtk/gtkcombo.c (gtk_combo_popdown_list): Fix problems
1880         with stuck grab (#60132, reported by Nicolas Setton) and
1881         stuck prelighting. Combine duplicated code in three
1882         places for popping down the list.
1883
1884 Mon Feb 18 14:17:59 2002  Owen Taylor  <otaylor@redhat.com>
1885
1886         * gtk/gtkclist.c (adjust_adjustments) 
1887         * gtk/gtklayout.c (gtk_layout_size_allocate)
1888         * gtk/gtktextview.c (gtk_text_view_size_allocate) 
1889         * gtk/gtktreeview.c (gtk_tree_view_size_allocate) 
1890         * gtk/gtkviewport.c (gtk_viewport_size_allocate):
1891         Standardize on a page increment of page minus 1 line
1892         rather than half a page (#51027, Eric Fischer)
1893
1894         * gtk/gtkviewport.c (gtk_viewport_size_allocate): 
1895         Change step increment to be 0.1 * page_size height rather than
1896         a fixed 10 pixels.
1897
1898 Mon Feb 18 12:31:52 2002  Owen Taylor  <otaylor@redhat.com>
1899
1900         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
1901         Don't commit unless we got at least one hex digit. (#70619)
1902
1903 Sun Feb 17 21:30:49 2002  Owen Taylor  <otaylor@redhat.com>
1904
1905         * Released 1.3.14
1906
1907         * configure.in: Version 1.3.14, interface, binary age 0.
1908
1909         * gdk/gdkregion-generic.c (miSubtractO): Fix out-of-bounds
1910         read. (#71619, reported by Morten Welinder)
1911
1912         * gtk/gtkmenu.c (gtk_menu_class_init): Fix setting default.
1913
1914         * gtk/gtkfilesel.c (gtk_file_selection_class_init): Add
1915         a select_multiple property to go along with thenew 
1916         get/set_select_multiple.
1917
1918         * gdk/gdkwindow.c: Patch from Soeren Sandmann to improve
1919         update debugging code. (#71703)
1920
1921 2002-02-17  Tor Lillqvist  <tml@iki.fi>
1922
1923         * gdk/win32/gdkcolor-win32.c (free_colors): Don't set the
1924         PC_EXPLICIT flag for unused palette entries, that might have
1925         undesired side effects. Just set them to black. Black is always
1926         present in a palette, so having superfluous black entries won't
1927         cause any extra allocations from the system palette either when
1928         realized.
1929
1930         * gdk/win32/gdkevents-win32.c
1931         (gdk_event_translate:WM_QUERYNEWPALETTE): Don't do anything if the
1932         system visual is static color, i.e. the user has told GDK to use
1933         just the 16 static colors. In that case no need to redraw
1934         anything, as the colors are static and by definition always
1935         correctly mapped in the system palette.
1936         (WM_PALETTECHANGED): Ditto, no need to call UpdateColors() either.
1937         
1938         * gtk/gtk.def: Add new gtkfilesel entry points.
1939
1940 2002-02-17  Matthias Clasen  <maclas@gmx.de>
1941
1942         * docs/tutorial/gtk-tut.sgml, examples/paned/paned.c, 
1943         examples/paned/Makefile: Make the paned example deprecation-clean.
1944
1945 2002-02-17  jacob berkman  <jacob@ximian.com>
1946
1947         * Makefile.am: remove the packer example files as they don't exist
1948         in CVS.
1949
1950 2002-02-16  Manish Singh  <yosh@gimp.org>
1951
1952         * tests/testgtk.c: hm, check buttons look better for below.
1953
1954 2002-02-16  Manish Singh  <yosh@gimp.org>
1955
1956         * tests/testgtk.c: redid the filesel test. Added a way to set select
1957         multiple as a toggle button, and made show/hide fileops toggle
1958         buttons as well. get_selections() is called on OK and all the
1959         filenames selected are printed.
1960
1961 2002-02-17  Tor Lillqvist  <tml@iki.fi>
1962
1963         * README.win32: Remove comment about the gtk-1-3-win32-production
1964         branch having more functionality.
1965
1966         * gdk/win32/*.c: Massive changes. Too many to list here, but I'll
1967         try a summary:
1968
1969         1) Unify GdkPixmap and GdkImage implementation: For each
1970         GdkPixmap, allocate a GdkImage, and vice versa.
1971         GdkPixmapImplWin32Data has a pointer to the GdkImage.
1972         GdkImage::windowing_data is a pointer to the GdkPixmap.
1973
1974         This simplifies many pixmap and image related functions a lot, and
1975         reduces duplicated code. For instance, there is only one
1976         place in gdk/win32 where CreateDIBSection() is called, in the
1977         function _gdk_win32_new_pixmap(). Converting a bitmap (GdkPixmap)
1978         to a Windows region is almost trivial, with the bitmap bits being
1979         readily accessible in the associated GdkImage.
1980
1981         All blitting between GdkPixmaps, GdkWindows and GdkImages goes
1982         through handled the _gdk_win32_blit() function, which calls
1983         different functions to handle the cases of blitting from pixmaps,
1984         inside windows (scrolling), or from windows, which all require
1985         somewhat different handling.
1986
1987         2) Support 256-color mode. This has long been very broken, now it
1988         works more or less OK. Keep the logical palette for each colormap
1989         as small as possible while allocating and freeing colors. Select
1990         and realize the logical palette associated with a GdkColormap into
1991         a DC before drawing or blitting.
1992
1993         When the display is in 256-color mode, make it possible for the
1994         user to override the size of the palette(s) used with either the
1995         GDK_WIN32_MAX_COLORS environment variable, or a -max-colors
1996         command line option. It is possible to reduce the palette size all
1997         the way down to using just the 16 static colors (which causes the
1998         system visual to be of type GDK_VISUAL_STATIC_COLOR. This could
1999         possibly be useful if one desperately wants to avoid color
2000         flashing. (Note that in order for this to work properly, an as of
2001         yet not commited fix to gdkrgb.c is needed.)
2002
2003         Handle the palette messages. On WM_PALETTECHANGED, call
2004         UpdateColors() for the given window hierarchy. Do this only if a
2005         window in some other top-level window hierarchy caused the palette
2006         change (realized a palette). Do this max five times in a row (an
2007         arbitrarily chosen limit), though, otherwise redraw by generating
2008         expose events. On WM_QUERYNEWPALETTE, cause a redraw of the whole
2009         window hierarchy by generating GDK_EXPOSE events.
2010
2011         3) Code cleanup in general. For instance, remove the "emulated"
2012         X11 structs ColormapStruct, Visual and XStandardColormap. Use the
2013         new GDK_DEBUG_* flags for debugging output in the relevant source
2014         files. Remove the unused colormap hash table in gdkcolor-win32.c
2015
2016         4) Plug some resource leaks.
2017
2018 2002-02-14  Tor Lillqvist  <tml@iki.fi>
2019
2020         * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Use
2021         g_filename_to_uri() to actually create legal URIs in the
2022         text/uri-list data.
2023
2024 2002-02-16  Manish Singh  <yosh@gimp.org>
2025
2026         * gtk/gtkfilesel.[ch]: Added multiple selection API
2027
2028 2002-02-16  Manish Singh  <yosh@gimp.org>
2029
2030         * gdk/linux-fb/miarc.c: use fabs() on a double instead of abs()
2031
2032 2002-02-17  Matthias Clasen  <maclas@gmx.de>
2033
2034         More work on #71430.
2035
2036         * examples/*/Makefile (CFLAGS): add deprecation guards.
2037         
2038         * docs/tutorial/gtk-tut.sgml, examples/*/*.c: make most examples
2039         deprecation-clean; the major offenders right now are the examples
2040         that make heavy use of completely deprecated or broken widgets:
2041         list, tree, text, pixmap, paned and progressbar. These will have
2042         to be redone from scratch.
2043
2044 Sun Feb 17 00:13:06 2002  Kristian Rietveld  <kris@gtk.org>
2045
2046         This commit lands the 'dy patch'.
2047
2048         * gtk/gtktreeview.c (validate_rows_handler): update top_row or dy,
2049         (gtk_tree_view_top_row_to_dy): new function,
2050         (gtk_tree_view_row_changed): update top_row or dy,
2051         (gtk_tree_view_rows_reordered): update top_row
2052
2053 2002-02-16  Matthias Clasen  <maclas@gmx.de>
2054
2055         * demos/Makefile.am (INCLUDES): add -DGDK_PIXBUF_DISABLE_DEPRECATED.
2056
2057 2002-02-16  Matthias Clasen  <maclas@gmx.de>
2058
2059         * examples/extract.awk: rearrange rules to not emit the example 
2060         start and end markers.
2061
2062         * docs/tutorial/gtk-tut.sgml: turn the start and end markers into
2063         SGML comments, so they don't clutter the formatted tutorial.
2064
2065 2002-02-16  Havoc Pennington  <hp@pobox.com>
2066
2067         * gtk/gtkwindow.c (gtk_window_parse_geometry): take
2068         GDK_HINT_RESIZE_INC into account, and handle negative coordinates
2069         correctly. (Can't email Owen - hope this is OK.)
2070
2071 Fri Feb 15 20:09:45 2002  Owen Taylor  <otaylor@redhat.com>
2072
2073         * gtk/gtkscrolledwindow.[ch] gtk/gtkmarshallers.list:
2074         Add key bindings on GtkScrolledWindow for arrow keys,
2075         PageUp/PageDown Home/End to scroll the window. 
2076         Bind Control-[Shift]-Tab to focus out of the scrolled
2077         window entirely. Allow the scrolled window to be
2078         focused if no child can be focused. (#63480)
2079
2080         * gtk/gtkwidget.c (gtk_widget_hide): Remove the REALIZED()
2081         check - if we have visible but not mapped widgets 
2082         (inside a unshown notebook tab, for instance), we need
2083         to track their size. (#65087, reported by Damon Chaplin.)
2084
2085         * gtk/gtkcolorsel.c (palette_change_color): Shut up
2086         a warning.
2087
2088 2002-02-16  Tor Lillqvist  <tml@iki.fi>
2089
2090         * gdk/win32/rc/Makefile.am (gdk-win32res.lo): Depend on gtk.ico.
2091
2092         * gdk/win32/rc/gtk.ico: Use the real GTK logo. Thanks to Jernej
2093         Simoncic for providing the nice multi-resolution .ico file.
2094
2095 2002-02-15 Alexey Malyshev <maa@sparc.spb.su>
2096         
2097         * gtk/tmpl/gtkimage.sgml
2098         removed wrong sentence from gtk_image_new() docs
2099
2100 Fri Feb 15 19:38:00 2002  Kristian Rietveld  <kris@gtk.org>
2101
2102         * gtk/gtktreestore.c (gtk_tree_store_clear_traverse): new function
2103         (gtk_tree_store_clear): traverse the tree, so we emit row_deleted
2104         for every node. This way we don't have confused row refs crashing the
2105         application. (#70631)
2106
2107 2002-02-14  Richard Hult  <rhult@codefactory.se>
2108
2109         * gtk/gtkpaned.c (gtk_paned_enter): Only queue a draw on the
2110         handle, not the whole widget. #71530.
2111         (gtk_paned_leave): Likewise.
2112
2113 2002-02-14  Jody Goldberg <jody@gnome.org>
2114
2115         * gtk/gtkrange.c (gtk_range_class_init) : add new signal
2116           'adjust_bounds' to potentialy change the bounds before assigning the
2117           new value and camping it to the existing bounds.
2118         (gtk_range_internal_set_value) : used here. #68800.
2119         * gtk/gtkmarshalers.list : add VOID:DOUBLE
2120
2121 Thu Feb 14 21:08:49 2002  Owen Taylor  <otaylor@redhat.com>
2122
2123         * gdk/gdkglobals.c: Remove GDKVAR from C file, see
2124         if anyone complains. (#71317, Morten Welinder.)
2125
2126 2002-02-14  Matthias Clasen  <maclas@gmx.de>
2127
2128         The following changes are the beginning of the work on #71430.
2129         
2130         * examples/extract.sh, examples/extract.awk: Make extraction work.
2131         
2132         * examples/Makefile (SUBDIRS): Remove packer.
2133
2134         * examples/packer/pack.c, examples/packer/Makefile: Removed.
2135
2136         * docs/tutorial/gtk-tut.sgml: Fix the included examples far
2137         enough to make them compile and (mostly) work, remove the packer
2138         example.
2139
2140 Thu Feb 14 16:46:48 2002  Owen Taylor  <otaylor@redhat.com>
2141
2142         * gtk/gtkentry.c gtk/gtktextdisplay.c gtk/gtklabel.c
2143         gtk/gtkstyle.[ch] gtk/gtkwidget.c: Patch from Bill
2144         Haneman and Padraig O'Briain to add cursor_aspect_ratio
2145         style property to GtkWidget to allow theming the aspect
2146         ratio of the cursor.
2147
2148         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtklabel.c
2149         gtk/gtkwidget.c tests/testgtkrc: Move cursor-color style property
2150         to GtkWidget.
2151
2152 Thu Feb 14 11:13:22 2002  Owen Taylor  <otaylor@redhat.com>
2153
2154         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_surrounding): 
2155         Fix bug where we called get_surrounding on the context,.
2156         not the slave.
2157
2158 Thu Feb 14 00:10:09 2002  Owen Taylor  <otaylor@redhat.com>
2159
2160         * gtk/gtktooltips.c (gtk_tooltips_event_handler): Only
2161         pop the tooltip down on a select set of events, not
2162         on any unknown event. (#71157, Jody Goldberg)
2163
2164         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
2165         Fix some warnings.
2166
2167 Thu Feb 14 00:02:21 2002  Owen Taylor  <otaylor@redhat.com>
2168
2169         * gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
2170         small allocation/drawing fixes.
2171
2172         * gtk/gtkcalendar.c: Replace DAY_XPAD, DAY_YPAD with
2173         GtkWidget::focus-padding
2174
2175 Wed Feb 13 23:01:20 2002  Owen Taylor  <otaylor@redhat.com>
2176
2177         * gtk/gtkcalendar.c: Patch from Bill Haneman to draw
2178         to focus using gtk_paint_focus() with the focus width
2179         GtkWidget::focus-width. (#63075)
2180
2181         * gtk/gtkcalendar.c (gtk_calendar_size_request): Initialize
2182         label_char_ascent/descent to 0. (#56925, reported by
2183         (Jean-Noel Guiheneuf)
2184
2185 2002-02-13  Havoc Pennington  <hp@redhat.com>
2186
2187         * gtk/gtktextview.c (gtk_text_view_flush_scroll): validate a
2188         larger area, proportional to widget size, to fix
2189         #71427 reported by Dennis Bjorklund
2190
2191 2002-02-13  Havoc Pennington  <hp@redhat.com>
2192
2193         * gtk/gtktextview.c (gtk_text_view_paint): just go ahead and flush 
2194         all the first validate stuff if it hasn't been done, presumably
2195         someone called process_updates at a weird time.
2196
2197         * tests/testtext.c (do_apply_colors): terminate on >= end, not >
2198         end, avoids infinite loop when end is at the end of the buffer.
2199
2200         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when creating a
2201         line data, we were adding it to the wrong line ("line" instead of
2202         "start_line")
2203
2204 2002-02-13  Joe Shaw  <joe@ximian.com>
2205
2206         * gtk/gtktreeitem.c (gtk_tree_item_expose): Don't chain up to the
2207         container's expose event.  Instead call
2208         gtk_tree_item_expose_child() on each child.  Avoids a failed
2209         g_assert() in gtk_container_propagate_expose().
2210         (gtk_tree_item_expose_child): Added.  Synthesize an expose event
2211         for our children.  Basically gtk_container_propagate_expose()
2212         minus the g_assert().  (#71396)
2213
2214 2002-02-13  Tor Lillqvist  <tml@iki.fi>
2215
2216         * gdk/gdkinternals.h: Add some more GdkDebugFlags, for more
2217         fine-grained debugging output (mainly used in the Win32 backend).
2218
2219         * gdk/gdk.c: Corresponding additions to the gdk_debug_keys table.
2220
2221 Wed Feb 13 15:42:42 2002  Owen Taylor  <otaylor@redhat.com>
2222
2223         * gtk/gtktooltips.[ch] gtkwidget.c: Implement Control-F1
2224         as toggle-tooltips-mode.
2225
2226         * gtk/gtktooltips.c: Remove parsing of tooltips style
2227         string from here ... now in gtkrc.c.
2228
2229 Wed Feb 13 12:41:44 2002  Owen Taylor  <otaylor@redhat.com>
2230
2231         * gtk/gtkmain.c (gtk_init_check): g_warning() if setting
2232         the local fails, like gdk_set_locale() did.
2233
2234         * gdk/x11/gdkselection-x11.c (gdk_text_property_to_utf8_list): 
2235         Don't free local_list if local_count == 0. (#71241, reported
2236         by Kevin Vandersloot.)
2237
2238         * gdk/x11/gdkselection-x11.c (gdk_text_property_to_text_list): 
2239         Clean up list == NULL handling and failure.
2240
2241 Wed Feb 13 11:27:31 2002  Owen Taylor  <otaylor@redhat.com>
2242
2243         * tests/testtreeview.c (typesystem_recurse): Cast GType
2244         to long and use %ld to fix warning. (#71318, Morten Welinder)
2245
2246 Wed Feb 13 13:26:39 2002  Tim Janik  <timj@gtk.org>
2247
2248         * gtk/gtkmenu.c: fix figuring accel path and changing behaviour.
2249
2250 Wed Feb 13 06:42:37 2002  Tim Janik  <timj@gtk.org>
2251
2252         * gtk/gtktable.c (gtk_table_size_allocate_pass1): partly revert
2253         my recent expanding change to not expand the table if all children
2254         have not epxand behaviour. this fixes palette views which often
2255         use homogeneous non-expanding tables.
2256
2257 Tue Feb 12 14:27:41 2002  Kristian Rietveld  <kris@gtk.org>
2258
2259         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
2260         row_deleted before we start unreffing the nodes ourselves
2261         (gtk_tree_model_sort_increment_stamp): always increment the stamp,
2262         and not only if the stamp equals 0 (pointed out by Darin Adler)
2263
2264         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): we want
2265         to continue the while loop and not the nested for loop.
2266
2267 Tue Feb 12 02:19:49 2002  Tim Janik  <timj@gtk.org>
2268
2269         * gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
2270         the extra space allocated for the homogeneous case, as we don't
2271         properly deal with readjusting table allocation within it. (for  this
2272         purpose, a GtkAlignment can be used as table parent).
2273
2274 2002-02-11  Darin Adler  <darin@bentspoon.com>
2275
2276         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
2277         Consider reordering the row even when there's no sort column, if
2278         there's a default sort function.
2279         (gtk_tree_model_sort_rows_reordered): Use symbolic constants.
2280         (gtk_tree_model_sort_level_find_insert): Add code to handle the
2281         case where there is no sort column, but a default sort function.
2282         (gtk_tree_model_sort_insert_value): Add code to handle the case
2283         where there is no sort column an no default sort function.
2284         (gtk_tree_model_sort_set_model): Use symbolic constant.
2285         (gtk_tree_model_sort_reset_default_sort_func): Use symbolic constant.
2286
2287 2002-02-11  Sven Neumann  <sven@gimp.org>
2288
2289         * gtk/gtkfilesel.c: converted the "Delete File" dialog to
2290         GtkMessageDialog. Marked missing strings for translation.
2291
2292 Mon Feb 11 22:03:15 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
2293
2294         * gtk/gtkpaned.[ch]: Opaque resizing + prelighting for paned widget.
2295         * gtk/gtkvpaned.c, gtk/gtkhpaned.c: move reszing logic to gtkpaned.c
2296
2297 Mon Feb 11 21:42:17 2002  Kristian Rietveld  <kris@gtk.org>
2298
2299         Implements DnD scrolling and fixes #71139
2300
2301         * gtk/gtktreeview.c (gtk_tree_view_vertical_autoscroll): new function,
2302         (scroll_row_timeout): new function,
2303         (gtk_tree_view_drag_motion): create scroll_timeout, so
2304         scroll_row_timeout gets called
2305
2306 Mon Feb 11 17:54:46 2002  Kristian Rietveld  <kris@gtk.org>
2307
2308         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
2309         member of hadjustment correct, so the hscrollbars of lists smaller
2310         than 1 page (in width) are somewhat saner
2311
2312 2002-02-11  jacob berkman  <jacob@ximian.com>
2313
2314         * gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to
2315         match implementation
2316
2317 Mon Feb 11 16:48:34 2002  Kristian Rietveld  <kris@gtk.org>
2318
2319         * gtk/gtkliststore.c (gtk_list_store_set_valist): set value of
2320         func to NULL during initialization (we don't use func in the
2321         !SORTED case, so we just silent the compiler here) (#71029)
2322
2323 Mon Feb 11 16:40:44 2002  Kristian Rietveld  <kris@gtk.org>
2324
2325         * gtk/gtktreeview.c (gtk_tree_view_set_model): install presize
2326         handler, so the validate_rows_handler will always be run (#70997)
2327
2328 Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>
2329
2330         * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
2331         value of new_location by one if cmp_a > 0 and we hit the end of
2332         the list and pass NULL instead of a 'NULL-iter' with
2333         _rows_reordered (#71060)
2334
2335 Sun Feb 10 12:32:44 2002  Owen Taylor  <otaylor@redhat.com>
2336
2337         * modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
2338         imti-et.c} po/POTFILES.in: Add three Ethiopic input methods from
2339         Daniel Yacob.
2340
2341 2002-02-10  Anders Carlsson  <andersca@gnu.org>
2342
2343         * gtk/gtkcalendar.c (gtk_calendar_class_init): Set finalize handler;
2344         (gtk_calendar_finalize): Rename gtk_calendar_destroy to 
2345         gtk_calendar_finalize since ::destroy can be called multiple times, 
2346         resulting in double-freeing memory.
2347
2348 2002-02-10  Hans Breuer  <hans@breuer.org>
2349
2350         * gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
2351         rect size by the scroll amount
2352
2353         * gdk/win32/gdkwindow-win32.c
2354         * gdk/win32/gdkselection-win32.c : added some casts to
2355         make it compile with msvc's strict type checking
2356
2357         * gtk/fnmatch.c : #include <ctype.h> again for tolower
2358         prototype. The fnmatch() code assumes to be in the crt 
2359         locale though it is feeded by utf8 strings from gtkfilesel.c
2360
2361         * gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
2362         _CompletionDir instead of referencing already freed memory
2363
2364         * gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
2365         gtk_rc_parse_string (theDefaultTooltipColor) once as it
2366         was intended
2367
2368         * tests/makefile.msc : added more tests
2369
2370         * tests/testgtk.c (create_list) : don't try to load gtkenums.h
2371         from the current directory use ../gtk/gtkenums.h instead
2372
2373 2002-02-10  Kjartan Maraas  <kmaraas@gnome.org>
2374
2375         * gtk/gtksizegroup.c: Fix a double "The" typo in a string.
2376         
2377 2002-02-09  Matthias Clasen  <matthias@local>
2378
2379         * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Avoid segfault
2380         for selectable tab labels (even without a segfault, they make the
2381         notebook almost unusable, though).  (#69985)
2382
2383 2002-02-08  Matthias Clasen  <matthias@local>
2384
2385         * gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path): Silently do 
2386         nothing if the parent is not a menu.  (#66492)
2387
2388 2002-02-06  Matthias Clasen  <matthiasc@poet.de>
2389
2390         * gtk/gtkitemfactory.c (gtk_item_factory_from_widget,
2391         gtk_item_factory_path_from_widget): Try fetching the return value 
2392         from menu_item->submenu as a fallback.  (#69020)
2393         
2394 Sat Feb  9 22:57:43 2002  Kristian Rietveld  <kris@gtk.org>
2395
2396         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level): convert
2397         the iter to a child iter again, after doing _iter_children. It's
2398         possible that _iter_children added some rows and updated the stamp.
2399
2400 2002-02-09  Daniel Elstner  <daniel.elstner@gmx.net>
2401
2402         * gtk/gtktextchild.c: Use == rather than = in sanity
2403         checks.  Ouch!
2404
2405 2002-02-09  Daniel Elstner  <daniel.elstner@gmx.net>
2406
2407         * gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing
2408         curled braces so that it doesn't always return.  Also indent
2409         both CHECK_IN_BUFFER* macros properly, and make use of
2410         G_STMT_START/G_STMT_END.
2411
2412 Sat Feb  9 13:27:14 2002  Owen Taylor  <otaylor@redhat.com>
2413
2414         * gtk/gtkbindings.h: Add prototype for
2415         _gtk_binding_reset_parsed().
2416
2417 Sat Feb  9 13:19:20 2002  Owen Taylor  <otaylor@redhat.com>
2418
2419         * configure.in gtk/Makefile.am gtk/theme-bits/*: Add
2420         tools and images used for creating the check/radio
2421         button images in the default theme.
2422
2423 Sat Feb  9 13:58:41 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
2424
2425         * gtk/gtkpaned.[ch]: Keyboard navigation for GtkPaned
2426         F6: cycle between panes.
2427         F8: focus handle (#53584)
2428         
2429         * tests/testgtk.c: Add test cases for GtkPaned keyboard 
2430         navigation.
2431         
2432 Sat Feb  9 00:16:31 2002  Owen Taylor  <otaylor@redhat.com>
2433
2434         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): 
2435         XCopyArea with subwindow_mode = IncludeInferiors.
2436         (#70999)
2437
2438         * demos/testpixbuf-save.c (configure_cb): Fix a minor
2439         memory management problem.
2440
2441 Fri Feb  8 20:24:58 2002  Owen Taylor  <otaylor@redhat.com>
2442         
2443         * gtk/gtkbindings.c (binding_compose_params): Fix problem
2444         with string-valued parameters (#70012, Johan Dahlin.)
2445
2446         * gtk/gtkentry.c (gtk_entry_delete_whitespace): Fix 
2447         white space deletion.
2448
2449 Fri Feb  8 21:25:56 2002  Jonathan Blandford  <jrb@redhat.com>
2450
2451         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): fix
2452         evil ref bug where the wrong row and a deleted row was unreffed.
2453         Found by Darin Adler <darin@bentspoon.com>
2454
2455 Fri Feb  8 18:46:13 2002  Owen Taylor  <otaylor@redhat.com>
2456
2457         * gtk/gtkbindings.[ch] (_gtk_binding_reset_parsed): Add
2458         a function to delete all bindings add by
2459         gtk_binding_parse_binding() when rereading RC files.
2460
2461         * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Reset
2462         binding set content as well as RC content.
2463
2464         * gtk/gtkbindings.c (binding_compose_params): Fix 
2465         various GValue handling problems.
2466
2467         * gtk/gtkentry.c (gtk_entry_class_init): Remove bindings 
2468         for C-b, C-f, M-b, M-f, C-a, C-e, C-w, C-y, M-space, C-u,
2469         C-k, M-\, M-d, C-d.
2470
2471         * gtk/gtktextview.c (gtk_text_view_class_init): Remove
2472         same bindings as GtkEntry, plus C-n, C-p, C-space
2473
2474         * gtk/gtkrc.key.default gtk/gtkrc.key.emacs gtk/Makefile.am:
2475         Add Emacs and Default key themes.
2476         
2477 2002-02-08  Darin Adler  <darin@bentspoon.com>
2478
2479         * gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
2480         Remove a tiny bit more dead code.
2481
2482 2002-02-08  Darin Adler  <darin@bentspoon.com>
2483
2484         * gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
2485         Fix stale pointer bug.
2486
2487 Fri Feb  8 14:30:14 2002  Owen Taylor  <otaylor@redhat.com>
2488
2489         * gtk/gtkclist.c (title_focus_in): Return FALSE if
2490         not showing the titles. (#70959, Thomas Leonard)
2491
2492 2002-02-08  Darin Adler  <darin@bentspoon.com>
2493
2494         * demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
2495         * gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
2496         * gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
2497         * gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
2498         * gtk/fnmatch.c: Remove <ctype.h> include.
2499         * gtk/gtkaccelgroup.c: Remove <ctype.h> include.
2500         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
2501         g_unichar_toupper, toupper -> g_unichar_totile
2502         * gtk/gtkbindings.c: Remove <ctype.h> include.
2503         * gtk/gtkfontsel.c: Remove <ctype.h> include.
2504         * gtk/gtkiconfactory.c: Remove <ctype.h> include.
2505         * gtk/gtkinputdialog.c: Remove <ctype.h> include.
2506         * gtk/gtklabel.c: Remove <ctype.h> include.
2507         * gtk/gtkmain.c: Remove <ctype.h> include.
2508         * gtk/gtkmenu.c: Remove <ctype.h> include.
2509         * gtk/gtkoldeditable.c: Remove <ctype.h> include.
2510         * gtk/gtkrc.c: Remove <ctype.h> include.
2511         * gtk/gtktextbtree.c: Remove <ctype.h> include.
2512         * gtk/gtktextiter.c: Remove <ctype.h> include.
2513         * gtk/gtktextsegment.c: Remove <ctype.h> include.
2514
2515 2002-02-08  Sven Neumann  <sven@gimp.org>
2516
2517         * gtk/gtkfilesel.c
2518         * gtk/gtkgamma.c
2519         * gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
2520
2521 2002-02-08  Darin Adler  <darin@bentspoon.com>
2522
2523         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
2524         (gtk_tree_model_sort_unref_node): Pass the ref_node and
2525         unref_node calls through to the child model.
2526
2527 2002-02-08  Laszlo Peter  <laca@ireland.sun.com>
2528
2529         * gtk/gtktextchild.c: s/__FUNCTION__/G_GNUC_FUNCTION/
2530         * gtk/gtktextview.c: ditto
2531
2532 2002-02-07  Havoc Pennington  <hp@pobox.com>
2533
2534         * gtk/gtkspinbutton.h (struct _GtkSpinButtonClass): add
2535         change_value virtual function, to fix build
2536
2537         * gtk/gtkpixmap.c (gtk_pixmap_class_init): parent_class was 
2538         from GtkWidget not GtkMisc. Not that it ever mattered.
2539
2540 Thu Feb  7 19:52:00 2002  Owen Taylor  <otaylor@redhat.com>
2541
2542         * gtk/gtknotebook.[ch]: Add ::move-focus-out signal
2543         to handle Control[-Shift]-Tab and Control-arrow
2544         bindings and implement bindings as per #53612.
2545
2546         * gtk/gtktextview.c (gtk_text_view_move_focus): Fix 
2547         fetching the toplevel for plug-socket.
2548
2549         * gtk/gtknotebook.c (gtk_notebook_class_init): Remove
2550         bindings for Return/Enter to select the page.
2551
2552         * gtk/gtknotebook.c (gtk_notebook_change_current_page):
2553         Beep at ends.
2554
2555         * gtk/gtknotebook.c (focus_tabs_move): Don't wrap around
2556         and beep at ends.
2557
2558         * gtk/gtknotebook.c (gtk_notebook_focus): When focusing into
2559         the page with the arrow keys, focus the first widget,
2560         not the directionally closest widget.
2561
2562 Thu Feb  7 19:00:10 2002  Owen Taylor  <otaylor@redhat.com>
2563
2564         * gtk/gtkspinbutton.c (gtk_spin_button_key_release): Convert
2565         to using  binding set for doing key bindings. (#62622,
2566         Requested by Skip Montaro)
2567
2568         * gtk/gtkwindow.c (gtk_window_class_init): Add control-arrow
2569         bindings as overrides along with control-tab bindings.
2570
2571         * gtk/gtknotebook.c (gtk_notebook_class_init): Fix return
2572         type for ::focus_tab signal.
2573
2574 Thu Feb  7 19:39:27 2002  Kristian Rietveld  <kris@gtk.org>
2575
2576         Fixes #70782 and some drag dest rectangle/line issues
2577
2578         * gtk/gtktreeview.c (gtk_tree_view_set_model): set
2579         GTK_TREE_VIEW_IS_LIST flag (we can switch from a TreeStore to a
2580         ListStore for example)
2581         (gtk_tree_view_get_path_at_pos): revert previous change, we
2582         shouldn't correct for the header, because we are taking bin_window
2583         coordinates here
2584         (gtk_tree_view_set_drag_dest_row): queue old drag_dest row and
2585         upper/lower neighbors for draw, so the drag dest rectangle/line will
2586         be cleared correctly
2587         (gtk_tree_view_get_dest_row_at_pos): correct for treeview header
2588         here, as drag_y is relative to the widget and _get_path_at_pos wants
2589         coords relative to bin_window, draw black outline rectangle after
2590         drawing the cells
2591
2592 Thu Feb  7 10:53:12 2002  Owen Taylor  <otaylor@redhat.com>
2593
2594         * gtk/gtkentry.c (gtk_entry_draw_text): Use layout text
2595         (which may be affected by invisible char) to compute
2596         selection bounds, not entry text. (#70733, Alex Larsson)
2597
2598 2002-02-07 Padraig O'Briain <padraig.obriain@sun.com>
2599
2600         * gtk/gtkwidget.[ch]:
2601         Change show_help signal to return gboolean instead of void. This
2602         allows the keypress which invokes the signal to be propagated to the
2603         focus widgets ancestors if not handled by the focus widget.
2604         
2605         * gtk/gtktoolips.[ch]
2606         Change _gtk_tooltips_show_tip () to return a gboolean indicating
2607         whether widget has tooltip to display.
2608         
2609 2002-02-07 Padraig O'Briain <padraig.obriain@sun.com>
2610
2611         * gtk/gtkwidget.[ch]:
2612         Change popup_menu signal to return gboolean instead of void. This
2613         allows the keypress which invokes the signal to be propagated to the
2614         focus widgets ancestors if not handled by the focus widget.
2615
2616         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtktextview.c:
2617         Change signature of popup_menu signal handler to return gboolean
2618         instead of void and return TRUE in the signal handler
2619
2620 2002-02-07  Anders Carlsson  <andersca@gnu.org>
2621
2622         * gdk/x11/xsettings-common.c (xsettings_setting_free): Free 
2623         the setting name.
2624
2625 Wed Feb  6 23:28:39 2002  Kristian Rietveld  <kris@gtk.org>
2626
2627         Fixes #70708
2628
2629         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): we're dealing
2630         with widget coordinates here, so take the header height into
2631         account while converting
2632         (gtk_tree_view_widget_to_tree_coords): take header height into
2633         account
2634         (gtk_tree_view_tree_to_widget_coords): ditto
2635         (gtk_tree_view_get_dest_row_at_pos): we were passing coords
2636         relative to the tree with _get_path_at_pos, while that function
2637         wants coords relative to the widget
2638
2639 2002-02-06  Havoc Pennington  <hp@redhat.com>
2640
2641         * gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
2642         (gtk_text_view_get_window): add warning about how you
2643         can't get the private window. #70683, and avoid default: in the
2644         switch so we get "enum value unhandled" warnings
2645
2646 2002-02-06  Havoc Pennington  <hp@redhat.com>
2647
2648         * gtk/gtktextchild.c: Add warnings if you try to use a child
2649         anchor that isn't inside a buffer. Really kind of lame; 
2650         we should separate the anchor from the buffer. But not worth 
2651         fixing for now. #70601
2652
2653 Wed Feb  6 18:25:24 2002  Kristian Rietveld  <kris@gtk.org>
2654
2655         * gtk/gtktreemodelsort.c: rip out all the debugging ifdefs, as
2656         modelsort seems to be stable (and nobody complained :)
2657
2658 Tue Feb  5 19:13:42 2002  Owen Taylor  <otaylor@redhat.com>
2659
2660         * gdk/x11/gdkgeometry-x11.c (gdk_window_queue): Keep
2661         the length of the anti-expose queue finite, by if
2662         it gets too long, first doing a XSync() and checking
2663         the event queue, and if that doesn't work, simply
2664         discarding all anti-expose items in the queue.
2665
2666         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Fix ordering
2667         on ConfigureNotify (#56349, Thomas Leonard)
2668
2669 2002-02-05  Havoc Pennington  <hp@redhat.com>
2670
2671         * gtk/gtkimage.c (gtk_image_expose): offset area being gotten from
2672         pixmap by the align/padding offsets, so we don't get warnings
2673         in gdk_pixbuf_get_from_drawable (and so it works, of course)
2674
2675 2002-02-05  Matthias Clasen  <matthiasc@poet.de>
2676
2677         * gtk/gtkrc.c (gtk_rc_parse_file): Remove a (now) misleading comment.
2678
2679 2002-02-05  Federico Mena Quintero  <federico@ximian.com>
2680
2681         * gdk/gdkwindow.h: Do not #include <gdk/gdkwindow.h>.
2682
2683 Tue Feb  5 22:54:16 2002  Kristian Rietveld  <kris@gtk.org>
2684
2685         * gtk/gtkliststore.c (gtk_list_store_insert_after): let's set the
2686         path, which we're going to pass with the emission of row_inserted, to
2687         the iter we inserted and not its sibling.
2688
2689 2002-02-04 Padraig O'Briain <padraig.obriain@sun.com>
2690
2691         * gtk/gtkmenu.c (gtk_menu_popup):
2692         Fix leak of GdkEvent (#70519)
2693
2694 Mon Feb  4 10:40:28 2002  Owen Taylor  <otaylor@redhat.com>
2695
2696         * gtk/gtkstyle.c (gtk_default_draw_resize_grip):
2697         Fix from Matthias Clasen to clear background appropriately
2698         for theme by calling gtk_style_apply_default_background().
2699         (#70449)
2700
2701 Mon Feb  4 10:06:49 2002  Owen Taylor  <otaylor@redhat.com>
2702
2703         * gdk/x11/gdkevents-x11.c: gtk-double-click-time,
2704         not gtk-double-click-timeout. (#70501)
2705
2706 2002-02-04  Havoc Pennington  <hp@pobox.com>
2707
2708         * gtk/gtksignal.c (gtk_signal_connect_while_alive): 
2709         (gtk_signal_connect_object_while_alive): rename 
2710         "signal" arg to "name" to avoid compiler warnings
2711         about shadowing signal(). #70453
2712
2713 2002-02-03  Anders Carlsson  <expander-master@gtk.org>
2714
2715         * gtk/gtkstyle.c (gtk_default_draw_expander): Add 
2716         flipping support to the expanders.
2717
2718 Sat Feb  2 21:54:01 2002  Owen Taylor  <otaylor@redhat.com>
2719
2720         RC file lookup improvements (#68234, suggestions
2721         from Matthias Clasen.)
2722
2723         * gtk/gtkrc.c (gtk_rc_parse_file): Look for the 
2724         locale suffix variants (gtkrc.en_US, gtkrc.en) for
2725         all RC files we parse, not just the default RC
2726         files.
2727
2728         * gtk/gtkrc.c (gtk_rc_parse_default_files): Remove
2729         support for charset specific RC files.
2730
2731 Sat Feb  2 20:16:04 2002  Owen Taylor  <otaylor@redhat.com>
2732
2733         * gtk/gtkmenushell.c (_gtk_menu_shell_select_first): 
2734         Non-exported _gtk_menu_select_first() function that
2735         selects the first item of the menu in a standard
2736         way. (Skipping tearoffs.)
2737
2738         * gtk/gtkmenushell.c gtk/gtkentry.c gtk/gtktextview.c
2739         gtkmenuitem.c: Use _gtk_menu_shell_select_first().
2740
2741         * gtk/gtkmenuitem.c (gtk_real_menu_item_select): Remember
2742         if we are starting the timeout from a keypress so
2743         we can set menushell->ignore_enter properly.
2744
2745         * gtk/gtknotebook.c (focus_child_in): Return something
2746         meaningful if there are no children.
2747
2748         * gtk/gtkmenu.c (gtk_menu_key_press): Fix precendence
2749         problem.
2750
2751 Sat Feb  2 19:15:42 2002  Owen Taylor  <otaylor@redhat.com>
2752
2753         * gtk/gtkmenu.c (gtk_menu_popup): Fix some bugs in
2754         the determination of xgrab_shell.
2755
2756 Sat Feb  2 17:43:00 2002  Owen Taylor  <otaylor@redhat.com>
2757
2758         * gtk/gtkentry.c (gtk_entry_grab_focus): Add a GtkSetting
2759         (gtk-entry-select-on-focus) controlling whether the
2760         contents of an entry are selected on focus in.
2761
2762         * gtk/gtkmenu.c (gtk_menu_key_press): Add a GtkSetting
2763         (gtk-can-change-accels) controlling whether accelerators can be
2764         changed on the fly or not. (#51902)
2765
2766         * gtk/gtkmenu.c (gtk_menu_key_press): Allow unmodified
2767         accelerators, now that accelerator changing can be turned
2768         off for those who won't expect it. (#61285)
2769
2770         * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Allow 
2771         Backspace/Delete/KP_Delete as valid accelerators.
2772
2773         * gtk/gtkmenu.c (gtk_menu_key_press): Allow setting of
2774         Delete/Backspace as accelerators by making them toggle
2775         the menu item between empty and the pressed key.
2776         (#58605)
2777
2778         * tests/testgtkrc: Remove the objectionably short cursor blink
2779         time setting.
2780
2781 Sat Feb  2 16:43:31 2002  Owen Taylor  <otaylor@redhat.com>
2782
2783         * gtk/gtkmenu.c (gtk_menu_popup): To get around the fact
2784         that we may have a owner_events = FALSE grab in effect
2785         when we pop up a window, make a temporary grab on a
2786         different window, then grab on the real window. Fixes
2787         a problem where if a context menu popped up under the 
2788         cursor, the first item would be stuck unselected.
2789         (#59812, reported by Arnaud Charlet.)
2790
2791 2002-02-02  Peter Williams  <peterw@ximian.com>
2792
2793         * gtk/Makefile.am (install-data-local): Install gtkrc.default
2794         from $(srcdir) for when $(builddir) is different.
2795
2796 Sat Feb  2 19:00:39 2002  Kristian Rietveld  <kris@gtk.org>
2797
2798         * gtk/Makefile.am: remove TESTGTK_RCFILE define
2799
2800 Sat Feb  2 11:37:21 2002  Owen Taylor  <otaylor@redhat.com>
2801
2802         * gtk/gtkmenu.c (gtk_menu_popup): Remove the 
2803         "select first item if popped up from keypress" hack --
2804         was causing more problems than it was worth 
2805         (#53191, #68483)
2806
2807         * gtk/gtktextview.c (popup_targets_received): 
2808          gtk/gtkentry.c (popup_targets_received): If activated
2809         from keyboard, select first item of popup menu.
2810
2811 Sat Feb  2 18:07:51 2002  Kristian Rietveld  <kris@gtk.org>
2812
2813         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
2814         of vadjustment correct, so the vscrollbars of lists smaller than
2815         1 page are somewhat saner (#66905)
2816
2817         * gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
2818         increment the stamp, liststore is a model with persisting iters
2819
2820 Fri Feb  1 23:54:00 2002  Owen Taylor  <otaylor@redhat.com>
2821
2822         * gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support 
2823         engine "" {} to mean override to the default 
2824         engine. (#70205)
2825
2826 Fri Feb  1 23:25:33 2002  Owen Taylor  <otaylor@redhat.com>
2827
2828         * gtk/gtktooltips.c (gtk_tooltips_init): Parse the
2829         RC string here when the first object is created
2830         rather than in the class_init to not break doc 
2831         building. (#70341, Havoc Pennington.)
2832
2833         * gtk/gtkrc.c (parse_include_file): Use the directories
2834         for the currently parsed files as the starting point
2835         to look for include files. (#59975)
2836
2837 Fri Feb  1 20:21:56 2002  Manish Singh  <yosh@gimp.org>
2838
2839         * gtk/gtkinputdialog.c: use gtk_label_new_with_mnemonic for labels
2840         that actually have mnemonics
2841
2842 Fri Feb  1 19:57:59 2002  Owen Taylor  <otaylor@redhat.com>
2843
2844         * configure.in: Fix use of ! in shell.
2845
2846         * gtk/gtktooltips.c (gtk_tooltips_class_init) gtkrc.default: 
2847         Move the setting of default tooltips colors to gtktooltips.c
2848         from gtkrc.default. (Use default priority so themes will
2849         override.) (#58542)
2850
2851 Fri Feb  1 17:48:51 2002  Owen Taylor  <otaylor@redhat.com>
2852
2853         * gtk/gtkrc.c (gtk_rc_get_style): Fix ordering of
2854         priorities so that priorities take precendence over
2855         the ordering by type. (#70205)
2856
2857         * test/testgtkrc tests/testgtk.c (create_rc_file): Add 
2858         some labels to test priorities in testgtkrc.
2859
2860 Fri Feb  1 00:37:49 2002  Kristian Rietveld  <kris@gtk.org>
2861
2862         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): use
2863         y coordinate relative to the tree and not the treeview window
2864         (fixes the PgDn/PgUp brokenness)
2865
2866 Fri Feb  1 23:40:31 2002  Kristian Rietveld  <kris@gtk.org>
2867
2868         * gtk/gtktreeview.c (gtk_tree_view_button_press): adjust
2869         cell_area and background_area for possible treeview scroll
2870         (fixes #70283, #70065)
2871
2872 Fri Feb  1 22:20:13 2002  Kristian Rietveld  <kris@gtk.org>
2873
2874         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): use
2875         height - page_size not height - allocation->height (fixes #66269)
2876
2877 Fri Feb  1 15:22:23 2002  Owen Taylor  <otaylor@redhat.com>
2878
2879         * gtk/gtkimage.c (gtk_image_class_init): Fix typo
2880         in property description. (Christian Rose.)
2881
2882 Fri Feb  1 14:50:36 2002  Owen Taylor  <otaylor@redhat.com>
2883
2884         * gtk/gtkrc.c (gtk_rc_parse_string): Handle reparsing
2885         any strings if the theme changes. (#69465)
2886
2887         * tests/testgtk.c: Add a test for gtk_rc_parse_string().
2888
2889 Fri Feb  1 20:50:29 2002  Kristian Rietveld  <kris@gtk.org>
2890
2891         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): set tree to
2892         NULL if tree_view->priv->tree is NULL (#70152, patch by John Harper).
2893
2894 Fri Feb  1 12:51:20 2002  Owen Taylor  <otaylor@redhat.com>
2895
2896         * gtk/gtknotebook.c (focus_child_in): Catch the
2897         cur_page == NULL (no children) case. (#70287,
2898         Paolo Maggi.)
2899
2900 Fri Feb  1 12:12:12 2002  Owen Taylor  <otaylor@redhat.com>
2901
2902         * gtk/gtkfilesel.c (attempt_file_completion): 
2903         s/directory/folder/ in all labels and messages.
2904
2905 Fri Feb  1 08:57:38 2002  Owen Taylor  <otaylor@redhat.com>
2906
2907         * gtk/gtkmain.c (gtk_exit_func): Remove this useless
2908         atexit handler. (existance pointed out by Stefan Kost)
2909
2910         * gtk/gtkmain.c (gtk_init_check): Warning fixes.
2911
2912 Thu Jan 31 18:46:10 2002  Jonathan Blandford  <jrb@redhat.com>
2913
2914         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): unref the
2915         model after the last use, not before.
2916
2917 Thu Jan 31 14:50:16 2002  Owen Taylor  <otaylor@redhat.com>
2918
2919         * gtk/gtkrc.default gtk/Makefile.am: Install a Default
2920         RC file that sets the tooltips color to yellow. (#58542)
2921
2922         * gtk/gtksettings.c (gtk_settings_class_init): make 
2923         the default theme "Default", not NULL.
2924
2925 Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>
2926
2927         * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix 
2928         another missing static.
2929
2930         * gtk/gtkimmodule.c (n_loaded_contexts): And another.
2931
2932         * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
2933         build gxid sources at all except in the vanishingly
2934         rare case of --with-xinput=xfree.
2935
2936 2002-01-31  Mark McLoughlin  <mark@skynet.ie>
2937
2938         * gdk/gdkimage.c: (scratch_image_info_for_depth): make static.
2939
2940         * gdk/x11/gdkimage-x11.c: (get_full_image): ditto.
2941
2942         * gdk/x11/gxid_lib.[ch]: (_gxid_claim_device), (_gxid_release_device):
2943         renamed from gxid_(claim|release)_device.
2944
2945         * gdk/x11/gdkinput-gxi.c: (_gdk_input_enable_window),
2946         (_gdk_input_disable_window): upd for gxid change.
2947
2948         * gtk/gtkimage.c: (animation_timeout): make static.
2949
2950         * gtk/gtkstyle.c: (draw_thin_shadow), (draw_spin_entry_shadow): make
2951         static.
2952
2953         * gtk/gtktextutil.c: (bidi_menu_entries): make static.
2954
2955 Thu Jan 31 10:21:05 2002  Owen Taylor  <otaylor@redhat.com>
2956
2957         * gtk/gtkplug.c (gtk_plug_focus): Handle the case where
2958         bin->child is NULL. (#70153, Padraig O'Briain)
2959
2960         * gtk/gtktextutil.c (_gtk_text_util_append_special_char_menuitems): 
2961         Actually call gettext() on the labels; previously they
2962         were marked with N_() but we never called gettext().
2963
2964 Wed Jan 30 20:15:49 2002  Jonathan Blandford  <jrb@redhat.com>
2965
2966         * gtk/gtktreestore.c (gtk_tree_store_set_valist): save last minute
2967         changes before committing.
2968
2969         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
2970
2971 Wed Jan 30 18:46:14 2002  Jonathan Blandford  <jrb@redhat.com>
2972
2973         * gtk/gtkliststore.c (gtk_list_store_set_valist): only emit the
2974         signal if an interesting column changes.
2975
2976         * gtk/gtktreestore.c: ditto.
2977
2978         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): change behavior so
2979         that it no longer grabs 
2980
2981 2002-01-30  Manish Singh  <yosh@gimp.org>
2982
2983         * gtk/gtkhandlebox.c (gtk_handle_box_destroy): remove unused
2984         variable.
2985
2986         * gtk/gtkwindow.c (gtk_window_get_icon): function returns a value,
2987         so return NULL with g_return_val_if_fail instead of g_return_if_fail.
2988
2989 2002-01-30  Matthias Clasen  <matthiasc@poet.de>
2990
2991         * gtk/*.c: Remove excess g_return_if_fail calls from static
2992         and virtual functions.  (#57615)
2993         
2994 2002-01-30  Anders Carlsson  <andersca@gnu.org>
2995
2996         * gtk/gtkstyle.c (gtk_default_render_icon): Allow a -1 icon size.
2997
2998 Wed Jan 30 20:29:01 2002  Tim Janik  <timj@gtk.org>
2999
3000         * gtk/gtkscale.c (gtk_scale_set_digits): fix revrted bug fix.
3001         (use a define for max digits).
3002
3003 Wed Jan 30 13:55:59 2002  Owen Taylor  <otaylor@redhat.com>
3004
3005         * gtk/gtkwindow.c (gtk_window_show): Try to make
3006         sure that we have some focused widget on map. (#50339)
3007
3008         * gtk/gtkdialog.c (gtk_dialog_map): Handling picking
3009         a focus widget here differently so that if a
3010         response button gets picked, it's the default one.
3011
3012         * tests/testgtk.c (make_message_dialog): Set the 
3013         default response for the dialogs.
3014
3015 Tue Jan 29 22:52:36 2002  Owen Taylor  <otaylor@redhat.com>
3016
3017         * Released 1.3.13
3018
3019         * configure.in: Micro version 13, interface, binary
3020         age 0. Require GLIB-1.3.13, Pango 0.24.
3021
3022         * docs/Makefile.am (EXTRA_DIST): Add widget_geometry.txt,
3023         sizing-test.txt, tree-column-sizing.txt
3024
3025         * docs/Makefile.am (EXTRA_DIST): Don't distribute
3026         Changes-1.2.txt, Changes-2.0.txt, README.linux-fb,
3027         since they are no longer canonical.
3028
3029         * gtk/gtk.def: Convert spaces to tabs in front of
3030         gtk_widget_set_accel_path in case it matters.
3031
3032         * NEWS: Updated for 1.3.13.
3033
3034 Tue Jan 29 22:31:07 2002  Owen Taylor  <otaylor@redhat.com>
3035
3036         * gtk/gtkwidget.[ch] gtkmenuitem.c gtkitemfactory.c: Export 
3037         gtk_widget_set_accel_path().
3038
3039         * gtk/gtk.def: Add gtk_widget_set_accel_path.
3040
3041 Tue Jan 29 21:50:28 2002  Owen Taylor  <otaylor@redhat.com>
3042
3043         * gtk/gtkaccelmap.[ch] gtk/gtkbindings.[ch] gtk/gtkwidget.[ch]:
3044         Consistently use GdkModifierType. (#66950, Mark Patton)
3045
3046         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
3047         For consistency with gtk_button_new_from_stock(), fall back
3048         to gtk_image_menu_item_new_with_mnemnonic(). (#65944,
3049         Havoc Pennington)
3050         
3051         * gtk/gtkitemfactory.[ch] (gtk_item_factory_path_from_widget): 
3052         Make G_CONST_RETURN. (#68527, Matt Wilson)
3053
3054 Tue Jan 29 20:56:13 2002  Owen Taylor  <otaylor@redhat.com>
3055
3056         * gtk/gtk[vh]scale.c (gtk_[vh]scale_new_with_range): Document
3057         that the end points are included in the range. (#69783,
3058         Jeffrey Baker)
3059
3060 Tue Jan 29 20:38:04 2002  Owen Taylor  <otaylor@redhat.com>
3061
3062         * gtk/gtkscale.[ch]: Revert the last changes to make the
3063         number of digits only effect drawing, instead, don't
3064         round unless we are in the 'draw_value' mode -- this
3065         is the behavior of GTK+-1.2, and keeps the behavior that
3066         if the user sees a displayed value, it is the correct value.
3067
3068 Tue Jan 29 19:51:05 2002  Owen Taylor  <otaylor@redhat.com>
3069
3070         * gtk/gtkenums.h: Deprecate GtkPreviewType,
3071         GtkSignalRunType, GtkSideType, GtkSubmenuPlacement, GtkSubmenuDirection
3072         (#68183, Matthias Clasen)
3073
3074         * gtk/gtkmenuitem.h: Remove _gtk_menu_item_set_placement() from
3075         the public header to avoid having to use GtkSubmenuPlacement.
3076
3077         * gtk/{gtkmenuitem.c,gtkmenubar.c,gtkmenushell.c}: #define
3078         GTK_MENU_INTERNALS to preserve access to GtkSubmenu*.
3079
3080         * gdk/gdki18n.h: Deprecate contents. (Darin Adler.)
3081
3082 Tue Jan 29 19:32:47 2002  Owen Taylor  <otaylor@redhat.com>
3083
3084         * gtk/gtktextview.c (gtk_text_view_get/set_property): 
3085         Fix wrong usage of g_value_set/get_object for PROP_TABS
3086         and memory leak in getter for PROP_TABS. (Jeff Franks)
3087
3088 Tue Jan 29 19:04:41 2002  Owen Taylor  <otaylor@redhat.com>
3089
3090         * gtk/gtkstyle.c (gtk_style_render_icon): Document that
3091         a size of (GtkIconSize)-1 means don't scale.
3092
3093         * gtk/gtkstyle.c (gtk_default_render_icon): Obey the
3094         -1 convention.
3095
3096         * gtk/gtkimage.c (gtk_image_expose): Pass in -1 to
3097         gtk_style_render_icon() to make sure that we catch it
3098         obviously if the style's render function tries to
3099         scale.
3100
3101 Tue Jan 29 18:50:59 2002  Owen Taylor  <otaylor@redhat.com>
3102
3103         * gtk/gtkimage.c (gtk_image_expose): Optimize exposes of
3104         partial insensitive images.
3105
3106 2002-01-24  Havoc Pennington  <hp@redhat.com>
3107
3108         * gtk/gtkimage.c (gtk_image_expose): create insensitive version of
3109         the image regardless of storage type, #63305
3110
3111         * demos/gtk-demo/images.c: add toggle button to demonstrate that
3112         GtkImage makes its contents insensitive
3113
3114 Tue Jan 29 17:40:02 2002  Owen Taylor  <otaylor@redhat.com>
3115
3116         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
3117         Call _gdk_draw_pixbuf(), thus enabling using this function
3118         for pixbufs with alpha. (#68801)
3119
3120         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Move
3121         implementation of gdk_pixbuf_render_to_drawable()
3122         to here.
3123
3124 Tue Jan 29 17:16:17 2002  Owen Taylor  <otaylor@redhat.com>
3125
3126         * gtk/gtklayout.c: Patch from Jacob Berkman to fix problem
3127         when the height/width of a layout was set before the
3128         adjustments were added. (#66294)
3129
3130         * gtk/gtktreeview.c: Warning cleanups.
3131
3132 Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>
3133
3134         * gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
3135         fix to size of torn off window (#60271, Detlef Reichl)
3136
3137         * gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
3138         by Ross Burton)
3139
3140 Tue Jan 29 18:50:46 2002  Kristian Rietveld  <kris@gtk.org>
3141
3142         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): free
3143         cursor_path after usage
3144         (gtk_tree_view_real_start_interactive_search): use new g_signal
3145         and g_object calls
3146         (gtk_tree_view_search_dialog_destroy): use g_object calls and free
3147         selected_iter if set
3148         (gtk_tree_view_search_position_func): rework so it will never ever
3149         appear offscreen (#68492)
3150         (gtk_tree_view_search_move): use new g_object calls
3151         (gtk_tree_view_search_init): free selected_iter if set, use new
3152         g_object calls
3153         (gtk_tree_view_leave_notify): don't destroy interactive search
3154         dialog
3155
3156 Tue Jan 29 23:07:03 2002  Kristian Rietveld  <kris@gtk.org>
3157
3158         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3159         send focus in event
3160         (gtk_tree_view_search_dialog_destroy): send focus out event (#66466)
3161
3162 2002-01-29  Anders Carlsson  <andersca@gnu.org>
3163
3164         * gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
3165         size in the size entry.
3166
3167 Tue Jan 29 16:11:55 2002  Owen Taylor  <otaylor@redhat.com>
3168
3169         * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
3170         gtk_tree_view_set_cursor() instead of gtk_tree_selection_select_iter().
3171
3172         * gtk/gtkfontsel.c (gtk_font_selection_init): Add mnemonic to
3173         preview field. (#52433, patch from Anders Carlsson)
3174         
3175         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Remove the 
3176         dialog separator. (#69558, Alex Larsson, patch from Anders Carlsson)
3177
3178 Tue Jan 29 15:24:59 2002  Owen Taylor  <otaylor@redhat.com>
3179
3180         * gtk/gtkfontsel.[ch]: Switch over to GtkTreeView from
3181         GtkCList. Remove the entries above the font/face lists 
3182         since they were a little confusing. (Not sure about this 
3183         change, so the code is still there the entries are
3184         just hidden.) (#68890)
3185
3186         * gtk/gtkfilesel.c: Switch over to GtkTreeView from
3187         GtkCList. Add mnemonics for fileops. Allow Control/Shift
3188         Tab to focus out.
3189
3190         * gtk/gtkfilesel.c: Make fileop dialogs transient-for
3191         the fileselector. (#69336, patch from Melvin Hadasht)
3192
3193         * gtk/gtkgamma.c (button_clicked_callback): Fix handling
3194         of gamma dialog a bit. (#69336, Matthias Clasen.)
3195
3196 Tue Jan 29 14:56:28 2002  Owen Taylor  <otaylor@redhat.com>
3197
3198         * gtk/gtksocket.c (toplevel_focus_out_handler): Return boolean
3199         (and FALSE from focus_in / focus_out handlers. (#69528,
3200         Padraig O'Briain)
3201
3202 Tue Jan 29 14:47:54 2002  Owen Taylor  <otaylor@redhat.com>
3203
3204         * gtk/gtkmain.c (gtk_init_check): Remove the scary startup
3205         warning. (#69480)
3206
3207 Tue Jan 29 14:24:49 2002  Owen Taylor  <otaylor@redhat.com>
3208
3209         * gtk/gtkwindow.c (gtk_window_class_init): Add <Control>Tab
3210         bindings for "move-focus" so that Control-Tab to escape from
3211         something that eats Tab just works if not otherwise overriden.
3212
3213         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range) 
3214         * gtk/gtkvscale.c (gtk_vscale_new_with_range)
3215         * gtk/gtkhscale.c (gtk_hscale_new_with_range): Use a page_size
3216         of zero for the adjustment, since at times we think that the range
3217         is lower to upper - page_size. A page size equally to the 
3218         step_increment is, in any case, not meaningful.
3219
3220 2002-01-29  Tor Lillqvist  <tml@iki.fi>
3221
3222         * README.win32: Add comment about gtk-1-3-win32-production branch
3223         currently being ahead in functionality and code cleanliness (in
3224         gdk/win32). Just in case somebody looks at the code in gdk/win32
3225         here and starts fixing it, when it is going to change soonish
3226         anyway.
3227
3228 2002-01-29  Sven Neumann  <sven@gimp.org>
3229
3230         * gtk/gtkrc.c: don't install an empty icon_set if none of the image
3231         files could be found in the pixmap_path (bug #69398).
3232         
3233 2002-01-29  Sven Neumann  <sven@gimp.org>
3234
3235         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
3236         that showed up when using the color picker.
3237
3238 Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>
3239
3240         * gtk/gtkscale.[hc]: fix default value for ::digits property,
3241         leave as 1 as per havoc's request.
3242         don't apply the draw_digits value to range->round_digits,
3243         so we don't perform gross quantization by default.
3244
3245 2002-01-25  Havoc Pennington  <hp@redhat.com>
3246
3247         * gtk/gtktextbtree.c (_gtk_text_btree_delete): fix assertion
3248         failure by creating the line data, but not validating it at this
3249         stage. Also, remove old code related to the "bogus newline" mess
3250         that removed all tags from the last char in the buffer if you
3251         tried to delete it.
3252         (_gtk_text_line_data_new): put this here and prepend underscore,
3253         remove from gtktextlayout.c
3254
3255 Mon Jan 28 19:57:39 2002  Owen Taylor  <otaylor@redhat.com>
3256
3257         * modules/input/imhangul.c modules/input/imhangul-defs.h
3258         po/POTFILES.in. Add port of Emacs korean-hangul input
3259         method from Yusuke Tabata (#67665)
3260
3261 Mon Jan 28 18:25:10 2002  Owen Taylor  <otaylor@redhat.com>
3262
3263         * gtk/gtkentry.c (gtk_entry_draw_frame): Paint shadow
3264         before focus to give theme engines a bit morea
3265         flexibility. (#69857)
3266
3267 Mon Jan 28 16:23:20 2002  Jonathan Blandford  <jrb@redhat.com>
3268
3269         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
3270         g_assert.
3271
3272 2002-01-28  Jon Trowbridge  <trow@gnu.org>
3273
3274         * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
3275         GtkTreeView's model, set prelight_node, prelight_tree,
3276         button_pressed_node and button_pressed_tree to NULL. (#69603)
3277
3278 2002-01-28 Bill Haneman <bill.haneman@sun.com>
3279
3280         * gtk/gtkstyle.c:
3281         Make sure that the default expanders are drawn with
3282         an outline thickness appropriate to the size of the
3283         expanders (RINT expander_size/7).
3284         Added static gtk_style_draw_polygon_with_gc(), to
3285         reduce code duplication.
3286
3287         * gtk/gtktreeview.c: (gtk_tree_view_bin_expose):
3288         Use focus_line_thickness when drawing focus lines.
3289
3290         * gtk/gtktreeviewcolumn.c:(gtk_tree_view_column_cell_get_size):
3291         Adjust requested width to include focus line thickness.
3292         (gtk_tree_view_column_cell_render_or_focus):
3293         Calculate a focus line rectangle which gets larger as the focus
3294         line thickness increases, to avoid overwriting cell content.
3295         Render left-aligned content at x+focus_line_width.
3296         (gtk_tree_view_column_cell_draw_focus):
3297         Don't draw a focus line around an editable text cell, since the
3298         text caret already indicates keyboard focus.
3299         Pass a GtkStateType appropriate to the focussed cell's state
3300         to gtk_paint_focus.
3301
3302 Mon Jan 28 14:44:40 2002  Jonathan Blandford  <jrb@redhat.com>
3303
3304         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
3305         activate/edit the row if shift is not pressed, #69248
3306
3307 2002-01-28  Anders Carlsson  <andersca@gnu.org>
3308
3309         * gtk/gtkcurve.c (gtk_curve_set_vector): Fix build.
3310
3311 2002-01-28  Matthias Clasen  <matthiasc@poet.de>
3312
3313         * gtk/{gtkalignment.c,gtkaspectframe.c,gtkbutton.c,
3314         gtkcellrenderer.c,gtkcellrendererpixbuf.c,gtkcombo.c,
3315         gtkcontainer.c,gtkcurve.c,gtkframe.c,gtklabel.c,
3316         gtkmessagedialog.c,gtknotebook.c,gtkspinbutton.c,gtktable.c,
3317         gtktext.c,gtktextview.c,gtktreeview.c,gtktreeviewcolumn.c,
3318         gtkviewport.c,gtkwidget.c}: General property notification 
3319         cleanup. (#69066)
3320
3321 2002-01-28  Anders Carlsson  <andersca@gnu.org>
3322
3323         * gtk/gtkaccelgroup.c (gtk_accel_groups_activate): & with the
3324         default mod mask so accels work when numlock is on.
3325
3326 Sun Jan 27 23:23:23 2002  Kristian Rietveld  <kris@gtk.org>
3327
3328         * gtk/gtkrbtree.[ch]: add _gtk_rbtree_mark_invalid (my previous
3329         commit already needed this ...)
3330
3331 Sun Jan 27 22:13:02 2002  Kristian Rietveld  <kris@gtk.org>
3332
3333         Fix for bug #69586
3334
3335         * gtk/gtktreeprivate.h: get rid of tab_offset, introduce
3336         expander_size
3337
3338         * gtk/gtktreeview.c: get rid of ->priv->tab_offset, introduce
3339         expander_size caching (from style), fix CELL_HEIGHT macro,
3340         use MAX ("RBNODE_HEIGHT", expander_size) (differs per case) for
3341         row height calculation, added style_set callback
3342
3343 2002-01-27  Anders Carlsson  <andersca@gnu.org>
3344
3345         * gtk/gtklabel.c (gtk_label_create_window): Set the cursor to
3346         GDK_XTERM.
3347
3348         * gtk/gtktextview.h (struct _GtkTextView): add mouse_cursor_obscured.
3349
3350         * gtk/gtkentry.h (struct _GtkEntry): Add mouse_cursor_obscured.
3351
3352         * gtk/gtktextview.c (set_invisible_cursor): New function.
3353         (gtk_text_view_obscure_mouse_cursor): Likewise.
3354         (gtk_text_view_key_press_event): Call obscure_cursor if text 
3355         has been inserted.
3356         (gtk_text_view_motion_event): Restore the mouse cursor.
3357
3358         * gtk/gtkentry.c (gtk_entry_realize): Add GDK_POINTER_MOTION_MASK.
3359         (set_invisible_cursor): New function.
3360         (gtk_entry_obscure_mouse_cursor): Likewise.
3361         (gtk_entry_key_press): call obscure_cursor if text has been inserted.
3362         (gtk_entry_motion_notify): Restore the mouse cursor.
3363
3364 2002-01-27  Sven Neumann  <sven@gimp.org>
3365
3366         * gtk/gtkstyle.c (sanitize_size): removed unused return value.
3367
3368 Sat Jan 26 19:27:23 2002  Owen Taylor  <otaylor@redhat.com>
3369
3370         * gtk/gtksocket.c (gtk_socket_grab_notify): Don't
3371         send MODALITY_ON/OFF if socket->same_app (More fixes for #69735)
3372
3373 Sat Jan 26 19:04:37 2002  Owen Taylor  <otaylor@redhat.com>
3374
3375         * gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
3376         in the grab_widget == NULL case. (Bug reported by 
3377         Padraig O'Briain, #69735)
3378
3379         * gtk/gtkplug.c (handle_modality_on): Realize the modality
3380         window so gtk_widget_event() doesn't complain :-((((.
3381
3382 2002-01-25  Federico Mena Quintero  <federico@ximian.com>
3383
3384         Merge from gdk-pixbuf stable.
3385
3386         * gdk/gdkpixbuf-drawable.c (rgb565msb): Fixed the endianness
3387         conversion --- swap the individual 16 bit values instead of taking
3388         everying as a 32 bit value.
3389         (rgb565lsb): Likewise.
3390         (rgb555lsb): Likewise.
3391         (rgb555msb): Likewise.
3392
3393 2002-01-25  Alex Larsson  <alexl@redhat.com>
3394
3395         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_drawable_impl_fb_class_init):
3396         Implement copy_to_image instead of get_image
3397         
3398         * gdk/linux-fb/gdkimage-fb.c:
3399         Implement _gdk_image_new_for_depth, _gdk_windowing_get_bits_for_depth and
3400         _gdk_fb_copy_to_image.
3401         Based in part on patch from Mathieu Lacage <mathieu_lacage@realmagic.fr>
3402
3403         * gdk/linux-fb/gdkmain-fb.c:
3404         Make ENABLE_FB_MANAGER region larger.
3405
3406         * gdk/linux-fb/gdkprivate-fb.h:
3407         Change _gdk_fb_get_image to _gdk_fb_copy_to_image.
3408
3409 2002-01-25  Sven Neumann  <sven@gimp.org>
3410
3411         * gtk/gtkwindow.c (gtk_window_get_size): changed the comment so
3412         that gtk-doc doesn't get confused.
3413
3414 Fri Jan 25 14:03:36 2002  Tim Janik  <timj@gtk.org>
3415
3416         * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
3417         that the passed in arrow is always _UP or _DOWN, this catches
3418         false invocations which lead to drawing artefacts.
3419         (start_spinning): likewise, i.e. sanity check the passed in arrow.
3420         (gtk_spin_button_button_release): fix arrow redrawing.
3421         (gtk_spin_button_button_press): must set click_child for
3422         button3 even if we don't take spinning action right away.
3423
3424         * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
3425         valid values for click_child.
3426
3427 Thu Jan 24 23:03:24 2002  Kristian Rietveld  <kris@gtk.org>
3428
3429         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
3430         return current FALSE if x is smaller than the current visible area,
3431         not than the requested area, don't correct y coordinate,
3432         TREE_WINDOW_Y_TO_RBTREE_Y will do that. Fixes #67477.
3433
3434 Thu Jan 24 15:41:08 2002  Jonathan Blandford  <jrb@redhat.com>
3435
3436         * gtk/gtktreeview.c
3437          (gtk_tree_view_motion_draw_column_motion_arrow): fix column
3438          reordering fully.
3439          (gtk_tree_view_size_allocate): fix evil bug.
3440
3441 Thu Jan 24 11:53:19 2002  Owen Taylor  <otaylor@redhat.com>
3442
3443         * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't clear
3444         the model until we clean up all the other objects
3445         that might refer to the object.
3446
3447 2002-01-24  Mark McLoughlin  <mark@skynet.ie>
3448
3449         * gtk/gtkaccessible.h: include gtk/gtkwidget.h
3450
3451 Wed Jan 23 20:28:59 2002  Owen Taylor  <otaylor@redhat.com>
3452
3453         * gtk/gtknotebook.c (gtk_notebook_draw_arrow): 
3454         Use insensitive state for insensitive arrows, not
3455         just an "etched state". (#67172, Adrian Custer)
3456
3457 2002-01-23  Manish Singh  <yosh@gimp.org>
3458
3459         * gtk/gtkentry.c (gtk_entry_set_text): use a variable that's actually
3460         been declared.
3461
3462 2002-01-23  Damon Chaplin  <damon@ximian.com>
3463
3464         * configure.in (gtk_doc_min_version): set minimum gtk-doc version to
3465         0.9, since we need to use the new --type-init-func argument for
3466         gtkdoc-scangobj.
3467
3468 2002-01-23  Matthias Clasen  <matthiasc@poet.de>
3469
3470         * gtk/gtkentry.c, gtk/gtkwidget.c: Remove excessive
3471         g_return_if_fail() calls. (#57615)
3472
3473         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entries): Make
3474         it work for paths with underline accelerators. (#69247)
3475
3476 Wed Jan 23 15:12:16 2002  Owen Taylor  <otaylor@redhat.com>
3477
3478         * gtk/gtkspinbutton.c (gtk_spin_button_state_changed): 
3479         Stop spinning if widget becomes insensitive. (#56248)
3480
3481 Wed Jan 23 14:44:12 2002  Owen Taylor  <otaylor@redhat.com>
3482
3483         * gtk/gtkspinbutton.c (EPSILON): Decrease value since
3484         we now use doubles.
3485
3486 Tue Jan 22 16:58:37 2002  Jonathan Blandford  <jrb@redhat.com>
3487
3488         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Fix sizing bug
3489         I introduced accidentally, #69358
3490
3491 2002-01-22 Padraig O'Briain <padraig.obriain@sun.com>
3492
3493         * gtk/gtktreestore.c (gtk_tree_store_iter_children):
3494         Update last change to prevent core dump
3495
3496 Mon Jan 21 01:21:54 2002  Kristian Rietveld  <kris@gtk.org>
3497
3498         * gtk/gtktreestore.c: add some more stamp checks (pointed out
3499         by Anders Carlsson)
3500
3501         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): don't
3502         assume _row_changed will insert sort (because _row_changed doesn't
3503         need to follow this signal), so apply insert sort here
3504         (gtk_tree_model_sort_level_find_insert): header doesn't need to be
3505         set here, so use a return instead of g_return_val_if_fail.
3506
3507 Mon Jan 21 18:28:17 2002  Jonathan Blandford  <jrb@redhat.com>
3508
3509         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update
3510         top_row.  Remove extraneous print statements.
3511
3512 2002-01-21  Matthias Clasen  <matthiasc@poet.de>
3513
3514         * gtk/gtkitemfactory.c (gtk_item_factory_popup, 
3515         gtk_item_factory_popup_with_data): Document allowed values
3516         for ifactory.
3517
3518         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make 
3519         it work for paths with underline accelerators.
3520
3521 Fri Jan 18 16:31:21 2002  Jonathan Blandford  <jrb@redhat.com>
3522
3523         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
3524         window.
3525
3526 Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>
3527
3528         * gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
3529         case where there is no default widget and the entry
3530         is the focus widget, since this also causes infinite
3531         recursion. (#69158)
3532
3533 Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
3534
3535         * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
3536         rather than lazilygdk_get_program_class(), since we don't want
3537         -name to override it. (#69123, Ryan Lovett)
3538
3539 Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>
3540
3541         * gdk/gdk.c: Fix wrong types for command line arguments 
3542         (#69124, Ryan Lovett)
3543
3544         * gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
3545         parsing '--arg VALUE'.
3546
3547         * gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
3548
3549 2002-01-21  Havoc Pennington  <hp@pobox.com>
3550
3551         * gdk/gdkwindow.c (gdk_window_add_filter): mention that window 
3552         arg can be NULL
3553
3554 Sat Jan 19 20:49:41 2002  Kristian Rietveld  <kris@gtk.org>
3555
3556         * demos/gtk-demo/editable_cells.c: fix a load of open line ends
3557         (cell_edited): modified patch from German Poo Caaman~o
3558         to fix up old_text declaration and free the memory
3559         (do_editable_cells): unref the model after creating the treeview
3560
3561         * demos/gtk-demo/list_store.c: fix a load of open line ends,
3562         (add_columns): set the sort column id, so we can sort
3563
3564         * demos/gtk-demo/tree_store.c: fix a load of open line ends,
3565         (do_tree_store): unref the model after creating the treeview
3566
3567 2002-01-19  Havoc Pennington  <hp@pobox.com>
3568
3569         * gtk/gtkwindow.c: link to new X11 section in a lot of places when
3570         mentioning the window manager.
3571
3572         * gtk/gtkwidget.c (gtk_widget_hide_on_delete): don't mention
3573         window manager since we're portable.
3574
3575 Sat Jan 19 08:47:41 2002  Jeff Garzik  <jgarzik@mandrakesoft.com>
3576
3577         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
3578         Wrap case values in GPOINTER_TO_UINT().  Fixes build with gcc 3.x.
3579
3580         * gtk/gtkmain.c:  Include sys/types.h if G_OS_UNIX.
3581         Fixes build with gcc 3.x and -ansi.
3582
3583 Fri Jan 18 23:01:37 2002  Owen Taylor  <otaylor@redhat.com>
3584
3585         * gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
3586         an engine declaration occurs in a reopened style, and
3587         g_free() of objects when errors occur.
3588
3589 2002-01-18  Matthias Clasen  <matthiasc@poet.de>
3590
3591         * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
3592         Clarify documentation. (#69026)
3593
3594         * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
3595         missing initialization of adjustment. (#69025)
3596
3597 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
3598
3599         Simplify Makefiles. 
3600         <URL: http://bugzilla.gnome.org/show_bug.cgi?id=68969>
3601         * gdk/Makefile.am: Remove use of automake conditionals to pick
3602         library to build.
3603         * gtk/Makefile.am: Likewise.
3604         
3605         * gdk/Makefile.am (LDFLAGS): Use $(libdir), not @prefix@/lib.
3606         * gtk/Makefile.am (LDFLAGS): Likewise.
3607
3608 Thu Jan 17 20:13:14 2002  Owen Taylor  <otaylor@redhat.com>
3609
3610         * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
3611         missing allocation.x/y offsets. (#68962, Jacob
3612         Berkman)
3613
3614         * gtk/gtknotebook.c (gtk_notebook_size_allocate):
3615         Queue a redraw on the entire widget if we hide
3616         the last page or show the first. (Also #68962)
3617         
3618 2002-01-17  Havoc Pennington  <hp@redhat.com>
3619
3620         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
3621         GTK_MOVEMENT_PARAGRAPHS to go to start/end of paragraph before it
3622         starts to go up/down paragraphs. This makes Ctrl+Up/Ctrl+Down work
3623         as in the keynav spec, though it makes the interpretation of
3624         GTK_MOVEMENT_PARAGRAPHS different from the interpretation of some
3625         of the other GTK_MOVEMENT_ thingies, maybe, as if that enum makes
3626         any sense anyhow.
3627
3628 Thu Jan 17 16:34:55 2002  Jonathan Blandford  <jrb@redhat.com>
3629
3630         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): For
3631         some reason, I was activating a row while just selecting it.
3632         Reported by andersca.
3633         (gtk_tree_view_size_request): add a
3634         validate_rows_handler to give us a rough width of the widget.
3635
3636         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
3637         Queue a resize here just in case.  It's needed in over half the
3638         cases, and I don't want to do a diff to figure out exactly when
3639         it's needed.
3640
3641 2002-01-17  Matthias Clasen  <matthiasc@poet.de>
3642
3643         * gtk/gtkinputdialog.c,
3644         gtk/gtkcolorsel.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c:
3645         Mark children as composite. (#66360)
3646
3647         * gtk/gtkwidget.c (gtk_widget_push_composite_child): Explain
3648         composite children some more. (#66360)
3649
3650 2002-01-17  Havoc Pennington  <hp@redhat.com>
3651
3652         * gtk/gtktextlayout.c (_gtk_text_layout_get_line_xrange): new
3653         function (which I then decided not to use but I think it's needed
3654         to fix #68963
3655
3656         * gtk/gtktextview.c: add page_horizontally action signal and
3657         implement Ctrl+PgUp, Ctrl+PgDown based on patch from Padraig, 
3658         hackily modified to avoid adding GTK_MOVEMENT_ API. Part of 
3659         #53934
3660
3661         * gtk/gtkmarshalers.list: add NONE:INT,BOOL
3662
3663 Thu Jan 17 17:02:38 2002  Owen Taylor  <otaylor@redhat.com>
3664
3665         * gtk/gtkwidget.c (gtk_widget_real_unrealize): Call
3666         gtk_selection_remove_all() here, not in destroy/
3667         finalize. (#66636, Sergey Vlasov)
3668
3669         * gtk/gtkselection.c (gtk_selection_request): Fix
3670         reentrancy problem with multiple conversions.
3671
3672         * gtk/gtkselection.c (gtk_selection_remove_all): 
3673         Don't remove incrs, we don't need the widget for
3674         maintain the incr.
3675
3676         * gtk/gtkselection.c (struct _GtkIncrInfo): Remove
3677         the widget field from here, we don't need it.
3678
3679 Thu Jan 17 13:08:34 2002  Owen Taylor  <otaylor@redhat.com>
3680
3681         * gdk/x11/gdkmain-x11.c (gdk_error_trap_push): Move
3682         here, and save/restore the X error handler to allow
3683         people using GTK+ to set the X error handler to something
3684         custom without disturbing the operation of GDK.
3685
3686         * gdk/linux-fb/gdkmain-fb.c (gdk_error_trap_push) 
3687         * gdk/win32/gdkmain-win32.c (gdk_error_trap_pop): Add
3688         dummy implementations.
3689
3690         * gdk/x11/gdkmain-x11.c gdk/x11/gdkevents-x11.c 
3691         gdk/x11/gdkdnd-x11.c: Use gdk_error_trap_push()/pop()
3692         for all error trapping.
3693
3694         * gdk/x11/gdkdnd-x11.c: Remove '#if 0' code.
3695
3696         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Fix
3697         problem where we would add the results anyways,
3698         and then add it again if no error occurred, and problem
3699         where we could leave _gdk_error_warnings() unset.
3700
3701 Wed Jan 16 20:28:38 2002  Owen Taylor  <otaylor@redhat.com>
3702
3703         * gtk/gtkfilesel.c: Fix "deleting" filename by adding
3704         another boolean parameter to file_selection_populate() -
3705         whether to clear the entry. Also, never fill in the
3706         entry when the user clicks on something in the 
3707         directory list. (#6791, Reported by Jos Dehaes and many,
3708         many, many others.)
3709
3710 2002-01-16  Havoc Pennington  <hp@redhat.com>
3711
3712         * gtk/gtktextview.c (gtk_text_view_scroll_pages): update
3713         cursor_y_pos with clamped delta rather than theoretical delta
3714         (#68788). Also, if we can't page up/down further then jump 
3715         to top/bottom of the document.
3716
3717 Wed Jan 16 19:33:41 2002  Owen Taylor  <otaylor@redhat.com>
3718
3719         * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh
3720         the dialog on map. (#52877, inspired by request from
3721         Murray Cumming)
3722
3723 Wed Jan 16 19:23:04 2002  Owen Taylor  <otaylor@redhat.com>
3724
3725         * gtk/gtkbindings.c (gtk_binding_entry_activate): 
3726         Support "optional" bindings. If a binding signal
3727         has a boolean return value, and returns FALSE it
3728         is as if it didn't exist all.
3729
3730         * gtk/gtkbindings.c (binding_compose_params): Switch
3731         over to GValue.
3732
3733         * gtk/gtknotebook.[ch]: Make the select_page() and
3734         change_current_page() signals only take effect when
3735         the focus is on the tab area so that key presses
3736         in children pass up to the toplevel correctly.
3737
3738 Wed Jan 16 12:16:37 2002  Owen Taylor  <otaylor@redhat.com>
3739
3740         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Fix 
3741         calculation error in the (shouldn't happen) case where
3742         option_menu->height < child_requisition.height. (Patch
3743         from Jacob Berkman, #66969)
3744
3745 2002-01-15  Matthias Clasen  <matthiasc@poet.de>
3746
3747         * gtk/gtkenums.h (GtkMatchType): Deprecate. (#68183)
3748
3749         * gtk/gtkscale.h (gtk_scale_value_width): Remove useless 
3750         compatibility macro. (#67730) 
3751
3752 Wed Jan 16 10:54:38 2002  Owen Taylor  <otaylor@redhat.com>
3753
3754         * configure.in: Fix typo in --help output.
3755         (Arnaud Charlet).
3756
3757 Wed Jan 16 10:18:42 2002  Owen Taylor  <otaylor@redhat.com>
3758
3759         * gtk/stock-icons/Makefile.am (EXTRA_DIST): Add 
3760         gtkstockpixbufs.h.
3761
3762         * configure.in: Make TIFF, JPEG, PNG loaders mandatory
3763         unless you configure with --without-libtiff, etc.
3764         (#54045, Brian Cameron)
3765
3766 2002-01-16  Padraig O'Briain <padraig.obriain@sun.com>
3767
3768         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
3769         Avoid unexpected warning message when navigating menu (#68517)
3770
3771 2002-01-15  Jody Goldberg <jody@gnome.org>
3772
3773         * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
3774         GtkLayout may have been scrolled _before_ it was realized.
3775
3776 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
3777
3778         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
3779         the timer on destroy, or when we are notified that we are
3780         shadowed by a modal dialog.
3781
3782         * gtk/gtkspinbutton.c: Remove explicit gtk_grab_add()/remove() -
3783         not needed any more.
3784
3785         * gtk/gtkmain.c (gtk_grab_notify): Fix problem where notifications
3786         weren't sent out for the default grab group.
3787
3788         * gtk/gtkmain.c (gtk_grab_notify): Fix notification of widgets that
3789         were getting events because they were part of the previous grab.
3790
3791 Tue Jan 15 12:23:33 2002  Owen Taylor  <otaylor@redhat.com>
3792
3793         * gtk/gtknotebook.c (gtk_notebook_mnemonic_activate_switch_page): 
3794         focus the activated tab, not the page. (#53612)
3795
3796         * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Track
3797         the last focus descendant of the page.
3798
3799         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): If the focus
3800         was on the previous page, move it to the last focused widget /
3801         first element on the new page, if possible, or if not, to the 
3802         notebook itself. (#68224, reported by Jonathan Blandford)
3803
3804         * gtk/gtknotebook.c (focus_tabs_in): Don't focus tabs
3805         tabs aren't visible. (#65462, Damon Chaplin, fixed based 
3806         on patch from Anders Carlsson)
3807
3808 2002-01-15            Vitaly Tishkov       <tvv@sparc.spb.su>
3809
3810         * gtk/gtkstyle.c
3811         a misprint in documentation for gtk_style_render_icon () is fixed
3812
3813 Mon Jan 14 23:21:47 2002  Tim Janik  <timj@gtk.org>
3814
3815         * gtk/gtkmenuitem.c (gtk_menu_item_map): map event_window after
3816         mapping child, so we don't loose events.
3817
3818 2002-01-15  Sven Neumann  <sven@gimp.org>
3819
3820         * gtk/gtkaccellabel.h
3821         * gtk/gtkitemfactory.c: fixed documentation by syncing the parameter
3822         names used in headers and code.
3823
3824 2002-01-14  jacob berkman  <jacob@ximian.com>
3825
3826         * gtk/gtkrc.c (gtk_rc_get_im_module_path): close a comment block
3827
3828 Tue Jan 15 01:13:51 2002  Kristian Rietveld  <kris@gtk.org>
3829
3830         * gtk/gtktreemodelsort.c: fix a load of open line ends,
3831         (gtk_tree_model_sort_set_model): only free root level if it's
3832         !NULL
3833
3834 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
3835
3836         * gtk/gtkoldeditable.c, gtk/gtkrc.c, 
3837         gtk/gtkstyle.c: Documentation additions.
3838
3839         * gtk/gtkmenu.c (gtk_menu_set_accel_path),
3840         gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path), 
3841         gtk/gtkwidget.c (gtk_widget_add_accelerator): Typo and markup fixes.
3842
3843         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document.
3844
3845         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter): Explain intended use.
3846
3847 Mon Jan 14 17:14:13 2002  Owen Taylor  <otaylor@redhat.com>
3848
3849         * gdk/x11/gdkselection-x11.c (sanitize_utf8): Don't
3850         mangle sequences of consecutive \n or \r.
3851
3852 Mon Jan 14 17:42:28 2002  Jonathan Blandford  <jrb@redhat.com>
3853
3854         * gtk/gtktreeview.c (gtk_tree_view_stop_editing): allow cancel to
3855         happen.
3856
3857         * gtk/gtktreeview.c (install_presize_handler): only install the
3858         handler if we're realized, #68056
3859
3860 Mon Jan 14 16:35:58 2002  Owen Taylor  <otaylor@redhat.com>
3861
3862         * gtk/gtkwindow.c (gtk_window_move_resize): Unset 
3863         initial_pos_set after the first configure request.
3864
3865 2002-01-13  Jody Goldberg <jody@gnome.org>
3866
3867         * gtk/gtktexttag.c (get_color_arg) : set_boxed will copy the color
3868           and will use a mem_chunk to do it.  Avoid an unnecessary copy, a
3869           leak, and confusion.
3870
3871 Sun Jan 13 23:23:22 2002  Owen Taylor  <otaylor@redhat.com>
3872
3873         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix problem where
3874         widget->requisition was being used instead of
3875         gtk_widget_get_child_requisition (), causing geometry widgets
3876         with usizes to misbehave.
3877
3878 2002-01-14  Sven Neumann  <sven@gimp.org>
3879
3880         * gtk/gtkrc.c: g_getenv() returns a const string.
3881
3882 2002-01-14  Hasbullah Bin Pit  <sebol@ikhlas.com>
3883
3884         * configure.in: Added ms at ALL_LINGUAS.
3885         * po/ms.po: Added Malay Translation.
3886
3887 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
3888
3889         * gtk/gtkitemfactory.c: Documentation.
3890
3891 2002-01-13  Sven Neumann  <sven@gimp.org>
3892
3893         * gdk/gdkwindow.c: documentation cleanups.
3894
3895 Sun Jan 13 01:15:45 2002  Kristian Rietveld  <kris@gtk.org>
3896
3897         * gtk/gtktreemodelsort.c: various cleanups,
3898         (get_child_iter_from_elt): removed,
3899         (gtk_tree_model_sort_elt_get_path): rewritten to be a lot cleaner
3900         and especially faster,
3901         (gtk_tree_model_convert_iter_to_child_iter): use
3902         gtk_tree_model_sort_elt_get_path
3903
3904 Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
3905
3906         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3907         revert Owen's change (using a strdupped string as object data), so
3908         the interactive search works again
3909
3910 2002-01-11  Havoc Pennington  <hp@pobox.com>
3911
3912         * gtk/gtklabel.c: put in more links to Pango markup format docs
3913         (gtk_label_set_justify): mention gtk_misc_set_alignment
3914
3915 2002-01-12  Tor Lillqvist  <tml@iki.fi>
3916
3917         Fixes contributed by Archaeopteryx Software: This is a first small
3918         part of their changes. Will commit more later.
3919         
3920         * gdk/win32/*.c: Add some more checks for failed GDI calls. If a
3921         call fails, don't use bogus values.
3922
3923          gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): Plug
3924         memory leak: g_free() the AND and XOR bitmaps after use.
3925         (_gdk_cursor_destroy): If we are destroying the current Windows
3926         cursor, set the Windows cursor to none first.
3927
3928         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
3929         brush that was in the DC, like the win32-production branch does.
3930
3931         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_finalize): If
3932         the window has a cursor which is the current Windows cursor,
3933         before destroying it set the current Windows cursor to none.
3934         (gdk_window_set_cursor): Also here, if destroying the current
3935         Windows cursor, set the current Windows cursor to none first.
3936         (gdk_window_get_pointer): Revamp logic.
3937         
3938 2002-01-10  jacob berkman  <jacob@ximian.com>
3939
3940         * gtk/gtkwidget.c (gtk_widget_add_events): actually iterate
3941         through the list rather than infinitely loop
3942
3943 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
3944
3945         * gtk/gtkwidget.c (gtk_widget_set_style_recurse): Rename to
3946         reset_rc_styles_recurse(). (#68084)
3947
3948 2002-01-10            Vitaly Tishkov       <tvv@sparc.spb.su>
3949         * gtk/gtkimage.c
3950         * gtk/gtkimcontext.c
3951         * gtk/gtktreemodel.c
3952         * gtk/gtktreemodelsort.c
3953         * gtk/gtkwindow.c
3954         fix docs        
3955
3956 Wed Jan  9 20:56:42 2002  Jonathan Blandford  <jrb@redhat.com>
3957
3958         * gdk/x11/gdkkeys-x11.c (get_xkb): get the types as well as the
3959         symbols because we need them in MyEnhancedXkbTranslateKeyCode.
3960
3961 2002-01-10  Tor Lillqvist  <tml@iki.fi>
3962
3963         Apply the same fixes and improvements as to the
3964         gtk-1-3-win32-production branch: Bug fixes and cleanup of
3965         selection and DND functionality. Still doesn't work as well as the
3966         win32-production branch, though, but getting closer.
3967
3968         After this, need to add Archaeopteryx Software's OLE2 DND support.
3969
3970         * gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
3971         gdk_selection_send_notify, generate_selection_notify): Don't use
3972         SendMessage() to generate events for the same app, instead use
3973         gdk_event_put().
3974
3975         * gdk/win32/gdkprivate-win32.h
3976         * gdk/win32/gdkglobals-win32.c
3977         * gdk/win32/gdkmain-win32.c
3978         * gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
3979         initialisation and handling of gdk_selection_notify_msg,
3980         gdk_selection_request_msg and gdk_selection_clear_msg. 
3981
3982         * gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
3983         gdk_free_text_list, gdk_string_to_compound_text,
3984         gdk_free_compound_text): Implement trivially, witrh a text_list
3985         always having a single element, and a compound text always
3986         consisting of just a single (UTF-8!) string. Let's see how well
3987         this works.
3988
3989         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
3990         non-ASCII paste from the clipboard: Try getting the same formats
3991         from the Windows clipboard that gdk_property_change() puts there:
3992         CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
3993
3994         * gdk/win32/gdkproperty-win32.c (gdk_property_change): When
3995         storing text on the clipboard, handle non-ASCII text
3996         correctly. The logic is as follows:
3997
3998         If we have only ASCII characters, use CF_TEXT.
3999
4000         Else, if we are on NT, use CF_UNICODETEXT.
4001
4002         Else (we are on Win9x), if all the characters are present in the
4003         code page of some installed locale, use CF_TEXT and also set
4004         CF_LOCALE to that locale.
4005
4006         Else (still on Win9x) store as RTF. We use a very simple RTF
4007         string, just the text, no fonts or other crap, with the non-ASCII
4008         characters as Unicode \uN keywords. Additionally, also store the
4009         UTF-8 string as such, under the format "UTF8_STRING", so that GDK
4010         can also paste from the Clipboard what it has copied there. (Thus
4011         no need to implement any RTF parser.)
4012         
4013         (find_common_locale): New function, implements the search for a
4014         locale for case 3 above.
4015
4016         * gdk/win32/gdkglobals-win32.c: New global variables
4017         compound_text, text_uri_list, utf8_string, cf_rtf and
4018         cf_utf8_string.
4019
4020         * gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
4021         converts from a wchar_t string to UTF-8.
4022         (_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
4023         (_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
4024
4025         * gdk/win32/gdkevents-win32.c (build_keypress_event): Use
4026         _gdk_ucs2_to_utf8().
4027
4028         * gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
4029
4030         * gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
4031         gdk_drag_context_ref() was called unnecessarily in a couple of
4032         places, meaning drag contexts were never freed. The same memory
4033         leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
4034
4035         (gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
4036         stored file list.
4037
4038         * gdk/win32/gdkselection-win32.c: Clarify the use of the
4039         sel_prop_table. Now it is used only for storing the GDK_SELECTION
4040         "properties".
4041
4042         The file names dropped with WM_DROPFILES -style DND is stored
4043         temporarily (between the drop and the target picking them up) in a
4044         separate place.
4045
4046         Have a separate hash table to map selection atoms to owner
4047         windows. This used to be quite mixed up.
4048
4049         (_gdk_dropfiles_store): New function, to store the dropped file
4050         list for the drop target to possibly fetch, and clear it
4051         afterwards, from gdk_drop_reply().
4052
4053         (gdk_selection_owner_get): Much simplified now.
4054
4055 2002-01-09  jacob berkman  <jacob@ximian.com>
4056
4057         * gtk/gtklayout.c (gtk_layout_style_set): set the background of
4058         our bin window also (fixes #58957)
4059
4060 Wed Jan  9 19:10:07 2002  Jonathan Blandford  <jrb@redhat.com>
4061
4062         * gtk/gtktreeselection.c
4063         (_gtk_tree_selection_internal_select_node): Now we test we can
4064         unselect nodes before selecting new ones.
4065         (gtk_tree_selection_real_select_node): be careful comparing booleans.
4066
4067 Wed Jan  9 21:31:44 2002  Kristian Rietveld  <kris@gtk.org>
4068
4069         * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
4070         gtk_tree_model_rows_reordered and not an iter with user_data
4071         set to NULL (which is an invalid liststore iter, so
4072         iter_n_children failed, etc)
4073
4074 2002-01-09  Sven Neumann  <sven@gimp.org>
4075
4076         * tests/prop-editor.c: declared internal functions static.
4077         
4078 Wed Jan  9 11:13:12 2002  Owen Taylor  <otaylor@redhat.com>
4079
4080         * gtk/gtkmenuitem.c (_gtk_menu_item_refresh_accel_path): 
4081         Fix problem with menus without accel groups, such as the
4082         menus for option menus.
4083
4084         * gtk/gtkpaned.c (gtk_paned_expose): Only conditionalize
4085         drawing of handle on whether both children are visible,
4086         not the drawing of the other child!. (#68325, Diego Gonzalez)
4087
4088 Wed Jan  9 10:20:16 2002  Owen Taylor  <otaylor@redhat.com>
4089
4090         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkgc-c11.c: Check for
4091         RENDER before trying to use it... XRenderFindFormat() prints
4092         warnings if called when extension isn't present.
4093
4094 Wed Jan  9 15:20:40 2002  Tim Janik  <timj@gtk.org>
4095
4096         * gtk/gtkmenuitem.c (gtk_menu_item_parent_set): update the accel
4097         path upon parent changes.
4098
4099 Wed Jan  9 13:20:14 2002  Tim Janik  <timj@gtk.org>
4100
4101         * gtk/gtkviewport.c (gtk_viewport_size_allocate): small but important
4102         fix to force vadjustments at size_alocate time from Xavier Ordoquy
4103         <mcarkan@users.sourceforge.net>.
4104
4105 Wed Jan  9 11:23:39 2002  Tim Janik  <timj@gtk.org>
4106
4107         * gtk/gtklayout.c (gtk_layout_get_property): 
4108         * gtk/gtkspinbutton.c (gtk_spin_button_get_property): 
4109         * gtk/gtktreeview.c (gtk_tree_view_get_property): 
4110         * gtk/gtkwidget.c (gtk_widget_get_property): 
4111         * gtk/gtkfontsel.c (gtk_font_selection_get_property): 
4112         * gtk/gtkrange.c (gtk_range_get_property):
4113         * gtk/gtkviewport.c (gtk_viewport_get_property):
4114         * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
4115         possible NULL pointer.
4116
4117 2002-01-08  Mike Kestner  <mkestner@speakeasy.net>
4118
4119         * gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
4120         * gtk/gtktreednd.h : ditto.
4121         * gtk/gtktreemodel.h : ditto.
4122         * gtk/gtktreesortable.h : ditto.
4123         * gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
4124
4125 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
4126
4127         * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather 
4128         than XIDs in the docs.
4129
4130         * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
4131
4132 Tue Jan  8 18:39:23 2002  Jonathan Blandford  <jrb@redhat.com>
4133
4134         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
4135         Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
4136
4137 Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
4138
4139         * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
4140         Handle TOGGLE/RADIOBUTTON as well. (#68201,
4141         Damon Chaplin.)
4142
4143         * gtk/gtktoolbar.c (get_first_child): Fix stupid 
4144         bug, just introduced.
4145
4146 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
4147
4148         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
4149         translations, once and for all.
4150
4151         * gtk/gtktextbuffer.c (paste_from_buffer): Free
4152         the ClipboardRequest structure. (#66198, HideToshi
4153         Tajima)
4154
4155 2002-01-08  jacob berkman  <jacob@ximian.com>
4156
4157         * gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
4158         the child rather than the layout. see bug #68263
4159
4160 Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
4161
4162         * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
4163         the handle if we aren't showing both children.
4164         (#68135, Diego Gonzalez)
4165
4166 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
4167
4168         * gtk/gtkwidget.c (gtk_widget_add_events): Fix
4169         leak of result of gtk_container_get_children().
4170
4171 Tue Jan  8 14:42:19 2002  Owen Taylor  <otaylor@redhat.com>
4172
4173         * gtk/gtktoolbar.c: Fix leaks of results of
4174         gtk_container_get_children(). (#68199, Damon Chaplin)
4175
4176 Tue Jan  8 14:19:43 2002  Owen Taylor  <otaylor@redhat.com>
4177
4178         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): 
4179         Fix problem where child->requisition was accessed
4180         directly instead of calling get_child_requisition()
4181         (#68199, Damon Chaplin)
4182
4183 2001-01-08  James Henstridge  <james@daa.com.au>
4184
4185         * gtk/gtkstyle.c: add trailing */ on doc comment.
4186
4187 Mon Jan  7 22:19:32 2002  Owen Taylor  <otaylor@redhat.com>
4188
4189         * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
4190         problem where were the offset into the image was passed
4191         into convert_to_format() wrong.
4192
4193         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
4194         gdk_x11_drawable_update_picture_clip () before using
4195         the picture; allow update_picture_clip() to take a NULL gc
4196         to mean no clipping.
4197
4198 2002-01-07  Matthias Clasen  <matthiasc@poet.de>
4199
4200         * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
4201
4202         * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
4203
4204         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
4205
4206         * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
4207
4208         * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
4209         gtk/gtkwidget.c (gtk_widget_get_toplevel, 
4210         gtk_widget_push_composite_child), gtk/gtkdialog.c 
4211         (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
4212         from messing up the indentation of inline examples.     
4213
4214         * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv() 
4215         instead of getenv().
4216
4217         * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
4218         gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
4219         gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
4220
4221         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
4222         gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
4223         Document.
4224
4225 2002-01-07  Anders Carlsson  <andersca@gnu.org>
4226
4227         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
4228         unused pixels and rowstride variables.
4229         (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
4230
4231 Mon Jan  7 08:48:23 2002  Tim Janik  <timj@gtk.org>
4232
4233         * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
4234         the pointer by x/y_offset into the new window when we found
4235         the drag destination.
4236
4237         * gtk/gtkaccelmap.c (internal_change_entry): fix return code
4238         for simulation when the entry already contains the required
4239         accel key and mod.
4240
4241 2002-01-06  Matthias Clasen  <matthiasc@poet.de>
4242  
4243         * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by 
4244         G_DISABLE_CAST_CHECKS.
4245
4246         * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
4247         gtk_accel_group_query, gtk_accel_group_find,
4248         gtk_accel_groups_from_object): Document.
4249
4250         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
4251
4252 2002-01-04  Hans Breuer  <hans@breuer.org>
4253
4254         * gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c : 
4255         need to cast image->mem away from void* to avoid 
4256         'error C2036: 'void *' : unknown size'. Doing pointer 
4257         arithmetics on void pointers is a GCCism afaik.
4258
4259         * gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
4260         _gdk_draw_pixbuf ()
4261
4262         * gdk/makefile.msc gdk/win32/makefile.msc 
4263         gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
4264
4265         * gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
4266         and take care of image->visual possibly NULL.
4267
4268         * gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
4269         _gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
4270         Again take care of image->visual possibly NULL.
4271
4272         * gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
4273
4274         * gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
4275         instead of private field access
4276
4277         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
4278         colormap setting to the gdk-X behaviour
4279
4280 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
4281
4282         * gtk/gtkwidget.c: Documentation additions.
4283
4284 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
4285
4286         * gtk/gtkobject.c (gtk_object_dispose): Fix a comment.
4287
4288         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
4289
4290 2002-01-04  Havoc Pennington  <hp@pobox.com>
4291
4292         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
4293         
4294 Fri Jan  4 13:05:15 2002  Owen Taylor  <otaylor@redhat.com>
4295
4296         * gtk/gtkdnd.c (gtk_drag_find_widget): At least
4297         don't infinite loop if the widget and window heirarchies
4298         don't correspond.
4299
4300         * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes
4301         in heirarchy in ::drag_motion, ::drag_drop callbacks
4302         by referencing child widget lists. (Patch from Tim)
4303
4304         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem
4305         with widgets where window.x != widget->allocation.x
4306
4307 Fri Jan  4 01:36:48 2002  Owen Taylor  <otaylor@redhat.com>
4308
4309         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Optimize
4310         a little bit. (More for consistency than because it
4311         makes much of a difference.)
4312
4313 Thu Jan  3 22:18:15 2002  Owen Taylor  <otaylor@redhat.com>
4314
4315         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
4316         (_gdk_x11_have_render): Private function to tell if we have RENDER
4317         extension.
4318
4319         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
4320         None if we don't have RENDER extension.
4321
4322         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
4323         use Xft unless we have render extension.
4324
4325         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
4326         Handle missing render extension.
4327
4328         * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
4329         gdk/gdkinternals.h: Add a private copy_to_image() virtual function
4330         to the GdkDrawable vtable that extends get_image() to allow
4331         copying onto existing images.  Make the default implementation of
4332         get_image() use this so that backends don't have to implement
4333         both. Add private wrapper _gdk_drawable_copy_to_image().
4334
4335         * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
4336         gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
4337         copy_to_image() semantics, speed up by using ShmPixmaps and
4338         XCopyArea when possible, XFlush() after ungrabbing the server,
4339         generally redo the logic once again.
4340
4341         * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
4342         _gdk_windowing_bits_per_depth(): Function to convert from depth to
4343         bits-per-pixel. (We assume only one bpp per depth - X requires
4344         this.)
4345
4346         * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
4347         scratch image code into a generic _gdk_image_get_scratch() chunk
4348         of code that we can use other places we need scratch images.
4349
4350         * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
4351         Add _gdk_image_new_for_depth() as the backend 
4352         to _gdk_image_new() to allowing creating images with
4353         a depth and no visual.
4354
4355         * gdk/gdkpixbuf-drawable.c: Fix so that getting 
4356         parts of images not at 0,0 actually works.
4357
4358         * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
4359         gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c: 
4360          - Add a new GdkDrawableClass vfunc _draw_pixbuf, and 
4361           _gdk_draw_pixbuf() [ will be made public later ], to allow 
4362           backends to accelerate drawing pixbufs. 
4363          - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
4364            to be the default implementation. 
4365          - Update docs for gdk_pixbuf_render_to_drawable_alpha(). 
4366          - Optimize the default implementation by using 
4367            _gdk_image_copy_to_pixmap() and scratch shared images, and
4368            special casing the compositing.
4369
4370         * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
4371         with alpha using the RENDER extension.
4372
4373         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
4374         Optimize by _gdk_image_copy_to_pixmap() and scratch images.
4375
4376         * tests/testrgb.c: Add test for speed of alpha composition,
4377         reduce the number of iterations since alpha composition
4378         can be a bit slow.
4379
4380         * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap): 
4381         Private function to get a ShmPixmap for an image, if possible.
4382
4383 2002-01-04  Anders Carlsson  <andersca@gnu.org>
4384
4385         * tests/testtreesort.c: Add my cool list of integers.
4386
4387 Thu Dec 27 18:12:55 2001  Owen Taylor  <otaylor@redhat.com>
4388
4389         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Fix
4390         problem where retrieved atoms weren't properly returned.
4391
4392 2002-01-03  Anders Carlsson  <andersca@gnu.org>
4393
4394         * gtk/gtktextview.c (gtk_text_view_key_press_event): When
4395         tab is pressed and the text view isn't editable, 
4396         move the focus instead.
4397
4398         * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
4399         necessary.
4400
4401         * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list.
4402
4403         * gtk/gtkcolorsel.c (get_focus_gc): Free dash list.
4404
4405         * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask
4406         if it's NULL.
4407
4408         * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
4409         _gtk_tree_view_queue_draw_node.
4410         (gtk_tree_view_row_has_child_toggled): Only redraw one node.
4411
4412         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): 
4413         sort_column_id can be 0.
4414
4415         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
4416         Only redraw one the node being selected.
4417
4418         * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
4419         
4420 Wed Jan  2 23:09:06 2002  Tim Janik  <timj@gtk.org>
4421
4422         * gtk/gtkcontainer.c (_gtk_container_queue_resize): don't ignore
4423         realized but visible && !mapped resize containers (which is
4424         possible with unset CHILD_VISIBLE now).
4425
4426 2002-01-02  jacob berkman  <jacob@ximian.com>
4427
4428         * gtk/Makefile.am (LDFLAGS): automake still doesn't support
4429         libsomething_la_LDFLAGS, so fix the build again
4430
4431 2002-01-01  Havoc Pennington  <hp@pobox.com>
4432
4433         * gtk/gtktextview.c (gtk_text_view_expose_event): propagate
4434         exposes to no window children not in the buffer window.
4435         (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab
4436         - is this the right way to do it?
4437         (gtk_text_view_focus): add focus method, just chains up for now, 
4438         I'm not sure why the GtkContainer implementation doesn't work
4439
4440         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill
4441         in the text line for the child anchor segment
4442
4443         * tests/testtext.c (do_add_focus_children): add another test
4444         example (to put focusable buttons into the widget)
4445
4446 2002-01-01  Havoc Pennington  <hp@pobox.com>
4447
4448         * docs/README.linux-fb: note that this file is obsolete
4449
4450         * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
4451         files that they should not be edited and look in the reference 
4452         manual instead. Probably these files should just be replaced by 
4453         the note, and their main contents deleted.
4454
4455         * gtk/gtktextview.c: docs
4456
4457         * gtk/gtktextmark.c: docs
4458
4459         * gtk/gtktextchild.c: docs
4460
4461         * gtk/gtktextbuffer.c: docs stuff
4462
4463         * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
4464         give people more leads in sorting out PRIMARY vs. CLIPBOARD
4465
4466 2002-01-01  Tor Lillqvist  <tml@iki.fi>
4467
4468         * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
4469         ../gdk-pixbuf/gdk-pixbuf-csource.
4470
4471 2001-12-31  Tor Lillqvist  <tml@iki.fi>
4472
4473         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
4474         handling.
4475         (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
4476
4477         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
4478         -Wall.  Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
4479         one more place.
4480
4481         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
4482         -Wall.
4483
4484         * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
4485
4486 2002-01-01  Havoc Pennington  <hp@pobox.com>
4487
4488         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc 
4489         fix
4490         
4491 2002-01-01  Havoc Pennington  <hp@pobox.com>
4492
4493         * gtk/gtktextview.c (changed_handler): Replace call to
4494         gtk_widget_size_request() that expected to actually compute the
4495         request with a direct use of widget_class->size_request, so we get
4496         our size request right; fixes remaining part of #63065 reported by
4497         Matthias Clasen
4498
4499 2001-12-31  Havoc Pennington  <hp@pobox.com>
4500
4501         * tests/testtext.c (do_insert_and_scroll): remove backward_char
4502         since we no longer have bogus newline
4503         (dialog_response_callback): remove another backward_char horkage, 
4504         reported by Matthias Clasen #63065
4505
4506 2001-12-31  Havoc Pennington  <hp@pobox.com>
4507
4508         * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
4509         fix an incorrect assertion that the "valid" flag is always correct
4510         in a node and add explanatory comment. This keeps me from 
4511         reproducing #59101, but I'm remembering that 59101 was actually 
4512         about incorrect pixel totals, so I'm not sure 59101 is actually 
4513         fixed. May just have stopped happening due to some change in 
4514         how C-k works.
4515
4516 2001-12-31  Havoc Pennington  <hp@pobox.com>
4517
4518         * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
4519         selection if shift is down, bug #50939
4520         (gtk_text_view_button_press_event): add double/triple click
4521         selection to the current selection if shift is down
4522
4523 2001-12-31  Havoc Pennington  <hp@pobox.com>
4524
4525         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix 
4526         to use ensure_byte_offsets not ensure_char_offsets, patch 
4527         from Padraig O'Briain bug #67356
4528         
4529 2001-12-30  Havoc Pennington  <hp@pobox.com>
4530
4531         * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have 
4532         the right values, reported by Jeff Franks
4533
4534 2001-12-30  Matthias Clasen  <matthiasc@poet.de>
4535
4536         * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
4537
4538 2001-12-28  Matthias Clasen  <matthiasc@poet.de>
4539
4540         * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c: 
4541         Minor documentation tweaks.
4542
4543 2001-12-28  Tor Lillqvist  <tml@iki.fi>
4544
4545         * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
4546         (unicode_classify): Don't return -1 on encountering an
4547         unclassified character, but play it safe and return U_BASIC_LATIN.
4548
4549 Thu Dec 27 16:05:30 2001  Owen Taylor  <otaylor@redhat.com>
4550
4551         * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
4552         of misc->xpad/ypad consistent with GtkLabel. Do 
4553         directional flipping when interpreting misc->xalign/yalign.
4554         Fix off-by-one error for negative x,y. (#67472, reported
4555         by Mathieu Lacage)
4556
4557 Thu Dec 27 15:45:41 2001  Owen Taylor  <otaylor@redhat.com>
4558
4559         * gtk/gtkwidget.c (gtk_widget_set_style_internal):
4560         Remove optimization that was causing problems because
4561         we called gtk_widget_size_request() before we called
4562         gtk_widget_queue_resize() so RESIZE_NEEDED was not
4563         set. Optimization shouldn't mattter now that we
4564         are smart about needlessly size requesting or allocating
4565         widgets. (#67598, reported by Jacob Berkman)
4566
4567 Thu Dec 27 15:38:20 2001  Owen Taylor  <otaylor@redhat.com>
4568
4569         * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
4570         Call gdk_window_get_pointer() on menu->bin_window not
4571         menu->window, so we get the correct window for the
4572         menu item. (#65213, Guillermo S. Romero)
4573
4574 Thu Dec 27 15:13:44 2001  Owen Taylor  <otaylor@redhat.com>
4575
4576         * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
4577         the title by setting to NULL. Move docs inline. 
4578         Update the title if the tearoff window already
4579         exists. Code cleanup. (Fixes #65190, reported by
4580         Vitaly Tishkov.)
4581
4582 Thu Dec 27 14:04:22 2001  Owen Taylor  <otaylor@redhat.com>
4583
4584         * gtk/gtksocket.c (gtk_socket_key_press_event): 
4585         gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
4586         special handling of key presses unless we are doing 
4587         iter-app embedding. (Fixes #67590, Anders Carlsson)
4588
4589 Thu Dec 27 16:37:04 2001  Kristian Rietveld  <kris@gtk.org>
4590
4591         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
4592         (gtk_tree_model_sort_sort_level),
4593         (gtk_tree_model_sort_insert_value): fix a few places where
4594         I was confused between modelsort iters and other iters. This was
4595         really going to happen someday ;)
4596
4597 Wed Dec 26 23:41:41 2001  Kristian Rietveld  <kris@gtk.org>
4598
4599         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
4600         we are unprelighted before reordering
4601
4602         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
4603         need to break out of the for loop, not return (this fixed
4604         the 'selection freeze' bug).
4605
4606         * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
4607         be pretty stable now, though it still needs some more code
4608         cleanups.
4609
4610 Wed Dec 26 12:32:31 2001  Owen Taylor  <otaylor@redhat.com>
4611
4612         * docs/Changes-2.0.txt: Document the fact that
4613         gtk_paned_set_handle_size() has been removed.
4614
4615         * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro, 
4616         since it pointed to gtk_paned_set_handle_size(), which
4617         was removed. (#66760, Matt Wilson)
4618
4619 Wed Dec 26 12:28:24 2001  Owen Taylor  <otaylor@redhat.com>
4620
4621         * gtk/gtkdnd.c (gtk_drag_highlight): Connect 
4622         gtk_drag_hightlight_expose _after_, so it works with
4623         widgets that paint there entire background. (#66735)
4624
4625 Wed Dec 26 12:17:06 2001  Owen Taylor  <otaylor@redhat.com>
4626
4627         * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
4628         allocation to widget->allocation. (Fixes #67290,
4629         Chris Phelps.)
4630
4631 Wed Dec 26 11:49:01 2001  Owen Taylor  <otaylor@redhat.com>
4632
4633         (#67542, reported by Anders Carlsson)
4634         
4635         * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
4636         rc_style->font_desc with defaul style instead of replacing
4637         it.
4638
4639         * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
4640         font descriptions in RC styles by calling
4641         pango_font_description_merge(). 
4642
4643 2001-12-24  James Henstridge  <james@daa.com.au>
4644
4645         * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
4646         valid with both SGML and XML.
4647
4648 Sat Dec 22 12:38:03 2001  Owen Taylor  <otaylor@redhat.com>
4649
4650         * configure.in: 1.3.12, interface, binary age 0.
4651
4652         * configure.in: Require new versions of Glib, Pango, ATK.
4653
4654         * NEWS: Updated.
4655
4656         * configure.in: Make explicit what libtool we are executing.
4657         (Tomas Ogren)
4658
4659         * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
4660
4661         * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix 
4662         parameter names for docs.
4663
4664 Sat Dec 22 22:35:29 2001  Owen Taylor  <otaylor@redhat.com>
4665
4666         * gtk/gtkwindow.c (gtk_window_realize) 
4667           gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
4668
4669         * gtk/gtkentry.c (gtk_entry_key_release)
4670           gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
4671         key release events to the input method.
4672
4673         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
4674         Handle release of Control/Shift to end hex sequence.
4675
4676         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress): 
4677         Handle key releases as well as presses.
4678
4679 2001-12-21  Matthias Clasen  <matthiasc@poet.de>
4680
4681         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
4682
4683         * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
4684         gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
4685         documentation about underscores and mnemonics. (#66380)
4686
4687         * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
4688         cyclic reference in docs.
4689
4690         * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
4691         of default value. (#65402)
4692
4693         * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale): 
4694         Markup fixes.
4695
4696 2001-12-20  Anders Carlsson  <andersca@gnu.org>
4697
4698         * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
4699         map here.
4700
4701 Tue Dec 18 16:15:55 2001  Owen Taylor  <otaylor@redhat.com>
4702
4703         * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
4704         (reported by Jeff Franks.)
4705
4706 Tue Dec 18 16:07:28 2001  Owen Taylor  <otaylor@redhat.com>
4707
4708         * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix 
4709         prototype for direction_changed. (Reported by
4710         Jeff Franks.)
4711
4712 2001-12-18  Padraig O'Briain <padraig.obriain@sun.com>
4713
4714         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
4715         Fix typo (list->data becomes list->next)
4716
4717 2001-12-06  Havoc Pennington  <hp@redhat.com>
4718
4719         Add Unicode control char menu, based on patch from Dov.
4720         Bug #63495
4721         
4722         * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
4723         gtk_entry_enter_text
4724         (gtk_entry_enter_text): function to do "typing in text"
4725         (popup_targets_received): add the Unicode menu items
4726
4727         * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
4728         on Input Methods item, and add the unicode menu items.
4729
4730         * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
4731         used in GtkEntry and GtkTextView - may become public later.     
4732
4733 2001-12-16  Kjartan Maraas  <kmaraas@gnome.org>
4734
4735         * gtk/gtkprogressbar.c: Fix a typo.
4736         * gtk/gtkpaned.c: Fix a typo.
4737         
4738 2001-12-15  Darin Adler  <darin@bentspoon.com>
4739
4740         Fix some warnings.
4741
4742         * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
4743         g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
4744         * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
4745         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
4746         * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
4747         * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
4748         Restructure loop to get rid of uninitialized variable warning. Also
4749         gives a tiny efficiency gain.
4750
4751 2001-12-15  Murray Cumming  <murrayc@usa.net>
4752
4753         * Fixed first arg type of GtkScale's "format_value" signal's
4754         function pointer.
4755
4756 2001-12-14            Vitaly Tishkov       tvv@sparc.spb.su
4757         docs/reference/gtk/tmpl/gtkcelleditable.sgml
4758                 gtkcelleditable -> GtkCellEditable
4759         docs/reference/gtk/tmpl/gtktreesortable.sgml
4760                 gtktreesortable -> GtkTreeSortable
4761
4762 2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4763
4764         * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
4765         demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
4766         and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
4767         resp.
4768
4769 Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>
4770
4771         * gtk/gtktreeview.c (validate_visible_area): free path
4772         at the end
4773
4774 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
4775
4776         * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
4777
4778 Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>
4779
4780         * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
4781         to find the clicked node in the tree when tree == NULL
4782
4783 2001-12-13  Anders Carlsson  <andersca@gnu.org>
4784
4785         * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare 
4786         event->state with the default mod mask. 
4787
4788 2001-12-12  jacob berkman  <jacob@ximian.com>
4789
4790         * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
4791
4792 Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
4793
4794         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
4795         Reset the existing slave before removing it to give
4796         it a chance to commit and emit "preedit_changed" 
4797         in case there was still a preedit string.
4798
4799 2001-12-12  Matthias Clasen  <matthiasc@poet.de>
4800         
4801         * gtk/gtktextlayout.c: Typo fixes
4802         * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
4803
4804         * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel, 
4805         gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
4806
4807         * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
4808
4809 Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>
4810
4811         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
4812         validate_rows_timer in unrealize.  Reported by Matthew Wilson.
4813
4814 Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
4815
4816         * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
4817         "prepainting" the menu before realizing other than
4818         via gtk_style_set_background() - this was broken when
4819         we added menu scroll support.
4820
4821         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
4822         window in the expose event -- fixes problem with border
4823         flashing during scrolling.
4824
4825 Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
4826
4827         * gtk/gtksettings.c (gtk_settings_get_property): Support
4828         using names/nicks for the gdk_settings values for enum valued
4829         types. (#57678, reported by Anders Carlsson)
4830
4831 Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>
4832
4833         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
4834         with insert_page_menu.  Code duplication is bad.
4835
4836         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
4837         wrong fix yesterday.
4838
4839 Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
4840
4841         * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
4842         modifiers.
4843
4844 2001-12-12  James Henstridge  <james@daa.com.au>
4845
4846         * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
4847         (menu_item)->accel_path first when looking up the accel path.
4848
4849 Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>
4850
4851         * tests/testgtk.c (layout_expose_handler): Only draw
4852         for events on the bin window.
4853
4854 Tue Dec 11 18:55:16 2001  Jonathan Blandford  <jrb@redhat.com>
4855
4856         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
4857         mnemonics work with notebooks.
4858
4859 Tue Dec 11 15:25:06 2001  Jonathan Blandford  <jrb@redhat.com>
4860
4861         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
4862         bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
4863         Makes some flicker while scrolling go away.
4864
4865 2001-12-11  Michael Natterer  <mitch@gimp.org>
4866
4867         * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
4868         adds alpha to the pixbuf; re-load the saved pixbuf and
4869         pixel-by-pixel compare it with the original one.
4870
4871 Tue Dec 11 15:39:08 2001  Soeren Sandmann  <sandmann@daimi.au.dk>
4872
4873         * ChangeLog: Fix wrong ChangeLog entry
4874         * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
4875         right corner
4876
4877 2001-12-10  jacob berkman  <jacob@ximian.com>
4878
4879         * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer): 
4880         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
4881         (gdk_keyboard_grab): do not grab things if the nograb debug flag
4882         is set
4883
4884         * gdk/gdkinternals.h: 
4885         * gdk/gdk.c: add nograbs debug flag to disable grabs of the
4886         keyboard / mouse
4887
4888 Mon Dec 10 19:42:29 2001  Jonathan Blandford  <jrb@redhat.com>
4889
4890         * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
4891         didn't reset the timer.
4892
4893 2001-12-10  Matthias Clasen  <matthiasc@poet.de>
4894
4895         * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
4896
4897 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
4898
4899         * gtk/gtkviewport.c: Add docs.
4900
4901 Mon Dec 10 16:21:38 2001  Jonathan Blandford  <jrb@redhat.com>
4902
4903         * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
4904         RBTree corruption bug--
4905
4906 2001-12-10  Anders Carlsson  <andersca@gnu.org>
4907
4908         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
4909         if edited_column is NULL, also grab focus before removing
4910         the cell_editable.
4911
4912 Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
4913
4914         * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
4915           denominator in the horizontal case just like we do in the vertical
4916           case (why I didn't notice that there were two cases the first time
4917           around is beyond me:).  Also fix indentation in the vertical case.
4918
4919 2001-12-09  Anders Carlsson  <andersca@gnu.org>
4920
4921         * gdk/x11/gdkevents-x11.c: Update xsettings name.
4922
4923         * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
4924         gtk-dnd-drag-threshold GtkSetting.
4925
4926         * gtk/gtksettings.c (gtk_settings_class_init): Add 
4927         setting for dnd drag threshold.
4928
4929 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
4930
4931         * gtk/gtkcontainer.c: Add docs.
4932
4933 2001-12-08  Matthias Clasen  <matthiasc@poet.de>
4934
4935         * gtk/gtkwidget.c: Doc markup fix. 
4936
4937         * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
4938
4939         * gtk/gtktreestore.c: Typo fixes. (#66445)
4940
4941         * gtk/gtkaccelgroup.c: Misc doc markup. (#66425) 
4942
4943         * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
4944         to gtk_clipboard_set_with_owner(). (#66424)
4945  
4946 Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>
4947
4948         * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
4949         "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
4950         Fabrice Bellet <fabrice@gnu.org>, #54127).
4951
4952 Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>
4953
4954         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
4955         of places, so that people with crashy trees can just run their
4956         program with GTK_DEBUG=TREE.
4957
4958 Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>
4959
4960         * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
4961         per jrb's request
4962
4963 2001-12-08  Anders Carlsson  <andersca@gnu.org>
4964
4965         * tests/testgtk.c (layout_expose_handler): Don't return TRUE
4966         since then the default GtkLayout expose handler won't be called.
4967
4968 Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@redhat.com>
4969
4970         * gtk/gtktreeview.c (validate_rows_handler): remove
4971         g_return_if_fail.
4972
4973         * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
4974         Singh <yosh@gimp.org> to fix bug when rendering Tree with an
4975         empty model.
4976
4977 Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>
4978
4979         * gtk/gtktreeview.c (validate_visible_area): get logic right,
4980         #66249
4981
4982         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
4983         removing a node ended up with a corrupt tree.  Really really nasty
4984         bug.
4985         (_gtk_rbtree_debug_spew): new debug helper function
4986         (_fixup_validation): new inline function to clean up code
4987         readability a lot. 
4988
4989 Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
4990
4991         * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
4992         Close comment.
4993
4994 2001-12-07  Matthias Clasen  <matthiasc@poet.de>
4995
4996         * gtk/gtkstyle.h: Typo fixes.
4997
4998         * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
4999
5000         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
5001
5002 Fri Dec  7 16:05:22 2001  Owen Taylor  <otaylor@redhat.com>
5003
5004         * modules/input/gtkimcontextxim.c: Display the XIM
5005         status callbacks with a popup window. (Patch from
5006         HideToshi Tajima, #50628, somewhat modified.)
5007
5008 Fri Dec  7 12:07:15 2001  Tim Janik  <timj@gtk.org>
5009
5010         * gtk/Makefile.am: each source generation rule needs to use its own
5011         temporary file, to avoid clashes for parallel builds. fixed rules
5012         for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
5013
5014 2001-12-07  Havoc Pennington  <hp@pobox.com>
5015
5016         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
5017         "cursors that are actually useful" in gdk_cursor_new() docs
5018
5019 Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
5020
5021         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
5022         in computing the size of the second child.
5023
5024 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
5025
5026         * gtk/gtkrange.c: Make button 1 clicks on the trough
5027         do pages, button 3 steps. (Patch from Hans Breuer
5028         #63735)
5029
5030 2001-12-06  Matthias Clasen  <matthiasc@poet.de>
5031
5032         * gtk/gtklabel.c: Fix docs. (#66383)
5033
5034         * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. 
5035         (#66278, #66280)
5036         
5037         * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
5038         gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
5039
5040         * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
5041         Don't emit a g_warning() about being deprecated. (#66208)       
5042
5043         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
5044
5045         * gtk/gtkcontainer.c: Doc fixes.
5046         
5047         * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
5048
5049         * gtk/gtkstyle.c (gtk_style_attach): Add docs.
5050
5051 2001-12-05  Sven Neumann  <sven@gimp.org>
5052
5053         * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
5054
5055         * gtk/queryimmodules.c: g_dir_read_name() returns const.
5056
5057 Tue Dec  4 21:46:13 2001  HideToshi Tajima  <hidetoshi.tajima@sun.com>
5058
5059         * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
5060         #66225
5061         
5062 2001-12-04  Manish Singh  <yosh@gimp.org>
5063
5064         * gtk/gtkmain.c
5065         * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
5066         a gpointer.
5067
5068         * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
5069         correction to docs.
5070
5071         * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
5072
5073 2001-12-04  Havoc Pennington  <hp@redhat.com>
5074
5075         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
5076         g_assert_not_reached() that was bogus, since we demand-create the
5077         tag info. reported by Chris Phelps
5078
5079         Jump through assorted hoops to fix bug from Chris Phelps where 
5080         removing tags from the table resulted in btree trying to 
5081         access tag->table
5082         
5083         * gtk/gtktextbuffer.c: set up mechanics of adding/removing 
5084         ourselves to the tag table
5085
5086         * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) 
5087         (_gtk_text_tag_table_remove_buffer): private cruft to 
5088         let us notify buffer of disappearing tags
5089
5090         * gtk/gtktexttag.h: remove BTreeNode typedef from this public
5091         header, put it in tagprivate    
5092
5093         * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
5094         tag_removed; it's emitted too late.
5095         (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
5096         this
5097
5098         Padding for ABI-compat expansion
5099         
5100         * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
5101         (struct _GtkTextAppearance): one pad in here too
5102
5103         * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
5104
5105         * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
5106         since action signals etc. seem pretty likely
5107
5108         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
5109
5110         * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
5111
5112         * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
5113
5114 2001-12-04  Matthias Clasen  <matthiasc@poet.de>
5115
5116         * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
5117
5118         * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
5119
5120         * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
5121
5122 Tue Dec  4 18:51:44 2001  Jonathan Blandford  <jrb@redhat.com>
5123
5124         * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
5125         #62084.
5126
5127 Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>
5128
5129         * demos/gtk-demo/main.c: (create_tree): Minor fix.
5130
5131         * docs/tree-column-sizing.txt: Update
5132
5133         * gtk/gtkrbtree.[ch]: Massive work to support validation.
5134
5135         * gtk/gtktreemodel.c: Doc fixes.
5136
5137         * gtk/gtktreeview.c: Incremental reflow added.
5138         * gtk/gtktreeviewcolumn.c: ditto
5139         * gtk/gtktreeviewcolumn.h: ditto
5140
5141 2001-12-04  Havoc Pennington  <hp@redhat.com>
5142         
5143         * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
5144         "invisible" property, #65999
5145
5146 2001-12-04  Matt Wilson  <msw@redhat.com>
5147
5148         * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
5149
5150 Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
5151
5152         * gtk/gtksettings.c (gtk_settings_set_property_value):
5153         Simplify, make more efficient and fix memory leak
5154         when turning quark into a string. (#66103, HideToshi
5155         Tajima)
5156
5157         * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
5158         init() and unref priv->tooltips in destroy rather
5159         than calling gtk_object_destroy() which has no
5160         effect on memory management. (#66104, HideToshi
5161         Tajima)
5162
5163         * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
5164         so we free the when the object is freed. (Fixes memory
5165         leak, #66096, HideToshi Tajima)
5166
5167         * gdk/gdkevents.c (gdk_synthesize_window_state): Use 
5168         a full GdkEvent structure to avoid reads of uninitialized/
5169         invalid memory in gdk_event_put() (#65877, patch
5170         from Hidetoshi Tajima)
5171
5172 Tue Dec  4 11:06:54 2001  Owen Taylor  <otaylor@redhat.com>
5173
5174         * gtk/gtkmenuitem.c: Revert my last mistaken change - 
5175         toggle-size-request doesn't take a requisition.
5176
5177         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
5178         reference to marshaler that no longer exists.
5179
5180 Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>
5181
5182         Patch from Bill Haneman (with many modifications) to make
5183         the focus color work on dark themes and to make the
5184         focus line width configurable. (#61079, #63074)
5185
5186         * gtk/gtkwidget.c: Add style properties, 
5187         ::focus-widget, ::focus-line-width, and ::focus-padding.
5188
5189         * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a 
5190         state argument as well so we can use fg[STATE] to
5191         draw instead of always drawing with black. 
5192         Cange paint_focus() to respect GtkWidget::focus-width
5193         and GtkWidget::focus-line-pattern. Fix continuity
5194         problem where the default 1-1 stipple had a blob
5195         in one corner and a gap in the other. Change the
5196         interpretation of x/y/width/height to be the bounding
5197         box of the focus rect instead of the rectangle
5198         passed to gdk_draw_rectangle.
5199
5200         * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c 
5201         gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c 
5202         gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width 
5203         and ::focus-line-padding.
5204
5205         * gtk/gtkentry.c: Handle :;focus-width property; cleanup
5206         and remove duplicated code; fix drawing of focus rectangle
5207         when interior-focus = FALSE. (#63072, #63073)
5208
5209         * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
5210         gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
5211         Range and TreeViewColumn will need more extensive fixing.
5212
5213         * gtk/gtkcolorsel.c: Honor focus line attributes when
5214         drawing the focus on the color swatches. (#63071)
5215
5216         * gtk/gtkhsv.c: Honor focus line attributes when
5217         drawing the focus for the ring and triangle.
5218
5219         * docs/widget_geometry.txt: Start at documenting how 
5220         various widgets are drawn.
5221
5222         * gtk/gtkbutton.c (_gtk_button_paint): Export 
5223         _gtk_button_paint() librarywide, so we don't have 
5224         duplicate a bunch of code in gtktogglebutton.c.
5225
5226         * gtk/gtktogglebutton.c: Use _gtk_button_paint().
5227
5228 Mon Dec  3 21:04:13 2001  Jonathan Blandford  <jrb@redhat.com>
5229
5230         * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
5231         NONE:POINTER.
5232
5233 2001-12-03  Alex Larsson  <alexl@redhat.com>
5234
5235         * gtk/gtkaccellabel.c:
5236         * gtk/gtkarrow.c:
5237         * gtk/gtkcolorsel.c:
5238         * gtk/gtkcontainer.c:
5239         * gtk/gtklabel.c:
5240         * gtk/gtktextview.c:
5241         * gtk/gtktogglebutton.c:
5242         * gtk/gtktreeview.c:
5243         * gtk/gtkwindow.c:
5244         Return FALSE from expose handlers.
5245
5246 Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>
5247
5248         * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
5249         we use pointers, we should free the previous pointer first (if
5250         it exists), before we set a new pointer. (#64726)
5251
5252         * gtk/gtktreeprivate.h: get rid of cursor_drag
5253
5254         * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check     
5255         for cursor_drag
5256         (gtk_tree_view_bin_expose): don't directly return in the while
5257         loop
5258         (gtk_tree_view_class_init): indentend expanders by default
5259         (gtk_tree_view_header_focus): only give the button focus
5260         if it's clickable, visible and the column is reorderable
5261         (#65539)
5262
5263         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
5264         create and free cursor
5265
5266 Mon Dec  3 10:23:07 2001  Owen Taylor  <otaylor@redhat.com>
5267
5268         * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
5269         some bugs with size requisition. (From Bill Haneman)
5270
5271         * gtk/gtkcalendar.c: Draw headers and selection in 
5272         base/text[SELECTED] instead of fg/bg[SELECTED].
5273
5274         * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
5275         code and formatting.
5276
5277 2001-12-03  Havoc Pennington  <hp@pobox.com>
5278
5279         * gtk/gtktextview.c (set_window_height): 
5280         (set_window_width): Hmm, setter functions normally assign the new
5281         value to the object field. Reported by Chris Phelps.
5282
5283 2001-11-30  jacob berkman  <jacob@ximian.com>
5284
5285         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
5286         signal id to 0 after we disconnect from it
5287
5288 2001-11-30  Matthias Clasen  <matthiasc@poet.de>
5289
5290         * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
5291         gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
5292         gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
5293         gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.
5294
5295         * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not 
5296         GTK_DISABLE_DEPRECATED.
5297
5298         * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
5299         gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
5300
5301 Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
5302
5303         * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
5304         move/resize code, removing various bad, non-functional
5305         hacks. (Fixes #65048, reported by Damon Chaplin.)
5306
5307 Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
5308
5309         * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix 
5310         bad match error when target drawable is not the 
5311         same depth as the root window. (#65841)
5312
5313         * HACKING: Update.
5314
5315 2001-11-29  Matthias Clasen  <matthiasc@poet.de>
5316
5317         * gdk/gdkwindow.c: Typo fix.
5318
5319 Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
5320
5321         * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
5322         empty menu items to behave like insensitive items (#59456)
5323
5324         * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
5325         next item if the first item in the menu is a tear off item
5326         (#59456-2, suggestion by Matthias Clasen)
5327
5328         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
5329         (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
5330         (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
5331         (gtk_real_menu_shell_activate_current): add check, so empty
5332         menu items behave like insensitive items (#59456)
5333         
5334         * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
5335         the checks more readable ...
5336         
5337         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
5338         (gtk_menu_shell_button_release): causes the menu to dropdown if the
5339         caption is clicked again (#64977)
5340
5341 2001-11-29  Havoc Pennington  <hp@redhat.com>
5342
5343         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
5344         assertion here that we were at the end iterator was not correct;
5345         change code to move us to the end iterator. bug #65731
5346
5347 Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
5348
5349         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
5350         improper use of g_locale_to_utf8() to convert from
5351         latin-1, and do it the easy way by building the string
5352         correctly in the first place.
5353
5354 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
5355
5356         * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
5357         Convert atoms to and from atoms for properties of type XA_ATOM.
5358         (#65555, patch from Hidetoshi Tajima)
5359
5360 Wed Nov 28 18:37:04 2001  Owen Taylor  <otaylor@redhat.com>
5361
5362         * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter 
5363         to avoid problems with Objective C.
5364
5365 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
5366         
5367         * gtk/gtkaccelmap.c: Typo fixes. (#65607)
5368
5369         * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
5370         Fix docs. (#65505)
5371
5372         * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
5373
5374 Wed Nov 28 18:19:12 2001  Owen Taylor  <otaylor@redhat.com>
5375
5376         * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
5377         accounting of menu->tearoff_scrollbar width to here
5378         and make sure we have the correct requisition.
5379
5380         * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
5381         by using gtk_window_move().
5382
5383         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
5384         the requisition to be updated by calling
5385         gtk_widget_size_request() (#65440)
5386
5387         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate): 
5388         queue resize before calling gtk_menu_set_tearoff_state().
5389
5390 Wed Nov 28 22:20:44 2001  Kristian Rietveld  <kristian@planet.nl>
5391
5392         * demos/gtk-demo/editable_cells.c: fix typo
5393
5394         * demos/gtk-demo/list_store.c (add_columns): remove call to
5395         gtk_tree_view_column_set_clickable which didn't make sense
5396
5397 2001-11-28  Havoc Pennington  <hp@redhat.com>
5398
5399         * gtk/gtktextview.c (gtk_text_view_paint): put the warning
5400         explaining the validation error in front of the G_BREAKPOINT
5401
5402         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
5403         process updates with include_children = FALSE instead of TRUE, so
5404         we redraw the range only, not the whole darn window.  Making
5405         GtkRange a NO_WINDOW widget had weirdly caused the text widget
5406         Trace/breakpoint trap bug to become much easier to trigger.
5407
5408 Wed Nov 28 14:12:03 2001  Owen Taylor  <otaylor@redhat.com>
5409
5410         * gdk/Makefile.am (gdk_public_h_sources): Remove reference
5411         to gdkcursors.h.
5412
5413 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
5414
5415         * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
5416
5417         * gdk/gdkcursor.h: Directly include the contents
5418         of gdkcursors.h in the GdkCursorType enum.
5419
5420         * gdk/gdkcursors.h: Deleted.
5421
5422         * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add 
5423         header boilerplate.
5424
5425         * gdk/Makefile.am: Remove the X-derived-headers rule.
5426
5427 Tue Nov 27 20:17:55 2001  Owen Taylor  <otaylor@redhat.com>
5428
5429         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
5430         Notify on the ::active property _here_, not in
5431         gtk_check_menu_item_set_active.
5432
5433 Mon Nov 26 19:11:18 2001  Jonathan Blandford  <jrb@redhat.com>
5434
5435         * gtk/gtkcellrendererpixbuf.c
5436         (gtk_cell_renderer_pixbuf_class_init): add 2 properties
5437         (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
5438
5439 Sun Nov 25 21:19:02 2001  Owen Taylor  <otaylor@redhat.com>
5440
5441         * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
5442         comment about what is going on in this file.
5443
5444         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
5445         x/y problem.
5446
5447 Sun Nov 25 18:59:19 2001  Owen Taylor  <otaylor@redhat.com>
5448
5449         * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size): 
5450         Calculate size based on the _child_ of the menu item,
5451         not the menuitem. (#65005, Damon Chaplin)
5452
5453         * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
5454         some extra vertical padding to the label widget ... restores
5455         GTK+-1.2 spacing. (#65085, Damon Chaplin.)
5456
5457 2001-11-26  Tor Lillqvist  <tml@iki.fi>
5458
5459         * demos/pixbuf-demo.c
5460         * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
5461
5462         * demos/gtk-demo/main.c (read_line): No flockfile() or
5463         getc_unlocked() on Win32.
5464
5465 2001-11-25  Tor Lillqvist  <tml@iki.fi>
5466
5467         * configure.in
5468         * acconfig.h: As we now use GDir, no need to check for dirent.h.
5469
5470 Sun Nov 25 23:18:39 2001  Kristian Rietveld  <kristian@planet.nl>
5471
5472         * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
5473         when finished (#65266)
5474
5475 Sun Nov 25 23:16:29 2001  Kristian Rietveld  <kristian@planet.nl>
5476
5477         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
5478         data after we set the property. (#65264)
5479
5480 Sun Nov 25 23:14:06 2001  Kristian Rietveld  <kristian@planet.nl>
5481
5482         * gtk/gtkbutton.c: add destroy method so label_text gets freed
5483         if it has been allocated (#65268)
5484
5485 Sat Nov 24 13:39:51 2001  Manish Singh  <yosh@gimp.org>
5486
5487         * gdk/linux-fb/gdkdrawable-fb2.c
5488         * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
5489
5490         * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
5491
5492         * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
5493         set_family
5494         
5495         * gdk/linux-fb/gdkfbswitch.c: minor cleanups
5496
5497 Sat Nov 24 22:05:27 2001  Kristian Rietveld  <kristian@planet.nl>
5498
5499         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
5500         deactivate menu when menu_item isn't sensitive (#61389)
5501
5502 Sat Nov 24 15:35:26 2001  Kristian Rietveld  <kristian@planet.nl>
5503
5504         * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
5505         we return (in case of a failure here)
5506
5507 Fri Nov 23 19:22:50 2001  Owen Taylor  <otaylor@redhat.com>
5508
5509         * gtk/gtknotebook.c: Handle events in windows other
5510         than widget->event_window properly. (#65079, reported
5511         by Damon Chaplin)
5512
5513         * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
5514
5515 Fri Nov 23 18:57:46 2001  Owen Taylor  <otaylor@redhat.com>
5516
5517         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
5518         the image at the top. (#65020, request from Seth Nickell)
5519
5520 Fri Nov 23 18:49:53 2001  Owen Taylor  <otaylor@redhat.com>
5521
5522         * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
5523         arithmetic that was resulting in rows being drawn too low.
5524         (#65001, reported by Damon Chaplin)
5525
5526 Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
5527
5528         * gtk/gtkrange.c (gtk_range_button_press): Offset 
5529         invalidated range correctly.
5530
5531         * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling 
5532         of title window. (#65001, reported by Damon Chaplin)
5533
5534         * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
5535         horrible hack with use of ::event_after.
5536
5537 Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
5538
5539         * Version 1.3.11
5540
5541         * configure.in (ATK_REQUIRED_VERSION): Require
5542         GLib-1.3.11, Pango-0.22, ATK-0.7.
5543
5544         * tests/prop-editor.c (property_widget): Restore
5545         to working as well as it did before.
5546
5547         * gtk/gtklistitem.h: Mark deprecated since it is
5548         an integral part of GtkList.
5549
5550         * demos/gtk-demo/demo-common.h: New header file,
5551         for a common functions not important to the meat
5552         of the demos.
5553         
5554         * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
5555         function to search for a file used by the demo.
5556
5557         * demos/*.c: Use demo_find_file.
5558
5559 2001-11-23  Matthias Clasen  <matthiasc@poet.de>
5560
5561         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
5562         gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo 
5563         fixes already mentioned in ChangeLog entry on 2001-11-14.
5564
5565         * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
5566
5567 2001-11-23  Hans Breuer  <hans@breuer.org>
5568
5569         * gdk/win32/gdkfont-win32.c (gdk_font_from_description) : 
5570         reflect Pango API change
5571
5572         * gtk/gtk.def : updated externals
5573
5574         * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use 
5575         g_return_val_if_fail() to avoid 'function must return a value'
5576
5577         * gtk/gtkrc.c : added spaces to fix small coding style issues
5578         * gtk/gtkwidget.c : ... and linebreaks. Also a static for
5579         'static correctness'
5580
5581         * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
5582         because they only can be build on win32 after applying my patch
5583
5584 Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
5585
5586         * gtk/gtkbutton.c (gtk_button_map): raise event window afte
5587         children, in order for the input pnly window to stay *above*
5588         children.
5589
5590 Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
5591
5592         * tests/testtreeview.c: make hackery worse ;) by checking fundamental
5593         type walks againts G_TYPE_FUNDAMENTAL_MAX.
5594         
5595         * tests/prop-editor.c: disable type hackery.
5596
5597 Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
5598
5599         * gdk/gdkimage.c (gdk_image_get): Fix problem with
5600         lost parameter.
5601
5602 Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
5603
5604         * gtk/gtkcellrenderer.h gtk/gtktreemodel.h 
5605         gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
5606         trailing commas in enum declarations.
5607
5608 Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
5609
5610         * configure.in (GTK_MICRO_VERSION): Version 1.3.11, 
5611         interface, binary age 0.
5612
5613         * NEWS: Updates
5614
5615         * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
5616         fixes in docs.
5617
5618         * gtk/gtkmain.h: Remove unused and misnamespaced
5619         get_gtk_win32_directory() prototype.
5620
5621         * gdk/gdkimage.c (gdk_image_get): Fix parameter names
5622         to match header.
5623
5624         * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
5625         gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
5626         to match docs.
5627
5628         * gdk/gdkevents.c (gdk_event_get_coords)
5629           gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
5630           gtk/gtkdnd.c (gtk_drag_set_icon_stock):
5631         Fix parameter names in docs.
5632         
5633         * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
5634         (#64961, Akira Tagoh)
5635
5636 Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
5637
5638         * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
5639
5640         * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
5641
5642         * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
5643
5644         * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
5645         back to gtk_accel_groups_from_object(), change @acceleratable
5646         parameter to gtk_accel_groups_activate() accordingly.
5647
5648         * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
5649         left-over comment about quark return.
5650
5651         * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
5652
5653         * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
5654         (Patch from Matt Wilson)
5655
5656         * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
5657         object is finalized.
5658
5659 Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
5660
5661         * applied patch from owen to get rid of accel map notifiers.
5662         changed things to fix reentrancy and API as discussed on gtk-devel.
5663
5664         * gtk/gtkaccelgroup.[hc]:
5665         (gtk_accel_group_finalize): unregister this accel group from all
5666         accel map paths.
5667         (accel_closure_invalidate): handle invalidation of closures by
5668         disconnecting their accelerators.
5669         (quick_accel_add): move closure connection and changed notification
5670         into this function to reduce code duplication. don't emit change
5671         notification on closurers without accelerators.
5672         (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
5673         for a GtkAccelGroupEntry.
5674         (gtk_accel_group_connect): get rid of the accel_path_quark argument.
5675         (gtk_accel_group_connect_by_path): new function to add accelerators
5676         with an accel path.
5677         (gtk_accel_group_disconnect_closure): new function, disconnect a
5678         closure from of an accel group.
5679         (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
5680         accel_mods pair and remove them.
5681         (_gtk_accel_group_reconnect): new function that basically does
5682         gtk_accel_group_disconnect_closure() and
5683         gtk_accel_group_connect_by_path() once an accel path changed.
5684         (gtk_accel_groups_disconnect_closure): remove this, there's
5685         gtk_accel_group_disconnect_closure().
5686         
5687         * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
5688         nuke notifiers.
5689         (_gtk_accel_path_is_valid): make this non-static for
5690         gtkwidget.c and gtkaccelgroup.c assertions.
5691         (gtk_accel_map_add_notifer): removed this function.
5692         (gtk_accel_map_remove_notifer): same.
5693         (_gtk_accel_map_add_group):
5694         (_gtk_accel_map_remove_group): (un-)register accel groups, with
5695         accel paths for correct propagation.
5696         (gtk_accel_map_add_entry): return void.
5697         (gtk_accel_map_lookup): return gboolean instead of GQuark.
5698         
5699         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
5700         set accel_path on widgets.
5701         
5702         * gtk/gtkwidget.[hc]:
5703         (accel_path_changed): got rid of this, changes are handled by
5704         accel maps internally now.
5705         (_gtk_widget_set_accel_path): get things to work without notifiers.
5706         (gtk_widget_list_accel_closures): list accel closures of a widget.
5707         
5708         * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
5709
5710 2001-11-20  Matthias Clasen  <matthiasc@poet.de>
5711
5712         * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
5713
5714 Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
5715
5716         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
5717         replace gboolean free_last in the function parameters with
5718         gint depth. Changes to reflect new situation.
5719
5720         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
5721         replace gboolean free_last, with gint depth, add gint current_depth.
5722         Changes to reflect new situation.
5723
5724         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
5725         to reflect new situation
5726
5727         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
5728
5729 Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
5730
5731         * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
5732         where notebook gap was double shifted by allocation.x/y
5733
5734         * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
5735         to unmap children.
5736
5737 Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
5738
5739         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
5740         allocation to be relative to paned->allocation, now
5741         that this is a NO_WINDOW widget.
5742         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
5743
5744         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
5745         needs to be a boxed property.
5746
5747 Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
5748
5749         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
5750         Use the widget's state when drawing the indicator, as
5751         in GtkCheckButton. This gives us color changes for
5752         un-prelighted checkbuttons. (#63308, Matt Wilson)
5753
5754 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
5755
5756         (Fixes related to #64428, Michael Meeks)
5757
5758         * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
5759         widget, so it gets mapped again properly when we
5760         add to a parent.
5761
5762         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
5763         plug->socket_window. 
5764
5765         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
5766         socket_window to NULL, not FALSE.
5767
5768         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
5769         socket->same_app to TRUE. (#64612)
5770
5771 Mon Nov 19 15:50:41 2001  Owen Taylor  <otaylor@redhat.com>
5772
5773         * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add 
5774         gtk_fixed_set/get_has_window() to remove criticism
5775         about GTK_WIDGET_SET_FLAGS() hacks.
5776
5777 2001-11-19  Michael Natterer  <mitch@gimp.org>
5778
5779         * gtk/gtknotebook.c: show notebook->event_window with
5780         gdk_window_show_unraised(), so it doesn't catch the events which
5781         should go to the tab widgets first.
5782
5783 Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
5784
5785         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
5786         "resizable" property, to get rid of the
5787         GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
5788         (gtk_tree_view_column_set_resizable): New function to set resizable.
5789         (gtk_tree_view_column_set_resizable): getter.
5790
5791         * tests/testtreecolumns.c (add_clicked): modify for above change.
5792
5793         * Makefile.am (install-data-hook): remove old .pc files before
5794         installing the new one.  We used to symlink this, and it will
5795         break old installs.
5796
5797 2001-11-19  Havoc Pennington  <hp@pobox.com>
5798
5799         * tests/testtext.c (fill_example_buffer): put in a test for
5800         negative indentation values
5801
5802 Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
5803
5804         * gtk/gtklabel.c (gtk_label_init): Change default for
5805         justify to GTK_JUSTIFY_LEFT. Assuming that multiline
5806         labels are most often wrapped labels, this gives better
5807         compatibility with GTK+-1.2, where justification was
5808         ignored for wrapped labesl and is a more sensible
5809         default in any case. (#64489)
5810
5811         * gtk/gtklabel.c (gtk_label_class_init): Fix default
5812         for wrap property to FALSE.
5813
5814 2001-11-19  jacob berkman  <jacob@ximian.com>
5815
5816         * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
5817
5818 Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
5819
5820         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use 
5821         RevertToParent, not RevertToNone. (#64613, 
5822         Matthias Clasen)
5823
5824 Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
5825
5826         * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
5827         and label_yalign need to be float properties to
5828         correspond to GTK+-1.2, to gtk_frame_set_label_align,
5829         and to the types of the xalign and yalign properties of GtkMisc.
5830         (#63484, Vitaly Tishkov)
5831
5832 Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
5833
5834         * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
5835         of plug_added vfunc. (#64408, Jeff Franks)
5836
5837 Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
5838
5839         * configure.in (deps): Undef HAVE_STDLIB_H before
5840         checking for jpeg, because jconfig.h has this
5841         in it too (%#$@!). Fix from Matthias Clasen, #64500.
5842
5843 Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
5844
5845         * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a 
5846         memory leak when retrieving atom names. (Michael Meeks,
5847         #64508)
5848
5849 2001-11-18  Alex Larsson  <alexl@redhat.com>
5850
5851         * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
5852         Update to new Pango API.
5853         
5854 Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
5855
5856         * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
5857         GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
5858         GTK_OBJECT_DESTROYED() check macro.
5859
5860         * gtk/gtkbindings.c (gtk_bindings_activate): Remove
5861         instances of GTK_OBJECT_DESTROYED() that weren't
5862         needed any more.
5863
5864         * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
5865         for a connection to ::destroy.
5866
5867 Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
5868
5869         * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
5870         have been since the beginning, but as special hack,
5871         allow clearing the NO_WINDOW flag to get a window widget.
5872
5873 Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
5874
5875         * gtk/gtktreestore.c: return TRUE when value changed, so
5876         row_changed is being emitted
5877
5878 2001-11-18  Hans Breuer  <hans@breuer.org>
5879
5880         * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
5881         no label without op, even if it's a no-op.
5882
5883         * gtk/gtk.def :
5884         * gtk/makefile.msc.in : reflect marshaler split, some clean-up  
5885
5886         * config.h.win32.in : remove definition of HAVE_DIRENT_H
5887         * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
5888         required anymore, replace it.
5889         * gtk/queryimmodules.c : DIR -> GDir replacement, also
5890         getcwd() -> g_get_current_dir()
5891
5892         * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
5893         Even 'noisy laugh' scolling appears to work, though I still can't
5894         claim to have fully understood what it is supposed to do ...
5895
5896 Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
5897
5898         * gtk/gtkenums.h: Include glib-object.h instead of
5899         gobject/gsignal.h
5900
5901         * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
5902           x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
5903         argument to the window_at_pointer() field of
5904         GdkPointerHooks. (Patch from Erwann Chenede)
5905
5906         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
5907         to 6 pointers.
5908
5909 2001-11-17  Matt Wilson  <msw@redhat.com>
5910
5911         * gtk/gtkenums.h: must include glib-object.h only
5912
5913 Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
5914
5915         * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
5916         key bindings in order of visibility - mnemonics, then 
5917         accelerators, then send key to the focus widget, then
5918         bindings on the GtkWindow.
5919
5920         * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c: 
5921         Removed the xoffset, yoffset fields of GtkLayout which were
5922         identically zero for compat with 1.2, but were no longer 
5923         compatible with all uses of these fields in 1.2.
5924
5925         * gtk/gtkwindow.c (gtk_window_set_default): Remove 
5926         unused variable.
5927
5928 Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
5929
5930         * tests/testtreeview.c (gtk_tree_model_types_get_type): 
5931         We no longer need to create the signals here ... they
5932         come from the interface.
5933
5934         * gtk/maketypes.awk: Use GType, not GtkType in output.
5935
5936         * gtk/gtktypeutils.h: Mark virtually all of this
5937         file deprecated.
5938
5939         * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
5940         the only use of this function is the GtkArg using
5941         GtkCallbackMarshal, since destroy notification is
5942         silly here.
5943
5944 Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
5945
5946         * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
5947         gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
5948         only for compatibility with GTK+-1.2; and deprecate it; 
5949         put all marshalers we actually use into gtkmarshalers.list 
5950         and use the _gtk_marshal_ prefix for these marshalers.
5951
5952 2001-11-17  Murray Cumming  <murrayc@usa.net>
5953
5954         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
5955         The first parameters of the signals are now registered as
5956         GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
5957         
5958 2001-11-17  Tor Lillqvist  <tml@iki.fi>
5959
5960         * gtk-zip.sh.in: Build separate runtime and developer
5961         packages.
5962
5963         * gtk/gtk.def: Reflect recent accelerator-related changes.
5964
5965 Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
5966
5967         * gtk/gtkwindow.c (gtk_window_set_default): Move 
5968         notification of "has_default" to here, so it
5969         is safe to call gtk_window_set_default() instead
5970         of gtk_widget_grab_default().
5971
5972         * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
5973         gtk_widget_grab_focus(), which then calls 
5974         _gtk_widget_internal_set_focus(). This makes 
5975         gtk_window_set_focus() a safe way of both setting
5976         and unsetting the focus widget.
5977
5978         * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
5979         gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
5980         to find the toplevel.
5981
5982         * gtk/gtkwindow.h: Move gtk_window_set_focus/default
5983         from the "internal functions" section.
5984
5985 2001-11-16  jacob berkman  <jacob@ximian.com>
5986
5987         * tests/testgtk.c (create_radio_buttons): add some no-indicator
5988         radio buttons
5989
5990         * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
5991         initially active, also initially be depressed
5992         (gtk_radio_button_clicked): also update our depressed state
5993
5994 Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
5995
5996         * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
5997         key press events not just to focus/window but also to
5998         intermediate widgets.
5999
6000         * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
6001         to switch pages. (Needs some work on handling focus
6002         when switching pages.)
6003
6004 Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
6005
6006         * gtk/gtknotebook.c: Fix child allocations to be relative to 
6007         widget position and some drawing bugs.
6008
6009         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
6010         with reading uninitialized variable.
6011
6012 Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
6013
6014         * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
6015         gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
6016         NO_WINDOW widgets.
6017
6018         * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
6019         cleanup.
6020
6021         * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
6022         we are drawing in a window when drawing the paned handle.
6023
6024 2001-11-16  Sven Neumann  <sven@gimp.org>
6025
6026         * demos/gtk-demo/appwindow.c
6027         * demos/gtk-demo/menus.c: reduce compiler warnings
6028
6029 Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
6030
6031         * demos/gtk-demo/main.c (button_press_event_cb): Remove 
6032         unused callback to make things compile with 
6033         gtk_tree_view_path_at_pos_change().
6034
6035 Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
6036
6037         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
6038
6039 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
6040
6041         * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
6042  
6043 Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
6044
6045         * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
6046         to get a GdkWindow to compare event->window to.
6047
6048         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
6049         the signal for lateral motion too, #64361
6050
6051         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
6052         arg as it is useless, #64137
6053
6054 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
6055
6056         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
6057
6058 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
6059  
6060         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
6061         gdk_window_invalidate_maybe_recurse() for recursion.
6062         (Soeren Sandmann)
6063
6064         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
6065  
6066         * gtk/gtkcontainer.c (gtk_container_expose): Call
6067         gtk_container_forall() not _foreach() to propagate,
6068         since we need to propagate exposes to internal children
6069         as well.
6070
6071         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
6072         Remove the restriction of only being able to call these
6073         on window widgets, since we have lots of NO_WINDOW widgets
6074         with windows now; for add events, recurse over the children
6075         of widget->window to find one owned by the widget.
6076
6077         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
6078         window to catch events.
6079
6080         * gtk/gtktogglebutton.[ch]: Remove the code for switching
6081         between NO_WINDOW and WINDOW widgets based on the mode.
6082
6083         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
6084         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
6085
6086         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
6087
6088         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
6089         change for range.
6090
6091         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
6092  
6093         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
6094
6095 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
6096
6097         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
6098         "message_type" and "buttons" CONSTRUCT properties. (#64069)
6099
6100         * tests/testsocket.c: Expand tests to add a "local passive
6101         child" (Test case for #64428)
6102
6103 2001-11-14  jacob berkman  <jacob@ximian.com>
6104
6105         * gtk/gtkgamma.c (button_clicked_callback): create the label with
6106         a mnemonic
6107
6108 2001-11-15  Sven Neumann  <sven@gimp.org>
6109
6110         * tests/testgtk.c: make it compile without warnings.
6111
6112 2001-11-14  Alex Larsson  <alexl@redhat.com>
6113
6114         * gtk/gtklabel.c:
6115         Don't recalculate the layout on each gkt_label_ensure_layout () for
6116         wrapped labels.
6117
6118 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
6119
6120         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
6121         the currently selected column when we get the column, #64380
6122
6123         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
6124         to cancel CellRendererText editting, #63613
6125
6126         * gtk/gtkcellrenderertext.c: ditto
6127
6128         * gtk/gtkcellrenderertext.h: formatting changes
6129
6130 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
6131
6132         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
6133
6134         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
6135
6136         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
6137
6138         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
6139
6140         * gtk/gtklabel.c: Documentation fixes (#64452)
6141
6142 2001-11-14  Daniel Egger  <degger@fhm.edu>
6143
6144         * gdk-pixbuf/io-xpm.c: 
6145         (xpm_skip_whitespaces): Remove unused static function.
6146         (xpm_skip_string): Dito.        
6147         (xpm_extract_color): Declare const variable const to avoid warnings. 
6148
6149         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
6150         
6151         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
6152         
6153         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
6154         a long.
6155
6156 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
6157
6158         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
6159         out accidental commit of debugging timing code.
6160
6161 2001-11-14  Havoc Pennington  <hp@redhat.com>
6162
6163         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
6164         it doesn't move to a new line each time you press it
6165
6166         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
6167         return value, #62987
6168
6169 2001-11-14  Havoc Pennington  <hp@redhat.com>
6170
6171         * tests/testtextbuffer.c (main): bulk of the tests were commented
6172         out, oops.
6173
6174         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
6175         function work, should resolve #63426
6176         (gtk_text_iter_ends_line): return TRUE for the end iterator
6177
6178         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
6179         a couple things that might get cached in here.
6180
6181 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
6182
6183         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
6184         "model" construct property for language bindings.
6185
6186         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
6187         function to let you set the column types of a GtkTreeStore for
6188         language bindings.
6189
6190         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
6191
6192 2001-11-13  Havoc Pennington  <hp@redhat.com>
6193
6194         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
6195         including reference to bugzilla bug about how we should have 
6196         a better way of positioning children
6197
6198         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
6199
6200         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
6201         size to side rects if they don't exist, #63438
6202
6203 2001-11-13  Havoc Pennington  <hp@redhat.com>
6204
6205         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
6206         properly replace selection with Return or Tab
6207
6208         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
6209         that didn't locate the end of the line correctly, should fix #63800
6210
6211 2001-11-13  Havoc Pennington  <hp@redhat.com>
6212
6213         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
6214         to requisition, request non-anchored children
6215         (gtk_text_view_size_allocate): handle border width, allocate
6216         non-anchored children
6217         (text_view_child_new_window): set the child as object data
6218         (gtk_text_view_move_child): allow children at negative
6219         coordinates, no reason why not
6220         (gtk_text_view_forall): make it copy the list of children before
6221         walking it, to avoid reentrancy issues  
6222         (gtk_text_view_move_child): short-circuit if position is unchanged
6223         (changed_handler): only queue_resize if requisition has changed
6224         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
6225         a better job of invalidation ourselves
6226
6227         * tests/testtext.c: add tests for the fixed-position children
6228
6229 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
6230
6231         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
6232         with gdk threads macro.
6233
6234 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
6235
6236         * gtk/maketypes.awk: fix type utils generation on unix.
6237
6238         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
6239         registry.
6240
6241         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
6242         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
6243         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
6244         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
6245         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
6246         introduced ::accel_changed signal for change notification, and
6247         gtk_accel_group_connect/disconnect to connect closures to accel groups.
6248         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
6249         functions.
6250         deprecated gtk_accel_group_ref/unref.
6251
6252         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
6253         to accel group changed notification and basically operate on closures.
6254         removed gtk_accel_label_get_accel_object and
6255         gtk_accel_label_set_accel_object.
6256         introduced gtk_accel_label_set_accel_closure, and for convenience,
6257         gtk_accel_label_set_accel_widget.
6258
6259         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
6260         which mostly moved into gtkaccelmap.[hc].
6261         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
6262         and gtk_item_factory_print_func.
6263
6264         * gtk/gtkmain.c: call _gtk_accel_map_init().
6265
6266         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
6267         that associates an accelerator path with menu items, through which
6268         persistent accelerator settings on menu items are enabled.
6269
6270         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
6271         paths of menu item can be default constructed to allow installation
6272         of accelerators on menu items that don't come with an accelerator
6273         binding by default.
6274
6275         * gtk/gtksettings.c: fix STRING type rc settings by special casing
6276         them appropriately in the parser.
6277
6278         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
6279         gtk_signal_newv().
6280
6281         * gtk/gtkwidget.[hc]: accelerator API revamp.
6282         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
6283         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
6284         gtk_widget_(un)lock_accelerators.
6285         accelerators maintained through gtk_widget_add/remove_accelerator()
6286         are not runtime changable now, the correct sequence to setup a
6287         widget for runtime changable accelerators is now:
6288           gtk_accel_map_add_entry(accel_path, key, mods);
6289           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
6290
6291         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
6292         group changes (as well as mnemonic changes) through the new signal
6293         ::accels_changed.
6294
6295 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
6296
6297         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
6298         GString->string conversions.
6299
6300 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
6301
6302         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
6303         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
6304
6305 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
6306
6307         * gtk/gtktreeview.c: Documentation fixes. (#64377)
6308         
6309         * gtk/gtktreestore.c: Documentation fixes. (#64376)
6310
6311 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
6312
6313         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
6314         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
6315         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
6316         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
6317
6318 2001-11-10  Hans Breuer  <hans@breuer.org>
6319
6320         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
6321         we know what we are talking about when asked for MINMAXINFO.
6322         Also some cleaning for !HAVE_DIMM_H etc.
6323
6324 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
6325
6326         * gtk/gtktreeviewcolumn.c: Fix docs for 
6327         gtk_tree_view_column_set_sort_order. (#62647)
6328         
6329         * gtk/gtkcontainer.c: Fix docs for 
6330         gtk_container_set_border_width. (#64139)
6331
6332         * gtk/gtkcolorsel.c: Documentation fixes.
6333
6334 2001-11-10  Hans Breuer  <hans@breuer.org>
6335
6336         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
6337         don't have strcasecmp()
6338
6339         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
6340         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
6341         code duplication wrap it in its own function and use it in 
6342         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
6343
6344         * gdk/win32/gdkdrawable-win32.c : implement the finalize
6345         method like the X11 version does, allow to set_colormap NULL
6346         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
6347         set_colormap, also some adaption to X11 version :
6348         (gdk_window_hide) call _gdk_window_clear_update_area
6349         (gdk_window_reparent) call _gdk_window_init_position
6350
6351         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
6352         call gdk_window_resize() after all hints are set, because the
6353         window resizing process (WM_GETMINMAXINFO) takes all of them into 
6354         account
6355
6356         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
6357
6358         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
6359         sizeof (GdkVisualPrivate)
6360
6361         * gdk/gdk.def gtk/gtk.def : upated externals
6362
6363         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
6364           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
6365         from now on use make.msc from $(TOP)/glib/build/win32
6366
6367         * gtk/stock-icons/makefile.msc : add stock_missing_image
6368
6369 2001-11-08  Tor Lillqvist  <tml@iki.fi>
6370
6371         * README.win32: Add headers. Add section about ActiveIMM.
6372
6373         * configure.in: Add --with-ie55 flag to specify the location of
6374         the "IE55 libs and headers" package downloadable from Microsoft,
6375         which contains, among other things, the Active IMM header dimm.h
6376         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
6377         Require GLib 1.3.10.
6378         
6379         * config.h.win32.in: New version, produced by merging two
6380         configure-generated ones (for gcc and MSVC). Hopefully #defines
6381         the same flags that the previous, hand-written one, did.
6382
6383         * gdk/Makefile.am
6384         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
6385
6386         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
6387         stuff. Remove unused GdkIOClosure.
6388
6389         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
6390         available).
6391
6392         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
6393         for uuid.lib. (Does it really have to be this hard to use an
6394         existing library with libtool? Probably I am missing something.)
6395
6396 2001-11-08  Darin Adler  <darin@bentspoon.com>
6397
6398         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
6399         typo where it says LEFT instead of CENTER.
6400
6401 2001-11-07  Darin Adler  <darin@bentspoon.com>
6402
6403         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
6404         (gtk_dialog_set_default_response): Add g_return_if_fail.
6405
6406 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
6407
6408         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
6409         Add row_draggable() vfunc, and wrapper function.
6410
6411         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
6412         row_drop_possible take a GtkSelectionData, rather than
6413         model/row pair.
6414
6415         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
6416         new DND interfaces.
6417
6418         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
6419         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
6420         and rename them to enable_model_drag_source/dest.
6421
6422         * gtk/treeviewcolumn.c: Add DND of columns between rows.
6423         Still can't drop _to_ the left tree, but other places
6424         work.
6425
6426         * gtk/gtktreeview.c (unset_reorderable): Unset the
6427         reorderable property if unset/enable_model_drag_source/dest
6428         are called manually.
6429
6430         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
6431         Correct for change in depth count handling.
6432
6433         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
6434         Pass in a expose area to gtk_tree_view_column_cell_render()
6435
6436 2001-11-06  Havoc Pennington  <hp@redhat.com>
6437
6438         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
6439
6440 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
6441
6442         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
6443
6444 2001-11-05  Havoc Pennington  <hp@redhat.com>
6445
6446         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
6447         widgets in here
6448         (gtk_text_view_realize): set parent window of child widgets
6449         (gtk_text_view_size_request): use child req to decide whether
6450         to invalidate layout, not widget->requisition
6451
6452         * gtk/gtktextdisplay.c (render_layout_line): set
6453         shaped_width_pixels for NULL shape objects, so that we properly
6454         draw the "missing pixbuf/widget" thing
6455         (render_layout_line): don't draw the widget here
6456         (gtk_text_layout_draw): pass out a list of widgets that need exposing
6457
6458         * demos/gtk-demo/textview.c (insert_text): add demo of child
6459         widgets
6460
6461         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
6462
6463         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
6464
6465         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
6466         scroll offsets
6467         (gtk_text_view_value_changed): poke new X and Y into child allocations
6468
6469 2001-11-06  Tor Lillqvist  <tml@iki.fi>
6470
6471         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
6472         -specific directory on Windows, too (#63759).
6473
6474 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
6475
6476         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
6477         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
6478         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
6479         directly to Picture objects instead of using XftDraw.
6480         This fixes the problem where we weren't able to 
6481         properly destroy XftDraw objects before destroying
6482         the accompanying windows, and probably improves
6483         efficiency a bit too. (#50214)
6484
6485 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
6486
6487         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
6488         Clamp max window width/height to 32767, not 32768 since
6489         we have to be able to deal with a dx/y of -32768 without
6490         getting a width of 65536 when guffaw scrolling.
6491
6492         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
6493         for the guffaw scrolling case, fixing some problems with
6494         copy-area case as well. Fix BadValue bug with moving windows
6495         by large amounts.
6496
6497         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
6498         clip in window structue before calling gdk_window_invalidate_region
6499         since that trims new invalidations to the window's visible
6500         region.
6501
6502         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
6503         Really set the static window gravity on the children, not
6504         repeatedly on the window.
6505
6506         * gtk/testgtk.c: Add a torture test for big windows and 
6507         gdk_window_scroll().
6508
6509 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
6510
6511         * acconfig.h configure.in: sigsetjmp is macroized in some places,
6512         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
6513
6514 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
6515
6516         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
6517         in terms of pango_color_parse().
6518
6519         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
6520         gdk_color_parse() implementations.
6521
6522 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
6523
6524         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
6525         queue_resize_on_group with both the old and new mode, not
6526         just the new mode. (#60171, Nicolas Setton). Also, notify
6527         the "mode" property.
6528         
6529 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
6530
6531         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
6532         for use in "shallow invalidation" of a widget. (Windows belonging
6533         to the widget, but not to the widget's children)
6534
6535         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
6536         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
6537         up on ancestors up to the resize container on queue_resize. Size
6538         requests only actually take place if GTK_REQUEST_NEEDED, size
6539         allocations only take place if GTK_ALLOC_NEEDED or the size
6540         changed.
6541
6542         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
6543         container->resize_widgets and the RESIZE_NEEDED flag since the
6544         above flags are sufficient to figure out what needs to be
6545         resized/reallocated. Remove code manipulating
6546         container->resize_widget.
6547
6548         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
6549         allows widgets to turn off being automatically invalidated is when
6550         they are resized.
6551
6552         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
6553         a widget is resized or moved is "shallow" as described above -
6554         only the windows that need to be invalidated are invalidated.
6555
6556         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
6557         Make these widget's init functions call 
6558         gtk_widget_set_redraw_on_allocate(widget,FALSE).
6559
6560         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
6561         _gtk_container_queue_resize(), since we don't want
6562         redrawing. (Probably could be done for other 
6563         calls to gtk_widget_queue_resize() in gtkwindow.c,
6564         but this is the most important one.)
6565
6566         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
6567         gtk_widget_queue_draw() - size_allocate() handles
6568         that as appropriate.
6569
6570         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
6571         of queue_clear() to avoid invalidating children.
6572
6573 2001-11-04  jacob berkman  <jacob@ximian.com>
6574
6575         * gtk/gtkmain.c (find_module): don't free the module name until
6576         after we load the module
6577
6578 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
6579  
6580         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
6581         derivation instead of boxed derivation.
6582  
6583         * gtk/gtkmarshal.list: Remove some now unused marshallers.
6584  
6585 2001-11-04  Tor Lillqvist  <tml@iki.fi>
6586
6587         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
6588         include yesterday, without really thinking), as that defeats the
6589         working of correct_libdir_prefix() (it becomes a no-op.). Add
6590         comment mentioning that. Thanks to Hans Breuer for noticing.
6591         
6592 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
6593
6594         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
6595         signal argument (was GtkWidget*).
6596
6597         * gtk/gtkwindow.c (gtk_window_frame_event),
6598           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
6599         Fixed argument types as above, removed GTK_WINDOW casts and
6600         added some GTK_WIDGET casts instead.
6601
6602 2001-11-03  Hans Breuer  <hans@breuer.org>
6603
6604         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
6605         finalize to parent class to get removed from the toplevel_list.
6606         Should fix 'random' crashes of #63474.
6607
6608         * gtk/gtktreemodelsort.c : chain finalize() to parent class
6609
6610 2001-11-03  Tor Lillqvist  <tml@iki.fi>
6611
6612         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
6613         for .dll or .so as appropriate as module suffix.
6614
6615         * gtk-zip.sh.in: Use correct import library names.
6616
6617         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
6618
6619         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
6620         Windows to turn build-time paths from a gtk.immodules distributed
6621         as part of a binary package into runtime ones in the
6622         end-user-chosen installation directory.
6623         (gtk_im_module_init): Use it for module path and domain
6624         directory.
6625
6626 2001-11-02  Tor Lillqvist  <tml@iki.fi>
6627
6628         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
6629         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
6630         Windows.
6631
6632 2001-10-30  Tor Lillqvist  <tml@iki.fi>
6633
6634         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
6635         files. Configure on Win32 (running on Cygwin) thinks symlinks
6636         exist, but pkg-config is not necesarily a Cygwin program, and
6637         doesn't understand them.
6638
6639 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
6640
6641         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
6642         a bit.  I don't think it's completely correct yet, but it's
6643         getting there.
6644
6645 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
6646
6647         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
6648         random + 5 for width and height. If people want padding,
6649         they should add padding. (Note the +5 isn't padding
6650         that will always appear - it just appears in the case
6651         where the widget is allocated it's requisition.)
6652         (#51018, Janet Davis)
6653
6654 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
6655
6656         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
6657         the structure for future expansion.
6658
6659 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
6660
6661         Patch from HideToshi Tajima (#51922)
6662         
6663         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
6664
6665         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
6666         set_use_preedit().
6667         
6668         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
6669         to destroy the input context because we change the
6670         client window or use_preedit, make sure we empty
6671         the preedit string.
6672
6673 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
6674
6675         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
6676         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
6677         proposed ordering of buttons with [OK] in the lower
6678         right hand corner. Patch from Gregory Merchan,
6679         #56331.
6680
6681 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
6682
6683         * gtk/gtklabel.c (gtk_label_select_region_index): remove
6684         extraneous gtk_label_clear_layout (label)
6685
6686 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
6687
6688         * tests/makefile.msc, gtk/makefile.msc.in: Removed
6689         -DGTK_DISABLE_COMPAT_H.
6690
6691         * docs/Changes-2.0.txt:
6692         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
6693
6694         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
6695
6696 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
6697
6698         * examples/**/Makefile.am: Convert to use pkg-config
6699         rather than gtk-config. (#53375, Skip Montanaro)
6700
6701 2001-11-02  Matt Wilson  <msw@redhat.com>
6702
6703         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
6704         broken unused, non-compiling, static function.
6705
6706 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
6707
6708         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
6709         Iterate through children of the action area, not of
6710         the vbox. (#58278, Sergey Kuzminov)
6711
6712 2001-11-01  Havoc Pennington  <hp@pobox.com>
6713
6714         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
6715         order to remove a workaround in Nautilus that forced
6716         GTK_ENABLE_BROKEN
6717
6718         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
6719
6720 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
6721
6722         * gtk/gtkrange.c: Patch from George Lebl to 
6723         fix division by zero for full scroll bars. (#62114)
6724
6725 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
6726
6727         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
6728         around gtk_widget_event() if we are going to
6729         set a flag afterwards. (#63464)
6730
6731 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
6732
6733         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
6734         Actually add the missing/broken image icon as the
6735         image for the "missing image" stock icon.
6736
6737 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
6738
6739         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
6740         Set a reasonable default height for the window.
6741
6742         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
6743         bug where subsequent '-' weren't converted to '_'.
6744         (#59550, Matthias Clasen)
6745
6746         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
6747         justify the Help menu - just include a comment on
6748         how to do it. (#63539,  Marius Andreiana)
6749
6750         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
6751         list GTK_ICON_SIZE_INVALID.
6752
6753         * demos/gtk-demo/stock_browser.c: Show the biggest available
6754         size, not a fixed size. (Often reported, including #63539, 
6755         Marius Andreiana)
6756
6757 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
6758
6759         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
6760         #59583
6761
6762         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
6763         warning.
6764
6765 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
6766
6767         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
6768         (Daniel Elstner).
6769
6770 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
6771
6772         * gtk/gtkimcontext.[ch]: Add:
6773           - A ::retrieve_surrounding signal that asks the widget for
6774             context around the insertion point.
6775           - A ::delete_surrounding signal that asks the widget to 
6776             delete context aroudn the insertion point.
6777           - gtk_im_context_set_context() for widgets to set context
6778             around the insertion point in response to ::retrieve_context.
6779           - gtk_im_context_get_context() for context to get context
6780             around the insertion point
6781
6782         * gtkmarshal.list: Add BOOL:INT,INT
6783
6784         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
6785         set_surrounding() methods, and the ::retrieve_surrounding /
6786         ::delete_surrounding signals.
6787
6788         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
6789         GtkIMContext::retrieve_surrounding / ::delete_surrounding
6790         signals.
6791
6792 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
6793
6794         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
6795         it's amazing how well things work sometimes, even when they're
6796         completely wrong.
6797
6798         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
6799         where you could try to collapse a node w/o it having children.
6800
6801         (gtk_tree_view_class_init): remove Shift L<->R as they already
6802         existed for expand/collapse.
6803
6804 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
6805
6806         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
6807         found by Matt Wilson.
6808
6809 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
6810
6811         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
6812         Control, and Shift|Control L<->R, #63475
6813
6814 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
6815
6816         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
6817         infinite loop noticed by yosh.
6818
6819 2001-11-01  Michael Meeks  <michael@ximian.com>
6820
6821         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
6822         GTK_REALIZED flag so we don't re-enter when we are
6823         destroyed from the plug side.
6824
6825 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
6826
6827         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
6828         Add a "menu" property and notify on it. (#62798,
6829         Padraig O'Briain)
6830
6831         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
6832         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
6833         Fix set_text to take a gchar, not a guchar, and to have 
6834         a len argument.
6835
6836 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
6837
6838         * gtk/gtkstock.c: fix typo to make it compile
6839
6840 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
6841
6842         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
6843         the widget is insensitive, draw the text insensitively, #63306
6844
6845 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
6846
6847         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
6848
6849 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
6850
6851         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
6852         gtk_selection_data_set_tree_row, #60218
6853         (gtk_tree_get_row_drag_data): rename
6854         gtk_selection_data_get_tree_row, #60218
6855
6856         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
6857         get this right, after the third try, #63122.
6858
6859 2001-10-31  jacob berkman  <jacob@ximian.com>
6860
6861         * gdk/gdkselection.h (GDK_TARGET_STRING): 
6862         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
6863         for Xatoms (and not using the XA_* macros)!
6864
6865 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
6866
6867         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
6868         gtk_window_get_focus() getter to determine the currently
6869         focused widget within the window. (#63145, request
6870         from Damian Ivereigh)
6871
6872 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
6873
6874         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
6875
6876         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
6877         GTK_SELECTION_NONE enum.
6878         (_gtk_tree_selection_internal_select_node): ditto
6879
6880         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
6881         constness.
6882
6883         * gtk/gtkcellrenderertoggle.c: more yummy constness.
6884
6885         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
6886         if mode == GTK_SELECTION_NONE
6887
6888 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
6889
6890         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
6891         "cursor_changed" signal, #62850.
6892
6893 2001-10-31  Matt Wilson  <msw@redhat.com>
6894
6895         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
6896         allocating the treedatalist, zero it to make sure the values are
6897         cleared from any garbage that was in this chunk.
6898
6899 2001-10-31  Murray Cumming  <murrayc@usa.net>
6900
6901         * gtk/cellrenderertext.h: "edited" default signal handler
6902         gchar* args are now const.
6903         gtk/cellrenderertoggle.h: "toggled" default signal handler
6904         gchar* arg is now const.
6905         Also changed other signal handlers for "edited" and "toggled" to
6906         have the same signature.
6907
6908 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
6909
6910         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
6911         rewrite.  Static models now totally work.  I'm not 100% sure about
6912         row_inserted and row_changed, but I'll get those later.
6913
6914 2001-10-30  Sven Neumann  <sven@gimp.org>
6915
6916         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
6917         output for configure --help.
6918
6919 2001-10-30  Havoc Pennington  <hp@pobox.com>
6920
6921         * gtk/gtktextview.c (changed_handler): Update the IM spot location
6922         here, if text was invalidated in the visible area, because the
6923         scroll offset doesn't normally change in that case, and the mark
6924         isn't set, just implicitly moved over as text is added/removed
6925         
6926 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
6927
6928         * gtk/gtkseparatormenuitem.c: Code cleanup.
6929         (gtk_separator_menu_item_class_init): Fix bugs in this code.
6930
6931 2001-10-29  jacob berkman  <jacob@ximian.com>
6932
6933         * gdk/Makefile.am (LDFLAGS): 
6934         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
6935         LDFLAGS, so put win32 flags in here
6936
6937 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
6938
6939         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
6940         I can't believe this took this long to fix.
6941
6942 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
6943
6944         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
6945         reordered signal.
6946
6947 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
6948
6949         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
6950         the focus to the fileop entry for create dir / rename
6951         file. (#62838)
6952
6953 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
6954
6955         * configure.in: Don't use AC_CHECK_FILE to check for a 
6956         file since it always spits warnings about cross compilation,
6957         use -f instead. It's not like we cross compile properly
6958         anyways.
6959
6960         * configure.in (gtktargetlib): Move call to AC_PROG_CC
6961         to suppress autoconf warning.
6962
6963         * acconfig.h: Add some missing #undefs from recent
6964         Win32 additions.
6965
6966 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
6967
6968         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
6969         when we didn't find it. (#62944, Eric Lemings)
6970
6971         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
6972         sign in assignment. (#63209, Arkadiusz Miskiewicz)
6973
6974 2001-10-29  Anders Carlsson  <andersca@gnu.org>
6975
6976         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
6977         the buttons size request before using it. Fixes #61696.
6978
6979 2001-10-29  Tor Lillqvist  <tml@iki.fi>
6980
6981         * README.win32: Updates.
6982
6983         * gtk-zip.sh.in: New file, used to build distribution package for
6984         Windows.
6985
6986         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
6987         applicable with GDKVAR.
6988
6989         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
6990         Wintab library.
6991
6992         * gdk/win32/gdkwin32.h
6993         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
6994         X11 headers better, and to enable gdkwin32.h to be installed and
6995         included from applications, but not the *-win32.h headers.
6996
6997         * gdk/win32/*.c: Corresponding small changes, simplifications of
6998         #includes.
6999         
7000         * gdk/win32/gdkregion-win32.c: Remove.
7001
7002         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
7003
7004         * gdk/win32/gdkfont-win32.c
7005         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
7006
7007         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
7008         GDK_NONE values into hash table.
7009
7010         * gtk/gtk.def: Update.
7011
7012         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
7013         gethostname().
7014
7015         * gtk/gtkmain.c 
7016         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
7017         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
7018         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
7019         g_win32_get_package_installation_subdirectory() with the actual
7020         DLL name saved above. Redefine above directory name macros to call
7021         these functions. Remove some ifdefs.
7022
7023         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
7024         variable for export on Win32) also to the _vars file.
7025
7026         Changes for autoconfiscated build on Win32, and addition of Win32
7027         backend to the related files:
7028         
7029         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
7030         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
7031         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
7032         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
7033         win32 target, using pangowin32. Don't use the
7034         -export-symbols-regex option on Win32, we use .def files to list
7035         exported symbols. Check <winsock.h> (for gethostname() in
7036         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
7037         prevent premature m4 expansion.
7038
7039         * acconfig.h: Add HAVE_WINTAB.
7040
7041         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
7042         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
7043         MS_LIB_AVAILABLE, build MS import library. Install the import
7044         libraries. If HAVE_WINTAB, link with the Wintab library.
7045
7046         * gdk/win32/Makefile.am: Actually enable building the win32
7047         objects here, not just list all files in EXTRA_DIST. Link in the
7048         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
7049         copy the Wintab library into the .libs directory. 
7050
7051         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
7052         name of the GDK DLL when fetching the icon. Use the HMODULE saved
7053         in gdk_dll_hinstance by DllMain.
7054
7055         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
7056         build/win32/lt-compile-resource script.
7057
7058         * gdk/win32/rc/gdk.rc.in
7059         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
7060
7061         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
7062         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
7063         file. Install import libraries.
7064
7065 2001-10-29  Anders Carlsson  <andersca@gnu.org>
7066
7067         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
7068
7069 2001-10-28  Hans Breuer  <hans@breuer.org>
7070
7071         * gdk/gdk.c gdk/gdkevents.c
7072           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
7073           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
7074           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
7075           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
7076           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
7077           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
7078           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
7079         static correct-ness, underscore prefixing of library internal 
7080         functions
7081         (applied the undisputed and the win32 part. Of the latter 
7082          I'm probably the one who will change it back again, if Owen
7083          decides that the Gdk*Impl types should not be private to Gdk)
7084
7085         * gdk/gdk.def : added the remaining exported functions
7086
7087 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
7088
7089         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
7090         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
7091         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
7092
7093 2001-10-28  jacob berkman  <jacob@ximian.com>
7094
7095         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
7096         gtk_settings_get_default() here as that requires an X connection
7097         (which breaks doc building with no X connection) and is not
7098         multihead safe
7099         (gtk_color_selection_init): delay palette loading until realize
7100         time
7101         (gtk_color_selection_realize): load the palette, and initialize
7102         the global palette if it hasn't been already
7103
7104         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
7105         visual/cmap fields of klass->info since they are gone
7106         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
7107         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
7108         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
7109
7110         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
7111         cmap fields
7112         (gtk_preview_get_visual):
7113         (gtk_preview_get_cmap): mark as deprecated
7114
7115         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
7116         changes
7117
7118 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
7119
7120         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
7121         structure to have GObject not GtkObject as
7122         parent_instance. (Jeff Franks.)
7123
7124 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
7125
7126         * gdk/x11/gdkinput.c: Typo fix.
7127
7128 2001-10-26  Havoc Pennington  <hp@pobox.com>
7129
7130         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
7131         update_im_spot_location here explicitly
7132         (gtk_text_view_reset_im_context): don't update the spot location
7133         here
7134
7135 2001-10-27  Anders Carlsson  <andersca@gnu.org>
7136
7137         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
7138         This fixes #62942.
7139
7140         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
7141         Clarify that we're returning a spin button in the _new function.
7142         This fixes #54097.
7143         
7144 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
7145
7146         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
7147         Unfortunately, people apparently erroneously connect
7148         to ::clicked for GtkToggleButton and expect
7149         they know what happened in the default signal handler
7150         instead of appropriately connecting to notification
7151         signal ::toggled. When the revolution comes, such
7152         people will be first against the wall.
7153
7154         We'll just have to go back to the old less-reliable
7155         set-it-back hacks for handling model-view check
7156         buttons and radio buttons. :-(. 
7157
7158 2001-10-27  Hans Breuer  <hans@breuer.org>
7159
7160         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
7161           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
7162           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
7163           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
7164           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
7165           gtk/gtktreestore.c gtk/gtkvbbox.c : 
7166         to simplify parsing for exported functions:
7167         - made implementation signature static, when the local 
7168           prototype already was
7169         - put the functions return value on it's own line
7170         - added as space between the function name and the 
7171           opening bracket
7172
7173         * gtk/gtk.def : added the remaining exported functions
7174
7175 2001-10-27  Anders Carlsson  <andersca@gnu.org>
7176
7177         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
7178         Add note about width having to be greater than 0. This fixes
7179         #55574. 
7180
7181         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
7182         Fix docs to say previous instead of next.
7183         (gtk_text_iter_backward_word_start): Likewise.
7184         This fixes bug #62980.
7185
7186         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
7187         that the valid width is in range 0-65535 pixels. Fixes bug 
7188         #56754.
7189
7190         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
7191         a dot in the documentation. Fixes bug #62632.
7192
7193         * gdk/x11/gdkmain-x11.c: Replace int and guint with
7194         long and gulong in some places to make the code 64-bit
7195         clean.
7196         (_gdk_windowing_init_check): Replace gint with gulong.
7197         This patch was made by George Lebl and fixes bug #62113.
7198
7199         * tests/testgtk.c (create_range_controls): Don't set a 
7200         fixed height on the hscale widget. This fixes "bug" 
7201         #55840.
7202         (create_window_states): Set up destroy signals so that
7203         all windows will be destroyed when one is. This fixes 
7204         bug #58133.
7205
7206 2001-10-26  Anders Carlsson  <andersca@gnu.org>
7207
7208         * gtk/gtktreeview.c: 
7209         (gtk_tree_view_class_init): Create new "indent_expander"
7210         style property.
7211
7212         (gtk_tree_view_get_arrow_xrange): Add a tree argument
7213         to the function since the xrange can change depending
7214         on where in the tree we are. 
7215         
7216         (coords_are_over_arrow): Update function call to
7217         gtk_tree_view_get_arrow_xrange.
7218         (gtk_tree_view_draw_arrow): Likewise.
7219         
7220         (gtk_tree_view_real_expand_collapse_cursor_row):
7221         Call real_{expand|collapse}_row, so that we'll have an
7222         animation.
7223
7224 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
7225
7226         * tests/Makefile.am: fixed a small typo
7227
7228 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
7229
7230         * demos/gtk-demo/list_store.c (create_model): Anders
7231         Carlsson suggested to use G_N_ELEMENTS here
7232
7233 2001-10-26  Sven Neumann  <sven@gimp.org>
7234
7235         * gtk/gtkbutton.[ch]
7236         * gtk/gtkdnd.c: fixed inline comments
7237         
7238         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
7239
7240 2001-10-26  Hans Breuer  <hans@breuer.org>
7241
7242         * gdk-pixbuf/gdk_pixbuf.def : 
7243         * gdk/gdk.def : 
7244         * gtk/gtk.def : updated externals
7245
7246         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
7247         gdk_window_lookup implementation. It already was in
7248         gdk/win32/gdkwindow-win32.c
7249
7250         * gdk/win32/gdkproperty-win32.c : made it compile again
7251         after GdkAtom API change
7252
7253         * gtk/gtk/makefile.msc.in : updated
7254
7255 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
7256
7257         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
7258         require GLib 1.3.10.
7259
7260         * NEWS: updates.
7261
7262 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
7263
7264         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
7265         invalid nodes.
7266          (_gtk_rbnode_rotate_right): Ditto.
7267          (_gtk_rbtree_node_mark_invalid): New function.
7268          (_gtk_rbtree_node_mark_valid): New function.
7269
7270         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
7271         GObject, not a GtkObject.
7272         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
7273         correct.
7274         (gtk_tree_model_sort_row_deleted): ditto.
7275         (gtk_tree_model_sort_{un,}ref_node): Fix.
7276
7277         * gtk/gtktreeview.c: Protean incremental reflow support (commented
7278         out)
7279
7280         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
7281         to const char *key.
7282
7283         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
7284         Important 1 line fix to fix a lot of refcounting woes.
7285
7286 2001-10-25  Matt Wilson  <msw@redhat.com>
7287
7288         * gtk/gtktextview.c (gtk_text_view_destroy): call
7289         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
7290         now invalidates) so that we remove our idle functions.
7291         (gtk_text_view_destroy_layout): remove the first_validate_idle as
7292         well.
7293
7294         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
7295         the 'indent' property is G_MININT to G_MAXINT.  Don't use
7296         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
7297         instead.
7298
7299 2001-10-24  Anders Carlsson  <andersca@gnu.org>
7300
7301         * gtk/gtktreeview.c: 
7302         (gtk_tree_view_real_expand_row): add an animate argument
7303         (gtk_tree_view_real_collapse_row): likewise
7304         
7305         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
7306         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
7307         (gtk_tree_view_collapse_row): update functions that call
7308         real_{expand|collapse}_row to set the animate argument 
7309         accordingly.
7310         
7311 2001-10-24  Alex Larsson  <alexl@redhat.com>
7312
7313         * gdk/linux-fb/gdkfont-fb.c:
7314         Update to new Pango APIs
7315
7316         * gdk/linux-fb/gdkproperty-fb.c:
7317         Update to new GdkAtom APIs
7318
7319         * gdk/linux-fb/gdkwindow-fb.c:
7320         Remove warnings
7321
7322 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
7323
7324         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
7325
7326 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
7327
7328         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
7329         s_path as a child path
7330
7331 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
7332
7333         * gtk/gtktreemodelsort.c: more changes in an attempt to get
7334         it right. It's not yet ready for general consumption.
7335
7336         * tests/treestoretest.c: add a button and entry for the new
7337         iter_change function
7338         (iter_change): new function, to test
7339         the row_changed signal implementation of the GtkTreeModelSort
7340
7341         * tests/testtreesort.c: cleanups, changes to test more features
7342         of the GtkTreeModelSort at once
7343
7344 2001-10-24  Havoc Pennington  <hp@redhat.com>
7345
7346         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
7347         remove hack to strip off the bogus newline, since we killed the
7348         bogus newline; fixes #61779
7349
7350 2001-10-24  Havoc Pennington  <hp@redhat.com>
7351
7352         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
7353         create layout if we didn't have one
7354         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
7355         as appropriate, avoids blanking the screen 
7356         (gtk_text_view_invalidate): new function to do invalidation,
7357         containing old guts of invalidated_handler
7358
7359 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
7360
7361         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
7362         dreadful tooltips.
7363
7364 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
7365
7366         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
7367         set window->parent (except or the root window itself); if 
7368         the window's parent is not a GdkWindow, or is a window of 
7369         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
7370
7371         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
7372         windows of type GDK_WINDOW_FOREIGN.
7373
7374 2001-10-24  Havoc Pennington  <hp@pobox.com>
7375
7376         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
7377         the front of a segment, use the "slow" technique for moving
7378         backward, so we don't mess up the any_segment field in the iter. 
7379         Fixes #57707
7380
7381         * tests/testtextbuffer.c: add code to detect #57707, to avoid
7382         regression
7383
7384 2001-10-23  Havoc Pennington  <hp@redhat.com>
7385
7386         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
7387         if selection contains some editable text, #60975
7388         (gtk_text_view_scroll_to_iter): remove warning about scrolling
7389         prior to map; it should actually be OK to do so in many cases, 
7390         it would be nice to warn about scrolling when many lines have
7391         height 0, but I don't know what to do about that. Perhaps 
7392         move part of flush_scroll into this function? comment added 
7393         to consider this.
7394
7395 2001-10-23  Havoc Pennington  <hp@redhat.com>
7396
7397         * gtk/gtktextview.c (changed_handler): Correctly keep the same
7398         text on the top of the screen, considering that the changed region
7399         may have overlapped the first paragraph. Should fix msw's "text
7400         widget scrolled to wrong place on map" bug, and probably some
7401         other scrolling cases as well.
7402         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
7403         instead of some random value
7404
7405         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
7406         grab_focus, so #59708 is really fixed
7407
7408 2001-10-24  Anders Carlsson  <andersca@gnu.org>
7409
7410         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
7411         (popup_targets_received): Call append_action_signal with stock items
7412         
7413         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
7414         (gtk_label_do_popup): Call append_action_signal with stock items
7415         
7416         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
7417         (popup_targets_received): Call append_action_signal with stock items
7418
7419 2001-10-23  Havoc Pennington  <hp@redhat.com>
7420
7421         * gtk/gtktextview.c (changed_handler): queue a resize here; will
7422         temporarily slow down the widget a lot, until we figure out how to
7423         optimize to avoid full redraw everytime we queue a resize.
7424
7425 2001-10-23  Havoc Pennington  <hp@redhat.com>
7426
7427         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
7428         0 and char_len == 0, bug #61729
7429
7430 2001-10-23  Havoc Pennington  <hp@redhat.com>
7431
7432         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
7433         return value, #61714 (Vitaly Tishkov)
7434         (gtk_text_iter_backward_sentence_starts): ditto
7435         (gtk_text_iter_backward_word_starts): ditto
7436         (gtk_text_iter_forward_word_ends): ditto
7437         (gtk_text_iter_forward_sentence_ends): ditto
7438         (gtk_text_iter_backward_cursor_positions): ditto
7439
7440 2001-10-23  Havoc Pennington  <hp@redhat.com>
7441
7442         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
7443         fix from Dov Grobgeld, #61858
7444
7445 2001-10-23  Havoc Pennington  <hp@redhat.com>
7446
7447         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
7448         Update IM spot location at appropriate times, #50626
7449         (Hidetoshi Tajima)
7450
7451 2001-10-23  Havoc Pennington  <hp@redhat.com>
7452
7453         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
7454         on grab focus, unless it's caused by button click, #59708
7455
7456 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
7457
7458         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
7459
7460         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
7461         G_CONST_RETURN. (Murray Cumming)        
7462
7463         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
7464         Make G_CONST_RETURN.
7465
7466         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
7467         results of g_get_home_dir().
7468
7469         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
7470         copy. Storing the return from gtk_entry_get_text() is evil.
7471
7472         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
7473         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
7474         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
7475         gtk/gtksignal.c: Add const.
7476
7477         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
7478
7479         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
7480         if we are setting them on private widgets.
7481
7482         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
7483         Duplicate entry->text before setting it as object data.
7484
7485 2001-10-22  Havoc Pennington  <hp@redhat.com>
7486
7487         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
7488         up a char from the end iterator, fixes #61859 ("can't put cursor
7489         at the end of the buffer")
7490
7491         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
7492         to work with delimiters other than newline.
7493
7494         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
7495         get_bytes_in_line
7496
7497         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
7498         last line, since the newline is no longer counted.
7499         (gtk_text_iter_get_bytes_in_line): ditto
7500
7501 2001-10-22  Havoc Pennington  <hp@redhat.com>
7502
7503         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
7504         #58290 would trigger if it reappeared, I think
7505
7506 2001-10-22  Havoc Pennington  <hp@redhat.com>
7507
7508         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
7509         add temporary code to dump btree contents on assertion failure
7510         described in #62656
7511         
7512         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
7513         assertions that we're getting the right end iter segment
7514
7515         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
7516         verify that we aren't on the end iterator after moving 
7517         forward one segment - fixes return value in an obscure case. 
7518         Also, some trivial code cleanup/rearranging.
7519         
7520 2001-10-22  Havoc Pennington  <hp@redhat.com>
7521
7522         * gtk/gtktextlayout.h: add a #error unless you define
7523         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
7524
7525         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
7526         
7527 2001-10-22  Havoc Pennington  <hp@redhat.com>
7528
7529         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
7530         #62365
7531
7532 2001-10-22  Havoc Pennington  <hp@redhat.com>
7533
7534         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
7535         #62436
7536
7537 2001-10-22  Havoc Pennington  <hp@redhat.com>
7538
7539         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
7540         #62366
7541
7542 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
7543
7544         * gtk/gtklabel.c: Add cursor-position, selection-bound 
7545         properties. (#62148, reported by Padraig O'Briain)
7546
7547         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
7548         to cursor_position. (1.3.x addition, text_position is an awful
7549         name.) Make cursor_position read-only to avoid sticky questions
7550         of interaction with selection_bound. (#62636, reported by
7551         Padraig O'Briain)
7552
7553 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
7554
7555         Fixing popup menus to have "Paste" sensitized correctly. Original
7556         patches from Damian Ivereigh, much mangled.
7557
7558         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
7559         gtk_selection_data_targets_include_text(). (#60854)
7560
7561         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
7562         the clipboard has text" function gtk_clipboard_wait_is_text_available.
7563         (#60854)
7564
7565         * gtk/gtkentry.c: Only enable the paste item if the clipboard
7566         contains text. (#60973)
7567
7568         * gtk/gtktextview.c: Only enable the paste item if the clipboard
7569         contains text. (#60975)
7570
7571 2001-10-22  Havoc Pennington  <hp@redhat.com>
7572
7573         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
7574         "height_lines" and "width_columns" properties, it doesn't make
7575         sense to set the size request on a text view really. #62103
7576
7577 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
7578
7579         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
7580         g_node_depth is broken, and that it's not worth being consistent
7581         with it.
7582
7583 2001-10-22  Havoc Pennington  <hp@redhat.com>
7584
7585         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
7586         docs, #61777
7587         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
7588         change the two boolean args to a flags field, so we can extend 
7589         to add case insensitive, regexp searches later. #61852
7590
7591 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
7592
7593         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
7594         reflect reality, #62810
7595
7596 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
7597
7598         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
7599
7600         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
7601         system.  Instead of having a window the size of the tree, we have
7602         a window the size of widget->allocation, and simply draw with the
7603         offset.
7604         (coords_are_over_arrow): ditto.  Move to window coordinates.
7605         (do_prelight): ditto
7606         (do_unprelight): ditto
7607
7608         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
7609         Minor fix from Kristian Rietveld to fix unsorted case.
7610
7611 2001-10-22  jacob berkman  <jacob@ximian.com>
7612
7613         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
7614         a PIXMAP cell (fixes crash when using PIXTEXT cells)
7615
7616 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
7617
7618         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
7619         (#58768, Vitaly Tishkov)
7620         
7621         * gtk/gtkobject.h: Deprecate with abandon. 
7622         (#61942, Vitaly Tishkov, Matthias Clasen)
7623
7624         * gtk/gtksignal.h: Deprecate everything.
7625
7626         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
7627         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
7628         (#61942, Matthias Clasen)
7629
7630         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
7631         Havoc Pennington)
7632
7633         * gtk/gtkitemfactory.h: Deprecate compat functions
7634         for GtkMenuFactory code. (#62071)
7635
7636         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
7637         gdk_draw_text,gdk_draw_text_wc. (#62071)
7638
7639 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
7640
7641         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
7642         g_thread_init(), we don't want to link to -lgthread if we don't
7643         have to.
7644
7645 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
7646
7647         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
7648         Add a function, gdk_threads_init() that must be explicitely 
7649         called to enable the GDK thread mutex.
7650
7651 2001-10-22  Jakub Steiner <jimmac@ximian.com>
7652
7653         * gtk/stock-icons/stock_stop.png: no body parts
7654         
7655 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
7656
7657         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
7658         problem with g_return_if_fail return value.
7659
7660         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
7661         virtual atom code from the gdk-multihead branch, removing the per-display
7662         part. Virtualizing atoms needs to be done now to prevent compat
7663         breakage in direct Xlib accessing code in the future. (#62208)
7664  
7665         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
7666         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
7667  
7668         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
7669         an opaque pointer type so the compiler catches attempts
7670         to mingle it with X atoms.
7671
7672         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
7673           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
7674           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
7675           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
7676           tests/testdnd.c,tests/testselection.c: 
7677         Fix up for above atom changes.
7678
7679         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
7680         now have the ability to add custom predefines.
7681
7682         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
7683         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
7684         to gtk_clipboard_get().
7685
7686         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
7687         for GdkAtom => pointer change.
7688
7689         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
7690         atoms, fix for GdkAtom => pointer change.
7691
7692 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
7693
7694         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
7695         new function spin_button_get_arrow_size() instead.
7696
7697         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
7698         arrow was hardcoded, it's now variable.
7699
7700         Fixes bug #50200
7701
7702 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
7703
7704         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
7705         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
7706         for those
7707
7708 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
7709
7710         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
7711         in favor of g_signal_*, gtk_object_* in favor of 
7712         g_object_*.
7713
7714 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
7715
7716         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
7717         from GObject now, we have to use the g_object_* functions, not
7718         gtk_object_*.
7719
7720 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
7721
7722         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
7723         nailed down now (this code is not yet ready for general consumption)
7724
7725 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
7726
7727         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
7728         for use_align
7729
7730 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
7731
7732         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
7733
7734 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
7735
7736         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
7737         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
7738         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
7739         GObject, not GtkObject. (#62621)
7740
7741 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
7742
7743         * tests/testsocket.c: Remove now useless include of unistd.h,
7744         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
7745         
7746 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
7747
7748         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
7749         Pango font API. #61933. (Untested, even for compilation.)
7750
7751 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
7752
7753         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
7754         export gtk_disable_setlocale(). (Caught by Sven Neumann)
7755
7756 2001-10-18  Havoc Pennington  <hp@redhat.com>
7757
7758         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
7759
7760 2001-10-18  Havoc Pennington  <hp@redhat.com>
7761
7762         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
7763         to GTK_RUN_LAST, #50239
7764
7765 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
7766
7767         * gtk/gtkimmodule.c (match_locale):
7768         Support "*" for all locales with least priority
7769         when to select default im module, #58201
7770
7771 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
7772
7773         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
7774         Fix docs. (#61976)
7775  
7776         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
7777
7778         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
7779
7780         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
7781         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
7782         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
7783         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
7784         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
7785         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
7786         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
7787
7788         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
7789
7790         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
7791         Don't restrict the width of the spinbutton entry field 
7792         to 10 digits. (#58681)
7793
7794 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
7795
7796         * tests/testtreeflow.c: new test program for the tree.
7797
7798 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
7799
7800         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
7801         reported by (Oleg Maiboroda), #62600
7802
7803 2001-10-18  Michael Meeks  <michael@ximian.com>
7804
7805         * gtk/gtkentry.c (gtk_entry_set_property),
7806         (gtk_entry_get_property): impl 'text'
7807         (gtk_entry_class_init): add the 'text' prop.
7808         (gtk_entry_insert_text): notify 'text' changed.
7809         (gtk_entry_delete_text): ditto.
7810
7811 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
7812
7813         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
7814         Documentation updates.
7815
7816 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
7817
7818         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
7819         in truncating length of text to MAX_SIZE. (Found by 
7820         Padraig O'Briain, #62055)
7821
7822 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
7823
7824         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
7825         MNEMONIC_ACTIVATE; signal was changed a long time
7826         ago.
7827
7828         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
7829         Fix wrong return statement. (Reported by HideToshi
7830         Tajima and others.)
7831
7832         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
7833         left over select_all vfunc.
7834
7835 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
7836
7837         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
7838         a utility function to translate coordinates relative to
7839         one widget's allocation to coordinates relative to another
7840         widget's allocation.
7841
7842         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
7843         that:
7844          - only accepts external focus if there is no active
7845            member of the group or the button is active.
7846          - makes arrow keys move the active button as well
7847            as the focus
7848          - make tab tab out directly.
7849         This makes a radio button group act as a single focus location.
7850         (#53577).
7851         
7852         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
7853         it was only a small optimization that didn't matter and made
7854         things more complicated.
7855
7856         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
7857         sorter for FOCUS_TAB as we did for the other focus directions,
7858         sort by center of widgets, not upper-left corner. (Shouldn't
7859         matter in general.)
7860
7861         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
7862         from the different types of focusing: encapsulate sorting the
7863         widgets for the focus direction into one routine
7864         (gtk_container_focus_sort()) and then share the work of moving the
7865         focus between the different focus directions.
7866
7867         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
7868         work correctly with focus chains containing non-immediate
7869         children. Sorting was being done using allocation coordinates for
7870         each widget in the focus chain, and if there were intermediate
7871         window-widgets, these allocations would not be in the same
7872         coordinate system.
7873
7874 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
7875
7876         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
7877         mnemonic_activate function to option menu.
7878
7879 2001-10-15  Murray Cumming <murrayc@usa.net>
7880
7881         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
7882           Corrected the type names used in some calls to g_signal_new().
7883         
7884 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
7885
7886         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
7887         specs, use g_pattern_spec_equal() instead of direct field accesses.
7888         upon compressing two equal paths of the same type, the resulting
7889         priority has to be the maximum.
7890         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
7891         GtkPathPriorityType enum and make it a macro.
7892
7893 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
7894
7895         * gtk/gtkwidget.c: Fix some doc comments.
7896
7897 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
7898
7899         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
7900         on empty models.
7901
7902 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
7903
7904         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
7905         Remove stale gdk backend includes.
7906  
7907 2001-10-10  Michael Meeks  <michael@ximian.com>
7908
7909         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
7910         and value_in_list properties.
7911         (gtk_combo_set_value_in_list): notify change.
7912         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
7913
7914 2001-10-11  James Henstridge  <james@daa.com.au>
7915
7916         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
7917         that gtk+ can be built with automake 1.5 while not breaking
7918         things for automake 1.4.
7919
7920 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
7921
7922         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
7923         (#60606)
7924
7925         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
7926         to disable calling setlocale (LC_ALL, "").
7927
7928         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
7929         docs that this function is not typically useful.
7930
7931         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
7932         Automatically initialize GDK for the current locale
7933         on gdk_init(). Don't reset locale to C when
7934         XSupportsLocale() fails.
7935
7936         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
7937         useless checks for UTF-8 locale breakage that mattered
7938         only for X.
7939
7940         * examples/calendar/calendar.c
7941         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
7942         gtk_set_locale().
7943
7944         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
7945         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
7946
7947 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
7948
7949         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
7950
7951         Fixes bug #61904
7952
7953 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
7954
7955         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
7956         new function, #61923
7957         (gtk_tree_selection_path_is_selected): Ditto
7958
7959 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
7960
7961         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
7962         not a GtkObject.  Thanks andersca.
7963
7964         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
7965
7966 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
7967
7968         * gtk/gtktreeviewcolumn.c
7969         (gtk_tree_view_model_sort_column_changed): fix broken code.
7970
7971 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
7972
7973         * gtk/gtkselection.c: s/succesfully/successfully/g
7974
7975 2001-10-08  Havoc Pennington  <hp@pobox.com>
7976
7977         * demos/gtk-demo/stock_browser.c: remove unused enum
7978
7979         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
7980         pass the current selection state of the node in to the user
7981         selection func
7982
7983 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
7984
7985         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
7986         non-existent function gdk_x11_cursor_get_xid 
7987         by gdk_x11_cursor_get_xcursor.
7988
7989 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
7990
7991         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
7992         warning.
7993
7994         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
7995         unref nodes, #okay61676
7996
7997         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
7998         to the property; no need to clear the other columns.  Also, we go
7999         to 'unsorted' if the model supports it.
8000
8001 2001-10-05  Sven Neumann  <sven@gimp.org>
8002
8003         * demos/testpixbuf-save.c
8004         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
8005         feature.
8006
8007 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
8008
8009         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
8010         destroy the search dialog
8011
8012         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
8013         added check to prevent creation of a search dialog if there's
8014         already one around
8015
8016         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
8017         it instead of "search-dialog" (when getting/setting the search dialog
8018         widget).
8019
8020 2001-10-05  Jakub Steiner <jimmac@ximian.com>
8021
8022         * gtk/stock-icons/stock_broken_image.png: broken images icon
8023
8024 2001-10-04  Havoc Pennington  <hp@pobox.com>
8025
8026         Fix #56586
8027         
8028         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
8029         accelerator setting here...
8030
8031         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
8032         because we try to use it when a menu bar hasn't necessarily been 
8033         initialized.
8034
8035 2001-10-03  Havoc Pennington  <hp@redhat.com>
8036
8037         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
8038         it previously verified incorrect behavior
8039
8040         Fixes for #61565
8041         
8042         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
8043         off the end
8044         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
8045         the end
8046         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
8047         the end
8048         (gtk_text_iter_forward_lines): if on the last line, move to end of
8049         it
8050
8051         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
8052         don't return a line off the end
8053
8054 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
8055
8056         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
8057         functions to do_insert_text and do_delete_text, add signals
8058         insert_text, delete_text and changed
8059
8060         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
8061         and changed. Updates to match new situation.
8062
8063         * gtk/gtkspinbutton.c: updates to match new situation
8064
8065         * gtk/gtkoldeditable.h: remove signals changed, insert_text
8066         and delete_text
8067
8068         * gtk/gtkoldeditable.c: updates to match new situation
8069
8070         * gtk/gtktext.c: updates to match new situation
8071
8072         Fixes bug #59803
8073
8074 2001-10-03  Havoc Pennington  <hp@redhat.com>
8075
8076         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
8077         position
8078
8079         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
8080         changes
8081
8082         * tests/testtextbuffer.c (logical_motion_tests): updates
8083
8084 2001-10-03  jacob berkman  <jacob@ximian.com>
8085
8086         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
8087         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
8088         * gtk/gtksettings.c (apply_queued_setting): 
8089         * gtk/gtkmain.c (gtk_init_check): 
8090         * gtk/gtkcontainer.c (gtk_container_child_get_property):
8091         s/retrive/retrieve/
8092
8093 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
8094
8095         * gtk/gtktreemodelsort.[ch]: preparation for surgery
8096         * tests/testtreesort.c: ditto
8097
8098 2001-10-02  Havoc Pennington  <hp@redhat.com>
8099
8100         Throughout: assorted docs
8101         
8102         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
8103         gdk_window_set_geometry_hints() should be used instead.
8104
8105         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
8106         document them
8107
8108         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
8109         seem to exist in any .c files
8110
8111         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
8112         g_return_if_fail (pixel < colormap->size).
8113
8114 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
8115
8116         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
8117         NULL for @target_list to mean, use
8118         gtk_drag_dest_get_target_list (widget).
8119
8120         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
8121         drop could hang when calling gtk_drag_finish with 
8122         success == FALSE and del == TRUE.
8123
8124         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
8125         drops without a matching target found would propagate
8126         to the parent widget rather than being rejected.
8127
8128         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
8129         Use text_view->dnd_mark instead of mark name to be
8130         consistent with the rest of the code.
8131
8132         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
8133         pendantically correct for a drop-only-in-some-places
8134         widget. (Check whether you can insert in drag_drop,
8135         not just in drag_motion ... matters in theory, and
8136         for Motif drag and drop in practice.)
8137
8138         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
8139         Damian Ivereigh to not allow drops on non-editable
8140         entries. (#61124)
8141
8142         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
8143         text to be moved from a non-editable entry.
8144         
8145 2001-10-03  James Henstridge  <james@daa.com.au>
8146
8147         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
8148         s/width/fixed_width/ in order to get things to compile.
8149
8150 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
8151
8152         * gtk/gtkcelleditable.c: docs
8153
8154         * gtk/gtktreemodel.h: more docs.
8155
8156 2001-10-02  Havoc Pennington  <hp@redhat.com>
8157
8158         * gdk/x11/gdkwindow-x11.c: docs
8159
8160         * tests/testtextbuffer.c (logical_motion_tests): add sentence
8161         boundary tests
8162
8163 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
8164
8165         * demos/gtk-demo/Makefile.am: add editable_cells.c,
8166         list_store.c and tree_store.c
8167
8168         * demos/gtk-demo/appwindow.c: remove tearoff item from
8169         File menu, put menubar and toolbar in handle boxes.
8170
8171         * demos/gtk-demo/genincude.pl: various changes to support trees
8172
8173         * demos/gtk-demo/main.c: various changes to support trees
8174
8175         * demos/gtk-demo/stock_browser.c: changed name of demo
8176         to Stock Item and Icon Browser, so geninclude.pl doesn't see
8177         it as child
8178
8179         * demos/gtk-demo/editable_cells.c: new file/demo
8180         * demos/gtk-demo/list_store.c: new file/demo
8181         * demos/gtk-demo/tree_store.c: new file/demo
8182
8183 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
8184
8185         * gtk/gtkrc.c gtk/gtksettings.c: 
8186         g_string_printfa => g_string_append_printf.
8187
8188 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
8189
8190         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
8191         and destroy handler.
8192
8193         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
8194
8195         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
8196         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
8197         Singh <yosh@gimp.org>.
8198
8199 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
8200
8201         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
8202         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
8203
8204         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
8205
8206 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
8207
8208         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
8209         scroll_to_cell delayed code to happen in size_allocate.
8210
8211         * gtk/gtkstyle.c (gtk_default_draw_expander): change
8212         prelight/normal arrow drawing.
8213
8214         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
8215
8216         * gtk/gtktreestore.c: refactor.
8217
8218 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
8219
8220         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
8221         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
8222         centers the child in relation to the to indicator height.
8223
8224 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
8225
8226         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
8227         correct
8228
8229 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
8230
8231         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
8232         property code using g_param_spec_int and changed from
8233         g_value_get_enum to g_value_get_int instead. Probably a better way
8234         to fix the problem :-)
8235
8236 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
8237
8238     * gtk/gtkcellrenderertext.c changed "weight" property type from 
8239       g_param_spec_int to g_param_spec_enum.
8240
8241 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
8242
8243         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
8244         fix: s/Wether/Whether/ in reorderable property description
8245
8246 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
8247
8248         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
8249         start editing when you select with a keyboard.
8250
8251         (gtk_tree_view_button_press_event): much more graceful now.
8252
8253         * gtk/gtkstyle.c: Draw togglebutton better.
8254
8255 2001-09-26  Havoc Pennington  <hp@redhat.com>
8256
8257         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
8258         of passing non-stock label in to gtk_dialog_new_with_buttons
8259
8260         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
8261         debugging updates
8262
8263         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
8264         are private
8265
8266         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
8267         exist, fall back to mnemonic label, not plain label, bug #61184
8268         
8269 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
8270
8271         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
8272         stupid and emitting the signal every time.
8273
8274         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
8275
8276 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
8277
8278        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
8279
8280        * contrib/gdk-pixbuf-xlib/Makefile.am: install
8281        gdk-pixbuf-xlib-2.0.pc.
8282
8283 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
8284
8285         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
8286         problem where menmonic wasn't removed properly when
8287         setting a label when there already is a label.
8288         Also, handle setting the tab label back to the same
8289         value. (#61160, #61161)
8290
8291         * gtk/gtkentry.c (paste_received): Patch from 
8292         Damian Ivereigh to replace selection if there is 
8293         one. (#61121)
8294
8295 2001-09-25  Darin Adler  <darin@bentspoon.com>
8296
8297         * tests/.cvsignore: Ignore new test program.
8298
8299 2001-09-25  Havoc Pennington  <hp@redhat.com>
8300
8301         * gtk/gtktextview.c: fix for #50317
8302         
8303 2001-09-25  Havoc Pennington  <hp@redhat.com>
8304
8305         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
8306         gtk_text_iter_can_insert
8307         
8308         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
8309
8310         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
8311          (gtk_text_iter_can_insert): new function to fix #60282, should
8312         also fix msw's "can paste into empty buffer" bug.
8313
8314         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
8315         "event object,"  #59091
8316
8317         * gtk/gtktextbtree.c: indentation fixes
8318
8319         * gtk/gtktextiter.c (find_by_log_attrs): fixes
8320
8321 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
8322
8323         * configure.in: Version 1.3.9, interface age 0, binary age 0.
8324
8325         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
8326
8327         * NEWS: Updates.
8328
8329 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
8330
8331         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
8332         function for drawing cursors between gtkentry/gtklabel/gtktextview.
8333         Should this be public? It has a bit of an odd interface, but
8334         custom editing widgets probably should be using it.
8335         Function will draw with wider width for taller cursors, and
8336         draws a little indicator arrow to indicate directoin for split 
8337         cursors.
8338
8339         * gtk/gtktextview.c: Add a "cursor_color" property.
8340
8341         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
8342         gtk_text_layout_draw().
8343
8344         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
8345         _gtk_draw_insertion_cursor().
8346
8347 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
8348
8349         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
8350         the behavior where you could turn family_set (etc) back on
8351         and get back the values you had before.
8352
8353         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
8354         g_string_ascii_up() rather than looping through the
8355         string ourself.
8356
8357 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
8358
8359         * gtk/gtktreeviewcolumn.c
8360         (gtk_tree_view_column_set_cell_renderer): Removed
8361         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
8362
8363         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
8364         Patch from Detlef Reichl
8365
8366 2001-09-25  Havoc Pennington  <hp@redhat.com>
8367
8368         * tests/testtextbuffer.c (line_separator_tests): Add tests for
8369         line separators, addresses bug #57428
8370
8371 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
8372
8373         * gtk/gtkentry.c: Make a GtkCellEditable
8374         (get_widget_window_size): Change to let it honor size_allocate
8375         when a CellEditable.
8376
8377         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
8378         editable changes.
8379         (gtk_tree_view_set_cursor): Now you can set the cursor
8380         horizontally, as well as start editing.
8381
8382         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
8383         code to look more like the other check buttons.
8384
8385         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
8386         Change the way we calculate cell size.
8387
8388         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
8389
8390         * demos/gtk-demo/sizegroup.c: Add mnemonics.
8391
8392         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
8393         Fix logic.
8394
8395         * gtk/gtkcellrenderertext.c: Change to be editable.
8396
8397         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
8398
8399         * test/testtreesort.c: Fix misspelling
8400
8401         * test/testreecolumns.c: Add mnemonics.
8402
8403         * test/testreeedit.c: New test program.
8404
8405 2001-09-25  Havoc Pennington  <hp@pobox.com>
8406
8407         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
8408         etc. docs about how these are not going to do what you want for 
8409         the X/win32 ports. Futile attempt to avoid a FAQ...
8410
8411 2001-09-24  James Henstridge  <james@daa.com.au>
8412
8413         * gtk/gtkmarshal.list (VOID): add marshal function types.
8414
8415         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
8416         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
8417         GTK_TYPE_POINTER.
8418         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
8419         with no-op copy/free functions.
8420
8421         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
8422         GtkCTreeNode get_type function.
8423
8424 2001-09-24  Havoc Pennington  <hp@redhat.com>
8425
8426         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
8427         gtktextlayout.c:
8428         Get rid of the newline-that-could-not-be-deleted; buffers may 
8429         now be zero-length. Much easier to fix than expected, once 
8430         I figured out the right way to do it. However, there are 
8431         various subtle bugs introduced by this that will have to get 
8432         sorted out. Please use bugzilla.
8433
8434 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
8435
8436         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
8437         response back from the window manager if our size hasn't changed 
8438         since we won't get a response back from the window manager;
8439         there was code in there to do this, but it was in the wrong
8440         place so if the hints change and the size didn't we'd expect
8441         a response.
8442
8443         Also, optimize the position-only-changed case by running
8444         the resize queue immediately, and clean up some comments
8445         for the changes.
8446
8447 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
8448
8449         * gtk/gtknotebook.h: Add a compat macro that got lost.
8450
8451         * gtk/gtktreestore.c: Doc fixes.
8452
8453         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
8454         leak for windows that receive events after being destroyed.
8455         (#60863, Joshua N. Pritikin)
8456
8457         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
8458         rather than gtk_container_queue_resize().
8459
8460         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
8461         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
8462         gtk_container_child_composite_name. (#60217.)
8463
8464 2001-09-22  Hans Breuer  <hans@breuer.org>
8465
8466         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
8467
8468 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
8469
8470         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
8471         weight value should be an int
8472
8473 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
8474
8475         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
8476         to gtk_menu_scroll_item_visible(). Only call
8477         gtk_menu_scroll_item_visible() if the menu widget has been
8478         realized. Fixes bug #55310.
8479
8480 2001-09-21  Havoc Pennington  <hp@redhat.com>
8481
8482         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
8483         key press to IM context if cursor isn't in an editable location;
8484         bug #58425, patch from Hidetoshi Tajima
8485
8486 2001-09-21  Havoc Pennington  <hp@redhat.com>
8487
8488         Bug #60862
8489         
8490         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
8491         (_gtk_text_btree_unref): fix up mark memory management
8492
8493         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
8494
8495 2001-09-20  Havoc Pennington  <hp@redhat.com>
8496
8497         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
8498         try to handle alignment here, because it's done by PangoLayout
8499         after we set the layout width. Fix from Dov.
8500
8501 2001-09-21  Hans Breuer  <hans@breuer.org>
8502
8503         * gdk/gdk.def :
8504         * gtk/gtk.def : updated externals
8505
8506         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
8507         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
8508         Also handle that Win32 pathes cann't be hard-coded      
8509
8510         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
8511         module, themes etc directory calculations
8512
8513         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
8514         >16 bit right. The size limit within Win9x appears _not_ to be 32767
8515         but slightly smaller ...
8516
8517         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
8518         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
8519
8520         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
8521
8522         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
8523         handling. I'm not sure if it is better now, but at least not worse
8524
8525         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
8526
8527         * gdk/win32/gdkwin32.h : reflect recent API restrictions
8528
8529 2001-09-21  Matt Wilson  <msw@redhat.com>
8530
8531         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
8532         radio_menu_item->group to NULL after removing it from the list, as
8533         it is no longer in the group. (#60869)
8534
8535         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
8536
8537 2001-09-20  Havoc Pennington  <hp@pobox.com>
8538
8539         * configure.in (PANGO_REQUIRED_VERSION)
8540         (ATK_REQUIRED_VERSION): add variables and checks for specific 
8541         versions of dependencies. Previously we didn't verify the 
8542         Pango or ATk versions.
8543
8544 2001-09-09  Havoc Pennington  <hp@pobox.com>
8545
8546         * gtk/gtktextiter.c: fool with indentation
8547         (gtk_text_iter_in_range): add g_return_if_fail
8548
8549 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
8550
8551         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
8552         ref count on new tag to be 1.  Update doc.  (#60836)
8553
8554 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
8555
8556         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
8557         call to gdk_image_new_bitmap(). (#59094, reported by
8558         by Sven Neumann)
8559
8560 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
8561
8562         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
8563         day, as well as the current month and year.
8564         (#59047, reported by Vitaly Tishkov)
8565
8566 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
8567
8568         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
8569         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
8570         
8571 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
8572
8573         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
8574
8575         (build_option_menu): add func argument, connect ::changed
8576         signal to option menu instead of connecting the ::activate
8577         signal to the menu items,
8578
8579         (toplevel): get rid of RADIOMENUTOGGLED macro,
8580
8581         (list_toggle_sel_mode), (clist_toggle_sel_mode),
8582         (ctree_toggle_line_style), (ctree_toggle_expander_style),
8583         (ctree_toggle_justify), (ctree_toggle_sel_mode),
8584         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
8585         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
8586
8587         (notebook_type_changed): merged standard_notebook(),
8588         notabs_notebook(), scrollable_notebook() and borderless_notebook()
8589         into notebook_type_changed()
8590
8591         (create_list), (create_ctree), (create_notebook),
8592         (create_progress_bar): changed OptionMenuItem arrays into
8593         gchar * arrays. Removed "Extended" item where used.
8594
8595         Fixes bug #59885
8596
8597 2001-09-20  Sven Neumann  <sven@gimp.org>
8598
8599         * configure.in
8600         * gdk/Makefile.am
8601         * gtk/Makefile.am
8602         * gtk/gtkselection.c
8603         * gtk/gtktreeview.c
8604         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
8605
8606 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
8607
8608         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
8609         a missing pango_layout_iter_free ().
8610
8611 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
8612
8613         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
8614         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
8615
8616         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
8617         the function definition so we don't accidentally rely on
8618         the compat #define from gtk_radio_menu_item_group.
8619         (#60782, Jeff Franks)
8620
8621 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
8622
8623         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
8624         incorrect values for top, right and bottom due to cut-and-paste
8625         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
8626
8627 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
8628
8629         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
8630         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
8631         window, not just on the client leader. (#58463)
8632
8633 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
8634
8635         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
8636
8637         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
8638         non-public _gtk_menu_item_set_placement.
8639
8640         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
8641
8642 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
8643
8644         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
8645           gdk/linux-fb/gdkcolor-fb.c:
8646         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
8647         (#59723)
8648
8649 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
8650
8651         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
8652         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
8653         #59723)
8654
8655 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
8656
8657         Patch from Frank Belew #59037 for Solaris compilation.
8658
8659         * gtk/maketypes.awk: Change syntax slightly for a call
8660         to sub(), apparently making awk on Solaris happier.
8661
8662         * gtk/gtktreeview.c: Remove C++ comments.
8663
8664 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
8665
8666         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
8667         to handle '99% of the time. (#60473, reported by Christian Rose)
8668
8669         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
8670         which no longer exists. (#60379, reported by Vitaly Tishkov)
8671
8672 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
8673
8674         * Released 1.3.8.
8675
8676         * gdk/Makefile.am: kill EXTRA_DIST clearing.
8677         
8678 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
8679
8680         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
8681         as its broken in automake 1.4, add explicit object rule to
8682         generate this.
8683         
8684         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
8685         get rid of uneccessary stamps, group stuff more logically, and build
8686         sources due to object rules. fix srcdir!=builddir.
8687
8688 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
8689
8690         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
8691         incorrect parameter to compute_double_length
8692         (#58680, patch from Matthias Clasen)
8693
8694         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
8695
8696         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
8697
8698         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
8699         for GDK_RELEASE_MASK to avoid warnings with Forte.
8700
8701         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
8702         break; statements.
8703
8704 2001-09-18  Alex Larsson  <alexl@redhat.com>
8705
8706         * gtk/gtkcheckbutton.c:
8707         * gtk/gtkradiobutton.c:
8708         Don't draw with GTK_STATE_ACTIVE.
8709
8710         * gtk/gtkclist.c:
8711         * gtk/gtkctree.c:
8712         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
8713
8714         * gtk/gtktextdisplay.c:
8715         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
8716         unfocused with base_gc [GTK_STATE_ACTIVE].
8717         
8718         * gtk/gtkentry.c:
8719         Add select all menu-item.
8720         Default cursor color is red.
8721         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
8722         unfocused with base_gc [GTK_STATE_ACTIVE].
8723
8724         * gtk/gtklabel.[ch]:
8725         Add keynav + menu to selectable lables.
8726         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
8727         unfocused with base_gc [GTK_STATE_ACTIVE].
8728
8729         * gtk/gtkfilesel.c:
8730         Add drag and drop support.
8731
8732         * gtk/gtkstyle.c:
8733         (This was checked in earlier)
8734         New default values for text/base SELECTED and ACTIVE
8735         
8736 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
8737
8738         * configure.in: up version to 1.3.8, interface age 0,
8739         binary age 0, depend on glib 1.3.8.
8740
8741         * NEWS: 1.3.8 updates.
8742
8743 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
8744
8745         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
8746         the editing code
8747
8748         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
8749         reason to call it beyond emiting the two signals.
8750
8751         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
8752         to GtkEntry.
8753
8754 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
8755
8756         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
8757           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
8758         PangoFontDescription.
8759
8760         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
8761         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
8762         structure.
8763   
8764         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
8765
8766         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
8767         direct access to style->font. Deprecate gtk_style_ref/unref.
8768   
8769         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
8770         Remove gtk_style_ref/unref with g_object_ref/unref.
8771   
8772         * gtk/gtkcalendar.c: Remove leftover macros accessing
8773         style->font.
8774   
8775         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
8776         variable.
8777   
8778         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
8779         style->font.
8780
8781 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
8782
8783         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
8784         "can_activate" properties in favor of
8785         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
8786         and GTK_CELL_RENDERER_MODE_EDITABLE
8787
8788 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
8789
8790         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
8791         editable widgets.  This function is private, and should only be
8792         used by GtkTreeView.
8793
8794 2001-09-18  Matt Wilson  <msw@redhat.com>
8795
8796         * docs/Makefile.am (EXTRA_DIST): don't use += before =
8797
8798         * docs/faq/Makefile.am (EXTRA_DIST): likewise
8799
8800         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
8801         
8802         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
8803         (EXTRA_HEADERS): likewise
8804
8805         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
8806         (EXTRA_HEADERS): likewise
8807         (EXTRA_DIST): likewise
8808         (CLEANFILES): likewise
8809
8810         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
8811
8812         * tests/Makefile.am (EXTRA_DIST): likewise
8813         
8814         * Makefile.am (install-data-local): changed to use
8815         install-data-hook, which runs after install-pkgconfigDATA, so that
8816         the pkgconfigdir will have been created and populated first.
8817
8818 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
8819
8820         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
8821         be the last big GtkTreeView API change.
8822
8823         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
8824         replace with "activate" and "start_editing".  Also, added a
8825         "can_activate" and "can_edit" property.
8826
8827         * gtk/gtktreeviewcolumn.c: modify to use above.
8828
8829 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
8830
8831         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
8832
8833 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
8834
8835         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
8836         icon instead of one with ugly white background.
8837
8838 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
8839
8840         * demos/gtk-demo/stock_browser.c (id_to_macro): make
8841         the uppercasing work. (#59550)
8842
8843 2001-09-14  Jakub Steiner <jimmac@ximian.com>
8844
8845         * gtk/stock-icons/dialog_error.png:
8846         * gtk/stock-icons/dialog_question.png: more road signs
8847
8848 2001-09-13  Jakub Steiner <jimmac@ximian.com>
8849
8850         * gtk/stock-icons/dialog_question.png:
8851         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
8852           like a road sign.
8853
8854 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
8855
8856         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
8857         signals to make them more clear.  Also, change ::range_changed to
8858         ::row_changed.
8859         * gtk/gtktreemodel.c: Adjust to interface change
8860         * gtk/gtktreemodel.h: ditto
8861         * gtk/gtktreemodelsort.c: ditto
8862         * gtk/gtktreestore.c: ditto
8863         * gtk/gtkliststore.c: ditto
8864         * gtk/gtktreeview.c: ditto
8865         * tests/testtreecolumns.c: ditto
8866         * gtk/gtkmarshal.list: Actually remove a marshaller!
8867
8868 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
8869
8870         * gtk/gtktextview.c
8871         Add support for Ctrl+Up/Down arrow to move cursor to beginning
8872         of previous/next paragraph. If within a paragraph cursor moves to
8873         beginning of that paragraph.
8874
8875 2001-09-12  Jakub Steiner <jimmac@ximian.com>
8876
8877         * gtk/stock-icons/dialog_question.png: replacing the shaky
8878           question mark with a sans-serif one.
8879         * gtk/stock-icons/stock_top.png, stock_bottom.png,
8880      stock_first.png, stock_last.png: using the new style arrows
8881         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
8882      colors.
8883         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
8884      color.
8885         * gtk/stock-icons/stock_zoom*: anti-aliased
8886         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
8887      '-' with a '_', removed the wrong files
8888
8889 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
8890  
8891         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
8892  
8893         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
8894         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
8895         than in gtk-2.0/major.minor.micro/<type>/. This
8896         works better for a search path for modules.
8897  
8898         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
8899         gtk_binary_version variable holding major.minor.(micro-binary_age).
8900  
8901         * modules/input/Makefile.am (moduledir): Fix installation
8902         directory to match change in lookup location.
8903  
8904         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
8905         suffixes. Needs to be handled in g_module_build_path().
8906
8907         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
8908         appropriate.
8909  
8910 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
8911
8912         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
8913         causing RC properties not to work.
8914
8915 2001-09-11  Jakub Steiner <jimmac@ximian.com>
8916
8917         * gtk/stock-icons/dialog-error.png: less drastic
8918         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
8919           "STOP" is international enough.
8920         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
8921         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
8922
8923 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
8924
8925         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
8926         (add|remove)_selection_clipboard symmetric. (bug #59836)
8927
8928         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
8929         Avoid SEGV for empty tree. (bug #60243)
8930
8931 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
8932
8933         * tests/testgtk.c (create_idle_test): slight fix for
8934         g_object_set() not usable for nesting anymore.
8935
8936         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
8937         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
8938         properties, supply ::shadow_type properties instead as most
8939         other widgets do.
8940
8941 2001-09-10  Alex Larsson  <alexl@redhat.com>
8942
8943         * demos/gtk-demo/stock_browser.c:
8944         * gdk/gdkcolor.c:
8945         * gdk/gdkfont.c:
8946         * gdk/gdkcursor.c:
8947         * gdk/gdkevents.c:
8948         * gdk/gdkrectangle.c:
8949         * gtk/gtktypeutils.c:
8950         Update to use the new g_boxed_type_register_static API.
8951
8952 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
8953
8954         * gtk/gtktreestore.c:
8955         Fix looping in gtk_tree_store_init() waiting for zero random int.
8956
8957 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
8958
8959         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
8960         behaviour which havoc broke. they have to default to 1.0 for
8961         expand behaviour.
8962
8963         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
8964
8965 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
8966
8967         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
8968         Amend previous change to avoid runtime error in g_param_spec_ref()
8969
8970 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
8971
8972         * gtk/gtkrc.c (insert_rc_property): Fix blank line
8973         in the wrong place.
8974
8975 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
8976
8977         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
8978         do a lookup immediately after creating style->property_cache,
8979         since bsearch crashes on zero length for Solaris.
8980         (Found by Padraig O'Briain.)
8981
8982 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
8983
8984         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
8985         Really return NULL if not set.
8986         (gtk_widget_init): Remove unused varaible.
8987         
8988 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
8989
8990         * configure.in:
8991         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
8992         in cvs.
8993
8994 2001-09-08  Havoc Pennington  <hp@pobox.com>
8995
8996         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
8997         people might want to use
8998
8999 2001-09-08  Havoc Pennington  <hp@pobox.com>
9000
9001         * gtk/gtkalignment.c (gtk_alignment_class_init): default
9002         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
9003
9004         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
9005
9006         * gtk/gtktextiter.c: fix docs
9007         (gtk_text_iter_spew): get rid of this
9008
9009         * gtk/gtklayout.c: docs
9010
9011         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
9012         to center image and label together, instead of having image on
9013         left and label centered, patch/suggestion from Jacob
9014
9015         * gtk/gtkdialog.c: docs
9016
9017 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
9018
9019         * gtk/gtkliststore.c: Write documentation
9020         * gtk/gtktreestore.c: Write documentation
9021
9022 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
9023
9024         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
9025         with GArray and bsearch(), to remove dependency on a still
9026         evolving interface that we want to keep private to glib/gobject. 
9027
9028 2001-09-08  Havoc Pennington  <hp@pobox.com>
9029
9030         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
9031         docs fixes
9032
9033         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
9034
9035         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
9036
9037         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
9038
9039         * gtk/gtkscrolledwindow.h: docs fixes
9040
9041         * gtk/gtkimage.c (gtk_image_new): docs fixes
9042
9043 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
9044
9045         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
9046         false alarm  constness warning with a cast.
9047
9048         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
9049         for the inside-gdk case.
9050
9051 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
9052
9053         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
9054         remove g_print.
9055
9056         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
9057         change models, #59899
9058
9059 2001-09-07  Havoc Pennington  <hp@pobox.com>
9060
9061         * gtk/gtkmain.c: move some docs inline
9062
9063 2001-09-07  Havoc Pennington  <hp@pobox.com>
9064
9065         * gtk/gtk.h: tsk tsk, jrb broke the build
9066
9067 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
9068
9069         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
9070         Removed 'fill' attribute.  It was silly b/c that was a property of
9071         the cell renderer, anyway.
9072         (gtk_tree_view_column_render): Actually render the packed
9073         renderers.
9074         * doc/tree-column-sizing.txt: initial devel documentation.
9075         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
9076         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
9077
9078         * tests/testtreefocus.c: fix up to reflect above changes.
9079         * tests/testtreeview.c: ditto
9080         * demos/gtk-demo/stock_browser.c: ditto
9081
9082 2001-09-07  Alex Larsson  <alexl@redhat.com>
9083
9084         * gdk/linux-fb/gdkcolor-fb.c:
9085         Removed unused function.
9086         
9087         * gdk/linux-fb/gdkdrawable-fb2.c
9088         * gdk/linux-fb/gdkfont-fb.c:
9089         Use PangoLanguage functions.
9090
9091         * gdk/linux-fb/gdkinput.c:
9092         * gdk/linux-fb/gdkselection-fb.c:
9093         Fix const warnings.
9094         
9095         * gdk/linux-fb/gdkwindow-fb.c:
9096         Fix warning. Implement gdk_window_set_icon_list() and
9097         gdk_window_get_frame_extents(). (No icon support yet though.)
9098
9099         * gtk/gtkwindow.c (gtk_window_get_position):
9100         If window->frame is set get the extents of it instead.
9101         
9102 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
9103
9104         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
9105         Make the default default colormap the GdkRGB colormap,
9106         not the system colormap.
9107
9108         * gtk/gtkinvisible.c (gtk_invisible_init) 
9109           gtk/gtkwindow.c (gtk_window_init): Set the current
9110         colormap, as returned by _gtk_widget_peek_colormap()
9111         on the widget.
9112
9113         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
9114         to GTK+. Make it return %NULL instead of the default
9115         colormap if no colormap has explicitely been pushed.
9116
9117         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
9118         colormaps on ancestral widgets before defaulting the
9119         the system default colormap.
9120
9121         * docs/Changes-2.0.txt: explain colormap changes.
9122
9123 2001-09-07  Havoc Pennington  <hp@redhat.com>
9124
9125         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
9126         #57424
9127
9128 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
9129
9130         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
9131         make gdk_set_use_xshm a noop. Remove --no-xshm command line
9132         option. If we aren't autodetecting properly, we need
9133         to fix the problem, or at least make it an environment
9134         variable setting, to avoid problems with propagating
9135         to embedded children, plugins, etc.
9136
9137         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
9138
9139         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
9140         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
9141         New function to render a pixmap and mask for a particular colormap.
9142
9143         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
9144         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
9145         of internal implementation of the same.
9146
9147 2001-09-07  Havoc Pennington  <hp@redhat.com>
9148
9149         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
9150         debug code that seems to have caused a breakpoint in valid cases
9151         
9152         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
9153         pointer on the first view when adding the second view, fixes
9154         crash when closing gtk-demo text test with active selection
9155
9156         * gtk/gtktextbuffer.c
9157         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
9158         clipboards in the list of clipboards - probably fixes #59836
9159
9160 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
9161
9162       Make gdkx.h the only installed header from gdk/x11.
9163       All structures in gdk/x11 are opaque.
9164
9165         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
9166         Don't install gdk{drawable,pixmap,window}-x11.h.
9167
9168         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
9169         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
9170         GdkVisualClass into C files.
9171
9172         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
9173
9174         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
9175         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
9176         Add public functions to replace previously exported direct
9177         structure access.
9178         gdk_x11_colormap_get_{xdisplay,xcolormap} 
9179         gdk_x11_cursor_get_{xdisplay,xcursor},
9180         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
9181         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
9182         gdk_x11_gc_get_{xdisplay,ximage}
9183         
9184         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
9185         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
9186
9187       Fix a number of variables and functions that were exported
9188       "accidentally" from GDK.
9189
9190         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
9191         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
9192         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
9193         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
9194         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
9195         gdk_event_queue_find_first, gdk_event_queue_remove_link,
9196         gdk_event_queue_append, gdk_event_button_generate,
9197         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
9198
9199         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
9200            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
9201         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
9202         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
9203         gdk_use_xshm, gdk_input_ignore_core.
9204
9205         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
9206         #defines to namespace functions into the private _gdk_ 
9207         namespace.
9208
9209         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
9210         to replace gdk_parent_root exported variable. Adjust and
9211         deprecate GDK_ROOT_PARENT().
9212
9213         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
9214         GDK_ROOT_PARENT usage, remove includes of port-specific
9215         headers.
9216
9217         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
9218         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
9219         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
9220
9221         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
9222         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
9223         gdk_wm_delete_window functions, gdk_wm_take_focus, 
9224         use gdk_atom_intern() instead.
9225
9226         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
9227           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
9228           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
9229           gtk/gtkselection.c 
9230         Unexport gdk_selection_property, just use 
9231         gdk_atom_intern ("GDK_SELECTION").
9232
9233         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
9234         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
9235         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
9236         GdkVisualprivate, gdk_x11_gc_flush.
9237
9238       Make a number of public exports of variables into functions
9239       to increase encapsulation.
9240
9241         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
9242         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
9243         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
9244
9245         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
9246         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
9247         gdk_error_warnings.
9248
9249         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
9250           docs/Changes-2.0.txt: 
9251         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
9252         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
9253         Add gdk_x11_get_default_xdisplay().
9254
9255         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
9256         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
9257         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
9258         Don't export gdk_progclass, move --class command line
9259         option and handling to common portion of GDK.
9260
9261       Miscellaneous fixes:
9262
9263         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
9264         g_return_val_if_fail that should have been g_return_if_fail.
9265
9266         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
9267         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
9268
9269         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
9270         X11 dependency.
9271
9272         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
9273         Remove unused gdk_key_repeat_disable/restore.
9274
9275         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
9276         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
9277         Remove unused gdk_null_window_warnings variable.
9278
9279         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
9280         it can be retrieved from the repository; it is too far
9281         from functional to be worth having people check out;
9282         it would be easier to start from scratch, I suspect.
9283
9284         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
9285
9286         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
9287         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
9288         Fix some accidentally global variables and unused global variables.
9289
9290         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
9291         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
9292         Fix some accidentally global variables and unused global variables.
9293
9294       Add some space for future expansion to multihead.
9295
9296         * gdk/gdkdrawable.h: Add four reserved function pointers
9297         for future expansion of GdkDrawableClass.
9298
9299         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
9300         where we can put a GdkScreen * later.
9301
9302 2001-09-07  Havoc Pennington  <hp@redhat.com>
9303
9304         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
9305         adjustments after validating destination yrange; fixes #53918
9306         (This may cause other issues, but I hope it won't)
9307         
9308 2001-09-05  Havoc Pennington  <hp@redhat.com>
9309
9310         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
9311         line into start line, update the character counts in parent nodes; 
9312         caused a bug when end and start line had different parent nodes.
9313
9314 2001-08-30  Havoc Pennington  <hp@redhat.com>
9315         
9316         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
9317         assertion that tag is in a table
9318
9319 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
9320
9321         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
9322         g_strcasecmp on NULL strings. (#59058)
9323
9324 2001-09-06  Alex Larsson  <alexl@redhat.com>
9325
9326         * gtk/gtkbin.c:
9327         * gtk/gtkfontsel.c:
9328         * gtk/gtkspinbutton.c:
9329         * gtk/gtktipsquery.c:
9330         Use GtkType/GType instead of uint.
9331
9332 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
9333
9334         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
9335         sort column.
9336
9337         * gtk/gtktreestore.c (gtk_list_store_init): ditto
9338
9339         * gtk/gtktreesortable.c: add docs.
9340
9341 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
9342
9343         * Version 1.3.7
9344
9345         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
9346         docs for gtk-config
9347
9348         * modules/input/Makefile.am (install-data-local): Don't
9349         run gtk-query-immodules if DESTDIR is set.
9350
9351         * NEWS: Various additions.
9352
9353 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
9354
9355         * NEWS: updates for 1.3.7 release.
9356
9357 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
9358
9359         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
9360         handle default sort feature
9361
9362         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
9363         new function to handle default sort.
9364         (gtk_tree_sortable_has_default_sort_func): check if default sort
9365         is set.
9366
9367         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
9368         handle default sort feature
9369
9370 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
9371
9372         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
9373         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
9374         #59731
9375
9376 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
9377
9378         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
9379         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
9380         time, #59727
9381
9382         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
9383         correctly.
9384
9385 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
9386
9387         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
9388         so that we don't eternally update the keymap after we
9389         get a change notification.
9390
9391         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
9392         incorrect cast.
9393
9394 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
9395
9396         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
9397         it working. It mostly works now, although there're still a few issues
9398         to be worked out.
9399
9400         * tests/testtreesort.c (main): changes to have a better test
9401         application for the GtkTreeModelSort.
9402
9403 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
9404
9405         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
9406         fix for bug #59222.
9407
9408         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
9409         gpointer search_data argument to function definition and
9410         prototype, to match GtkTreeViewSearchEqualFunc typedef.
9411
9412 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
9413
9414         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
9415         per jrb's request.
9416
9417 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
9418
9419         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
9420
9421         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
9422
9423 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
9424
9425         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
9426         Instead of always mirroring the selection to a single PRIMARY
9427         selection, allow it to be mirrored to any number of clipboards.
9428
9429         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
9430         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
9431
9432         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
9433         GtkClipboard argument, and for paste_clipboard, the
9434         @override_location argument from @paste_primary.
9435
9436         * gtk/gtktextview.c: Adapt to above change.
9437         
9438 2001-08-30  Havoc Pennington  <hp@redhat.com>
9439
9440         * gtk/gtktextview.c (invalidated_handler): put validate idle at
9441         resize - 2 just for flexibility
9442
9443 2001-08-30  Havoc Pennington  <hp@redhat.com>
9444
9445         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
9446         object from the empty-child-anchor case by drawing a little box.
9447         
9448         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
9449         if the child anchor has no anchored widgets - fixes #59328.
9450
9451         Also, remove bizarre deletion of preedit string that seems to have
9452         gotten in here somehow.
9453
9454 2001-08-30  Havoc Pennington  <hp@redhat.com>
9455
9456         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
9457         to #58420 from Hidetoshi Tajima and Matthias Clasen
9458
9459 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
9460
9461         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
9462         change color when the GtkTreeView loses focus.
9463
9464         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
9465         ditto.
9466         
9467         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
9468
9469 2001-08-28  Havoc Pennington  <hp@pobox.com>
9470
9471         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
9472
9473 2001-08-28  Havoc Pennington  <hp@pobox.com>
9474
9475         * demos/gtk-demo/main.c (setup_default_icon): add default icon
9476
9477         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
9478         warning fix
9479         (gtk_radio_button_new_with_label): warning fix
9480
9481         * gtk/gtkdnd.c: used some random GtkImage private structs, 
9482         update to reflect GtkImage changes
9483
9484         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
9485         whether the hint is supported, just always set the icon. A task
9486         list might want to use it even if the WM doesn't, and the WM may
9487         change over time. Also, XDeleteProperty() if list == NULL.
9488
9489         * gtk/gtkwindow.c (gtk_window_set_icon_list)
9490         (gtk_window_get_icon_list)
9491         (gtk_window_set_icon)
9492         (gtk_window_get_icon)
9493         (gtk_window_set_default_icon_list)
9494         (gtk_window_get_default_icon_list):
9495         new functions
9496
9497         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
9498
9499         * gtk/gtkimage.c: Implement property support, bug #59408
9500
9501         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
9502         on reparent-without-removing-first a bit more helpful.
9503         Let's just destroy this FAQ.
9504
9505 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
9506
9507         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
9508         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
9509
9510 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
9511
9512         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
9513         of use_text_format to the end of the function. (#56447)
9514
9515 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
9516
9517         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
9518         only in response to an area_prepared signal.
9519
9520 2001-08-28  Alex Larsson  <alexl@redhat.com>
9521
9522         * gtk/gtkwidget.c (gtk_widget_class_init):
9523         Make unrealize GTK_RUN_LAST.
9524
9525 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
9526
9527         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
9528         with_label and with_mnemonic should create radio buttons, not
9529         check buttons
9530
9531 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
9532
9533         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
9534         * tests/treestoretest.c (make_window): ditto
9535         * demos/gtk-demo/main.c (create_tree): ditto
9536         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
9537
9538 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
9539
9540         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
9541         GTK selection types rather than GtkTreeSelectionMode.
9542
9543         * docs/Changes-2.0: Add comment about selection change.
9544
9545 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
9546
9547         * gtk/gtkenums.h (GtkSelectionMode): deprecate
9548         GTK_SELECTION_EXTENDED.
9549
9550         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
9551         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
9552
9553         * gtk/gtkctree.c: ditto
9554
9555         * gtk/gtklist.c: ditto
9556
9557         * gtk/gtktree.c: ditto
9558
9559 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
9560
9561         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
9562         of typos in compat macros. (#59624, Skip Montaro)
9563
9564 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
9565
9566         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
9567         macro.
9568
9569          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
9570  
9571         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
9572         interface to be a standard setter from gtk_menu_item_right_justify.
9573         (gtk_menu_item_get_right_justified): a getter to go with the setter
9574
9575         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
9576         gtk_menu_item_right_justify.
9577
9578         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
9579         gtk_menu_item_set_right_justified.
9580  
9581 2001-08-27  Jens Finke <jens@gnome.org>
9582
9583         * gtk+.spec.in: Updated to match gpp requirements, reworked the
9584         files section to make it work with 1.3.x releases.
9585
9586 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
9587
9588         * gtk/gtkbutton.[ch]:
9589         Add properties for labels, mnemonics and stock items.
9590         Added C accessor functions for the properties.
9591         Removed deprecated button->child.
9592
9593         * gtk/gtkradiobutton.c:
9594         * gtk/gtktogglebutton.c:
9595         Update to use the functions in GtkButton.
9596
9597         * gtk/gtkcheckbutton.c:
9598         Update to use the functions in GtkButton.
9599         Changed size allocation of child. Now only gets as much
9600         space as it requests.
9601
9602         * gtk/gtkclist.c:
9603         Don't use GtkButton->child
9604
9605         * gtk/gtklabel.c:
9606         Fixed typo in docs
9607         
9608 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
9609
9610         * tests/testgtk.c:
9611         * tests/Makefile.am:
9612         Ressurect the properties test.
9613         I don't care if it is inferior, I just want to test my property code.
9614
9615 2001-08-25  Chema Celorio  <chema@celorio.com>
9616
9617         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
9618         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
9619         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
9620
9621 2001-08-24  Havoc Pennington  <hp@pobox.com>
9622
9623         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
9624         these are already in gtkmenu.h, and the copies
9625         here were broken.
9626
9627         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
9628
9629         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
9630         special-case bitmaps to allow no colormap
9631         (bitmap1): implement no-colormap bitmap-getting
9632         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
9633         alpha
9634         (rgb8): indentation
9635         (rgb1a, rgb1): change the way we read the data out of the image, 
9636         old way didn't seem to work quite right.
9637
9638         I'm pretty sure a lot of the rgbconvert code is still broken.
9639         
9640         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
9641         above position constraint (I really intended to do this before,
9642         don't know what's up with that)
9643         (gtk_XParseGeometry): shut up gcc
9644
9645         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
9646         and "0" should have been. remove the attempted 4-bytes-at-once
9647         optimization, it was totally broken.
9648
9649 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
9650
9651         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
9652         on push to buttons (based on patch from Soeren Sandmann, #54720)
9653
9654           - Add child_displacement_x/y style properties to control how far the
9655             child moves when the button is depressed.
9656
9657           - Add non-exported function _gtk_button_set_depressed to clean
9658             up the handling of the in/out shadow and separate it frmo
9659             widget->state.
9660
9661           - Lots of code cleanup and simplification of state handling
9662             for GtkButton/GtkToggleButton.
9663  
9664         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
9665         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
9666
9667 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
9668
9669         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
9670         and make gtk_image_new() take no arguments. The compiler will
9671         catch it, and it is vastly more useful than having
9672         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
9673
9674         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
9675         to add tearoff-title property (#51319, Lee Mallabone)
9676
9677 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
9678
9679         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
9680         gtk_menu_item_configure(). (#58925)
9681
9682 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
9683
9684         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
9685         "use_align" to give people the option to just make a cell visible.
9686
9687         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
9688         we were scrolling past the end of the tree.
9689
9690         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
9691         rename gtk_tree_view_column_pack_start_cell_renderer to
9692         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
9693
9694 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
9695
9696         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
9697         a stray g_object_ref() left over from gtk_object_ref/sink.
9698         (Pointed out by Josh Pritikin.)
9699
9700 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
9701
9702         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
9703         to gtk_container_get_children. Added deprecated compatibility
9704         macro. (Suggested by Vitaly Tishkov, #59051)
9705
9706         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
9707         calls.
9708
9709 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
9710
9711         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
9712         gtk_menu_bar_append/prepend/insert, forgot to do this
9713         when we deprecated gtk_menu_append/prepend/insert.
9714
9715         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
9716         compat macros.
9717
9718         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
9719         renamed by compat macro.
9720
9721         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
9722         gtk_font_selection_dialog_get_font(). (Suggested by
9723         Vitaly Tishkov, #59383)
9724
9725 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
9726
9727         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
9728         Rename from gtk_text_tag_table_size(). (#59366)
9729
9730 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
9731
9732         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
9733         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
9734         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
9735         (#59173).
9736
9737 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
9738
9739         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
9740         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
9741         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
9742
9743 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
9744
9745         [ Patch from Sebastian Wilhelmi, 52790 ]
9746
9747         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
9748
9749         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
9750         Move compatibility macros from g[dt]kcompat.h to within 
9751         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
9752
9753         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
9754
9755         * demos/Makefile.am demos/gtk-demo/Makefile.am 
9756           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
9757           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
9758
9759         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
9760                  testpixbuf.c}: Fix usages of deprecated functions.
9761
9762 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
9763
9764         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
9765         when changing models.
9766
9767 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
9768
9769         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
9770         We check the current event for modifiers rather than try to trap
9771         all presses.
9772
9773 2001-08-22  Anders Carlsson  <andersca@gnu.org>
9774
9775         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
9776         It's LIST_STORE, not LISTSTORE.
9777
9778 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
9779
9780         * gtk/gtk.h: Remove commented out gtkpacker reference.
9781
9782 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9783
9784         * configure.in (all_loaders): Add tga loader, 
9785         patch by Nicola Girardi. (#56067)
9786
9787 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
9788
9789         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
9790         a little.  More needs to be done tomorrow.
9791
9792 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
9793
9794         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
9795
9796 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
9797
9798         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
9799         reported by Kristian Rietveld <kristian@planet.nl> to handle row
9800         == NULL.
9801         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
9802         <kristian@planet.nl> to change destroy order.
9803
9804 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
9805
9806         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
9807         correct marshaller.
9808
9809 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
9810
9811         * gtk/gtkliststore.c: Fix up warnings, #58928.
9812
9813         * gtk/gtktreeselection.h: Change signal prototype, #58647
9814
9815         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
9816         #59221.
9817
9818         * gtk/gtkstyle.c: Actually prelight arrow, #50981
9819         
9820 2001-08-18  Hans Breuer  <hans@breuer.org>
9821
9822         * gdk/gdk.def : updated externals
9823
9824         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
9825         is required to get (at least) visible in entry fields. Some selections
9826         are really handled now - even on win32 - but copying via middle
9827         mouse button into a different app needs to wait ... 
9828
9829         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
9830         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
9831
9832         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
9833         handling. I'm not sure if it is better now, but at least not worse
9834
9835         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
9836         with SetWindowPos () which allows more fine-tuning backing-store wise
9837
9838         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
9839         Also changed move/resize to be more like the X version.
9840
9841         * gtk/gtk.def : updated externals
9842
9843 2001-08-19  Sven Neumann  <sven@gimp.org>
9844
9845         * gtk/gtktooltips.c
9846         * tests/testtreesort.c
9847         * tests/treestoretest.c: inserted some casts to get rid of compiler
9848         warnings.
9849
9850 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
9851
9852         * gtk/gtktreeviewcolumn.c
9853         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
9854
9855         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
9856         (_gtk_tree_view_find_node): If *node is NULL,
9857         *tree should be NULL too.
9858
9859         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
9860         column/renderers.
9861         * tests/testtreecolumns.c: ditto
9862         * tests/testtreefocus.c: ditto
9863         * tests/testtreesort.c: ditto
9864         * tests/testtreeview.c: ditto
9865         * tests/treestoretest.c: ditto
9866
9867 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
9868
9869         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
9870         signals; is_expander/is_expanded.
9871
9872         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
9873         pixbufs.
9874
9875         * gtk/gtktreeview.c: set above properties.
9876
9877 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
9878
9879         * gtk/gtkwidget.h: Really remove set_default_style().
9880
9881         * docs/Changes-2.0.txt: added a note about
9882         gtk_widget_push/pop/set_default_style.
9883
9884 2001-08-18  Havoc Pennington  <hp@pobox.com>
9885
9886         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
9887         hints_changed in addition to the other cases.
9888         (gtk_window_move_resize): include last position from configure
9889         notify in debug spew
9890
9891 2001-08-18  James Henstridge  <james@daa.com.au>
9892
9893         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
9894         second argument to the weak ref notify, cleaning up some uglyness.
9895         (gtk_accel_group_attach): remove and add the weak notifier when
9896         changing the accel groups slist.
9897         (gtk_accel_group_detach): same here.
9898
9899 2001-08-17  Darin Adler  <darin@bentspoon.com>
9900
9901         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
9902         missing parameters to utf8 functions to make it compile.
9903
9904 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
9905
9906         * gtk/gtktreeprivate.h:
9907         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
9908         (gtk_tree_view_init), (gtk_tree_view_set_property),
9909         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
9910         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
9911         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
9912         (gtk_tree_view_set_destroy_count_func),
9913         (gtk_tree_view_set_enable_search),
9914         (gtk_tree_view_get_enable_search),
9915         (gtk_tree_view_get_search_column),
9916         (gtk_tree_view_set_search_column),
9917         (gtk_tree_view_get_search_equal_func),
9918         (gtk_tree_view_set_search_equal_func),
9919         (gtk_tree_view_search_dialog_destroy),
9920         (gtk_tree_view_search_position_func),
9921         (gtk_tree_view_interactive_search),
9922         (gtk_tree_view_search_delete_event),
9923         (gtk_tree_view_search_button_press_event),
9924         (gtk_tree_view_search_key_press_event),
9925         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
9926         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
9927         * gtk/gtktreeview.h:
9928         Add heavily modified patch from Kristian Rietveld to handle
9929         interactive searching.
9930
9931 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
9932
9933         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
9934         string parameter.
9935
9936         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
9937         GtkMenuShell::selection_done, now that we have it, instead of 
9938         ::deactivate so we're not tearing the menu apart and notify
9939         the user prematurely.
9940
9941 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
9942
9943         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
9944         window, clear window->need_default_position to avoid infinite loops.
9945         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
9946
9947 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
9948
9949         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
9950         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
9951         (gtk_tree_view_set_property): don't cast possible NULL objects.
9952         (gtk_tree_view_destroy): reset the model to NULL.
9953
9954         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
9955         parent_class handler.
9956
9957 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9958
9959         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
9960
9961 2001-08-17  Anders Carlsson  <andersca@gnu.org>
9962
9963         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
9964         point numbers so that the result will be floating point.
9965
9966 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
9967
9968         * tests/testgtk.c (create_handle_box): 
9969         (create_toolbar): Replace gtk_window_set_policy calls by
9970         gtk_window_set_resizable.
9971
9972 2001-08-16  Jakub Steiner <jimmac@ximian.com>
9973
9974         * gtk/stock-icons/dialog_info.png: new style bulb
9975         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
9976         * gtk/stock-icons/dialog_warning.png: need a hand?
9977         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
9978           the aa border gets chopped off ok
9979         * gtk/stock-icons/stock_colorselector.png: using the new hand
9980         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
9981           this one is for, but the old icon was butt ugly.
9982         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
9983         * gtk/stock-icons/stock*_insert_object.png: "
9984         * gtk/stock-icons/stock_index.png: using new hand icon
9985         * gtk/stock-icons/stock*_new.png: the document template being used 
9986           elsewhere too
9987         * gtk/stock-icons/stock*_print*.png: new print and print preview 
9988           icons (panel/menu)  
9989         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
9990           icons based on Tuomas' floppy image.
9991         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
9992         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
9993         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
9994         * gtk/stock-icons/stock*_undelete.png: "
9995         * gtk/stock-icons/stock_preferences.png: I have a version with a 
9996           document base if the sliders are no good.
9997         * gtk/stock-icons/stock_properties.png: properties 
9998         
9999
10000         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
10001           (tigert@ximian.com) clipboard icons
10002         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
10003         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
10004         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
10005           little bigger IMHO
10006
10007 2001-08-16  Sven Neumann  <sven@gimp.org>
10008
10009         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
10010
10011 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
10012
10013         * gtk/gtkcellrenderertext.c:
10014         Avoid warning when specifying NULL for "attributes" property
10015
10016 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
10017
10018         * docs/debugging.txt: Add a warning about --enable-debug=no,
10019         some editorial changes.
10020
10021 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
10022
10023         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
10024         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
10025         debugging info, remove unused debug flags. (#58330)
10026
10027 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
10028
10029         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
10030         (gtk_tree_selection_select_all): Remove strict checking for rows.
10031
10032 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
10033         
10034         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
10035         Don't remove the tooltip window when the tip text changes. (#15891)
10036
10037 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
10038
10039         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
10040         $(srcdir).
10041
10042 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
10043
10044         * Makefile.am (EXTRA_DIST): Fix problem with trying to
10045         dist files from intl/, which is no longer there.
10046
10047 2001-08-11  Hans Breuer  <hans@breuer.org>
10048
10049         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
10050           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
10051           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
10052           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
10053           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
10054           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
10055
10056         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
10057           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
10058         GDK_TYPE_EVENT signals
10059
10060         * gtk/gtkalignment.c : removed 'direct allocation bug',
10061         which Tim discovered while reading the patch
10062
10063 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
10064
10065         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
10066         compat macros for push/pop/set_visual that were supposed
10067         to be added a long time ago, but got dropped. 
10068
10069 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
10070
10071         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
10072         property notifies.
10073
10074 2001-08-07  Havoc Pennington  <hp@pobox.com>
10075
10076         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
10077
10078         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
10079         some fixage is needed here, but nothing simple. Owen understands
10080         it. ;-)
10081
10082         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
10083         sizing and positioning.  Also, fix bug in compute_geometry_hints
10084         (width/height confusion for setting min size). 
10085         (gtk_window_move): new function
10086         (gtk_window_resize): new function
10087         (gtk_window_get_size): new function
10088         (gtk_window_get_position): new function
10089         (gtk_window_parse_geometry): new function
10090         
10091         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
10092         (gtk_widget_get_size_request): new function
10093         (gtk_widget_get_usize): delete, that was a short-lived function
10094         ;-)
10095         (gtk_widget_set_usize): deprecate
10096         (gtk_widget_set_uposition): deprecate, make it a trivial 
10097         gtk_window_move() wrapper
10098         (gtk_widget_class_init): remove x/y/width/height properties,
10099         add width_request height_request
10100         
10101         * demos/*: update to avoid deprecated functions
10102         
10103         * gtk/gtklayout.c: add x/y child properties
10104
10105         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
10106         uses of "gint16"
10107
10108         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
10109         sizing test
10110
10111         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
10112         configure events on toplevel windows are always in root window
10113         coordinates, following ICCCM spec that all synthetic events 
10114         are in root window coords already, while real events are 
10115         in parent window coords. Previously the code assumed that 
10116         coords of 0,0 were parent window coords, which was 
10117         really broken.
10118   
10119         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
10120         warning
10121  
10122         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
10123         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
10124         hints in gtk_window_parse_geometry()
10125  
10126         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
10127         new USER_POS USER_SIZE hints    
10128
10129 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
10130
10131         * tests/prop-editor.c (properties_from_type): Use 
10132         g_object_class_list_properties to get the param specs 
10133         for a given type. (#58609)
10134
10135 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
10136
10137         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
10138         free the text_aa parts. (#57549)
10139
10140 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
10141
10142         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
10143         not the foreground color. (#57621)
10144
10145 2001-08-09  Alexander Larsson <alexl@redhat.com>
10146
10147         * gdk/win32/gdkfont-win32.c:
10148         Update to the new pango win32 api.
10149
10150 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
10151
10152         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
10153         COMPOUND_TEXT instead of TEXT
10154         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
10155         interpret the return value of g_string_to_compound_text()
10156         (#55152)
10157
10158 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
10159
10160         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
10161         fail if iter is NULL. (#58347)
10162
10163 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
10164
10165         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
10166         some off-by-one issues, fixing selection of line-ends. (#50323)
10167
10168 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
10169
10170         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
10171         functions in order to make mouse operation work again in the
10172         color wheel. (#58604)
10173
10174 2001-08-07  James Henstridge  <james@daa.com.au>
10175
10176         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
10177         the accelerator when the accel object is changed.  Fixes bug
10178         #58628.
10179
10180 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
10181
10182         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
10183         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
10184         (gnome bugzilla #58202)
10185
10186 2001-08-06  Havoc Pennington  <hp@pobox.com>
10187  
10188         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
10189         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
10190         it was expecting a GdkWindow, not a GdkWindowImplX11.
10191  
10192         Also, we were getting the window rect in screen coords 
10193         and the screen rect in window coords then intersecting 
10194         them; instead, get window rect in window coords.
10195  
10196         Finally, there were codepaths that resulted in a stuck server grab
10197         (when the window was fully onscreen, or on gdk_image_new()
10198         failure); make the server ungrab thing a bit more
10199         robust/consistent.
10200
10201 2001-08-06  Sven Neumann  <sven@gimp.org>
10202
10203         * gdk/gdkpango.c (gdk_pango_context_destroy): 
10204         check if info->colormap != NULL before unref'ing it. It might have
10205         been set to NULL using gdk_pango_context_set_colormap().
10206
10207 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
10208
10209         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
10210         Fix conversion from float to int so that we don't get
10211         skew in the int => float => int roundtrip. 
10212         (#58120, reported by Vitaly Tishkov). Also fix problem
10213         where if no alpha was set, the returned alpha
10214         from (say) set_current_alpha() was returned as 1, not 65535.
10215
10216 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
10217
10218         * gtk/gtklist.c (gtk_list_clear_items): Fix
10219         problem with selecting a new focus child.
10220
10221         * gtk/gtklist.c (gtk_list_clear_items): Clear 
10222         list->undo/list_focus_child after unparenting
10223         child, since unparenting the child can result
10224         in list->last_focus_child being set. (#58024)
10225
10226         * Makefile.am (SUBDIRS): Add target specific pc
10227         files to DISTCLEANFILES.
10228
10229         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
10230         (58327, Matthias Clasen)
10231
10232 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
10233
10234         * tests/testgtk.c: Patch from Hans (with various modifications),
10235         to add the ability to use testgtk as a rough-and-ready
10236         benchmark. Try, 'testgtk --bench all:5' (if you want decent
10237         numbers, run without a window manager)
10238
10239 2001-08-04 Alexander Larsson <alexl@redhat.com>
10240
10241         * gdk/win32/gdkinput.c:
10242         Add #ifdef HAVE_WINTAB around wintab.h include.
10243
10244         * gtk/gtk.def:
10245         Removed marshals that have been moved to glib.
10246         Commented out plug and socket. They didn't compile for me 
10247         on win32.
10248
10249 2001-08-04  Hans Breuer  <hans@breuer.org>
10250
10251         * gtk/stocks-icons/makefile.msc : new file
10252         * gtk/makefile.msc.in : use it
10253
10254         * gtk/gtkstyle.c : not all platforms do provide M_PI and
10255         friends, but luckily there is G_PI
10256
10257         * gtk/gtk.def : updated
10258
10259         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
10260         windows WS_POPUP, but only those without a parent. This fixes the 
10261         mis-alignment between the selectable (temp, input only) window and 
10262         the window text of GtkLabel.
10263
10264         (gdk_window_show) : respect private->state when actually showing
10265         the window.
10266
10267         (gdk_window_set_transient_for) : Implementation from Wolfgang 
10268         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
10269         error handling. Should fix #50586.
10270
10271         * gdk/win32/gdkevents-win32.c : beautify log output
10272
10273 2001-08-04  Michael Natterer  <mitch@gimp.org>
10274
10275         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
10276         Need to show the image after adding it to the GtkImageMenuItem.
10277         This used to work without in testgtk because of the
10278         gtk_widget_show_all() at the end of the function.
10279         (Closes #54978).
10280
10281 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
10282
10283         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
10284         (gtk_notebook_set_child_property): fix finding of child's page,
10285         since we have to validly deal with labels and menus here as well.
10286         (gtk_notebook_get_child_property): fix warning.
10287         (gtk_notebook_class_init): property tab_pack is of type
10288         GTK_TYPE_PACK_TYPE (enum) not boolean.
10289         (gtk_notebook_find_child): don't always warn, we might be looking
10290         for a label or menu child.
10291         (gtk_notebook_map): fix mapping of panel.
10292
10293         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
10294         widget's mapped state, regardless of the value being set equals
10295         old settings, since things like REALIZED(parent) or MAPPED(parent)
10296         may have changed since the old value was set. make it an error to
10297         invoke this function on a toplevel widget.
10298
10299 2001-07-31  Darin Adler  <darin@bentspoon.com>
10300
10301         * gdk/gdkprivate.h:
10302         * gdk/x11/gdkx.h:
10303         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
10304
10305         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
10306         GTK_OBJECT.
10307
10308 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
10309
10310         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
10311         scoping error pointed out by matthiasc@poet.de.
10312
10313 2001-07-31  Sven Neumann  <sven@gimp.org>
10314
10315         * demos/gtk-demo/appwindow.c
10316         * demos/gtk-demo/item_factory.c
10317         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
10318
10319 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
10320
10321         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
10322         argument order for g_signal_has_handler_pending.
10323
10324 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
10325
10326         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
10327         instead of long deprecated g_scanner_stat_mode().
10328
10329 2001-07-29  Hans Breuer  <hans@breuer.org>
10330
10331         * gdk/makefile.msc : build in the backend dir after
10332         auto-generating files
10333
10334         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
10335         with code from win32-production-branch.
10336
10337         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
10338         before calling DestroyWindow, which indirectly calls 
10339         gdk_window_destroy_notify ()
10340
10341         (performance patch merged from win32-production-branch)
10342         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
10343         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
10344         R2_COPYPEN rop). It is claimed to be much faster.
10345
10346 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
10347
10348         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
10349         add an "attributes" property to the text renderer for ATK.
10350
10351 2001-07-26  Alex Larsson  <alexl@redhat.com>
10352
10353         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
10354         Initialize image->bits_per_pixel from the drawable, not from
10355         the root window.
10356
10357         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
10358         Fix cast. argument is an IMPL already.
10359
10360 2001-07-15  James Henstridge  <james@daa.com.au>
10361
10362         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
10363         (gtk_window_remove_accel_group): same here.
10364         (gtk_window_key_press_event): same here.
10365
10366         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
10367         (gtk_widget_remove_accelerator): same here.
10368         (gtk_widget_remove_accelerators): same here.
10369
10370         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
10371
10372         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
10373         instead of GtkObject.
10374
10375         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
10376         now takes GObjects.
10377
10378         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
10379         pass a GObject to gtk_accel_group_entries_from_object.
10380         (gtk_item_factory_create_item): s/accel_widget/accel_object/
10381
10382         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
10383
10384         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
10385
10386         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
10387         GObjects can have accelerators set now.  Add compatibility
10388         defines.
10389
10390         * gtk/gtkmarshal.list: add missing marshallers.
10391
10392         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
10393         accelerators on plain GObjects.  gtk_accel_group_object_destroy
10394         has been converted into a weak reference, and
10395         gtk_accel_group_delete_entries is now a destroy notify for that
10396         piece of data.
10397
10398 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
10399
10400         * gdk/gdkdraw.c: Added a check on the colormap depth to
10401         gdk_drawable_set_colormap()
10402         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
10403         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
10404         for pixmaps without visuals (more specifically, bitmaps)
10405         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
10406         doesn't set a colormap with the wrong depth
10407
10408
10409 2001-07-22  Anders Carlsson  <andersca@gnome.org>
10410
10411         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
10412         expander_height and expander_width properties with a single
10413         property, expander_size.
10414         (gtk_tree_view_init): Set the tab_offset to expander_size
10415         plus some padding.
10416         (gtk_tree_view_unrealize): Remove the expand/collapse
10417         timeout if it exists.
10418         (coords_are_over_arrow): Fix a small bug.
10419         (gtk_tree_view_motion_draw_column_motion_arrow): Use
10420         expander_size.
10421         (gtk_tree_view_draw_focus): Use "treeview" instead of
10422         "add-mode" as detail when drawing the focus.
10423         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
10424         instead of "add-mode" as detail when drawing the focus.
10425         (gtk_tree_view_deleted): If we have a node currently being
10426         expanded or collapsed, remove the timeout and set the node 
10427         to NULL.
10428         (gtk_tree_view_queue_draw_arrow): New function that just
10429         redraws the arrow of a node.
10430         (gtk_tree_view_draw_arrow): Use expander_size instead of
10431         expander_width/expander_height, also pass a different
10432         expander_style to gtk_paint_expander depending on the 
10433         state of the node being drawn.
10434         (expand_collapse_timeout): New function for expanding 
10435         or collapsing a node depending on the previous state.
10436         (gtk_tree_view_real_expand_row): Add timeout and set 
10437         correct state for node being expanded.
10438         (gtk_tree_view_real_collapse_row): Add timeout and set
10439         correct state for node being collapsed.
10440
10441         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
10442         information about the node currently being expanded or
10443         collapsed, and also a timeout id.
10444
10445         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
10446         with expander_style for draw_expander.
10447
10448         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
10449         expander_style.
10450         (create_expander_affine): New function for creating an 
10451         expander affine.
10452         (apply_affine_on_point): New function for applying an 
10453         affine to a point.
10454         (gtk_default_draw_expander): Modified to take expander_style
10455         instead of is_open, and to draw the rectangle rotated differently
10456         depending on the expander style.
10457         (gtk_paint_expander): Replace is_open with expander_style.
10458
10459         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
10460
10461         * gtk/gtkenums.h: Add expander style enum.
10462
10463 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
10464
10465         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
10466         value from gtk_tree_model_get_iter, the model might be empty.
10467
10468 2001-07-20  Hans Breuer  <hans@breuer.org>
10469
10470         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
10471         gdk/gdkinput.c like the other backends
10472
10473         * gdk/win32/gdkinput-win32.h :
10474         * gdk/win32/gdkinput.c :
10475         * gdk/win32/gdkvisual-win32.c :
10476         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
10477         GdkVisual GObjectification. UNTESTED for pen-devices because
10478         I simply have none.
10479
10480         * gdk/gdk.def :
10481         * gtk/gtk.def : updated externals
10482
10483         * gtk/gtkiconfactory.c :
10484         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
10485         before passing &error to functions to avoid strange crashes
10486         
10487         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
10488
10489         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
10490
10491         * gtk/makefile.msc.in : updated
10492
10493 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
10494
10495         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
10496         Add property support. (#51858)
10497
10498 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
10499
10500         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
10501         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
10502         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
10503
10504 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
10505
10506         * gtk/gtkcolorsel.c: Add propery support (roughly
10507         based on patch from Lee Mallabone, #51014)
10508
10509         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
10510         deprecated, since we already g_warning() on it.
10511
10512 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
10513
10514         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
10515         typo that sometimes caused selection not to work properly.
10516
10517         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
10518         entry when tabbing in. (#57743)
10519         
10520         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
10521         user drags up above or down below the entry, move
10522         to the end or the beginning of the entry. (Suggestion
10523         from Jay Cox, #50940)
10524
10525         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
10526         a current selection, then when moving by chars or
10527         words, move to the end of the selection rather than
10528         from entry->current_pos. (Suggestion from Jay Cox,
10529         #50942)
10530         
10531 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
10532
10533         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
10534         set window->decorated. (Patch from Hidetoshi Tajima,
10535         #55846)
10536
10537 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
10538
10539         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
10540         the widget/child realization/mapping invariants.
10541
10542         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
10543         gtk_widget_[get/set]_child_visible() to control
10544         whether visible children of a mapped window are
10545         mapped.
10546
10547         * docs/widget_system.txt: Updated for changes in
10548         container contract, and addition of GTK_CHILD_VISIBLE.
10549
10550         * gtk/gtkcontainer.c: Add generic map()/unmap()
10551         functions that work for almost all containers.
10552
10553         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
10554         gtk_widget_set_child_visible() where necessary.
10555
10556         * gtk/*.c: Remove excess map(), unmap(), and 
10557         realization/mapping invariant enforcing code
10558         from many containers.
10559
10560 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
10561
10562         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
10563         Get the foreground color from 'text', nor 'fg'. (#57568)
10564
10565 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
10566
10567         * gtk/*.c: Patch from Matthias Clasen to remove remove
10568         all instances of g_return_if_fail (foo != NULL); that are
10569         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
10570         since the second check catches the NULL anyways.
10571
10572 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
10573
10574         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
10575         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
10576         GDK_THREADS_ENTER()/LEAVE() pairs.
10577
10578         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
10579         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
10580         pairs. (Problem found by M. Meeks)
10581
10582 2001-07-18  Darin Adler  <darin@bentspoon.com>
10583
10584         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
10585         that we don't get a g_warning message every time we register a new
10586         icon size.
10587
10588         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
10589         using pixel variable of the correct type.
10590         
10591 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
10592
10593         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
10594         so that using X functions on a GdkWindow is possible, if
10595         a little hairy.
10596
10597         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
10598         and ts_origin of a GC, so that external parties can offset/restore
10599         a GC, when using gdk_window_get_internal_paint_info().
10600
10601 2001-07-17  Darin Adler  <darin@bentspoon.com>
10602
10603         * .cvsignore: Ignore the sgml directory made by gtkdoc.
10604         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
10605         instead of the deprecated gtk_window_set_policy.
10606         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
10607         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
10608         function to get rid of warning and some code too.
10609         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
10610         missing const.
10611         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
10612         unused local.
10613         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
10614         const.
10615         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
10616         (gdk_utf8_to_compound_text): Add missing const.
10617         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
10618         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
10619         cast and get rid of an unnecessary one.
10620         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
10621         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
10622         local.
10623         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
10624         Remove unused local.
10625         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
10626         missing const.
10627         * tests/testsocket.c: (add_child): Add cast so the printf format
10628         doesn't make us implicitly depend on what integer type
10629         gtk_socket_get_id returns.
10630         * tests/testtextbuffer.c: Add missing const.
10631         * tests/testtreefocus.c: (main): Remove unused local.
10632         * tests/treestoretest.c: (iter_remove): Remove unused local.
10633         (uppercase_value): Remove unused function.
10634         (make_window): Add statement to quiet the compiler's uninitialized
10635         variable warning.
10636
10637 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
10638
10639         * gtk/gtkrange.c:
10640         (second_timeout): 
10641         (initial_timeout): 
10642         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
10643         (gtk_range_calc_layout): compute the new layout based on an
10644         adjustment->value being passed in as argument.
10645         (gtk_range_button_press): for button2 slider warps, first recalc
10646         the layout, then adjust the value. also, use update_slider_position()
10647         for adjusting the value, so we keep pixel quantisation at which we
10648         usually operate (upon motion or button releases). the reason for this
10649         is that, we can't change the adjustment upon button2 presses to a non
10650         quantised value and upon button2 release re-quantise the value since
10651         that'd alter the value even if we didn't get any motion events (causing
10652         unexpected scroll area warps upon release and/or slider pixel-jitter).
10653         (gtk_range_motion_notify): update the slider position from queried
10654         coordinates, not event coordinates.
10655
10656 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
10657
10658         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
10659         the default gc values are: width=0, CapBut, JoinMiter.
10660
10661 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
10662
10663         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
10664         into account the xpad and ypad when calculating the width and the
10665         height of the pixbuf cel.
10666
10667 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
10668
10669         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
10670         Rename to gtk_radio_menu_item_get_group(), add deprecated
10671         alias. (#57044)
10672
10673         * gtk/gtkfilesel.c: Indentation fix.
10674
10675 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
10676
10677         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
10678         Hasselmann to fix warnings in compat macros. 
10679         (#56773)
10680
10681         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
10682         stupid wrong cast added in last patch.
10683
10684 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
10685
10686         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
10687         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
10688
10689 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
10690
10691         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
10692         missing cast.
10693
10694         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
10695         NULL/FALSE return value confusion.
10696
10697         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
10698         problem when scrollbar completely fills range. (Patch
10699         from  Matthias Clasen, #57047)
10700
10701 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
10702
10703         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
10704         clean up when handling events for move-resize emulation.
10705         (Problem traced down by Matthias Clasen, #57271)
10706
10707 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
10708
10709         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
10710           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
10711           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
10712           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
10713           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
10714           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
10715           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
10716         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
10717
10718 2001-07-09  Peter Williams  <peterw@ximian.com>
10719
10720         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
10721         for when srcdir != builddir
10722
10723 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
10724
10725         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
10726         gtk_tree_model_get_iter_root.
10727
10728         * gtk/gtkliststore.c: Add a bunch of g_return statements.
10729         (gtk_list_store_iter_n_children): Fix up.
10730
10731         * gtk/gtktreestore.c: Add a bunch of g_return statements.
10732
10733 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
10734
10735         * gtk/gtkwidget.c (gtk_widget_class_init):
10736         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
10737         restore some workingness.
10738
10739         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
10740         handle of window type for input-only windows.
10741
10742 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
10743
10744         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
10745         Patch from Gregory Merchan to add 
10746         gtk_button_box_set_secondary(), which separates
10747         the child into a separate group from the normal
10748         buttons. (#56331)
10749
10750         * gtk/gtkdialog.c: Make help buttons secondary by
10751         default.
10752
10753         * gtk/gtkbbox.c: Added a child property "secondary".
10754
10755         * gtk/testgtk.c: Turn on the help button for the 
10756         color selector to check that it properly appears
10757         as secondary.
10758
10759 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
10760  
10761         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
10762         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
10763         Add gdk_set_pointer_hooks() to allow pointer-querying to
10764         be hooked by an event record/playback system like GERD.
10765         (#56914)
10766         
10767 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
10768
10769         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
10770         in the right value of initial_emission to
10771         gtk_widget_set_style_internal (#57091)
10772
10773 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
10774
10775         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
10776         Make compile.
10777
10778         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
10779         with calling gtk_widget_set_style_internal() with
10780         the old style, not the new style. (#56989)
10781
10782 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
10783
10784         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
10785           gtk/gtkwidget.c:
10786         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
10787         not GTK_WIDGET_GET_ANCESTOR ... see 
10788         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
10789         Indicate the best practice in the docs for gtk_widget_get_toplevel().
10790
10791         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
10792         so GtkPlug can give the correct signals when transforming
10793         from a child to a toplevel.
10794         
10795         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
10796         reparentation correctly.
10797
10798         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
10799         Propagate the previous_toplevel argument down properly.
10800
10801         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
10802         of wrong atr list.
10803
10804         * gtk/gtkplug.[ch]: Add an "embedded" signal.
10805
10806         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
10807         signals.
10808
10809         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
10810         functions gtk_plug_get_id(), gtk_socket_get_id(),
10811         to avoid the user having to worry about realization,
10812         and gdkx.h.
10813
10814         * tests/testsocket.c: Extend to try out the new signals
10815         and gtk_plug/socket_get_id().
10816
10817         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
10818         setting of underline attributes.
10819
10820         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
10821         DestroyNotify events from SubstructureNotifyMask
10822
10823         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
10824         Switch GDK_WINDOW_TYPE (window) as needed.
10825
10826         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
10827         allow creation of toplevel windows as children of
10828         foreign windows.
10829
10830         * gtk/gtkplug.c: Remove hacks involving changing private
10831         fields of GdkWindow.
10832
10833         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
10834         exactly the same signals and notification
10835         be emitted for local embedding as for inter-process
10836         embedding.
10837
10838 2001-07-04  James Henstridge  <james@daa.com.au>
10839
10840         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
10841
10842 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
10843
10844         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
10845         XEMBED embedding add a _XEMBED_INFO property to the
10846         client with version number and a "mapped" flags.
10847         Use the mapped flag instead of the racy MapRequestEvent
10848
10849         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
10850         code to reliably set things (when the child is a passive
10851         embedder participating in the XEMBED protocol) intead
10852         of just being a hack for embedding non-participating
10853         programs. Fix various bugs and race conditions.
10854         
10855         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
10856         work by simply making the GtkSocket the gtk parent
10857         of the GtkPlug. Set a flag in this case and make
10858         the GtkPlug work like a normal container by overriding
10859         methods such as check_resize and "chaining past" GtkWindow
10860         to GtkBin.
10861
10862         * gtk/gtkentry.c (gtk_entry_real_activate)
10863           gtk/gtkmain.c (gtk_propagate_event): 
10864         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
10865         
10866         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
10867         gtk_widget_get_ancestor):
10868         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
10869         might not give the expected result and recommend
10870         an alternative.
10871
10872         * tests/testsocket.c tests/testsocket_child.c
10873         tests/testsocket_common.c tests/Makefile.am: Extended
10874         to test different type of adding plugs to sockets
10875         (local,active,passive), and to test mapping/unmapping
10876         the plug.
10877
10878         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
10879         mark the window as destroyed until after we
10880         called _gdk_windowing_window_destroy().
10881         (_gdk_windowing_window_destroy() may use GDK functions
10882         on the window.)
10883
10884         * gdk/x11/gdkinput.c: Remove the check for finalization - 
10885         devices can be finalized under some circumnstances.
10886  
10887         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
10888         small problem with GDK_TYPE_DEVICE.
10889  
10890 2001-07-02  Havoc Pennington  <hp@pobox.com>
10891
10892         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
10893         use constants not atoms.
10894
10895 2001-07-02  James Henstridge  <james@daa.com.au>
10896
10897         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
10898         PANGO_TYPE_TAB_ARRAY.
10899
10900         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
10901         for PANGO_TYPE_TAB_ARRAY.
10902
10903         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
10904         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
10905
10906         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
10907         the file.  Remove Pango types from defs -- they are now defined in
10908         libpango.
10909
10910 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
10911
10912         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
10913
10914         * gtk/gtkobject.c (gtk_object_destroy): invoke
10915         g_object_run_dispose().
10916
10917         * gtk/gtkwindow.c: 
10918         * gtk/gtkwidget.c: 
10919         * gtk/gtkobject.c:
10920         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
10921         method.
10922
10923 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
10924
10925         * gtk/gtktypeutils.c (gtk_type_class): Remove
10926         change check for GTK_TYPE_OBJECT derivation to
10927         G_TYPE_OBJECTS - it's Tim-approved to use this 
10928         for arbitary objects.
10929
10930         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
10931         prefix gtk_container_dequeue_resize_handler().
10932
10933         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
10934         to the hierarachy_changed signal, since you otherwise
10935         have to always keep that around.
10936
10937         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
10938         for extra argument to hierarchy_changed.
10939
10940 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
10941
10942         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
10943         for style to mean "revert to default style"
10944
10945         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
10946           gtk_widget_restore_default_style): Make this functions
10947         deprecated aliases for gtk_widget_set_style (widget, NULL).
10948
10949         * gtk/gtkwidget.[ch]: Remove:
10950            gtk_widget_set_default_style ()
10951            gtk_widget_push_style ()
10952            gtk_widget_pop_style ()
10953         These functions interact are overriden by RC files, and
10954         thus virtually useless, and complicated.
10955
10956 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
10957
10958         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
10959         most of the previous global variables in gtkrc.c. This is
10960         in preparation for multi-head, since each screen can
10961         have different GtkSettings and RC information.
10962
10963         * gtk/gtkrc.[ch]: 
10964
10965         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
10966         GtkSettings parameter to GtkRcStyle::parse.
10967
10968         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
10969         Add two new settings gtk-theme-name, gtk-key-theme-name,
10970         for RC files that are loaded by name after reading
10971         the default RC files.
10972         
10973         * gtk/gtkrc.c: Allow priorities for styles, as wll as
10974         bindings.
10975
10976         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
10977         and use it by default for RC files loaded via 
10978         gtk-theme-name, gtk-key-theme-name.
10979
10980         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
10981         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
10982         tests/testgtkrc: Require pathnames to be absolute.
10983
10984         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
10985         the source when parsing, since the operation of looking up a
10986         pixmap from an RC file depends on the parsing context.
10987
10988         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
10989         reset RC styles on all widgets when files are reparsed.
10990
10991         * tests/testgtk.c (create_rc_file) 
10992           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
10993         Simplify, now that gtk_rc_reparse_all() resets styles on
10994         all widgets itself.
10995
10996         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
10997         return value.
10998
10999         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
11000         GtkSettings argument.
11001
11002         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
11003         gtk_settings_get_global().
11004
11005         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
11006         to get the appropriate GtkSettings for a widget. (For now,
11007         just gets the default GtkSetttings.) 
11008
11009         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
11010           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
11011         changes.
11012
11013         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
11014         getting a style for a path without actually having a widget.
11015         (Allows using a style for a subpart of a widget, for
11016         example.)
11017
11018         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
11019         the RC files to be reloaded for just one GtkSettings
11020         (not sure how useful this really is.)
11021
11022         * gtk/gtkrc.h: Deprecate
11023         gtk_rc_add_widget_name/widget_class/class_style
11024
11025 2001-06-30  Alex Larsson  <alexl@redhat.com>
11026
11027         * gdk/linux-fb/gdkinput-none.c:
11028         * gdk/linux-fb/gdkinput.c:
11029         * gdk/linux-fb/gdkinputprivate.h:
11030         Convert GdkDevice to a GObject.
11031
11032         * linux-fb/gdkprivate-fb.h:
11033         * linux-fb/gdkvisual-fb.c:
11034         Convert GdkVisual to a GObject.
11035
11036 2001-06-29  Alex Larsson  <alexl@redhat.com>
11037
11038         * gdk/gdkvisual.h:
11039         * gdk/gdkcolor.c:
11040         * gdk/x11/gdkx.h:
11041         * gdk/x11/gdkvisual-x11.c:
11042         Convert GdkVisual to a GObject.
11043
11044         * gdk/gdkinput.h:
11045         * gdk/gdkevents.c:
11046         * gdk/x11/gdkinputprivate.h:
11047         * gdk/x11/gdkinput-gxi.c:
11048         * gdk/x11/gdkinput-none.c:
11049         * gdk/x11/gdkinput-x11.c:
11050         * gdk/x11/gdkinput-xfree.c:
11051         * gdk/x11/gdkinput.c:
11052         Convert GdkDevice to a GObject.
11053
11054 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
11055
11056         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
11057         to just plain new, fixing the number of columns, and column types
11058         at creation time.
11059
11060         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
11061
11062         * gtk/gtkcellrenderertext.c
11063         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
11064         height to a specific font.
11065
11066         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
11067
11068         * tests/*c: change to work with new store models.
11069
11070 2001-06-29  Havoc Pennington  <hp@redhat.com>
11071
11072        * Throughout: fixes to compile with G_DISABLE_COMPAT
11073         (s/g_signal_connectc/g_signal_connect/,
11074         s/g_signal_newc/g_signal_new/,
11075         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
11076
11077 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@redhat.com>
11078
11079         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
11080         add path argument to selection callbacks.
11081
11082 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
11083
11084         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
11085         walk through a model in a depth first manner, with the option to
11086         break out.
11087
11088 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
11089
11090         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
11091         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
11092         column and follow it when draged, rather than a location in the
11093         view. "expander_column" property and drawing functions changed
11094         accordingly.  Fixes bug #55942.
11095
11096         (gtk_tree_view_{set,get}_expander_column): Now works with a
11097         GtkTreeViewColumn* instead of int.
11098
11099 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
11100
11101         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
11102
11103 2001-06-28  Havoc Pennington  <hp@pobox.com>
11104
11105         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
11106         image data to the screen, using a server grab to avoid race
11107         conditions.
11108
11109         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
11110         check for NULL return from gtk_image_new_from_stock(), it never
11111         returns NULL.
11112         (gtk_item_factory_create_item): fix bug where we parsed the stock
11113         ID as an inline pixbuf
11114
11115         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
11116
11117         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
11118         support (should be using binding set here)
11119
11120         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
11121         support (should be using binding set here)
11122
11123         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
11124         support
11125
11126         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
11127
11128         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
11129
11130         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
11131
11132         * gtk/gtkimcontextsimple.c
11133         (gtk_im_context_simple_filter_keypress): keypad
11134
11135         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
11136
11137         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
11138
11139         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
11140
11141         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
11142         should be binding-setted)
11143
11144         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
11145
11146         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
11147
11148         * gtk/gtkcalendar.c: numeric keypad fixes
11149
11150         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
11151         support
11152
11153         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
11154         screwup
11155
11156         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
11157         clip the render area to the drawable's clip region in advance,
11158         so we don't get data from the server that we don't need.
11159
11160         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
11161         check return value of gdk_pixbuf_get_from_drawable(), fall back 
11162         to bilevel alpha if we can't get the pixbuf to composite against.
11163
11164         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
11165
11166         * gdk/gdkimage.c (gdk_image_get_colormap): add
11167         gdk_image_set_colormap, gdk_image_get_colormap
11168
11169         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
11170         take a region of the image, instead of converting the entire
11171         image.
11172
11173         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
11174         keybinding signal. Add default bindings for it. Add default
11175         handler for show_help that shows the tooltip for the widget.
11176
11177         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
11178         "close" keybinding signal, remove key press handler.
11179
11180         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
11181         it's not our usual practice to leave a deprecated function around
11182         with a runtime warning, plus we don't want it to appear in docs,
11183         plus if we make them yellow no one will want to change them
11184         anyhow.
11185
11186 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
11187
11188         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
11189         GTK_WIDGET_REALIZE() for resize queueing.
11190
11191         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
11192         GTK_WIDGET_REALIZE() for post event delivery destruction upon
11193         GDK_DESTROY.
11194         
11195         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
11196         sompensate for former (pre-2.0) connect_after() facility.
11197         (gtk_widget_send_expose): 
11198         (gtk_widget_event): assert the widget is realized, since event delivery
11199         to non-realized widgets is essentially a bug. event handlers should
11200         be able to unconditionally rely on widget->window (unless they
11201         emit events on their own which can trigger widget destruction).
11202         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
11203         logic. event delivery happens as follows:
11204         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
11205         b) if !was_handled in (a) and the widget is still realized, emit event-
11206            specific signal (RUN_LAST handler). returns was_handled.
11207         c) emission of GtkWidget::event-after for notification if the widget is
11208            still realized (regardless of was_handled from previous stages, no
11209            class handler). no return value.
11210         d) was_handled gets passed on to caller, to determine further
11211            propagation. if the widget got unrealized meanwhile, was_handled
11212            is returned as TRUE.
11213
11214         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
11215         gdk_event_get_coords().
11216
11217 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
11218
11219         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
11220         age 0, binary age 0. depend on glib 1.3.7.
11221
11222         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
11223
11224         * gtk/gtkmenubar.c: same here.
11225         
11226         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
11227
11228         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
11229
11230         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
11231         
11232         * gtk/gtkmenubar.c (add_to_window): likewise.
11233         
11234         * gtk/gtktextbtree.c: and here...
11235         
11236         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
11237         
11238         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
11239         
11240         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
11241         
11242         * gtk/gtktreeviewcolumn.c:
11243         (_gtk_tree_view_column_set_tree_view): yet again.
11244
11245         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
11246         signal connections without g_signal_connect_data().
11247         
11248         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
11249         demo of the matter.
11250         
11251         * demos/testpixbuf.c (main): running out of equality phrases for the
11252         ChangeLog, but had to adapt connections here as well.
11253         
11254         * demos/testanimation.c (progressive_timeout): and for the fun of it,
11255         tackled this the same way.
11256         
11257         * tests/testtext.c (create_view): ok, it's becoming a pain at this
11258         point, but had enough enery for one more fix.
11259
11260         * tests/testtreecolumns.c (main): stand up man, do your work!
11261
11262         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
11263         fix, either that's been all of it or CVS gtk is broken yet again.
11264         
11265 2001-06-29  James Henstridge  <james@daa.com.au>
11266
11267         The following changes correspond to bug #56812
11268
11269         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
11270         code for GdkDevice.
11271
11272         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
11273         GdkCursor.
11274
11275 2001-06-19  Havoc Pennington  <hp@pobox.com>
11276
11277         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
11278         for mapping a window without fooling with stacking order, but
11279         updating the "withdrawn" flag
11280
11281         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
11282         filtering as soon as possible, moving move resize and wmspec_check
11283         handling after the event filter.  Make default filter apply to all
11284         events, not just those with no GdkWindow wrapped around the X
11285         window. Fix a FIXME about how the window could be a pixmap using 
11286         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
11287
11288         Also, be robust against events not on a known GdkWindow.
11289
11290         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
11291         gdk_x11_ungrab_server): export reference-counted server grabs, so
11292         other people can grab server over a GDK function that also does
11293         so.
11294
11295 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
11296
11297         * gtk/gtktreeviewcolumn.c
11298         (gtk_tree_view_column_pack_start_cell_renderer): New function to
11299         reflect that you can (hypothetically) pack cell renderers into a
11300         column.
11301         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
11302         (gtk_tree_view_column_cell_is_visible): Move more functionality to
11303         the column.
11304         (gtk_tree_view_column_cell_can_focus): Move more functionality to
11305         the column.
11306
11307         * gtk/gtktreeview.c: Move to use new column-packing code.
11308         (gtk_tree_view_real_expand_row): remove totally braindead code.
11309         (gtk_tree_view_real_collapse_row): ditto.
11310
11311 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
11312
11313         * gtk/gtktreeviewcolumn.c: Fix a typo.
11314         
11315 2001-06-26  Joel Becker  <jlbec@evilplan.org>
11316
11317         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
11318           at the end of the file
11319
11320 2001-06-26  Havoc Pennington  <hp@redhat.com>
11321
11322         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
11323
11324 2001-06-26  Havoc Pennington  <hp@redhat.com>
11325
11326         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
11327         property
11328
11329 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
11330
11331         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
11332         stupid missing statement
11333
11334         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
11335         private function for ATK.  It notifies you of how many _visible_
11336         children are deleted when a node is deleted.  Should be used by
11337         atk only.
11338
11339 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
11340
11341         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
11342         Use new pango_context_get_metrics() to fix problems
11343         with font lists in descriptions. (#56184, reported by
11344         Jonas Borgström)
11345
11346 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
11347
11348         * gtk/gtkiconfactory.c:
11349         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
11350         item factory so inlined pixbufs actually work.
11351
11352 2001-06-25  Havoc Pennington  <hp@redhat.com>
11353
11354         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
11355         s/RESIZEABLE/RESIZABLE/
11356
11357         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
11358
11359 2001-06-25  Alexander Larsson  <alexl@redhat.com>
11360
11361         * configure.in:
11362         Added --enable-fbmanager. This is some experimental code
11363         that lets several GtkFB apps coordinate their access to the
11364         framebuffer.
11365         
11366         * acconfig.h:
11367         Added ENABLE_FB_MANAGER.
11368
11369         * gdk/linux-fb/Makefile.am:
11370         Added gdkfbmanager and gdkfbswitch.
11371
11372         * gdk/linux-fb/gdkkeyboard-fb.c:
11373         * gdk/linux-fb/gdkmouse-fb.c:
11374         * gdk/linux-fb/gdkprivate-fb.h:
11375         Split device init and open so that
11376         they can be opened and closed while switched
11377         away.
11378
11379         * gdk/linux-fb/gdkmain-fb.c:
11380         Add the basic manager communication.
11381
11382         * gdk/linux-fb/gdkrender-fb.c:
11383         Don't update to the shadow fb if we're
11384         blocked by the fb manager.
11385
11386 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
11387
11388         * docs/Changes-2.0.txt: Add note about child property
11389         changes.
11390
11391 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
11392
11393         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
11394         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
11395
11396         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
11397         with un'reffing wrong list reported by Jeff Franks.
11398
11399         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
11400
11401         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
11402         for the default icon. Remove inline XPM.
11403
11404         * gtk/gtkstock.h gtk/gtkiconfactory.c:
11405         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
11406         is used for GTK_STOCK_DND, but it is a bit too small.)
11407
11408         * gtk/stock-icons/stock_dnd_multiple.png
11409         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
11410
11411         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
11412         TRUE when starting a drag. In other cases, we are
11413         just observing. (#52995)
11414
11415         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
11416         function to set the icon for a drag from a GdkPixbuf
11417         or stock ID.
11418
11419         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
11420         Likewise, for drag sources.
11421
11422         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
11423         (Now should be done using the stock system.)
11424
11425 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
11426
11427         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
11428         Removed - didn't work and not particularly useful anyways
11429         if it did. 
11430
11431 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
11432
11433         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
11434         introduced last night that was making things decidedly not work.
11435
11436         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
11437         so that we have getter/setter pairing everywhere it makes
11438         sense. (#55767)
11439
11440         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
11441         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
11442         deprecated compat macro. (#55516)
11443
11444         * gtk/gtklabel.[ch]: Add functions
11445         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
11446         gtk_label_set_label(), which mirror the property API for GtkLabel.
11447         Make gtk_label_get_attributes() only reflect the attributes
11448         set by gtk_label_set_attributes.
11449
11450         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
11451         from gtk_notebook_set_page().
11452
11453 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
11454
11455         * configure.in: Fix tests for XShm.h.
11456
11457         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
11458         gdk_image_new() by use of goto, properly use g_object_unref().
11459
11460 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
11461
11462         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
11463         calls, as GdkImage is an object. these should be g_obejct_unref()
11464         instead but that won't work because of the g_error() statement
11465         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
11466         to spot these places.
11467
11468 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
11469
11470         * modules/input/gtkimcontextxim.c: Fixup some problems with 
11471         text length handling in error cases.
11472
11473         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
11474         a bit to make test actually warn on attempt to allocation
11475         a negative size. (#56101, Matthias Clasen)
11476
11477 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
11478
11479         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
11480         noticed by Brian Cameron.
11481         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
11482         Cameron.
11483
11484 2001-06-22  Hans Breuer  <hans@breuer.org>
11485
11486         * gdk/gdk.def : updated externals
11487
11488         * gdk/win32/gdkdrawable-win32.c : corrected some casts
11489         in GDK_NOTEs
11490
11491         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
11492         to translate coordinates to the internal > 16 bit system
11493         Try to handle WM_WINDOWPOSCHANGED to get better performance for
11494         when moving/resizing
11495
11496         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
11497         and gdk_keymap_get_direction (). The latter is untested for
11498         the RTL case
11499
11500         * gtk/gtk.def : updated externals
11501
11502         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
11503         from pango_language_from_string (), not an already freed pointer
11504
11505         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
11506         binary (-kb) to be useable on windoze
11507  
11508 2001-06-21  Alexander Larsson  <alexl@redhat.com>
11509
11510         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
11511         Update to new PangoLanguage changes.
11512         
11513         * gtk/gtkwindow-decorate.c:
11514         * gtk/gtkwindow.[ch]:
11515         Added setting argument to gtk_window_set_has_frame ()
11516         
11517 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
11518
11519         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
11520         the case without XKB properly.
11521
11522         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
11523         unused gtk_rc_auto_parse variable.
11524
11525         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
11526         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
11527         longer needed with GdkPixbuf.
11528
11529         * gtk/gtkrc.c (_gtk_rc_init): Make private.
11530
11531 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
11532
11533         * gtk/gtkentry.h: Mark deprecated functions with
11534         GTK_DISABLE_DEPRECATED.
11535
11536 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
11537
11538         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
11539
11540         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
11541
11542         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
11543           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
11544           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
11545           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
11546           to recent changes in Pango.
11547
11548         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
11549           to test whether the basic engine honors them.
11550
11551 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
11552
11553         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
11554         gtk_container_child_get_property().
11555
11556 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
11557
11558         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
11559         (gtk_tree_view_move_cursor_page_up_down): implement.
11560
11561 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
11562
11563         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
11564         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
11565         don't use automatic fixed size buffer for printf-ing floats, doubles
11566         can expand to really _huge_ strings, use g_strdup_printf() instead.
11567
11568 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
11569
11570         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
11571         construct property in 1.2 and still needs to be.
11572
11573         * gtk/gtkwidget.c: "composite_child" is not a settable property.
11574
11575 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
11576
11577         * gtk/gtkliststore.c (gtk_list_store_clear): 
11578         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
11579         clear a model.
11580
11581 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
11582
11583         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
11584
11585         * gtk/Makefile.am:
11586         * gtk/gtk.h: disabled GtkPacker compilation.
11587
11588         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
11589
11590         * gtk/gtknotebook.c:
11591         * gtk/gtktable.c:
11592         * gtk/gtkbox.c: ported this over to child properties.
11593
11594         * gtk/gtksettings.c: fetch class properties via
11595         g_object_class_list_properties().
11596
11597         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
11598         child arg interface. use gobjectnotifyqueue.c for child property
11599         notification.
11600
11601         * gtk/gtkwidget.[hc]: provide necessary means for container child
11602         properties, i.e. ::child_notify signal,
11603         gtk_widget_freeze_child_notify(),
11604         gtk_widget_child_notify(),
11605         gtk_widget_thaw_child_notify().
11606
11607         * tests/testgtk.c: removed inferior property handling code, for
11608         property editing, a generic module should be used, and GLE
11609         coincidentally fullfills that purpose.
11610
11611         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
11612         needs to be adapted to g_object_class_list_properties() before this
11613         builds again.
11614
11615 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
11616
11617         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
11618         test if a node is expanded.
11619
11620 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
11621
11622         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
11623         where collapsing a selected row would result in the cursor/anchor
11624         getting screwed up.
11625
11626 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
11627
11628         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
11629         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
11630         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
11631         Now I can really reorder/sort all Store widgets.  treesorttest
11632         seems to just work now.
11633         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
11634         testtreesort worked through a big coincidence all this time.
11635         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
11636         code.
11637         * tests/testtreecolumns.c: Big 'ol warning at the top letting
11638         people know that this code should never ever ever be copied.
11639
11640 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
11641
11642         * gtk/gtkwindow.h: Fixed a small typo, it should be
11643         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
11644         on line 134.
11645
11646 2001-06-14  Havoc Pennington  <hp@redhat.com>
11647
11648         Docs fixups, and:
11649         
11650         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
11651         GTK_DISABLE_DEPRECATED
11652
11653 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
11654
11655         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
11656         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
11657         finish it off tonight, though it basically works now when it's a
11658         list.  Also, I have a sinking feeling neither GtkTreeStore or
11659         GtkListStore actually resort when adding a new item.  I'll look
11660         into it.
11661
11662 2001-06-14  Havoc Pennington  <hp@redhat.com>
11663
11664         * demos/gtk-demo/main.c (load_file): fix bug identified by
11665         warnings I just added to gtktextbuffer
11666
11667 2001-06-14  Havoc Pennington  <hp@redhat.com>
11668
11669         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
11670
11671         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
11672
11673         * gtk/gtktextbtree.c: don't leak node data all over the place.
11674
11675         * demos/gtk-demo/main.c (main): create fontify tags for the right
11676         buffer
11677
11678         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
11679         to mention tags in the same table can't have the same name,
11680         suggested by Skip Montanaro
11681
11682 2001-06-11  Havoc Pennington  <hp@redhat.com>
11683
11684         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
11685         for trying to add two tags with same name to the tag table
11686
11687         * demos/gtk-demo/main.c (main): fix colors ;-)
11688
11689 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
11690
11691         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
11692         that allows grouping together multiple windows so that grabs
11693         within that set of windows only affect those windows.
11694
11695         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
11696         signal for notification when a widget becomes shadowed
11697         by a grab or is no longer shadowed by a grab.
11698
11699         * gtk/gtkwidget.c (gtk_widget_propagate_state)
11700           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
11701         insenstive widgets to maintain a grab.
11702
11703 2001-06-14  Alexander Larsson  <alexl@redhat.com>
11704
11705         * docs/README.linux-fb:
11706         Add some example config files that can be used with the URW fonts.
11707         
11708         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
11709         Set up the color ramps for DirectColor mode.
11710
11711 2001-06-11  Havoc Pennington  <hp@redhat.com>
11712
11713         * Release 1.3.6
11714          
11715 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
11716
11717         * gdk/linux-fb/gdkwindow-fb.c:
11718         Unify shaped window code and make it repaint the area that used
11719         to be part of the shape, but isn't anymore.
11720
11721 2001-06-11  Havoc Pennington  <hp@redhat.com>
11722
11723         * NEWS: Updates
11724
11725         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
11726
11727         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
11728         
11729 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
11730
11731         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
11732         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
11733         passes zero instead, so do we.
11734         
11735 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
11736
11737         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
11738         Deep copy dash_list too.
11739         (_gdk_fb_gc_new): Set default cap_style before
11740         setting values.
11741
11742 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
11743
11744         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
11745         gdk_keymap_get_direction): New functions.
11746
11747 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
11748
11749         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
11750         gtk_tree_model_get_flags by adding a second flag for atk.
11751
11752         * gtk/gtktreemodel.c: make cursor behavior interact better with
11753         mouse presses.
11754
11755 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
11756
11757         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
11758         expand_row/collapse_row to be 2 signals each -- test_expand_row
11759         and row_expanded as well as test_collapse_row and row_collapsed.
11760
11761 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
11762
11763         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
11764         signal name to be changed instead of selection_changed.
11765
11766 2001-06-08  Havoc Pennington  <hp@redhat.com>
11767
11768         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
11769         "scroll_offset" property for notification when the layout offsets
11770         may have changed
11771         (gtk_entry_adjust_scroll): add notify for scroll_offset
11772         (gtk_entry_layout_index_to_text_index): function to compensate for
11773         preedit string when doing coordinate stuff on the entry's layout
11774         (gtk_entry_text_index_to_layout_index): inverse function
11775         (gtk_entry_get_layout_offsets): hook to get current position of
11776         the layout      
11777         (gtk_entry_get_layout): hook to get the layout itself.
11778
11779         * gtk/gtklabel.c (gtk_label_get_layout): new function
11780
11781 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
11782
11783         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
11784         keybinding.
11785         (gtk_tree_view_focus): Fix merge conflict.
11786
11787 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
11788
11789         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
11790         clean up cursor handling.
11791
11792 2001-06-08  Havoc Pennington  <hp@redhat.com>
11793
11794         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
11795         function
11796
11797         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
11798         this function
11799
11800 2001-06-08  Alex Larsson  <alexl@redhat.com>
11801
11802         * gtk/gtkcompat.h.in:
11803         Added compat macros for all old GTK_TYPE_GDK_xxx types.
11804         Fixes bug #52892
11805
11806 2001-06-08  Havoc Pennington  <hp@redhat.com>
11807         
11808         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
11809         parent still
11810
11811 2001-06-08  Havoc Pennington  <hp@redhat.com>
11812
11813         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
11814         don't call g_list funcs on GSList
11815
11816         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
11817         gtk_container_focus(), since some widgets have focusable locations
11818         which are not other widgets. These widgets should not have to be 
11819         containers just to manage the focus. For example, GtkHSV is
11820         currently a container for no good reason. Also, this cleans
11821         up the "if (is_container && is_sensitive && is_drawable)
11822         container_focus ()" mess in widget implementations.
11823
11824         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
11825         function, and have it just call gtk_widget_child_focus().
11826
11827         * gtk/gtkhsv.c: derive from widget not container
11828         
11829         Throughout: fix to reflect GtkContainer::focus change
11830         
11831 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
11832
11833         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
11834         range.  Fix bug #55921
11835
11836         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
11837         (#55920).
11838
11839 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
11840
11841         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
11842         and gdk_keymap_get_current_direction().
11843
11844         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
11845           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
11846         the current locked group, use it to set the keymap
11847         direction.
11848
11849         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
11850         to determine whether we draw a split cursor or use
11851         a jumping cursor based on the current direction.
11852
11853         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
11854         Obey the split cursor setting. 
11855
11856 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
11857
11858         * gtk/gtkimmulticontext.c (activate_cb): Only activate
11859         when toggling on, not when toggling off... (#55906)
11860
11861 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
11862
11863         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
11864         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
11865         in docs. (#55812, Vitaly Tishkov)
11866
11867 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
11868
11869         * demos/gtk-demo/main.c (create_tree): Changed signal name from
11870         selection_changed to changed in signal connection to GtkTreeSelection,
11871         also used g_signal_connectc since GtkTreeSelection is now a GObject.
11872
11873 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
11874
11875         * gtk/gtktreeselection.c: Now it's a GObject instead of a
11876         GtkObject.  The GtkTreeSelection::selection_changed signal is now
11877         the GtkTreeSelection::changed signal.
11878
11879         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
11880         object.
11881
11882         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
11883         object.
11884
11885 2001-06-07  Havoc Pennington  <hp@redhat.com>
11886
11887         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
11888
11889 2001-06-07  Havoc Pennington  <hp@redhat.com>
11890         
11891         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
11892         (not tested yet because with absolute path to srcdir I can't build
11893         atk, but it was broken anyway so this may help) 
11894
11895 2001-06-07  Havoc Pennington  <hp@redhat.com>
11896
11897         * configure.in: output m4macros/Makefile
11898         
11899 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
11900
11901         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
11902         buttons.  Fixes #55460 reported by matthiasc@poet.de.
11903
11904 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
11905
11906         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
11907         expansion/collapsing so it only happens in one place.
11908         (gtk_tree_view_real_expand_row): ditto.
11909
11910 2001-06-07  Havoc Pennington  <hp@redhat.com>
11911
11912         * tests/Makefile.am: add missing -I flag
11913
11914         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
11915
11916         * configure.in: use pkg-config to see if GModule is
11917         supported; fix to properly turn on included loaders 
11918         when GModule isn't supported; don't use AC_CHECK_LIB 
11919         when libs are not installed yet
11920
11921         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
11922
11923         * Makefile.am (SUBDIRS): add m4macros subdir
11924
11925         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
11926         dependencies also.
11927
11928 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
11929
11930         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
11931         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
11932
11933 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
11934
11935         * gtk/gtktreeview.c
11936         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
11937         bindings to expand and collapse rows.
11938         (gtk_tree_view_real_select_cursor_parent): New key binding.
11939         (gtk_tree_view_real_toggle_cursor_row): New key binding.
11940
11941         * gtk/gtkmarshal.list: new
11942         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
11943
11944 2001-06-06  Havoc Pennington  <hp@redhat.com>
11945
11946         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
11947
11948         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
11949         Down to move visually rather than logically, since it confuses 
11950         people. Add -/+ and Ctrl--/+ bindings for logical movement.
11951
11952 2001-06-06  Alex Larsson  <alexl@redhat.com>
11953
11954         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
11955         Fix up error messages.
11956
11957 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
11958
11959         * gtk/gtktooltips.h: Include gtkwidget.h 
11960         (#55798, Karl Nelson)
11961
11962         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
11963         a valid latin-1 character. (Marc Lehmann, #35467)
11964
11965         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
11966         (Marc Lehmann, #35467)
11967         
11968 2001-06-05  Alex Larsson  <alexl@redhat.com>
11969
11970         * demos/gtk-demo/appwindow.c (do_appwindow):
11971         Don't swap the order of the args to gtk_widget_destroyed.
11972
11973         * tests/testgtk.c (destroy_properties):
11974         Don't crash when the properties window is destroyed.
11975
11976         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
11977         Use with_mnemonics to handle the case of stock items with
11978         underscores in them.
11979
11980 2001-06-05  Havoc Pennington  <hp@redhat.com>
11981
11982         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
11983         gtk_text_iter_reorder
11984
11985 2001-06-05  Havoc Pennington  <hp@redhat.com>
11986
11987         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
11988
11989 2001-06-05  Havoc Pennington  <hp@redhat.com>
11990
11991         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
11992         to the range that was set
11993
11994         * gtk/gtkrange.c: add value_changed signal, primarily 
11995         intended for use with GtkScale
11996         (gtk_range_set_increments): new function
11997         (gtk_range_set_range): new function with weird name
11998         (gtk_range_set_value): new function
11999         (gtk_range_get_value): new function
12000
12001         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
12002         from gtk_spin_button_get_value_as_float(). Compat #define
12003         added for get_value_as_float.
12004
12005         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
12006
12007         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
12008
12009 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
12010
12011         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
12012
12013 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
12014
12015         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
12016
12017         * tests/testgtk.c (create_tooltips): Remove usage of
12018         gtk_widget_set().
12019
12020 2001-06-05  Havoc Pennington  <hp@redhat.com>
12021
12022         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
12023
12024         Applying patch from Jeff Franks, with function docs added.
12025         
12026         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
12027         remove call to set_mnemonic_widget, change docs a bit.  
12028
12029         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
12030         new function
12031
12032         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
12033         new function
12034
12035         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
12036
12037         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
12038         function
12039         (gtk_radio_button_new_with_mnemonic_from_widget): new function
12040
12041         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
12042         new function
12043
12044         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
12045         function        
12046
12047         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
12048         auto-selection of mnemonic widget.
12049
12050 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
12051
12052         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
12053         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
12054         (gtk_tree_view_column_set_min_width): ditto.
12055
12056 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
12057
12058         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
12059         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
12060
12061 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
12062
12063         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
12064         gtk_clist_thaw().
12065
12066 2001-06-04  Havoc Pennington  <hp@pobox.com>
12067
12068         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
12069 r       eleases for buttons 6, 7
12070
12071 2001-06-04  Havoc Pennington  <hp@redhat.com>
12072
12073         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
12074         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
12075         #55562
12076
12077 2001-06-04  Havoc Pennington  <hp@redhat.com>
12078
12079         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
12080         where text_view->layout == NULL by assuming its size is 0, 
12081         i.e. same as if we haven't done any reflow. Reported by 
12082         Hidetoshi Tajima #55448 
12083
12084 2001-06-04  Havoc Pennington  <hp@redhat.com>
12085
12086         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
12087         and 7 for scroll left/right, from Thomas Broyer
12088
12089 2001-05-10  Havoc Pennington  <hp@redhat.com>
12090
12091         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
12092         we need to parse the xsetting as if it were an RC file string.
12093
12094         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
12095         value of palette from settings, not from static variable
12096
12097         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
12098         xsettings translation table
12099
12100         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
12101         hardcoding the toolbar style conflicts with new customizable 
12102         toolbar style philosophy
12103         (gtk_toolbar_class_init): add settings for default toolbar style;
12104         these are used unless the app specifically forces a toolbar style
12105
12106         * gtk/gtksettings.c (settings_install_property_parser): only
12107         return at the start if we warn and parser == NULL
12108
12109         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
12110         palette changed handler so we don't notify dead color selections
12111
12112         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
12113         xthickness/ythickness of 0 or 1 properly 
12114         (gtk_default_draw_resize_grip): clear the background behind the
12115         resize grips, and align to bottom right if we square the 
12116         area to be drawn.
12117
12118         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
12119         statusbar label to 1, so it doesn't make toplevels resize oddly
12120         (gtk_statusbar_size_request): add grip size to request
12121         (gtk_statusbar_size_allocate): hack so the hbox still works with 
12122         the grip size in the request
12123
12124         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
12125         bug where showing all on a toplevel makes the toolbar 
12126         button text appear despite the toolbar mode
12127
12128         * gtk/gtkmenubar.c: add internal padding style property
12129
12130         * gtk/gtktoolbar.c: Add internal padding style property; add
12131         shadow type style property
12132
12133         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
12134         state; and put Container::border_width outside the frame
12135
12136         * gtk/gtktextview.c: don't draw focus rectangle if we're in
12137         interior focus mode, we just use blinking cursor
12138
12139 2001-06-04  Havoc Pennington  <hp@redhat.com>
12140
12141         * configure.in: Make gdk-pixbuf have same version number as GTK
12142
12143 2001-06-04  Havoc Pennington  <hp@redhat.com>
12144
12145         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
12146         digits greater than 6. If there actually are limits (which there
12147         likely aren't), should clamp to them not warn.
12148         (gtk_spin_button_new_with_range): don't take log of 0
12149         (gtk_spin_button_size_request): use digits to compute size
12150         request, rather than step increment.
12151
12152         * tests/testgtk.c (create_spins): test larger values of digits
12153         
12154         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
12155         font on map not expose, so we don't get weirdness during scrolling
12156
12157 2001-06-04  Havoc Pennington  <hp@redhat.com>
12158
12159         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
12160         Sam Solon, bug #54577, update value even if not drawable.
12161
12162 2001-06-04  Havoc Pennington  <hp@redhat.com>
12163
12164         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
12165         SCROLL_LEFT, reported by Thomas Broyer.
12166
12167 2001-06-04  Havoc Pennington  <hp@redhat.com>
12168
12169         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
12170         Process updates immediately, to prevent funny lag effect
12171         when scrolling, at some mild potential efficiency cost.
12172
12173 2001-06-04  Havoc Pennington  <hp@redhat.com>
12174
12175         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
12176         slider on the click.
12177
12178 2001-06-03  Havoc Pennington  <hp@pobox.com>
12179
12180         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
12181         hscale/vscale details, so we can use it for scrollbar as well.
12182
12183         * tests/testgtk.c (reformat_value): honor digits from GtkScale
12184
12185         * gtk/gtkenums.h (GtkTroughType): Remove this enum
12186         (GtkScrollType): add START and END from GtkTroughType
12187
12188         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
12189         its x/y arguments
12190
12191         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
12192         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
12193         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
12194         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
12195         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
12196
12197         Notable changes in the process:
12198          
12199         - stepper_size style property is the height for vertical 
12200           ranges, width for horizontal; the other dimension matches
12201           the trough size
12202         - add ability to do NeXT-style steppers (and several other styles
12203           that don't make any sense)
12204         - added min_slider_length, fixed_slider_length properties to
12205           GtkScrollbar
12206         - cleaned some private (or at least useless) functions out of
12207           gtkscale.h    
12208         - moved bindings to GtkScale from subclasses, even arrow keys,
12209           since blind users don't know scale orientation.
12210         - change move_slider action signal to use new GtkScrollType,
12211           remove GtkTroughType argument
12212         - digits rounds the values a range will input to the given 
12213           number of decimals, but will not try to force adjustment 
12214           values set by other controllers. That is, we no longer
12215           modify adjustment->value inside a value_changed handler.
12216         - added getters for GtkScale setters
12217         - middle-click begins a slider drag
12218         
12219 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
12220
12221         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
12222         getting the focus code to work.
12223         (gtk_tree_view_class_init): Add a bunch of keybindings.
12224
12225         * gtk/gtktreeviewcolumn.c
12226         (gtk_tree_view_column_set_cell_data_func):
12227         s/GtkCellDataFunc/GtkTreeCellDataFunc.
12228         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
12229         of "properties_changed" to help justify the death of the latter
12230         signal. (-:
12231
12232         * tests/testtreefocus.c (main): Let some columns be focussable to
12233         test focus better.
12234
12235 2001-06-01  Havoc Pennington  <hp@redhat.com>
12236
12237         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
12238         
12239         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
12240         overwrite in overwrite mode if we already deleted the selection
12241         and replaced it with new text.  
12242
12243         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
12244         selection to an empty range, clear the clipboard if we owned it.
12245         (gtk_label_set_selectable): give up selection if we become
12246         unselectable.
12247         (gtk_label_state_changed): override state changed to unselect text
12248         when insensitive
12249         (get_text_callback): add paranoia check that indexes aren't
12250         outside of label->text
12251         (gtk_label_select_region): make -1 for start_offset mean "end of
12252         label," for consistency with GtkEditable
12253
12254         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
12255         GTK_DIALOG_NO_SEPARATOR flag
12256
12257 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
12258
12259         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
12260         notifications on non-existant "enable_arrow_keys".
12261         (#53753, Skip Montanaro)
12262
12263 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
12264
12265         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
12266         GDK_TYPE_RECTANGLE.
12267
12268         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
12269         of allocation argument be GDK_TYPE_RECTANGLE.
12270
12271 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
12272
12273         * gtk/gtkoptionmenu.c: Account for the fact that the border
12274         width is _outside_ the window. (Fixes #54585, bug found
12275         by Bastien Nocera.)
12276
12277 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
12278
12279         * gtk/gtksettings.c (gtk_settings_get_property): Validate
12280         value from GDK settings against parameter spec.
12281
12282         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
12283         to temporary values and use g_value_transform(), since
12284         thinking that GValue was going to be easy or efficient
12285         to use was, of course, a mistake.
12286
12287         * gtk/gtksettings.c: Add cursor blink setting.
12288         
12289         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
12290
12291         * gtk/gtkentry.c: Add cursor blinking.
12292
12293         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
12294         cursor blink global settings.
12295
12296         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
12297         for :text_position in places where it is missing.
12298
12299 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
12300
12301         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
12302
12303 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
12304
12305         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
12306         not pkg-config. (#51032)
12307
12308         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
12309         (fixes #51952, James Henstridge)
12310         
12311 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
12312
12313         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
12314         Rename to the more correct gtk-go-up.
12315
12316         * gtk/stock-icons/stock_menu_sort_ascending.png:
12317         Added new file.
12318         
12319         * gtk/stock-icons/stock_menu_sort_descending.png:
12320         Changed to show descending instead of ascending.
12321
12322         * gtk/gtkiconfactory.c:
12323         Added menu size icon to sort ascending.
12324
12325         * gtk/stock-icons/Makefile.am:
12326         Added stock_menu_sort_ascending.png.
12327         
12328         * gtk/gtkseparatormenuitem.c:
12329         Use correct typenames.
12330
12331 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
12332
12333         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
12334         gulong as in GSignal.
12335
12336 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
12337
12338         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
12339         instances of GtkCellRenderer in code (all but dnd icon code).
12340         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
12341         there, and I can do multiple Cells per column.
12342
12343         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
12344
12345         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
12346         when model was unreffed prior to removing the row reference.
12347
12348 2001-05-25  Havoc Pennington  <hp@redhat.com>
12349
12350         * gtk/gtkiconfactory.c: fix so that default icons are created if 
12351         you call gtk_stock_list_ids()
12352
12353         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
12354         in list
12355
12356 2001-05-25  Havoc Pennington  <hp@redhat.com>
12357
12358         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
12359         set can render without falling back to missing image icon
12360
12361         * gtk/gtktextview.c (gtk_text_view_size_request): request full
12362         size of text, instead of random values
12363
12364         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
12365         size of tree view, instead of random values
12366
12367         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
12368         image in an appropriate size
12369
12370         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
12371         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
12372
12373         Throughout: fix GTK_STOCK_BUTTON_ instances
12374         
12375         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
12376         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
12377         Add a bunch of new stock items/icons
12378
12379         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
12380         new function, convenience for inserting columns with a data func
12381
12382         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
12383         (_gtk_icon_factory_list_ids): use list of all factories to
12384         generate a list of all known IDs
12385
12386         * gtk/gtkstock.c (gtk_stock_list_ids): replace
12387         gtk_stock_list_items() with a function that returns all IDs known
12388         including those for GtkIconFactory.
12389
12390 2001-05-25  Hans Breuer  <hans@breuer.org>
12391
12392         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
12393         work -> check boxes and radio buttons are drawn now, even on win9x.
12394         Improved line settings a bit, still no clue how to get really dotted
12395         lines on win9x, on NT it's PS_ALTERNATE.
12396
12397         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
12398         GDK_HINT_MIN_SIZE as well
12399
12400         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
12401
12402         * gtk/gtk.def : updated
12403
12404         * gtk/gtktreeprivate.h : change column_drop_func to be a function
12405         pointer not a function pointer pointer
12406
12407         * tests/testdnd.c : include <stdlib.h> for putenv prototype
12408
12409         * tests/testsocket.c : made it compile on win32 again
12410
12411         * tests/makefile.msc : one more test-app uses prop-editor.obj
12412
12413 2001-05-22  Havoc Pennington  <hp@pobox.com>
12414
12415         * gtk/gtkbin.c (gtk_bin_get_child): New function
12416
12417 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
12418
12419         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
12420         to ignore when doing compose processing.
12421
12422 2001-05-22  Joe Shaw  <joe@ximian.com>
12423
12424         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
12425         Simplify as suggested by Havoc. Just get the last iter and work
12426         backward to the tag instead of getting a line and working back from
12427         there. Fixes passing in an invalid offset to
12428         iter_init_from_byte_offset().
12429
12430 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
12431
12432         * gtk/gtktreeview*.h: 
12433         * gtk/gtkcell*.h:
12434         * gtk/gtk*store.h:
12435         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
12436         macros to all objects.
12437
12438 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
12439
12440         * gtk/gtkcellrenderertext.c
12441         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
12442         with very large (TM) amounts of text.  May be moved to
12443         GtkCellRenderer in the future, though I'm not sure it wants to be
12444         this accessible.
12445
12446         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
12447         More sanity brought to this class.  I like it.
12448
12449         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
12450         case.  Kids, don't try this at home.
12451
12452         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
12453         convenience function.
12454
12455         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
12456
12457 2001-05-21  Alexander Larsson  <alexl@redhat.com>
12458
12459         * gtk/gtkfontsel.c:
12460         Added properties. Based on patch by Lee Mallabone.
12461
12462         * gtk/gtkruler.c:
12463         * gtk/gtkhruler.c:
12464         * gtk/gtkvruler.c:
12465         * gtk/gtktext.c:
12466         * gtk/gtktextview.c:
12467         Converted GtkArg to GParam. Based on patches by John Margaglione.
12468
12469         * tests/Makefile.am:
12470         * tests/testtext.c:
12471         Add a property editor to testtext.
12472         
12473 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
12474
12475         * gtk/gtk{h,v,}paned.c: Only show the separator if 
12476
12477         * configure.in: Fixed reversed conditional causing all image
12478         libraries to be linked in.
12479
12480 2001-05-21  Joe Shaw  <joe@ximian.com>
12481
12482         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
12483         that top_y needs to be >= 0.
12484
12485 2001-05-11  Havoc Pennington  <hp@pobox.com>
12486         
12487         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
12488         losing connection to the X server.
12489
12490 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
12491
12492         * configure.in: Start checks for X from pangox/pangoxft
12493         CFLAGS to avoid duplicate libraries.
12494
12495         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
12496
12497         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
12498         to include gobject.
12499         
12500 2001-05-18  Alexander Larsson  <alexl@redhat.com>
12501
12502         * gtk/gtkspinbutton.c:
12503         Convert GtkArgs to GParams. Based on patch by John Margaglione.
12504         Also do size request reasonable for MAXDOUBLE. Previously it printed
12505         the limits to a buffer and overran it. Instead do it using log10() and
12506         limit the width to 10 digits.
12507         
12508         * gtk/gtkwidget.c (gtk_widget_get_property):
12509         Correctly handle setting the parent property to NULL.
12510
12511 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
12512
12513         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
12514         style attributes even if the widget isn't realized.
12515
12516         * demos/gtk-demo/main.c: Use a slightly smaller font.
12517
12518 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
12519
12520         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
12521         This is something that only a widget writer would ever want
12522         to change.
12523
12524         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
12525         gtk_signal_emit_by_name().
12526
12527         * gtk/gtkviewport.c: Fix some warnings.
12528
12529         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
12530         allowing the requisitions of multiple widgets to be grouped
12531         together.
12532
12533         * tests/testgtk.c: Add GtkSizeGroup test
12534
12535         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
12536
12537         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
12538         warnings.
12539
12540         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
12541
12542 2001-04-28  Martin Baulig  <baulig@suse.de>
12543
12544         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
12545         to gtk_image_menu_item_set_icon() and made it work if there's already
12546         an image.
12547         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
12548         (gtk_image_menu_item_new_with_label): New function.
12549
12550 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
12551
12552         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
12553         highlighting code!!!!  The result is okay so long as you don't try
12554         to stress it.  It also highlights a bug in the TextView so it's in
12555         an unproportional font right now until it's fixed.
12556
12557         *demos/gtk-demo/*.c: Clean up code a bit to make it
12558         ugly-parser(TM) friendly. (-:
12559
12560 2001-05-17  Joe Shaw  <joe@ximian.com>
12561
12562         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
12563         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
12564         if it is only partially onscreen.
12565
12566 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
12567
12568         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
12569         not by characters.
12570
12571         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
12572         are not zero or one; that is, when graphemes of multiple characters
12573         are involved.
12574
12575         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
12576         FIXME.
12577
12578 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
12579         
12580         * gtk/gtkbbox.c:
12581         Add properties, based on patch by Lee Mallabone.
12582
12583         * gtk/gtknotebook.c:
12584         * gtk/gtktoolbar.c:
12585         Convert from GtkArg to GParam, based on patch by John Margaglione.
12586         
12587         * gtk/gtkhscale.c:
12588         * gtk/gtkvscale.c:
12589         * gtk/gtkhscrollbar.c:
12590         * gtk/gtkvscrollbar.c:
12591         * gtk/gtkrange.c:
12592         Move adjustment property to GtkRange.
12593
12594         * gtk/gtklabel.c:
12595         Setup mnemonics on property changes
12596
12597         * gtk/gtkwidget.c (gtk_widget_get_property):
12598         GdkExtensionMode is an enum, not a flag. Set it with
12599         g_value_set_enum ().
12600
12601         * tests/prop-editor.c:
12602         Better propery editor.
12603
12604         * tests/testgtk.c:
12605         Add new property test. Pass zero to the property editor to
12606         get properties from all derived types.
12607         
12608 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
12609
12610         * autogen.sh (have_automake): Require libtool-1.4,
12611         automake-1.4p1.
12612
12613         * acinclude.m4: Remove libtool macros.
12614
12615         * gdk-pixbuf/Makefile.am: Add dependencies to loade
12616         modules.
12617
12618         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
12619         for libgdk.
12620
12621         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
12622         libgdk.la for libgtk.
12623
12624         * modules/input/Makefile.am: Make modules have full
12625         dependencies.
12626
12627 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
12628
12629         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
12630         #54699 where paths weren't being checked for correctness.
12631
12632 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
12633
12634         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
12635         in any order you wan, whether or not the column is added to the
12636         tree, or the tree is realized.  Yay!
12637
12638         * gtk/gtktreeviewcolumn.c
12639         (gtk_tree_view_column_setup_sort_column_id_callback): handle
12640         sorting columns a lot saner
12641
12642         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
12643         new function to actually set wether or not a column is
12644         reorderable.
12645
12646         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
12647         if we have 'em.
12648
12649         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
12650         Fix nasty bug where we were showing the button just before
12651         realizing it.  As a result, the parent window was
12652         tree_view->window instead of tree_view->priv->header_window.
12653
12654         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
12655         to let you easily reorder a list or tree.
12656
12657 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
12658
12659         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
12660         from args to properties.
12661
12662 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
12663
12664         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
12665         from args to properties. (#51957)
12666
12667         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
12668         calls to after ->set_property call.
12669
12670 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
12671
12672         * tests/prop-editor.c: Block against redundant changes.
12673
12674         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
12675         properties.
12676
12677 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
12678
12679         * gdk/gdkpixmap.h: Remove creative formatting.
12680
12681 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
12682
12683         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
12684         property API. (#51669)
12685
12686         * gtk/gtkscale.c: Patch from John Margaglione converting to
12687         property API. (#51891)
12688
12689         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
12690         to property API. (#50985)
12691
12692 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
12693
12694         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
12695         buffering state across expose event, so we still call end_paint().
12696
12697 2001-05-11  Alexander Larsson  <alexl@redhat.com>
12698
12699         * gtk/gtkhsv.c (paint_triangle):
12700         Expose the ring in the triangle at the correct place when
12701         exposing just a part of the triangle.
12702
12703         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
12704         Return FALSE, or window focusing will not work.
12705
12706 2001-05-11  Havoc Pennington  <hp@pobox.com>
12707
12708         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
12709         #54144
12710
12711         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
12712         bug #54330
12713
12714 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
12715
12716         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
12717         propagate exposes to NULL child.
12718
12719         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
12720         against not having one of the scrollbars.
12721
12722         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
12723         we don't keep a mnemonic window if we have no mnemonic installed.
12724
12725 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
12726
12727         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
12728         it has the _important_ side effect of initializing a class.
12729
12730 2001-05-10  Alexander Larsson  <alexl@redhat.com>
12731
12732         * gdk/linux-fb/gdkprivate-fb.h:
12733         Make sure you can compile out the implementation/wrapper assert
12734         macros.
12735
12736         * gdk/linux-fb/gdkdrawable-fb2.c:
12737         Check implementation/wrappers, initialize type for pixmap dummys.
12738
12739         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
12740         Hide the cursor if reading from the screen.
12741
12742         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
12743         Fix sign bug in tiling code.
12744
12745         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
12746         Handle background pixmaps.
12747
12748 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
12749
12750         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
12751         function to let user control where columns are dragged.
12752
12753         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
12754         Escape is pressed.
12755
12756 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
12757
12758         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
12759         "columns_changed" signal.
12760         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
12761         motion code to draw arrows to the side if indicator is outside the
12762         widget.
12763         (gtk_tree_view_map_expanded_rows): Implement.
12764
12765 2001-05-07  Alexander Larsson  <alexl@redhat.com>
12766
12767         * demos/testpixbuf-save.c: 
12768         * demos/testpixbuf-drawable.c:
12769         Include gdkfb.h on linux-fb.
12770
12771 2001-05-07  Alexander Larsson  <alexl@redhat.com>
12772
12773         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
12774         New function for getting toplevel window at position.
12775         (gdk_drag_find_window): Use get_toplevel_window () instead
12776         of gdk_window_get_pointer(). (gdk_drag_status): Use
12777         correct context for getting window.
12778
12779         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
12780         g_strdup the atom name.
12781
12782         * gdk/linux-fb/gdkwindow-fb.c:
12783         Costmetic fix.
12784
12785         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
12786         Add code for changing cursor on linux-fb backend (same as
12787         win32).
12788
12789 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
12790
12791         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
12792         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
12793         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
12794         report was not for the development branch of GTK+, but it applies
12795         anyways).
12796
12797 2001-05-04  Havoc Pennington  <hp@redhat.com>
12798
12799         * configure.in: fix some shell typos
12800
12801         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
12802
12803         * gtk/gtkimage.c: handle animations
12804
12805         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
12806         border_width * 2, not just border_width
12807
12808         * gtk/gtkscale.c: add "format_value" signal to allow people
12809         to override the way values are drawn.
12810         (gtk_scale_get_value_size): fix width/height mistake,
12811         and compute size from actual displayed text, not 
12812         from made-up text.
12813
12814         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
12815         signal registration
12816
12817         * tests/testtext.c: Add "Remove all tags" menu item for testing
12818
12819         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
12820
12821         * demos/gtk-demo/main.c (main): add hack so we can find modules
12822         without installing gtk
12823
12824         * demos/gtk-demo/textview.c (insert_text): demo font scaling
12825
12826         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
12827         factor)
12828         (gtk_cell_renderer_text_set_property): remove some bogus
12829         g_object_notify
12830
12831         * gtk/gtktexttag.c: add "scale" property which is a font scaling
12832         factor
12833
12834         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
12835         to layout
12836
12837         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
12838         gtk_text_iter_is_first
12839
12840 2001-01-06  Hans Breuer  <hans@breuer.org>
12841
12842         * gdk/gdk.def : updated exports
12843
12844         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
12845         gdk won't compile anymore
12846  
12847         * gdk/win32/gdkevents-win32.c : initialize ret_val when
12848         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
12849         Improved gdk_flush () to not only do pending drawing operations
12850         but also process all currently pending events. This should make
12851         the behaviour more similar to the X11 version.  
12852
12853         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
12854         option needs to be set even if there is no GDK_GC_BACKGROUND.
12855         (gdk_win32_hdc_get) : use predraw_set_background () independent
12856         of value_mask. This allows to draw dashed lines leaving the original
12857         background intact.
12858
12859         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
12860         after processing, because we can't reuse it as the X11 version does.
12861
12862         * gtk/gtk.def : updated exports
12863
12864         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
12865         would like to get rid of this file again, and use straight
12866         makefile.msc again, as the other Gtk+ subdirs do)
12867
12868         * test/makefile.msc (new file) : build the test apps here
12869
12870 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
12871
12872         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
12873         strike-through setting
12874         (gdk_draw_layout_line_with_colors): Render strike-through
12875
12876 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
12877
12878         * Release 1.3.5
12879
12880         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
12881
12882         * NEWS: Updated
12883
12884         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
12885         Makefile breakage.
12886
12887 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
12888
12889         * demos/gtk-demo/images.c (progressive_timeout): Fix
12890         typo in filename.
12891
12892         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
12893         out FIXME warning; just too annoying.
12894
12895 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
12896
12897         * gdk/linux-fb/gdkcolor-fb.c:
12898         Better error messages.
12899
12900         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
12901         Initialize abs_x and abs_y.
12902         
12903         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
12904         Correct handling of stipple offset.
12905
12906         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
12907         Treat directcolor framebuffers as truecolor.
12908         
12909 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
12910
12911         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
12912         dependency on Atk for accessibility support.
12913
12914         * configure.in **/Makefile.am: Major reworking of substituted
12915         variables for CFLAGS/LIBS to make a lot more sane and 
12916         keep the the compile/link lines a bit shorter.
12917
12918         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
12919
12920 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
12921
12922         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
12923         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
12924         use _gtk_boolean_handled_accumulator.
12925
12926 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
12927
12928         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
12929         to fix things so clicking inside selection leaves cursor
12930         at point where clicked. (#50324)
12931
12932         * gtk/gtksettings.c (gtk_settings_class_init): Restore
12933         sane value for default double click time.
12934
12935         * tests/testtext.c (test_init): Really path to input modules.
12936
12937 2001-05-03  Sven Neumann  <sven@convergence.de>
12938
12939         * demos/testpixbuf-save.c: include target-specific headers as
12940         done in testpixbuf-drawable.c
12941
12942 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
12943
12944         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
12945         new_text_length appropriately when we run into the 
12946         size limit for the entry. (#53445, reported by Jeff Franks)
12947
12948         * tests/testgtk.c (create_entry): Remove most of the
12949         property toggle buttons. Replace with a "Props" button
12950         that brings up a property editor.
12951
12952         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
12953         Split the property editor code out for reuse, improve.
12954
12955 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
12956
12957         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
12958         trap errors around calls to XSetInputFocus since we have
12959         no way of knowing reliably whether we are viewable or
12960         not. (#53947)
12961
12962 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
12963
12964         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
12965         fix bug in dropping columns.  Moving columns now basically works
12966         modula some fine tuning.
12967
12968 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
12969
12970         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
12971         autoscroll support.  It mostly works, but could use some fine
12972         tuning.
12973         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
12974         Actually move the column.
12975
12976 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
12977
12978         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
12979           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
12980           New default theme! A slighly improved version of the 2.0 Raleigh
12981           theme, with Windows-esque focus/drawing default. 
12982           (GtkWidget::interior_focus defaults to TRUE.)
12983
12984         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
12985
12986 2001-04-30  Havoc Pennington  <hp@pobox.com>
12987
12988         * tests/testtext.c (line_numbers_expose): fix to work with
12989         gtk_paint_layout change
12990
12991 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
12992
12993         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
12994           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
12995           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
12996           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
12997
12998         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
12999           with GtkWidget::interior_focus = TRUE better.
13000
13001         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
13002         ::default_outside_border for more flexibility.
13003
13004         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
13005         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
13006         change that had to be made with g_object_get.
13007
13008 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
13009
13010         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
13011         (gtk_tree_view_move_column_after): Clean up interface. 
13012
13013 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
13014
13015         * gtk/gtkpacker.h:
13016         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
13017          to gtkenum.h.
13018
13019         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
13020         handled in switch).
13021
13022         * gtk/Makefile.am:
13023         (gtk.defs): generate enum portions with  glib-mkenums.
13024         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
13025         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
13026         
13027         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
13028         addition.
13029
13030         * docs/Changes-2.0.txt: keep a note on signal handlers now
13031         not getting emitted during the emission they were connected within.
13032
13033 2001-04-28  Havoc Pennington  <hp@pobox.com>
13034
13035         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
13036
13037 2001-04-24  Havoc Pennington  <hp@redhat.com>
13038
13039         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
13040         (gtk_text_layout_move_iter_to_next_line): fix these two for
13041         invisible text, lots of other stuff still hosed.
13042
13043         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
13044         new function, replaces the get/set palette stuff. This function 
13045         is intended for use by libgnomeui which should set the hook to a
13046         thing which sets the palette in GConf, and we need the
13047         GConf-to-xsettings proxy which will result in the change being
13048         propagated back to the GTK app.
13049
13050         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
13051         about unusable signals that it may be because the signal has 
13052         parameters.
13053
13054         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
13055         style, otherwise gtkrc.c won't know to create a new GtkStyle for
13056         it.
13057         (gtk_widget_modify_color_component): call
13058         gtk_widget_modify_style() so the rc style will get copied.
13059         (gtk_widget_modify_font): ditto
13060
13061         * gtk/gtkrc.c: make a couple variables static
13062
13063         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
13064         help button by default, since it does nothing
13065
13066         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
13067         around with UI
13068
13069         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
13070         so we can have tooltips
13071
13072         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
13073         can have tooltips
13074
13075         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
13076         GDK_ENABLE_BROKEN, because its memory behavior is completely
13077         hosed.
13078
13079         * gtk/gtknotebook.c: remove key press handler, replace with
13080         binding set, add numeric keypad support
13081
13082         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
13083
13084         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
13085
13086         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
13087         addition to plain Delete
13088
13089         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
13090         GDK_KP_Enter in addition to GDK_Return
13091
13092         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
13093         activate on entry instead of key press
13094         (gtk_font_selection_on_clist_key_press): get
13095         rid of this signal handler, not needed with new font sel.
13096
13097         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
13098         no-longer-needed emit_stop_by_name(), just return TRUE
13099
13100         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
13101         cruft, this widget is no longer focusable.
13102
13103         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
13104         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
13105         move_slider action signal, add binding set for vscale/hscale, in
13106         the process support numeric keypad
13107
13108         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
13109         make GDK_Return and GDK_KP_Enter activate the entry via 
13110         binding set, instead of hardcoded.
13111
13112 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
13113
13114         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
13115         code.  Some documentation added.
13116
13117 2001-04-27  Havoc Pennington  <hp@redhat.com>
13118
13119         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
13120
13121         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
13122
13123         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
13124         line/para separators
13125         (gtk_entry_create_layout): set single paragraph mode on the layout
13126
13127         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
13128         spacing between the image and label; instead, inside a button box 
13129         the button will get extra space that will go there, but if people 
13130         configure button box for 0 chubbiness, then there's no spacing.
13131
13132         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
13133         and min/max size style properties, so people can tune their
13134         chubbiness.
13135
13136         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
13137         functions
13138
13139         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
13140         space_style, and button_relief into style properties, remove
13141         functions for setting them
13142         
13143         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
13144         it back down
13145
13146         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
13147         types from gtk_widget_style_get
13148
13149         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
13150         with a style property.
13151
13152         * gdk/x11/gdkevents-x11.c: namespace the settings
13153
13154         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
13155
13156         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
13157         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
13158         be used. Also, translate doc strings for settings. Also, namespace
13159         the double-click-time property. Also, remove bell properties crap.
13160
13161 2001-04-27  Sven Neumann  <sven@gimp.org>
13162
13163         * Makefile.am: before creating links, check if pkg-config files
13164         exist for the default target. Otherwise link to the pkg-config files
13165         that got installed with this build.
13166
13167 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
13168
13169         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
13170         dragging code.  Revealed some (potential) GdkWindow bugs.
13171
13172         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
13173         _gdk_window_init_position to the end of reparent to fix the case
13174         of reparenting when new_x != old_x and new_y != old_y.
13175
13176 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
13177
13178         * gtk/gtkentry.c (strstr_len): Fix optimization that
13179         was correct for the use here, but completely incorrect
13180         in general.
13181
13182 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
13183
13184         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
13185         until patch adding gtk_window_set_size() is recommitted. 
13186
13187         * **Makefile.am configure.in gdk/x11/gdkim-11.c
13188           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
13189           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
13190           (#10784)
13191
13192 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
13193
13194         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
13195         window == NULL in a number of cases.
13196
13197         * tests/testdnd.c: Set module path for gdk-pixbuf.
13198
13199 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
13200
13201         * gtk/Makefile.am xembed.h: File containing #defines
13202         for XEMBED protocol.
13203
13204         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
13205
13206         - Change protocol from old plug/socket specific protocol
13207           to XEMBED draft
13208         - Various fixes to work with GTK+-2.0
13209
13210         Still quite a bit of work to do here to handle initiation
13211         from the socket side (as specified by XEMBED), to handle
13212         the more advanced features of XEMBED, and to figure out
13213         a good way to handle same-app embedding with less overhead
13214         than using full XEMBED.
13215
13216 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
13217
13218         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
13219         track of whether the toplevel has the focus; only send
13220         focus-in events to the focus widget when the window
13221         actually has the focus.
13222
13223 2001-04-25  Havoc Pennington  <hp@pobox.com>
13224
13225         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
13226         were still in the header
13227
13228 2001-04-24  Alexander Larsson  <alexl@redhat.com>
13229
13230         * gtk/gtkclist.[ch]:
13231         * gtk/gtkctree.c:
13232         When there is a row highlighted for D'n'D it must alse
13233         be painted hightlighted on exposes. Otherwise exposes from
13234         the icon being dragged will mess up the hightlight.
13235
13236         * gtk/gtkfontsel.c:
13237         Don't recenter selected font when exposing the font family
13238         clist. This means you can now actually scroll the font family
13239         list.
13240
13241         * gtk/gtknotebook.c:
13242         Fix focus movement on scrolling tabs that are placed on the left
13243         and right.
13244
13245 2001-04-21  Havoc Pennington  <hp@pobox.com>
13246
13247         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
13248         empty/invisible lines.
13249
13250         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
13251         (gtk_text_iter_set_visible_line_index): new functions to set
13252         indexes excluding invisible text
13253
13254         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
13255         index
13256
13257         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
13258         (gtk_text_iter_get_visible_line_offset): new functions to 
13259         get indexes excluding invisible text
13260
13261         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
13262         bunch of extra padding that served no purpose
13263
13264         * gtk/gtkdialog.c: Make all the spacings configurable via style
13265         properties, for chubbiness configuration in themes
13266
13267         * tests/testtext.c: fix path to the immodules.
13268         
13269 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
13270
13271         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
13272         got munched by #endif.
13273
13274         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
13275
13276         * gtk/gtktreeview.c: Refactored code to clean up a number of
13277         events.
13278
13279         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
13280         values to make consistent with other functions.  Spotted by Jeff
13281         Franks <jcf@tpg.com.au>.
13282
13283         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
13284         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
13285
13286 2001-04-23  Sven Neumann  <sven@gimp.org>
13287
13288         * gtk/Makefile.am
13289         * gtk/gtkplug.c
13290         * gtk/gtksocket.c: on request of Owen, reverted my last change 
13291         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
13292
13293 2001-04-23  Sven Neumann  <sven@gimp.org>
13294
13295         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
13296         compile for non-X11 targets again
13297
13298 2001-04-20  Alexander Larsson  <alexl@redhat.com>
13299
13300         * gtk/gtkcolorsel.[ch]:
13301         API Change. Take GdkColor arguments instead of gdouble *.
13302         Leave the old gtk_color_selection_set_color for compatibility,
13303         but marked deprecated.
13304         Do correct rounding when converting RGB <-> HSV.
13305         
13306         * gtk/gtkcolorseldialog.c:
13307         * tests/testgtk.c:
13308         Use new GtkColorSelection API.
13309
13310         * gtk/gtkhsv.c:
13311         Fix problem selecting colors in triangle when Hue is 330.
13312         Fix some black dots around the HSB triangle.
13313         
13314         * gtk/gtkfilesel.c:
13315         return FALSE from the focus_in_event handler to fix focus problems.
13316
13317 2001-04-18  Havoc Pennington  <hp@redhat.com>
13318
13319         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
13320         set, so keybindings are configurable    
13321         (gtk_window_activate_default): Change to activate the focus widget
13322         instead if there's a focus widget, to be consistent with the
13323         behavior that previously existed in key_press_event
13324
13325 2001-04-18  Havoc Pennington  <hp@redhat.com>
13326
13327         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
13328
13329 2001-04-18  Havoc Pennington  <hp@redhat.com>
13330
13331         Close bug #50615:
13332         
13333         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
13334         the layout
13335
13336         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
13337
13338         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
13339
13340         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
13341         
13342         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
13343         to blue for base, in addition to bg
13344         
13345 2001-04-18  Havoc Pennington  <hp@redhat.com>
13346
13347         * tests/testgtk.c (create_image): allow shrinking the image window
13348         to test that we clip to allocation.
13349
13350         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
13351         #9845
13352
13353         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
13354
13355 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
13356
13357         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
13358         mode on shm segments to 0600. We'll see who complains.
13359
13360         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
13361         _gdk_windowing_window_destroy() AFTER recursing through
13362         children.
13363
13364         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
13365         testsocket_child on X.
13366
13367         * tests/testsocket[_child].c: Fix uses of
13368         gtk_window_get_default_accel_group().
13369
13370         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
13371
13372         * gdk/gdkimage.c: (gdk_image_get):
13373         Deal with the possibility that XGetImage() might return NULL.
13374         Allocate the GdkImagePrivate structure only after XGetImage()
13375         succeeds in order not to dereference a NULL ximage pointer.  This
13376         prevents a core dump when XGetImage() fails - which is unlikely,
13377         but can happen due to race conditions accessing the geometries of
13378         drawables.  An x error will still be triggered, but the gdk image
13379         wrapper at least wont seg fault.
13380         
13381 2001-04-18  Havoc Pennington  <hp@redhat.com>
13382
13383         * gtk/gtkimage.c: fix to properly queue resizes when the image is
13384         set
13385
13386         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
13387         if the insertion point isn't editable
13388
13389         * demos/gtk-demo/images.c: Added a GtkImage demo
13390
13391         * demos/gtk-demo/drawingarea.c: drawing area demo
13392         
13393         * demos/gtk-demo/menus.c (create_menu): cleanups
13394
13395 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
13396
13397         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
13398           gdk/x11/gdkevents-x11.c: Introduce an extra child
13399         of toplevel windows that serves to hold the focus to
13400         avoid events being delivered to embedded windows.
13401
13402         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
13403         some extra variables to clean up code and reduce the
13404         number of casts.
13405
13406         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
13407         guint for 1 bit bit fields, not gboolean.
13408
13409 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
13410
13411         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
13412         not TRUE. (Fixes #52925)
13413
13414 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
13415
13416         * Released 1.3.4
13417
13418         * NEWS: Updated
13419
13420         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
13421         use GTK_TYPE_ENUM.
13422
13423 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
13424
13425         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
13426
13427         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
13428         names to compatibility #defines so docs work.
13429
13430         * gtk/gtkenums.h: Remove GtkMenuFactoryType
13431
13432         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
13433
13434         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
13435
13436         * tests/testgtkrc: No magenta cursors, please.
13437
13438         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
13439
13440         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
13441         
13442 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
13443
13444         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
13445         grabs, since they are no longer necessary.
13446
13447         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
13448         by signal_connect() and call gtk_button_pressed() rather
13449         than signal_connect_after().
13450
13451         * tests/testgtk.c: Restore radio menu items to combos 
13452         since they'll look OK with Raleigh, and it is easier
13453         than finishing the process of removing them that was
13454         started earlier.
13455
13456 2001-04-16  Hans Breuer  <hans@breuer.org>
13457
13458         * gdk/gdk.def :
13459         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
13460
13461         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
13462         we are interested in the functions return value not the function address
13463         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
13464
13465         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
13466
13467 2001-04-14  Hans Breuer  <hans@breuer.org>
13468
13469         * gdk/gdk.def :
13470         * gdk/makefile.msc : updated
13471
13472         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
13473         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
13474         (the testgtk::text backgound pixmap is drawn again)
13475         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
13476         Win32 Pango change
13477         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
13478
13479         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
13480         Not sure if the returned settings have the right unit, because I couldn't
13481         find any docs for the X version ...
13482
13483         * gtk/gtk.def :
13484         * gtk/makefile.msc.in : updated
13485
13486 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
13487
13488         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
13489         wording problems. (Compared to version from Johannes Stezenbach to
13490         check correctness.)
13491
13492 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
13493
13494         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
13495         this to compile.
13496
13497 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
13498
13499         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
13500         not pixbufpos.
13501
13502         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
13503
13504         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
13505         are unsigned insts, therefore use g_value_set_uint.
13506         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
13507
13508 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
13509
13510         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
13511
13512         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
13513         GTK_TYPE_STRING.
13514
13515         * gtk/gtktreeview.c: New functions to allow initial column
13516         dragging work.
13517
13518         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
13519
13520         * tests/testtreefocus.c: give dave some love.
13521
13522         * tests/testtreesort.c: Modify test to check really long samples.
13523
13524 2001-04-11  Alexander Larsson  <alexl@redhat.com>
13525
13526         * gtk-2.0.m4: Pass pkg-config options
13527         before the other args so it works even if
13528         POSIXLY_CORRECT is set.
13529
13530 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
13531
13532         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
13533         0, interface 0).
13534
13535 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
13536
13537         * gtk/gtkcalendar.c (gtk_calendar_button_press):
13538         check for action_func != NULL
13539
13540 2001-04-04  Sven Neumann  <sven@gimp.org>
13541
13542         * tests/testgtk.c (test_init): corrected path to gtk.immodules
13543
13544 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
13545
13546         * Released Gtk+-1.3.3.
13547
13548 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
13549
13550         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
13551
13552 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
13553
13554         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
13555         files to/from source dir. (if we don't stay in builddir, we
13556         can't reach make-inline-pixbuf.
13557
13558         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
13559         deps.
13560
13561         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
13562         ages 0).
13563
13564 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
13565
13566         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
13567         moved to the GtkTreeSortable interface.
13568
13569         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
13570         Make more efficient (fixes #50262).
13571
13572 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
13573
13574         * NEWS: Updated.
13575
13576         * configure.in: Remove support for uninstalled glib.
13577
13578         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
13579         so as not to stop emission.
13580
13581         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
13582         is no longer supported.
13583
13584         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
13585         into tests, change build order to build modules before
13586         gtk/.
13587
13588         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
13589         to here.
13590
13591 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
13592
13593         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
13594         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
13595         GPatternSpec. this is actually unlikely to cause breakage in
13596         third-party apps since except for gle, pretty much ever caller
13597         passes NULL here.
13598
13599         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
13600
13601         * *.c: use g_pattern_*() API.
13602
13603         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
13604
13605         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
13606         directions aren't passed in.
13607
13608         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
13609         functionality to be usable from gtkstyle.c as well, give precedence
13610         for conversion to user-supplied parsers.
13611         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
13612
13613         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
13614         _gtk_settings_parse_convert() for rcporperty value conversion.
13615
13616 2001-04-03  Alexander Larsson  <alexl@redhat.com>
13617
13618         * gdk/linux-fb/gdkevents-fb.c:
13619         Add empty gdk_setting_get().
13620
13621 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
13622
13623         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
13624         variable names.
13625         
13626         * gtk/makeenums.pl: touch this so enum files get remade.
13627
13628 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
13629
13630         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
13631         work again when not sorted.
13632
13633         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
13634         and "expand_row" signal, closing bug 52578.
13635
13636         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
13637         support.
13638
13639         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
13640         support.
13641
13642 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
13643
13644         * gdk/gdkevents.h: Add GdkEventSetting event for notification
13645         of changes to system settings, gdk_setting_get() to retrieve
13646         a single system setting.
13647
13648         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
13649         to the draft XSETTINGS mechanism.
13650
13651         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
13652         XSETTINGS.
13653
13654         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
13655         of GDK settings changes to the GtkSettings object.
13656
13657         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
13658         double-click-timeout property to GDK.
13659
13660         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
13661         Define GDK boxed types here.
13662
13663         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
13664         gdk/gdkenumtypes.[ch] for enum definitions.
13665
13666         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
13667         * gtk/gtk-boxed.defs: Comment out GDK types
13668         * gtk/gtktypeutils.h: Remove GDK types
13669         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
13670
13671 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
13672
13673         * Applied patch from Ron Steinke to add signal accumulators
13674         so that signals with the convention 'TRUE return means
13675         handled' stop emission on a TRUE return.
13676
13677         * gtk/gtkmain.[ch]: Add private accumulator 
13678         _gtk_boolean_handled_accumulator, used throughout GTK+.
13679         
13680         * gtk/gtkspinbutton.c: Add accumulator for ::output.
13681
13682         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
13683         
13684         * gtk/gtkwidget.c: Add accumulators for event signals,
13685         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
13686         for ::mnemonic-activate.
13687
13688         * gtk/gtkwindow.c: Add accumulator for ::frame_event
13689
13690 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
13691
13692         * gtk/gtkwidget.c: Add missing include.
13693
13694 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
13695
13696         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
13697         marshaller.
13698
13699         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
13700         "changed" signal to "range_changed".
13701
13702         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
13703         removing a tree from one model would remove all trees from that
13704         model.
13705         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
13706         changed signal instead.
13707
13708 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
13709
13710         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
13711         chaining up to parent impl, since we have a INPUT_ONLY
13712         window.
13713
13714         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
13715         foreground color for the cursor.
13716
13717 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
13718
13719         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
13720         param spec when caching property values, since we unref it
13721         later when we free the style.
13722
13723         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
13724         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
13725
13726 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
13727
13728         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
13729         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
13730         stupidity.
13731
13732 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
13733
13734         [ First pass at adding style properties. Still needs some definite
13735         fine-tuning. ]
13736
13737         * gtk/gtkbutton.c: Add ::default_spacing style property.
13738          
13739         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
13740         ::indicator_spacing style properties.
13741
13742         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
13743         style properties.
13744
13745         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
13746         rather than a normal property.
13747
13748         * gtk/gtkwidget.c: Add an ::interior_focus style property to
13749         draw focus inside buttons, in the Windows/Java Metal/etc. style.
13750
13751         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
13752         Honor ::interior_focus.
13753         
13754         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
13755         TRUE.
13756
13757         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
13758         Add ::slider_width, ::trough_border, ::stepper_size,
13759         ::stepper_spacing style properties.
13760
13761         * gtk/gtkscale.[ch] Add ::slider-length style property.
13762
13763 2001-04-02 Alexander Larsson   <alexl@redhat.com>
13764
13765         * gdk/linux-fb/gdkwindow-fb.c:
13766         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
13767         warnings that were spewed on startup.
13768
13769         * gtk/gtkwindow-decorate.c:
13770         gtk_window_reposition -> _gtk_window_reposition
13771
13772 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
13773
13774         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
13775         Add boxed type for GtkRequistion. Use it for ::size-request.
13776
13777         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
13778         Add a new GtkBorder structure useful for geometry properties
13779         for widgets. Add corresponding GTK_TYPE_BORDER.
13780         
13781         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
13782         Support automatic parser selection like
13783         gtk_settings_install_property_parser().
13784
13785         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
13786         functionality for use by gtk_widget_class_install_style_property.
13787         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
13788
13789 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
13790
13791         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
13792         g_param_spec_unichar(). 
13793
13794 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
13795
13796         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
13797         _NET window managers.
13798
13799         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
13800
13801 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
13802
13803         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
13804         bad needs to be nuked, not just deprecated.
13805
13806         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
13807         gtk_widget_popup().
13808
13809         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
13810         
13811         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
13812         widget.
13813         
13814         * docs/Changes-2.0.txt: updates.
13815         
13816 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
13817
13818         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
13819         for (i = 0; i < 100; i ++)
13820           g_print ("I will confirm it compile before committing\n");
13821
13822 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
13823
13824         * gtk/gtktreestore.c: Initial work on implementing the
13825         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
13826
13827 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
13828
13829         * gtk/gtkwidget.c: fixed a bunch of notifications, added
13830         reference counts around emissions where the widget is used afterwards.
13831         added freeze/thaws around multiple properties being notified.
13832         (_gtk_widget_get_aux_info): cleanups.
13833         
13834         * gtk/gtksettings.c (gtk_settings_install_property): provide
13835         default parsing functions for gdkcolor, enums and flags.
13836
13837         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
13838         applied by owen.
13839         backed out gtk_window_get_location(), gtk_window_set_location(),
13840         gtk_window_get_size() and gtk_window_set_size(), these
13841         have to be sorted out wrg x/y/width/height/default_with/default_height
13842         properties.
13843         kept a flag in GtkWindowGeometryInfo to handle user
13844         resetting default sizes.
13845         cleaned up ZVT comments.
13846         bunch of assorted bug fixes, notification fixes.
13847         (_gtk_window_reposition): make this a really internal function.
13848         
13849         * gtk/testgtk.c: fixups.
13850         
13851 2001-03-31  Hans Breuer  <hans@breuer.org>
13852
13853         * config.h.win32.in : disable USE_MMX for msvc build cause
13854         the assembler doesn't fit and is out of my scope. Disable
13855         USE_GMODULE for msvc build as wel. The right way to share
13856         binaries on win32 would be to use libtiff.dll etc. To reduce
13857         installation hassles IMO it's better to include all fileformats
13858         builtin to gdk-pixbuf
13859
13860         * gdk-pixbuf/makefile.msc : new file
13861
13862         * gdk/gdk.def : updated
13863
13864         * gdk/win32/gdkevents-win32.c : don't erase the background if
13865         .no_bg is set. It improves the scrolling (e.g. of testgtk main
13866         buttons
13867         * gdk/win32/gdkgeometry-win32.c : added comment about the above
13868
13869         * gdk/win32/gdkwindow-win32.c : added three new functions like
13870         the X version. Only one is implemented, because the other two
13871         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
13872         be default behaviour on win32 anyway ...
13873
13874         * gtk/gtk.def : updated
13875
13876         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
13877         from where it was built and add an additional rule to automagically
13878         build gtkmarshal.[hc]
13879
13880         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
13881         before array access for the current entry isn't finished
13882
13883         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
13884         use g_return_val_if_fail
13885
13886         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
13887         for the static array, but let the compiler calculate it. It
13888         makes me wonder if gcc isn't capable to catch bugs like this ...
13889
13890 2001-03-31  James Henstridge  <james@daa.com.au>
13891
13892         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
13893         constant "-1" in the aux info structure.
13894
13895 2001-03-30  Alexander Larsson  <alexl@redhat.com>
13896
13897         * gtk/gtkbutton.c (gtk_button_get_property):
13898         * gtk/gtklabel.c:
13899         Remove leaks.
13900         
13901         * gtk/gtkcontainer.c:
13902         * gtk/gtkhscale.c:
13903         * gtk/gtkhscrollbar.c:
13904         * gtk/gtklayout.c:
13905         * gtk/gtkmisc.c:
13906         * gtk/gtkprogress.c:
13907         * gtk/gtkprogressbar.c:
13908         * gtk/gtkrange.c:
13909         * gtk/gtktable.c:
13910         * gtk/gtkviewport.c:
13911         * gtk/gtkvscale.c:
13912         * gtk/gtkvscrollbar.c:
13913         * gtk/gtkwidget.c:
13914         Property patches, based on patches from John Margaglione and Lee Mallabone.
13915
13916 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
13917
13918         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
13919         adjustment. Cleaned redundant preconditions (spin != NULL). Added
13920         inline API function docs.
13921         (gtk_spin_button_new_with_range): New convenience constructor.
13922         (gtk_spin_button_set_increments): New adjustment helper.
13923         (gtk_spin_button_set_range): New adjustment helper.
13924
13925         * gtk/testgtk.c : added test of the new convenince constructor and
13926         value_changed signals.
13927
13928 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
13929
13930         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
13931         listen to the reorder signal.
13932
13933 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
13934
13935         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
13936         to get the aux info structure fo the widget.
13937
13938         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
13939         above function.
13940
13941         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
13942
13943         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
13944         to get the size of the window manager frame, basically the same
13945         code that gdk_window_get_root_origin() had
13946         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
13947
13948         * gtk/gtkwindow.c (gtk_window_set_default_size): use
13949         gdk_window_resize() if the window is realized and resizeable
13950
13951         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
13952         typo so that setting gravity works
13953
13954         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
13955         allocation if auto_shrink is on, even if the default size
13956         has not changed.
13957
13958         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
13959         g_return_if_fail
13960
13961 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
13962
13963         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
13964         reordering/sorting work.  Now pretty much works.
13965
13966         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
13967         reorder mostly work.  Still need to get the parity correct.
13968
13969         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
13970         signal, so I can listen for the sort_column_changed signal so I
13971         can change my "sort_indicator" property.  Cool.
13972
13973 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
13974
13975         [ Patch from Havoc Pennington, hp@redhat.com ]
13976
13977         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
13978         Add functions gdk_window_begin_resize_drag/begin_move_drag
13979         to start resizing or moving a toplevel window. This
13980         is done either using the _NET_WM_MOVERESIZE protocol,
13981         or, if that isn't present, by emulation.
13982
13983         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
13984         to export the above to GTK+-land.
13985
13986         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
13987         
13988         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
13989         Move this function into gdkwindow, since we need it
13990         when implementing fallback resizing.
13991
13992         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
13993         Fix typo when setting gravity.
13994
13995         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
13996         Add an optional (but on by default) resize grip for resizing 
13997         the parent window.
13998
13999 01-03-29  Alexander Larsson  <alexl@redhat.com>
14000
14001         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
14002         Don't return TRUE from the event handler, that blocks all
14003         event signals on the tooltip widget. Now you can press buttons
14004         in toolbars again.
14005
14006 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
14007
14008         * gtk/testtext.c (create_buffer): Add missing NULL on
14009         valist.
14010
14011         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
14012         c-n-p problem with INCONSISTENT property.
14013
14014         [ Patch from Havoc Pennington  <hp@redhat.com> ]
14015
14016         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
14017         hook.
14018
14019         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
14020         signal as a hook for extending the default popup menu
14021
14022         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
14023         use radio menu items for the input method menuitems
14024
14025         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
14026         inserted unicode from Ctrl-Shift-hex input method
14027
14028         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
14029         validatation here, already done at GtkTextBuffer level.
14030
14031         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
14032         popup_menu run action signal and Shift+F10 and Menu keybindings.
14033
14034         * gtk/gtkentry.c: implement a default handler for popup_menu
14035
14036         * gtk/gtktextview.c: implement a default handler for popup_menu
14037
14038         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
14039         from a key event
14040         
14041         * gtk/gtklabel.c: remove "trailer" cruft
14042
14043 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
14044
14045         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
14046         handle reordering of trees.  Seems to mostly work w/ the exception
14047         of the parity flag.
14048
14049         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
14050         signal.
14051
14052 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
14053
14054         * gtk/gtkwidget.h: c++ fixes.
14055
14056 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
14057
14058         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
14059         memory.
14060
14061 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
14062
14063         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
14064         Nils Barth fixing event return values. (#51041)
14065
14066         * gtk/gtkwidget.c: Fix some return values for default
14067         functions.
14068
14069         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
14070         return values for trough_keys functions.
14071
14072         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
14073         value for add_accelerator (shoudl have been a void
14074         return.)
14075
14076         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
14077         Fix return type of EVENT.
14078
14079         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
14080         signal return a boolean.
14081
14082 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
14083
14084         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
14085         reordered signal.
14086
14087         * tests/testtreesort.c (main): fix spelling.
14088
14089 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
14090
14091         * gtk/gtkliststore.c: More work on implementing sortable
14092         interface.
14093
14094 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
14095
14096         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
14097         reference the widgets in the resulting list. (#11821)
14098         This makes this consistent with gtk_container_children.
14099
14100         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
14101         uses of gtk_window_list_toplevels.
14102
14103 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
14104
14105         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
14106         a virtual function to set whether the IM context should use 
14107         the preedit string. (#51922)
14108         
14109 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
14110
14111         * gdk/gdkpango.h: Remove stale FIXME comment.
14112
14113 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
14114
14115         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
14116         Fixed bug that returned NULL if a filename was selected.
14117
14118 2001-03-24  Havoc Pennington  <hp@pobox.com>
14119
14120         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
14121         to contain the word "theme"
14122
14123 2001-03-24  Havoc Pennington  <hp@pobox.com>
14124
14125         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
14126         slower but finer-grained
14127         (gtk_hsv_focus): get initial focus on the ring or triangle 
14128         according to tab direction
14129
14130         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
14131
14132 2001-03-23  Havoc Pennington  <hp@pobox.com>
14133
14134         * gtk/gtkhsv.c: make this somewhat key-navigable
14135
14136         * gtk/gtkfontsel.c: mnemonics
14137
14138         * gtk/gtkgamma.c: mnemonics
14139
14140         * gtk/gtkcolorsel.c: add mnemonics to labels
14141
14142 2001-03-22  Havoc Pennington  <hp@pobox.com>
14143
14144         Applied big patch from Seth Lytle to fix event handler return
14145         values, slightly modified.
14146
14147         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
14148         handled.
14149         (gtk_calendar_key_press): return TRUE for GDK_space triggers
14150         select_day
14151
14152         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
14153         (gtk_clist_button_release): return TRUE if handled
14154
14155         * gtk/gtkcolorsel.c (mouse_release):
14156         (palette_activate): 
14157         (palette_press): 
14158         (palette_new): 
14159         (mouse_press): 
14160         (get_screen_color): 
14161         fixed return type (void to gboolean), return TRUE,
14162         added GTK_SIGNAL_FUNC cast
14163
14164         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
14165         (void to gboolean), and return TRUE
14166         (gtk_combo_button_release): changed return value to TRUE after
14167         gtk_grab_add on combo->popwin
14168
14169         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
14170         collapse or expand
14171
14172         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
14173         button/motion
14174
14175         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
14176         press/release and motion that trigger act
14177
14178         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
14179
14180         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
14181         for GDK_Return
14182         
14183         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
14184         (gtk_list_button_release): return TRUE if selection
14185
14186         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
14187         press
14188
14189         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
14190         (gtk_menu_shell_button_release): chain parent_menu_shell retval
14191
14192         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
14193         nothing triggered
14194         (gtk_notebook_button_release): return TRUE if we do anything
14195
14196         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
14197         (gtk_spin_button_button_release): return TRUE or chained retval
14198
14199         * gtk/gtktext.c (gtk_text_button_press): 
14200         (gtk_text_button_release): return TRUE
14201         (gtk_text_key_press): remove redundant retval code
14202         
14203         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
14204         and sensitive
14205         (gtk_tree_item_subtree_button_click): changed type to gint, and return
14206         TRUE if sensitive
14207
14208         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
14209         return TRUE
14210
14211 2001-03-23  Havoc Pennington  <hp@redhat.com>
14212
14213         * gtk/testgtk.c: fix warnings
14214
14215         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
14216
14217         * gtk/gtktextview.c: fix warnings
14218
14219         * gtk/gtktext.c (find_cursor_at_line): fix warning
14220
14221         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
14222
14223         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
14224         of this function
14225
14226         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
14227         fix warning
14228
14229         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
14230
14231         * gtk/gtkfontsel.c: fix warning
14232
14233         * gtk/gtkcolorsel.c: fix warnings
14234
14235 2001-03-23  Havoc Pennington  <hp@redhat.com>
14236
14237         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
14238
14239         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
14240
14241         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
14242         and deprecated gtk_check_menu_item_set_show_toggle().
14243         
14244         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
14245
14246         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
14247
14248         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
14249
14250 2001-03-23  Havoc Pennington  <hp@redhat.com>
14251
14252         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
14253         some docs
14254
14255 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
14256
14257         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
14258         this.
14259
14260         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
14261         set_cell to set_value
14262
14263         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
14264         set_cell to set_value
14265
14266 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
14267
14268         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
14269         fix braino.
14270         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
14271         support.
14272
14273         * gtk/gtktreeview.c: Addition of initial sortable support.
14274
14275         * gtk/gtktreestore.c: Addition of initial sortable support.
14276
14277         * gtk/gtkliststore.c: Addition of initial sortable support.
14278
14279         * gtk/gtkmarshal.list: yet another marshaller.
14280
14281         * gtk/gtktreedatallist.[ch]: shared code between the store models
14282         for handling sorting headers.
14283
14284 2001-03-22  Havoc Pennington  <hp@redhat.com>
14285
14286         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
14287         (gtk_container_unset_focus_chain): Add ability to override the 
14288         focus chain for a container explicitly
14289
14290 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
14291
14292         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
14293         added PROP_MNEMONIC_WIDGET.
14294
14295         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
14296         (gtk_window_remove_mnemonic): 
14297         (gtk_window_add_mnemonic): fixed assertions.
14298         (gtk_window_activate_mnemonic): constrain modifier checks to those
14299         permitted by gtk_accelerator_get_default_mod_mask().
14300         got rid of gtk_window_get_default_accel_group().
14301
14302         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
14303         activatable widgets either by focussing or a warning.
14304         added a signal accumulator to ::activate_mnemonic which stops the
14305         emission once a handler returned TRUE.
14306
14307 2001-03-22  Havoc Pennington  <hp@pobox.com>
14308
14309         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
14310         the stock item label
14311
14312         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
14313
14314         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
14315
14316         * demos/gtk-demo/*.c: Add mnemonics all over the place
14317
14318         * gtk/gtklabel.h: mark parse_uline deprecated
14319
14320 2001-03-21  Alexander Larsson  <alexl@redhat.com>
14321
14322         * gtk/gtkitemfactory.[ch]:
14323         Add support for stock and normal imagemenuitems.
14324         
14325         * gtk/testgtk.c:
14326         Add some tests for mnemonics, stock toolbars, stock
14327         and image menuitems in itemfactory and gdk_window_scroll.
14328
14329 2001-03-21  Alexander Larsson  <alexl@redhat.com>
14330
14331         * gtk/gtkbutton.[ch]:
14332         * gtk/gtkdialog.c:
14333         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
14334         removed accel_group argument. Renamed gtk_button_new_accel() to
14335         gtk_button_new_with_mnemonic() and removed accel_group argument.
14336
14337         * gtk/gtkcheckbutton.[ch]:
14338         New function gtk_check_button_new_with_mnemonic().
14339
14340         * gtk/gtkentry.c:
14341         Override activate_mnemonic and just grab focus.
14342
14343         * gtk/gtkitemfactory.c:
14344         Don't add menu uline accel group, instead use mnemonics support.
14345
14346         * gtk/gtklabel.[ch]:
14347         New support for mnemonics.
14348
14349         * gtk/gtkmarshal.list:
14350         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
14351
14352         * gtk/gtkmenu.[c]:
14353         * gtkmenushell.c:
14354         Use mnemonics instead of accel groups for uline
14355         support in menu items.
14356         Removed gtk_menu_get_uline_accel_group() and
14357         gtk_menu_ensure_uline_accel_group().
14358
14359         * gtk/gtkmenuitem.c:
14360         Override activate_mnemonic to handle switching between
14361         menu items if there are collisions.
14362         
14363         * gtk/gtknotebook.c:
14364         Connect to activate_mnemonic on the tab_label, so that
14365         activating it switches to that notebook page.
14366
14367         * gtk/gtkwidget.[ch]:
14368         Add activate_mnemonic signal. New function
14369         gtk_widget_activate_mnemonic() to emit it.
14370         Default implementation does activate/grab_focus.
14371
14372         * gtk/gtkwindow.[ch]:
14373         Add support for mnemonics in windows.
14374         New functions:
14375         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
14376         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
14377
14378         * gtk/testgtk.c:
14379         Update to function name changes.
14380         
14381 2001-03-21  Alexander Larsson  <alexl@redhat.com>
14382
14383         * gtk/gtkimagemenuitem.[c]:
14384         Add gtk_image_menu_item_new_from_stock()
14385
14386 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
14387
14388         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
14389         Fix buglet in meeting.
14390
14391 2001-03-19  Havoc Pennington  <hp@redhat.com>
14392
14393         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
14394         add a bunch of accessor functions. This is because we have
14395         reasonable expectations of extending what fields it contains in
14396         the future.
14397
14398         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
14399         changes
14400
14401         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
14402         GtkIconSource   
14403
14404 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
14405
14406         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
14407         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
14408
14409         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
14410           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
14411           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
14412           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
14413         Change float to double everywhere with the exception of 0<->1.0 alignment
14414         and GtkCurve.
14415
14416 2001-03-19  Tor Lillqvist  <tml@iki.fi>
14417
14418         * gdk/win32/gdkdrawable-win32.c
14419         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
14420         output.
14421
14422         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
14423         gdkwin32.h.
14424
14425 2001-03-18  Tor Lillqvist  <tml@iki.fi>
14426
14427         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
14428         print_event_state, print_event): Use preprocessor macro to make
14429         code more compact. Print also GDK_WINDOW_STATE events.
14430         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
14431         
14432         * gtk/gtk.def
14433         * gtk/makefile.mingw.in: Update.
14434
14435         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
14436         to catch also Cygwin.
14437
14438 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
14439
14440         * gtk/gtkspinbutton.[hc]: added rc-style argument
14441         GtkSpinButton::shadow_type.
14442         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
14443         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
14444         rc-style settings.
14445
14446         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
14447
14448         * gtk/gtkwidget.c: quark cleanups.
14449
14450         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
14451         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
14452         to create_rc_style() (we don't do cloning in standard OO sense).
14453         added per rc style properties.
14454         
14455         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
14456         property values and for caching those. some cleanups.
14457         
14458         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
14459         
14460         * gtk/gtksettings.[hc]: new file for global rc-file properties
14461         (at least currently, should get extended to support X properties
14462         and other communication mechanisms).
14463         
14464         * gtk/gtkwidget.[hc]: added style property support:
14465         (gtk_widget_class_install_style_property_parser): install style
14466         property pspec with parser function for rc-file values other
14467         than LONG, DOUBLE or STRING.
14468         (gtk_widget_class_install_style_property): same as above without
14469         parser (parsers are going to be needed quite infrequently).
14470         (gtk_widget_style_get_property): retrive style property value.
14471         (gtk_widget_style_get_valist): same as above with varargs support,
14472         has NOCOPY semantics.
14473         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
14474
14475 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
14476
14477         * demos/gtk-demo/main.c (row_activated_cb): modified to use
14478         "row_activated" signal.
14479
14480         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
14481         stupidity.  Lets actually pass in the row with this signal...
14482
14483 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
14484
14485         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
14486
14487         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
14488
14489         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
14490         everything into the ::destroy function, and freed a lot more.
14491
14492 2001-03-16  Havoc Pennington  <hp@redhat.com>
14493
14494         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
14495         instead of gint16, to avoid overflow issues, since sizes > 16-bit
14496         are now allowed.
14497
14498 2001-03-16  Havoc Pennington  <hp@redhat.com>
14499
14500         * Applied patch from Nils Barth (bug # 51041) to 
14501         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
14502         in various places.
14503
14504 2001-03-15  Havoc Pennington  <hp@redhat.com>
14505         
14506         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
14507         for properties to set on the tag.
14508
14509         * gtk/testtext.c: fixups to reflect create_tag change
14510         
14511         * gtk/gtktexttag.c (gtk_text_tag_set_property):
14512         background/foreground stipple are objects, not boxed.
14513
14514         * demos/gtk-demo/textview.c: intellihancing
14515
14516 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
14517
14518         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
14519         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
14520
14521 2001-03-16  Alexander Larsson  <alexl@redhat.com>
14522
14523         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
14524         Fix sign error with queued region translations.
14525
14526 2001-03-15  HideToshi Tajima  <tajima@happy>
14527
14528         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
14529         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
14530         * gtk/gtkentry.c (update_im_cursor_location): 
14531         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
14532         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
14533         set_cursor_pos to set_cursor_location in GtkInputContext class
14534
14535 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
14536
14537         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
14538         the location of the cell relative to its area.
14539         * gtk/gtkcell*: modified for above change
14540         * gtk/gtktreeview.c: modified for above change.
14541
14542 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
14543
14544         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
14545          (gtk_tree_view_finalize): actually unref the model.  Thanks to
14546         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
14547
14548 2001-03-14  Havoc Pennington  <hp@redhat.com>
14549
14550         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
14551         
14552         * gtk/gtk.h: remove gtkdata.h
14553
14554         * gtk/Makefile.am: remove gtkdata
14555         
14556         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
14557         not "disconnect" on the adjustments.
14558         
14559         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
14560         GtkData
14561
14562         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
14563         not GtkData
14564
14565         * configure.in: handle case where X render exists, but Pango lacks
14566         Xft support.
14567
14568 2001-03-15 Alexander Larsson  <alexl@redhat.com>
14569
14570         * gtk/gtktoolbar.[ch]:
14571         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
14572         to add stock items to toolbars.
14573
14574         * gtk/Makefile.am:
14575         Remove ../gdk/gdkim.h from gdk_headers.
14576
14577 2001-03-15  Sven Neumann  <sven@gimp.org>
14578
14579         * gdk/gdkim.h: removed
14580         
14581         * gdk/gdkprivate.h
14582         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
14583
14584 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
14585
14586         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
14587         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
14588         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
14589         set_cursor_pos() virtual method
14590
14591         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
14592         (gtk_im_context_xim_set_cursor_pos): add implementation for
14593         set_cursor_pos() method
14594
14595         * gtk/gtkentry.c (recompute_idle_func): set current cursor
14596         position to input methods
14597
14598 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
14599
14600         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
14601         code a lot.
14602
14603         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
14604         g_mem_chunk.
14605         (_gtk_tree_data_list_alloc): use g_mem_chunk.
14606         (_gtk_tree_data_list_node_to_value): Fix to switch on
14607         G_TYPE_FUNDAMENTAL.
14608         (_gtk_tree_data_list_value_to_node): Fix to switch on
14609         G_TYPE_FUNDAMENTAL.
14610         (_gtk_tree_data_list_node_copy): Fix to switch on
14611         G_TYPE_FUNDAMENTAL.
14612
14613 2001-03-12  Havoc Pennington  <hp@redhat.com>
14614
14615         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
14616         to convert to new property API. Also, change default_width and
14617         default_height get_property to return 0 as the flag value for
14618         "unset"; -1 is not a valid value for these fields.
14619
14620 2001-03-12  Havoc Pennington  <hp@redhat.com>
14621
14622         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
14623         enum with registration for icon sizes, instead of strings.
14624
14625         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
14626         gtkwidget.c: Fix to reflect GtkIconSize
14627         
14628 2001-03-12  Alexander Larsson  <alexl@redhat.com>
14629
14630         Make GtkFB compile and link.
14631         
14632         * gdk/linux-fb/gdkdrawable-fb2.c:
14633         window->mapped to GDK_WINDOW_IS_MAPPED(). 
14634         
14635         * gdk/linux-fb/gdkwindow-fb.c:
14636         window->mapped to GDK_WINDOW_IS_MAPPED(). 
14637         Added gdk_window_shape_combine_region.
14638         Added assorted placeholders for unimplemented new GdkWindow API calls.
14639
14640 2001-03-12  Alexander Larsson  <alexl@redhat.com>
14641
14642         * gtk/gtkfilesel.c:
14643         Add more test when converting filenames from/to utf-8.
14644         Don't allow entering text in the filename entry which isn't allowed in
14645         a filename. Just beep instead.
14646
14647 2001-03-12  Alexander Larsson  <alexl@redhat.com>
14648
14649         * gtk/gtkclist.c:
14650         Scroll using gdk_window_scroll(). Don't wait for exposes.
14651         Move the column headers in an order that makes them flash less.
14652
14653 2001-03-10  Hans Breuer  <hans@breuer.org>
14654
14655         * gdk/gdk.def : updated
14656
14657         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
14658         to offseting the clip_mask at the right place
14659
14660         * gdk/win32/gdkwindow-win32.c : don't create background brushes
14661         for all the gdkClasses, especially not for the input_only case.
14662         Otherwise flickering wont be avoidable, because we don't get
14663         WM_ERASEBKGND message for these windows.
14664
14665         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
14666         and fixed massive redraw problems apparently triggered by Alexanders 
14667         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
14668         but it seems to work quite well :-)
14669
14670         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
14671         prototype
14672
14673 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
14674
14675         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
14676         (gtk_list_store_set_cell): Fix a stupid typo.
14677
14678 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
14679
14680         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
14681         select_all not work if you're in SINGLE mode (it doesn't make that
14682         much sense, anyway.)
14683
14684         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
14685         handle types more sanely.
14686         (_gtk_tree_data_list_value_to_node): handle types more sanely.
14687         (_gtk_tree_data_list_node_copy): handle types more sanely.
14688
14689         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
14690         GValue better. Converts the type as well.
14691
14692         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
14693         GValue better. Converts the type as well.
14694
14695 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
14696
14697         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
14698         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
14699         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
14700         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
14701
14702         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
14703         gdk_im/gdk_ic.
14704
14705 2001-03-09  Hans Breuer  <hans@breuer.org>
14706
14707         * gdk/gdk.def : updated
14708
14709         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
14710         for their palette
14711
14712         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
14713         removing
14714
14715         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
14716         removing and implemented Havoc's GdkWindow state functions; 
14717         stick/unstick only as no-op, cause I don't know how to emulate 
14718         on win32 ...
14719
14720         * gtk/gtk.def : updated
14721
14722         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
14723
14724         * gtk/gtktypeutils.c : #include <string.h>
14725
14726         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
14727
14728 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
14729
14730         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
14731         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
14732         not a boxed.
14733
14734 2001-03-09  Alexander Larsson  <alexl@redhat.com>
14735
14736         * docs/Changes-2.0.txt:
14737         Document expose event->region change and that gtk_widget_event
14738         doesn't allow passing expose events.
14739
14740         * gdk/gdkevents.h:
14741         Add region to expose event.
14742         
14743         * gdk/gdkevents.c:
14744         Handle event->region in gdk_event_copy() and gdk_event_free().
14745
14746         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
14747         Generate expose_event->region when creating expose events.
14748
14749         * gdk/x11/gdkevents-x11.c:
14750         Generate expose events with regions when translating X events.
14751
14752         * gtk/gtkcontainer.[ch]:
14753         Default expose handler that propagates expose events to NO_WINDOW
14754         children. New function gtk_container_propagate_expose()
14755
14756         * gtk/gtkwidget.[ch]:
14757         Moved gtk_widget_event implementation to gtk_widget_event_internal.
14758         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
14759         expose events. New function gtk_widget_send_expose() to send expose
14760         events. New function gtk_widget_region_intersect() to calculate
14761         window/region intersections.
14762         
14763         * gtk/gtkmain.c (gtk_main_do_event):
14764         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
14765         Use gtk_widget_send_expose() to send expose events.
14766         
14767         * gtk/gtkbin.c:
14768         * gtk/gtkbox.c:
14769         * gtk/gtkfixed.c:
14770         * gtk/gtkimagemenuitem.c:
14771         * gtk/gtklist.c:
14772         * gtk/gtkpacker.c:
14773         * gtk/gtktable.c:
14774         * gtk/gtktree.c:
14775         Remove expose handler, using the default container implementation
14776         instead.
14777         
14778         * gtk/gtkbutton.c:
14779         * gtk/gtkcheckbutton.c:
14780         * gtk/gtkeventbox.c:
14781         * gtk/gtkfixed.c:
14782         * gtk/gtkhandlebox.c:
14783         * gtk/gtklayout.c:
14784         * gtk/gtklistitem.c:
14785         * gtk/gtkmenu.c:
14786         * gtk/gtkmenubar.c:
14787         * gtk/gtkmenuitem.c:
14788         * gtk/gtknotebook.c:
14789         * gtk/gtkoptionmenu.c:
14790         * gtk/gtkpaned.c:
14791         * gtk/gtkscrolledwindow.c:
14792         * gtk/gtktogglebutton.c:
14793         * gtk/gtktoolbar.c:
14794         * gtk/gtktreeitem.c:
14795         * gtk/gtkviewport.c:
14796         Chain expose handler to parent class handler. Use
14797         gtk_container_propagate_expose() to propagate exposes.
14798
14799         * gtk/gtkclist.c (check_exposures):
14800         * gtk/gtktext.c (process_exposes):
14801         Use gtk_widget_send_expose instead of gtk_widget_event.
14802
14803 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
14804
14805         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
14806
14807 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
14808
14809         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
14810         unref the nodes.   Fixes bug #50058.
14811
14812         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
14813         "::ref_iter" to "::ref_node".
14814         (gtk_tree_model_unref_node): change "::unref_iter" to
14815         "::unref_node". Fixes bug #50064.
14816
14817 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
14818
14819         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
14820         support for invisible cells.
14821          (gtk_tree_view_bin_expose): ditto
14822
14823 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
14824
14825         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
14826         on gobjects.
14827
14828         * tests/testtreefocus.c (main): New test file.
14829
14830         * tests/testtreeview.c: update to latest glib changes.
14831
14832         * tests/testtreecolumns.c: update to latest glib changes.
14833
14834 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
14835
14836         * gtk/testgtk.c: re-enabled event watcher emission hooks.
14837
14838 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
14839
14840         * *.c: added accumulator data argument to g_signal_newc()
14841         functions.
14842
14843         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
14844         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
14845         * gtk/treestoretest.c (make_window):
14846         s/g_signal_connect/g_signal_connectc/.
14847
14848         * gtk/gtktextbuffer.c: completed signal arg fixups,
14849         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
14850
14851 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
14852
14853         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
14854         G_CONST_RETURN.
14855
14856         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
14857         ::hierarchy-changed signal when a widget changes
14858         from anchored to unanchored or vice versa.
14859         (anchored means 
14860          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
14861         Use a private flag to keep track of this efficiently.
14862
14863 2001-03-07  Havoc Pennington  <hp@redhat.com>
14864
14865         * gtk/testgtk.c (create_spins): uglify so that size request gets
14866         tested.
14867
14868         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
14869         request on values for upper/lower, completes #6152
14870
14871 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
14872
14873         * Makefile.am: Remove gtk-config-2.0 again.
14874         (Grrrr, pkg-config. And stops make loops.)
14875
14876 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
14877
14878         * gtk/gtksignal.[hc]: removed old emission hook API.
14879         
14880         * docs/Changes-2.0.txt: fixed sections.
14881         
14882         * gtk/gtktextbuffer.c: signal arg fixups.
14883
14884 2001-03-07  Havoc Pennington  <hp@redhat.com>
14885
14886         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
14887
14888         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
14889         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
14890         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
14891         validation and the redraw which is higher priority than the
14892         validation.
14893
14894 2001-03-07  Havoc Pennington  <hp@redhat.com>
14895
14896         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
14897         (gtk_entry_set_property): remove trailer
14898
14899         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
14900         (gtk_entry_get_width_chars): new functions, to set size request to 
14901         a given number of characters
14902
14903         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
14904
14905         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
14906         (gtk_dialog_get_has_separator): new function
14907         (run_delete_handler): fix to not emit "response" signal
14908         because we already did in the delete event handler installed
14909         at dialog creation time.
14910         
14911         * gtk/gtkdialog.h: add a has_separator property,
14912         add GTK_DIALOG_NO_SEPARATOR flag
14913
14914 2001-03-07  Havoc Pennington  <hp@redhat.com>
14915
14916         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
14917         off decorations for a window.
14918
14919         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
14920         changes
14921
14922         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
14923         to get location of PangoLayout inside the label, closes #51198
14924
14925         * gtk/testgtk.c (create_bbox): fix up button box usage
14926
14927         * gtk/testcalendar.c (create_calendar): fix up button box usage
14928
14929         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
14930
14931         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
14932
14933         * gtk/gtkhbbox.h: deprecations
14934
14935         * gtk/gtkvbbox.h: deprecations
14936
14937         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
14938         emulate deprecated gtk_button_box_get_spacing
14939
14940         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
14941         the "set global default" functions
14942         (struct _GtkButtonBox): remove "spacing" field, use the one from 
14943         GtkBox base class
14944
14945         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
14946
14947         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
14948         render the icon, return the missing image icon.
14949
14950         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
14951         image icon if the load fails.   
14952
14953         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
14954         when no image is found; should be the Netscape "missing image"
14955         icon eventually but for now is a random image
14956
14957         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
14958         role for the session manager
14959
14960         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
14961
14962         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
14963         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
14964
14965         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
14966
14967 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
14968
14969         * gtk/*.c: marshaller fixes.
14970         
14971         * gtk/gtkmarshal.list: extreme cleanup.
14972
14973         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
14974         param spec for now.
14975
14976         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
14977         where appliable.
14978
14979         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
14980         special cased autogenerated boxed types from gtktypebuiltins_ids.c
14981         which are not reference counted:
14982         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
14983         PangoFontDescription, GtkTreeIter and GtkTreePath.
14984
14985 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
14986
14987         * gtk/gtktreeselection.h: 
14988         * gtk/gtktreemodel.c:
14989         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
14990         file should be included directly, and gobject/gmarshal.h
14991         as well as gtk/gtkmarshal.h even can't be included directly.
14992
14993         * Makefile.am: grr, install gtk-config-2.0.
14994
14995         * gtk/testgtk.c:
14996         * gtk/simple.c:
14997         * gtk/gtkmenu.c:
14998         * gtk/gtkitemfactory.c: use g_object_connect() instead of
14999         passing "*signal*::*" args to gtk_widget_set().
15000         
15001         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
15002         
15003         * gtk/*.c: removed trailer arg from property setters and getters.
15004         macro fixups.
15005
15006 2001-03-07  Alexander Larsson  <alexl@redhat.com>
15007
15008         * gtk/gtklabel.c (set_markup): Removed warning
15009
15010 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
15011
15012         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
15013         field to allow you to hide cell renderers.
15014
15015         * gtk/gtkcellrenderer.c: Add support for invisible cells.
15016
15017         * gtk/gtktreeview.c: Add support for invisible cells.
15018
15019 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
15020
15021         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
15022         Add "clicked" signal back to columns.
15023
15024         * ChangeLog: remove conflict markers.
15025
15026 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
15027
15028         * gtk/gtkbutton.c: Add animation of activation by, on 
15029         activate, pressing the button, and adding a timeout that 
15030         releases the button after 250ms or on key release and
15031         emits ::clicked. (#51501)
15032
15033         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
15034         action area, we connect to ::clicked instead of ::activate
15035         so the dialog stays up through the animation.
15036
15037 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
15038
15039         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
15040         check the ignore_enter flag for the menu shell that
15041         the item is actually a child of, not for attached
15042         submenus. (#51536)
15043
15044 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
15045
15046         * gtk/gtkmain.c (gtk_propagate_event): Only do special
15047         special key-press grab handling for widgets within
15048         GtkWindows. Otherwise, fall through to normal case.
15049
15050         This prevents key events being sent twice to GtkInvisible
15051         widgets, which can cause all sorts of mischief.
15052
15053 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
15054
15055         * gtk/gtkmain.c (gtk_propagate_event): When a grab
15056         widget is in effect, give the grab widget a first
15057         crack at KEY_PRESS/RELEASE events. (#424)
15058
15059 2001-03-06  James Henstridge  <james@daa.com.au>
15060
15061         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
15062         offset for the window_state_event to point at window_state_event
15063         rather than no_expose_event.
15064
15065 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
15066
15067         * gtk/gtkimmodule.h: fix busted /* comment */
15068
15069 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
15070
15071         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
15072         object properties.
15073
15074 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
15075
15076         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
15077         add object properties.
15078
15079         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
15080         to add object properties.
15081
15082         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
15083         object properties.
15084
15085         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
15086         add object properties.
15087
15088         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
15089         object properties.
15090
15091 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
15092
15093         * gtk/gtktreemodel.c: renamed "child_toggled" to
15094         "has_child_toggled".
15095
15096         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
15097         handle new signal name.
15098
15099         * gtk/gtktreestore.c: Updated to handle new signal name.
15100         * gtk/gtklisttore.c: Updated to handle new signal name.
15101         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
15102
15103 2001-03-05  Alexander Larsson  <alexl@redhat.com>
15104
15105         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
15106         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
15107
15108 2001-03-05  Michael Natterer  <mitch@gimp.org>
15109
15110         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
15111         pixbuf-engine coincidentially also failed to make one of it's
15112         parent_class pointers static, causing overwriting of GtkLabel's
15113         parent_class pointer in pixbuf_style_class_init().
15114         (Will commit the fix to the pixbuf-engine too).
15115
15116 2001-03-05  Alexander Larsson  <alexl@redhat.com>
15117
15118         * gdk/gdkwindow.h:
15119         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
15120         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
15121         gdk_window_set_icon_list for net wmspec functionality.
15122
15123         * gdk/x11/gdkwindow-x11.c:
15124         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
15125         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
15126         gdk_window_set_icon_list.
15127         Added gdk_wmspec_change_state helper function and used it in the code.
15128         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
15129
15130         * gtk/gtkdialog.c (gtk_dialog_init):
15131         Set GDK_WINDOW_TYPE_HINT_DIALOG.
15132
15133         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
15134         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
15135
15136         * gtk/gtkwindow.c:
15137         new function gtk_window_set_type_hint.
15138         On realize, set type hint and modal hint.
15139
15140         * gtk/gtkwindow.h:
15141         Added type_hint field and gtk_window_set_type_hint.
15142
15143 2001-03-05  Alexander Larsson  <alexl@redhat.com>
15144
15145         * gtk/gtklabel.[ch]:
15146         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
15147         New function gtk_label_get_accel_keyval () to get the underline accelerator
15148         of the label. Setting the label pattern overrides other attributes.
15149
15150 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
15151
15152         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
15153         Added missing initializers to gtk_rc_style_init().
15154
15155 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
15156
15157         * gtk/gtktextview.c: fixed bug #51097 about setting 
15158         gtk_text_view_set_border_window_size() if the widget is 
15159         already realized.
15160
15161 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
15162
15163         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
15164
15165         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
15166         comment. Won't do to have duplicated doc comments between
15167         the platform subdirs.
15168
15169 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
15170
15171         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
15172           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
15173
15174         Detectable auto-repeat - make a repeating key generate
15175         press/press/press/release instead of press/release pairs.
15176
15177         If we have Xkb and XkbSetDectableAutoRepeat supports
15178         that, we do it that way. Otherwise, when we get
15179         a release event, we check ahead with XPending to see
15180         if the next key is a KeyPress with the same keycode
15181         and timestamp. (Not 100% reliable, but pretty close.)
15182           
15183 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
15184         
15185         * gtk/gtkmain.c (gtk_propagate_event): Only do special
15186         special key-press grab handling for widgets within
15187         GtkWindows. Otherwise, fall through to normal case.
15188  
15189         This prevents key events being sent twice to GtkInvisible
15190         widgets, which can cause all sorts of mischief.
15191  
15192 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
15193  
15194         * gtk/gtkmain.c (gtk_propagate_event): When a grab
15195         widget is in effect, give the grab widget a first
15196         crack at KEY_PRESS/RELEASE events. (#424)
15197  
15198 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
15199
15200         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
15201         to extend the selection. (Roughly based on patch
15202         from Jay Cox, #50939)
15203
15204         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
15205         to properly handle previous GDK_BUTTON_PRESS. 
15206         (Patch from Jay Cox, #50938)
15207
15208         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
15209         '\0' back along with the deleted text. (#51148)
15210
15211 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
15212
15213         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
15214         the group when extracting it from the X keyboard event.
15215
15216         * modules/input/Makefile.am modules/input/imipa.c: 
15217         Simple module for entering IPA. (Do we need a 
15218         gtk-stupid-input-tricks CVS module?)
15219
15220 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
15221
15222         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
15223         const.
15224
15225         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
15226
15227         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
15228         is no focus widget for the dialog currently, grab the focus as well
15229         as the default.
15230
15231         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
15232         the action area's children to iterate through, not the
15233         dialog's children.
15234
15235 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
15236
15237         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
15238         Add plug-socket tests. (Won't work worth a darn until I commit
15239         the rest of the plug-socket changes, but no reason these
15240         can't go into CVS now.)
15241
15242 2001-03-02  Havoc Pennington  <hp@redhat.com>
15243
15244         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
15245         _gdk_region_get_xrectangles()
15246
15247         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
15248
15249         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
15250
15251         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
15252         function, contributed by Ron Steinke    
15253
15254         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
15255         gdk_net_wm_supports
15256
15257         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
15258         New function, contributed by Ron Steinke
15259
15260         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
15261         used to line up the text in the entry when using the entry for
15262         editable sheet cell hacks
15263
15264         * gtk/testgtk.c (create_entry): test the activate_default setting
15265         on GtkEntry
15266
15267         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
15268         cause the entry to activate the default button for a dialog when 
15269         activated
15270         (gtk_entry_get_activates_default): new function
15271
15272 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
15273
15274         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
15275         Hwang to move call to sync_selection() up a few lines
15276         to before the row list is modified, to fix crash when
15277         removing rows in the undo_selection list.
15278
15279         (Test case provided by Daniel Elstner:
15280
15281         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
15282
15283 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
15284
15285         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
15286         of tree->root_tree in parent_set rather than _map(), 
15287         fixing #50892 in a bit better manner.
15288
15289 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
15290
15291         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
15292
15293 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
15294
15295         * gtk/gtkstyle.c : Remove duplicate fwd decl for
15296         gtk_default_draw_shadow.
15297
15298 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
15299
15300         * gdk/gdkimage.c (gdk_image_new): Remove excess 
15301         warning, make warnings more verbose, treat a error
15302         in shmat as permanent, and don't try again.
15303         (#51163, Ed Randall.)
15304
15305 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
15306
15307         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
15308         delay for the first click before starting to scroll.
15309         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
15310
15311         * gtk/gtktext.c: GtkText should have I-beam cursor. 
15312         (based on gtk-enf-990513-1.patch, Eric Fisher.)
15313
15314 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
15315
15316         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
15317         cleanup to remove some references to unused
15318         ->xoffset, ->yoffset.
15319
15320 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
15321
15322         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
15323         mask. (#51039, fix from Martin Maierhofer)
15324
15325 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
15326
15327         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
15328         for unshifted + and shifted = for non-us keyboards.
15329         Make <Control>+ and <Control>- work as well as 
15330         <Control>KP_Plus, <Control>KP_Minus for recursive
15331         open/close.  (#2682, René Seindal)
15332
15333 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
15334
15335         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
15336         the active menu item before deactivating the menu,
15337         so gtk_menu_popdown doesn't change the history. (#50964)
15338         
15339 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
15340
15341         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
15342         draw lines with text_gc rather than black_gc.
15343         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
15344
15345 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
15346
15347         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
15348         Move handling of buttons fully in gtktreeviewcolumn.  This code is
15349         less interrelated then it was, but it still requires the
15350         GtkTreeView to map it.
15351
15352         * test/testtreecolumn.c: Now I can add a column to one view,
15353         remove it, add it to the another view, remove it, then re-add it
15354         to the first.  Nifty.
15355
15356 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
15357
15358         * docs/tutorial/gtk-tut.sgml: Minor corrections
15359
15360 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
15361
15362         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
15363         GtkRowReference.
15364
15365 2001-02-28  Havoc Pennington  <hp@redhat.com>
15366
15367         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
15368         draw_default
15369         (gtk_widget_draw_focus): remove this function; we could instead
15370         make it just gtk_widget_draw(), but in most cases I think the
15371         result would be broken user code, so think it's better to have
15372         that code not compile and get fixed
15373         (gtk_widget_draw_default): ditto
15374
15375         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
15376         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
15377         
15378         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
15379         widgets lose/get the default, instead of calling draw_default
15380         
15381         * docs/Changes-2.0.txt: note about all this
15382
15383         Then fixed every widget in GTK, I won't list all the filenames.
15384
15385 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
15386
15387         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
15388         _gtk_tree_row_reference_deleted.
15389         (inserted_callback): Proxy out to
15390         _gtk_tree_row_reference_inserted.
15391         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
15392         get around signal emission ordering problem.
15393
15394         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
15395         fix to work with SINGLE 
15396         (_gtk_tree_selection_internal_select_node): Major sanitization on
15397         selections.  SINGLE now seems to work.
15398
15399         * tests/Makefile.am: add testtreecolumn.c:
15400
15401         * tests/testtreecolumn.c: New test.  Mostly points out selection
15402         bugs currently, but will test columns later.
15403
15404         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
15405         selection bug.  I hate touching this code -- it's scary.
15406
15407 2001-02-26  Havoc Pennington  <hp@redhat.com>
15408
15409         * gtk/testgtk.c: test the window state stuff
15410
15411         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
15412         window come to the user's attention as if it were just created
15413         (gtk_window_iconify): new function
15414         (gtk_window_deiconify): new function
15415         (gtk_window_stick): new function
15416         (gtk_window_unstick): new function
15417         (gtk_window_maximize): new function
15418         (gtk_window_unmaximize): new function
15419
15420         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
15421
15422         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
15423
15424         * gdk/x11/gdkevents-x11.c: create window state events when
15425         appropriate
15426         (gdk_wmspec_supported): new function
15427
15428         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
15429         iconification before showing the window
15430         (gdk_window_deiconify): new function
15431         (gdk_window_stick): new function
15432         (gdk_window_unstick): new function
15433         (gdk_window_maximize): new function
15434         (gdk_window_unmaximize): new function
15435
15436         * gdk/gdkwindow.c: store the window state in the window; 
15437         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
15438         window->mapped.
15439         (gdk_window_get_state): return the current window state
15440
15441         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
15442         (gdk_event_get_state): handle GDK_WINDOW_STATE
15443         (gdk_synthesize_window_state): function to create the window state
15444         events
15445
15446         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
15447         event, for changes to "window state" such as maximized, sticky, 
15448         etc.
15449         
15450         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
15451         focuses a window
15452
15453         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
15454         finds out if we support a given WM spec hint
15455
15456 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
15457
15458         * docs/faq/gtk-faq.sgml: New question re memory leaks.
15459
15460 2001-02-25  Hans Breuer  <hans@breuer.org>
15461
15462         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
15463         cause we want to loose those prototypes only in the latter case
15464
15465         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
15466         GdkPixmapImplWin32 because it itsn't derived from it. Use the
15467         impl member variable instead
15468
15469         * gtk/gtk.def : updated
15470
15471         * gtk/gtklist.c : 
15472         * gtk/gtkmenus.c : include <string.h> for memset ()
15473
15474         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
15475         for everthing built here, but for gtk-x.x.dll only. This solves
15476         problem of indifferent gtk type definitions
15477
15478 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
15479
15480         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
15481
15482 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
15483
15484         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
15485         column that is exposed.
15486
15487         (_gtk_tree_view_update_size): Changed name from set_size, and
15488         changed function to do more work, and not force people calling it
15489         to figure out the size.  Simplifies a lot of code elsewhere.
15490
15491 2001-02-23  Alexander Larsson  <alexl@redhat.com>
15492
15493         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
15494         return solid masks for xpms that have no transparent color.
15495         This makes the ..._create_from_xpm... API backwards
15496         compatible.
15497
15498 2001-02-23  Tor Lillqvist  <tml@iki.fi>
15499
15500         * README.win32: Update. Mention the gtk-1-3-win32-production
15501         branch.
15502
15503         * gdk/win32/bdfcursor.c: New file. A program that generates
15504         xcursors.h. Thanks to Stefan Ondrejicka.
15505
15506         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
15507         compact format.
15508
15509         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
15510
15511         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
15512         function, uses xcursors.h.
15513         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
15514         cursor from inline data instead of using LoadCursor() to generate
15515         it from a resource.
15516
15517         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
15518         event, must check the Windows message for mouse button state, as
15519         the GDK event state might not have been built if it is
15520         undelivered. Remove one goto.
15521
15522         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
15523         SetCursor() if the current cursor as returned by GetCursor() is
15524         the window's previous cursor. The ChildWindowFromPoint() test
15525         apparently didn't work correctly.
15526
15527         * gdk/win32/rc/*.cur: Remove.
15528
15529         * gdk/win32/rc/gdk.rc.in: Remove cursors.
15530
15531         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
15532
15533         * gtk/makefile.{mingw,msc}.in: Updates.
15534
15535 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
15536
15537         * gtk/gtktreemodel.h: add functions for signal emission.
15538
15539         * gtk/gtktreestore.c: move to use above functions instead of
15540         g_signal_emit.
15541
15542         * gtk/gtkliststore.c: ditto
15543
15544 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
15545
15546         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
15547         GObject instead of GtkObject.
15548
15549         * gtk/gtkliststore.c: ditto.
15550
15551         * gtk/gtktreemodelsort.c: ditto.
15552
15553         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
15554         GtkTreeModelIface, instead of in each model.
15555
15556 2001-02-21  Havoc Pennington  <hp@redhat.com>
15557
15558         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
15559         unbreak this function
15560
15561         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
15562         properties
15563
15564         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
15565         properties
15566
15567         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
15568         properties
15569
15570         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
15571         mean unset the max length
15572
15573 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
15574
15575         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
15576         Changed name to be set_cell_data_func to make it clear what
15577         the functino does.  Close bug #51069.
15578
15579 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
15580
15581         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
15582         have memory actually freed.  Keeps box running longer.
15583
15584 2001-02-21  Alexander Larsson  <alexl@redhat.com>
15585         
15586         * gtk/gtkseparatormenuitem.[ch]:
15587         Added new menu separator item. The drawing and size handling
15588         is still done in GtkMenuItem, but the API is a bit more sane.
15589         
15590         * gtk/Makefile.am:
15591         Add gtkseparatormenuitem.[ch].
15592
15593         * gtk/gtk.h:
15594         Add gtkseparatormenuitem.h.
15595         
15596         * gtk/gtkentry.c:
15597         * gtk/gtkmenufactory.c:
15598         * gtk/gtktextview.c:
15599         Use the new API for menu separators.
15600         
15601         * demos/gtk-demo/menus.c (create_menu):
15602         Add some GtkSeparatorMenuItem demo code.
15603
15604 2001-02-20  Havoc Pennington  <hp@redhat.com>
15605
15606         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
15607         Lee Mallabone
15608
15609         * gtk/gtkarrow.c: Convert to new property API, patch from 
15610         Lee Mallabone
15611
15612 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
15613
15614         * tests/testtreeview.c (toggled_callback): fix to reflect change
15615         in GtkTreeModelStore.
15616
15617 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
15618
15619         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
15620         function to create an icon set from a pixbuf.
15621
15622 2001-02-20  Alexander Larsson  <alexl@redhat.com>
15623
15624         * gtk/gtkcellrenderertext.[ch]:
15625         Add a "markup" property.
15626
15627         * gtk/treestoretest.c:
15628         Use the markup property, remove some leftover stuff from
15629         GtkTreeModelMapping.
15630
15631 2001-02-20  Alexander Larsson  <alexl@redhat.com>
15632
15633         * gtk/gtklabel.c (gtk_label_set_selectable):
15634         Queue a redraw if the selectable setting was changed.
15635
15636 2001-02-20  Alexander Larsson  <alexl@redhat.com>
15637
15638         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
15639         Actually copy the whole gc, not just the public parts.
15640         
15641         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
15642         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
15643         labels.
15644
15645 2001-02-19  Havoc Pennington  <hp@pobox.com>
15646
15647         * gdk/gdkwindow.c: docs
15648
15649         * gdk/gdkrgb.c: docs
15650
15651         * gdk/gdkregion-generic.c: docs
15652
15653         * gdk/gdkgc.c (gdk_gc_set_values): docs
15654
15655         * gdk/gdkdraw.c: docs
15656
15657         * gdk/gdkdrawable.h: deprecate drawable get/set data
15658
15659 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
15660
15661         * demos/gtk-demo/dialog.c: Add simple new demo.
15662
15663 2001-02-19  Havoc Pennington  <hp@redhat.com>
15664
15665         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
15666         insert_child_anchor signal, bug #50245
15667
15668         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
15669         from create_child_anchor, so the anchor is passed in
15670
15671         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
15672         (_gtk_widget_segment_new): have the child anchor object passed in, 
15673         instead of creating it.
15674
15675         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
15676         to gtk_text_buffer_get_modified
15677
15678 2001-02-19  Havoc Pennington  <hp@redhat.com>
15679
15680         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
15681         changed GLib without fixing GTK
15682
15683         * gtk/gtkrange.h: Rename all the stupid implementation detail 
15684         functions to have an underscore in front. Most of them should 
15685         probably just go away, but for starters don't export them.
15686         Bug #50482
15687
15688 2001-02-19  Havoc Pennington  <hp@redhat.com>
15689
15690         * gdk/gdkcolor.h: test was backward, so deprecated functions were
15691         excluded by default
15692
15693         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
15694         clean up the old code a bit
15695
15696         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
15697         inconsistent state
15698
15699         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
15700         draw inconsistent state
15701
15702         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
15703         (create_menu): add inconsistent test
15704
15705         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
15706         new function
15707         (gtk_check_menu_item_get_inconsistent): new function
15708         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
15709         state (using etched in for now)
15710
15711         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
15712         draw inconsistent state
15713
15714         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
15715         function, used when the user has selected a range of stuff in
15716         different states
15717         (gtk_toggle_button_get_inconsistent): accessor for that
15718         (gtk_toggle_button_paint): draw inconsistent state (etched in?
15719         don't know what else to do)
15720
15721 2001-02-19  Hans Breuer <hans@breuer.org>
15722
15723         * gtk/gtk.def : updated exported symbols
15724
15725         * gtk/makefile.msc.in : updated
15726
15727         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
15728         a colormap, when invoked from testgtk::entry. I'm not sure where
15729         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
15730         avoids immediate crashing ...
15731
15732         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
15733         any objections ?
15734
15735         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
15736         0 parameter. At least msvc doesn't like macros with var args. 
15737         I simply removed the extra 0, was it a feature or a typo ?
15738
15739         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
15740         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
15741         because the value assignment to the internal struct wasn't working.
15742         I'm not absolutely sure. The problem could have been resolved by
15743         changing the "func" declartion in the struct, but was the pointer
15744         to the function pointer intended ?
15745
15746         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
15747
15748         * gdk/gdk.def : updated exported symbols
15749
15750         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
15751         only use SetDIBitsToDevice if there is a palette at the drawable
15752         and the image is GDK_VISUAL_PSEUDO_COLOR
15753
15754         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
15755
15756         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
15757
15758         * gdk/*/makefile.msc : updated
15759
15760 2001-02-19  Havoc Pennington  <hp@redhat.com>
15761
15762         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
15763         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
15764
15765         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
15766         (gdk_key_repeat_restore): nuke
15767
15768         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
15769         (gdk_init_check): no atexit func
15770
15771         * gdk/gdkrgb.h: mark some stuff deprecated
15772
15773         * gdk/gdkcolor.h: mark some stuff deprecated
15774         
15775         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
15776
15777         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
15778
15779 2001-02-16  Havoc Pennington  <hp@redhat.com>
15780
15781         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
15782         scroll steps.
15783
15784         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
15785         steps, and add Ctrl-arrow shortcuts for paging visually as with
15786         HScale, since Page Up and Page Down move logically.
15787
15788         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
15789         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
15790         
15791         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
15792         steps
15793         (gtk_range_scroll): handle the visual steps
15794
15795         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
15796         scroll steps
15797
15798         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
15799         steps, not the logical ones.
15800
15801         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
15802         (scroll_vertical): handle up/down steps
15803
15804 2001-02-19 Alexander Larsson  <alexl@redhat.com>
15805
15806         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
15807         Copy data and free data with free().
15808
15809         * gdk-pixbuf/gdk-pixbuf.c:
15810         * gdk-pixbuf/io-jpeg.c:
15811         * gdk-pixbuf/io-png.c:
15812         Use g_try_malloc/g_free instead malloc/free.
15813         
15814         * gdk-pixbuf/test-gdk-pixbuf.c:
15815         Must... initialize... gobject...
15816         
15817         * gdk-pixbuf/pixops/timescale.c:
15818         * gtk/gtkcalendar.c:
15819         Use g_malloc instead of malloc.
15820         
15821 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
15822
15823         * gtk/testgtkrc:
15824         Comment out property assignments, these don't work yet.
15825
15826 2001-02-17  Havoc Pennington  <hp@pobox.com>
15827
15828         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
15829         bit.
15830
15831 2001-02-17  Havoc Pennington  <hp@pobox.com>
15832
15833         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
15834         shadowed variables that had broken size request in some cases,
15835         leading to bogus tooltips (#50996)
15836
15837 2001-02-06  Jon K Hellan  <hellan@acm.org>
15838
15839         Implement fast browsing of tooltips, bug #50619
15840         
15841         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
15842         and last_popdown
15843         
15844         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
15845         use_sticky_delay and last_popdown.
15846         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
15847         time of popdown.
15848         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
15849         is NULL.
15850         (gtk_tooltips_recently_shown): New static function.  Return true
15851         if < sticky_delay has elapsed since last popdown.
15852         (gtk_tooltips_event_handler): Display window after sticky_delay
15853         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
15854         since last popdown.
15855         
15856 2001-02-17  Havoc Pennington  <hp@pobox.com>
15857
15858         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
15859         instead of (). #6394
15860
15861         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
15862         G_CONST_RETURN, make it return by reference, #50473
15863         
15864 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
15865
15866         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
15867         generated ENTER_NOTIFY event with 0, otherwise not explicitely
15868         setup fields contain garbage (e.g. subwindow, breaking
15869         gdk_drawable_ref() upon event copy).
15870         (gtk_menu_stop_navigating_submenu_cb): same here.
15871
15872         * gtk/gtklist.c (gtk_list_vertical_timeout): 
15873         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
15874         * gtk/gtkclist.c (vertical_timeout): 
15875         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
15876         default-zero-intialization for unions to memset(,0,), as unions are
15877         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
15878         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
15879
15880         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
15881         g_closure_sink() warning.
15882
15883         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
15884         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
15885         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
15886         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
15887         
15888 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
15889
15890         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
15891         gtk_*_store_get, and moved to GtkTreeModel.
15892
15893         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
15894
15895         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
15896
15897         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
15898
15899         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
15900         set the func.
15901
15902         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
15903         freeze/thaw notify between setting all the properties for a cell.
15904
15905         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
15906
15907 2001-02-15  Havoc Pennington  <hp@redhat.com>
15908
15909         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
15910         the X coordinates so they're with respect to the line, rather than 
15911         with respect to the layout.
15912
15913         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
15914         Mallabone
15915
15916         * gtk/testgtk.c (create_range_controls): add vscale tests, 
15917         and inverted test
15918
15919         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
15920         #50806
15921
15922         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
15923
15924         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
15925         gtk_text_iter_is_end
15926
15927         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
15928         rename gtk_text_buffer_get_end_iter
15929
15930         * gtk/testgtk.c (create_labels): Add test for selectable
15931
15932         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
15933         the selection stuff. This code is kind of broken since it doesn't 
15934         use the theme engine.
15935
15936         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
15937         fix infinite loop and y offset problem
15938         (gdk_draw_layout_line_with_colors): fix foreground color handling
15939
15940         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
15941         that makes the label selectable.
15942         
15943         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
15944         layout when the style is set, since fonts etc. could have changed.      
15945
15946 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
15947
15948         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
15949
15950         * gtk/gtktreemodelsimple.[ch]: removed.
15951
15952 2001-02-16  Alexander Larsson  <alexl@redhat.com>
15953
15954         * gtk/gtktreemodelmapping.[ch]:
15955         New files. Implement GtkTreeModelMapping.
15956         
15957         * gtk/Makefile.am:
15958         Add gtktreemodelmapping.[ch].
15959         
15960         * gtk/gtk.h:
15961         Add gtktreemodelmapping.h
15962
15963         * gtk/treestoretest.c:
15964         Test the GtkTreeModelMapping
15965
15966 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
15967
15968         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
15969         have a demo, we might as well pass in real values.  Thanks to
15970         clahey for pointing this out.
15971
15972 2001-02-14  Havoc Pennington  <hp@pobox.com>
15973
15974         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
15975         "static" to a private function
15976         (gtk_image_menu_item_class_init): remove destroy handler,
15977         add "image" object property
15978
15979 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
15980
15981         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
15982         Add a shortcut if the window and the current clip_region doesn't
15983         overlap. This is needed when there are a lot of windows in a
15984         window. The layout test in testgtk is a good test.
15985
15986         * gdk/linux-fb/gdkwindow-fb.c:
15987         Whitespace fix.
15988
15989 2001-02-13  Sven Neumann  <sven@convergence.de>
15990
15991         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
15992
15993 2001-02-13  Alexander Larsson  <alexl@redhat.com>
15994
15995         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
15996         Don't reference last_cursor if it is null. Fixes crash when rotating
15997         the screen before having moved the mouse.
15998
15999         * gdk/linux-fb/gdkcc-fb.c: Zapp!
16000
16001         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
16002
16003         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
16004         when using 90 or 270 degrees rotation.
16005
16006 2001-02-12  Havoc Pennington  <hp@pobox.com>
16007
16008         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
16009         it always set the foreground, even if we were only using
16010         a stipple.
16011         (gdk_draw_layout_line_with_colors): new function, allow
16012         override colors
16013         (gdk_draw_layout_with_colors): new function, allow override
16014         colors
16015         (gdk_pango_layout_line_get_clip_region): function to get the clip
16016         region for a logical text range
16017         (gdk_pango_layout_get_clip_region): get the clip region for a
16018         logical text range
16019
16020         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
16021         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
16022         the right number of arguments.
16023
16024         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
16025         enhance the function to check that node data corresponds to a 
16026         view still belonging to the tree.
16027
16028         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
16029         GtkTreePath
16030         (gtk_tree_view_inserted): ditto
16031         (gtk_tree_view_child_toggled): ditto
16032
16033         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
16034         simplify this code.
16035
16036         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
16037         a PangoAttrList
16038
16039         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
16040
16041         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
16042
16043         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
16044         size in the size request 
16045         (gtk_menu_bar_size_allocate): consider toggle size here
16046
16047         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
16048         that displays a widget in the toggle slot
16049
16050         * gtk/testgtk.c: test GtkImageMenuItem
16051
16052         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
16053         
16054         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
16055         request and allocation
16056
16057         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
16058
16059         * gtk/gtkcheckmenuitem.c
16060         (gtk_check_menu_item_toggle_size_request): ditto
16061         
16062 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
16063
16064         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
16065         reference.
16066
16067         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
16068         and refuse to initialize GTK+ if they fail.
16069
16070 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
16071
16072         * configure.in: Add check for gtk-doc version.
16073
16074 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
16075
16076         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
16077         where the xpad/ypad was only being used on one side!
16078
16079 2001-02-11  Tor Lillqvist  <tml@iki.fi>
16080
16081         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
16082         function, copied from X11 version.
16083
16084         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
16085         DestroyCursor failures. The reason for the problem (despite the
16086         inconsistent messages from GetLastError()) was that
16087         DestroyCursor() cannot be called while a cursor is set in a
16088         window. Set the new cursor first and then destroy the old one.
16089         Thanks to jpe@archaeopteryx.com.
16090
16091         * gdk/win32/gdkcc-win32.c: Remove.
16092
16093         * gdk/win32/Makefile.am: Remove from here, too.
16094         
16095         * gdk/gdk.def
16096         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
16097
16098         * gtk/gtk.def
16099         * gtk/makefile.mingw.in: Updates.
16100
16101 2001-02-08  Havoc Pennington  <hp@redhat.com>
16102
16103         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
16104         add a widget to a bin that already has a child.
16105
16106         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
16107
16108         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
16109         
16110         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
16111
16112         * gdk/gdk.h: remove gdkcc.h
16113
16114         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
16115
16116         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
16117         GdkPixbuf, since the previous implementation was GdkColorContext
16118         dependent.
16119
16120         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
16121         
16122 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
16123
16124         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
16125         a sane value!
16126
16127 2001-02-08  Havoc Pennington  <hp@redhat.com>
16128
16129         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
16130         lighten them.
16131
16132 2001-02-08  Havoc Pennington  <hp@redhat.com>
16133
16134         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
16135         validation idle
16136
16137         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
16138         cell renderer
16139
16140         * demos/pixbuf-demo.c (timeout): remove deprecated
16141         gtk_widget_draw
16142
16143         * demos/testpixbuf-save.c (main): remove deprecated
16144         gtk_drawing_area_size
16145
16146         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
16147         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
16148         at the start of the allocation.
16149         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
16150         unsetup or NULL model.
16151
16152         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
16153         even/odd/sorted cells in the tree view.
16154
16155         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
16156         bugfixes
16157
16158         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
16159         backgrounds with draw_flat_box using different detail for even/odd
16160         rows.
16161
16162         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
16163         row, so we can draw the alternating colors thing
16164
16165         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
16166         property from a synonym property, notify for the synonym.
16167         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
16168         (gtk_text_tag_get_property): Always return the font, even if
16169         all its fields aren't set
16170
16171         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
16172         store the attr list; it leaves us with no way to change attributes
16173         in _render according to the render flags, and no way to implement
16174         get_property. Instead store all the specific text attributes. 
16175         Separate whether an attribute is enabled from its value. Sync all
16176         properties with GtkTextTag, make them all consistent, etc.
16177
16178         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
16179         renderers can highlight the sort row/column     
16180
16181         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
16182         accessor functions to get values; this has the side effect of
16183         showing up which accessor functions were missing. Added those.
16184
16185         * gtk/gtktreeviewcolumn.h: Replace set_justification with
16186         set_alignment, to be consistent with GtkLabel, GtkMisc
16187
16188         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
16189         arrow.
16190
16191         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
16192
16193         * gtk/gtktreesortable.h: updates in here
16194
16195 2001-02-07  Sven Neumann  <sven@convergence.de>
16196
16197         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
16198         pango dimensions after painting the background. We used to draw
16199         gigantic flat boxes here.
16200
16201 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
16202
16203         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
16204         error introduced with earlier commit) (pointed out by
16205         Ollie Lho)
16206
16207 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
16208
16209         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
16210         which are no longer necessary.
16211
16212 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
16213
16214         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
16215
16216 2001-02-04  Tor Lillqvist  <tml@iki.fi>
16217
16218         * gdk/gdk.def
16219         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
16220         Provide dummy implementations.
16221
16222 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
16223
16224         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
16225
16226         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
16227         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
16228         deprecated this function.
16229
16230         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
16231         argument.
16232
16233 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
16234
16235         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
16236
16237 2001-02-03  Havoc Pennington  <hp@pobox.com>
16238
16239         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
16240         Mikael Hermansson with patch from Mikael (if there was a toggle
16241         start one after the first character in the range, this function
16242         was broken). Bug #50380
16243
16244 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
16245
16246         * configure.in: Remove confusing comment about X11.
16247
16248 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
16249
16250         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
16251         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
16252         
16253 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
16254
16255         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
16256         it breaks things on BSD. If you want to compile GTK+ with
16257         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
16258         when configuring, since GTK+ simply can't be "pure ANSI" 
16259         in the header files it uses. (#8170, Greg Hudson)
16260
16261 2001-02-02  Havoc Pennington  <hp@redhat.com>
16262
16263         * gtk/gtkwindow.c: docs
16264
16265         * gtk/gtkwidget.c: docs
16266         (gtk_widget_set_colormap): add a reference to the colormap
16267         (gtk_widget_get_default_colormap): add a reference to the colormap
16268
16269         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
16270
16271         * gtk/gtktextiter.c: docs
16272
16273         * gtk/gtkmain.c (gtk_propagate_event): docs
16274
16275         * gtk/gtkpaned.c (gtk_paned_get_position): docs
16276         (gtk_paned_set_position): docs
16277
16278         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
16279         sort interface, no implementation yet.
16280
16281         * demos/testpixbuf.c (new_testrgb_window): replace
16282         gtk_drawing_area_size() with gtk_widget_set_usize()
16283
16284         * demos/testpixbuf-drawable.c (main): ditto
16285         
16286         * gtk/testgtk.c: remove use of GtkStatusbarMsg
16287
16288         * gtk/gtktextbuffer.c: docs
16289
16290         * gtk/gtkstock.c: docs
16291
16292         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
16293
16294         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
16295
16296         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
16297         
16298         * gtk/gtkimage.c: add some docs in here
16299         (gtk_image_size_request): change name of
16300         gtk_widget_render_stock_icon
16301         (gtk_image_get_icon_set): don't dup returned string
16302         (gtk_image_get_icon_set): don't dup returned string
16303
16304         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
16305         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
16306         and gtkiconfactory.h functions
16307
16308         * gtk/gtkiconfactory.c: add some docs in here
16309
16310         * gtk/gtkmain.c (gtk_get_default_language): document
16311         (gtk_get_current_event): document
16312         (gtk_get_current_event_state): document
16313         (gtk_get_event_widget): document
16314
16315         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
16316
16317         * gtk/gtkcontainer.c: Add some documentation
16318         (gtk_container_add): give a more explanatory warning on adding an
16319         already-parented widget, this is kind of a FAQ and also a common
16320         typo that's easier to debug with a nice warning 
16321
16322         * gtk/gtkcellrenderertoggle.c
16323         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
16324         adding this, it's useless
16325         (gtk_cell_renderer_toggle_set_active): remove
16326         (gtk_cell_renderer_toggle_get_radio): add
16327
16328         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
16329         the NULL cell renderer, that doesn't make any sense to me. 
16330
16331         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
16332         demo code should never use deprecated features.
16333
16334         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
16335         code should never use deprecated features.
16336
16337         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
16338         gtk_widget_queue_clear_area deprecated
16339
16340         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
16341         deprecated
16342
16343         * gtk/gtklabel.h: mark gtk_label_get() deprecated
16344
16345         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
16346         a GdkImage deprecated, replaced by new consistently-named
16347         functions       
16348
16349         * gtk/gtkmain.h: Mark gtk_exit() deprecated
16350
16351         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
16352
16353         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
16354         deprecated
16355
16356         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
16357         so it won't appear in docs and confuse people.
16358
16359         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
16360
16361         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
16362         macros deprecated. (can't mark the type itself deprecated, since
16363         GtkProgressBar is not deprecated and we need the type decl to use
16364         GtkProgressBar)
16365
16366         * gtk/gtkpixmap.h: Mark deprecated
16367
16368         * gtk/gtkoldeditable.h: Mark deprecated
16369
16370         * gtk/gtklist.h: Mark deprecated
16371
16372         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
16373         for anything anymore.
16374
16375         * gtk/gtkctree.h: Mark deprecated
16376
16377         * gtk/gtkclist.h: Mark deprecated
16378
16379         * gtk/gtkpreview.h: Mark deprecated
16380
16381         * gtk/gtkpacker.h: Mark deprecated
16382
16383         * gtk/gtktipsquery.h: Mark deprecated
16384
16385         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
16386
16387         * gtk/gtkvruler.h: Add comment that it will move out of GTK
16388
16389         * gtk/gtkhruler.h: Add comment that it will move out of GTK
16390
16391         * gtk/gtkruler.h: Add comment that it will move out of GTK
16392
16393         * gtk/gtkgamma.h: Add comment that it will move out of GTK
16394
16395         * gtk/gtkcurve.h: Add comment that it will move out of GTK
16396
16397 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
16398
16399         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
16400         gdk_colormap_sync private since it was never exported
16401         in a header file.
16402
16403         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
16404         colormap->colors[] for StaticGray, StaticColor colormaps.
16405
16406         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
16407         was being used as if it was image->bits_per_pixel.
16408
16409         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
16410         for the image in the GdkImage structure since it isn't
16411         reconstructable, and we need it to handle packed types
16412
16413         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
16414         the assumption that on Win32 image->bits_per_pixel == image->depth,
16415         always.
16416
16417         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
16418
16419         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
16420         warning message if no converter can be found. 
16421
16422 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
16423
16424         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
16425         chars to isupper() / tolower(). (#567)
16426
16427         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
16428         to clear up 64-bit warnings. (#567)
16429
16430 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
16431
16432         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
16433         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
16434
16435         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
16436         since some people set $(libdir) separately. (#1290, David Kaelbling)
16437
16438 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
16439
16440         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
16441         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
16442         MAXPATHLEN, but the code here depends on a fixed value.)
16443         (#4524)
16444
16445 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
16446
16447         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
16448         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
16449
16450 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
16451
16452         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
16453         viewable there is no way that moving the node will cause the 
16454         focus row to become not viewable, so omit check on the visibility
16455         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
16456
16457 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
16458
16459         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
16460         selection before inserting new text.
16461
16462 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
16463
16464         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
16465         Make the sensitivity of the reparented child track that of
16466         the original parent menu item. (#34218, David Hodson)
16467
16468         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
16469         the case where the current item is destroyed properly.
16470
16471         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
16472         some edge cases with child-less menuitems.
16473         
16474 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
16475
16476         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
16477         key pop down window. (#12074, Jon K Hellan)
16478
16479 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
16480
16481         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
16482         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
16483         The solution here isn't perfect - you get an extraneous
16484         emission of "toggle", which could conceivably confuse an app,
16485         but better than the current situation. LXR search seems to
16486         indicate that no apps in GNOME CVS connect to "toggle".
16487
16488 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
16489
16490         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
16491         gtk_public_h_sources to directly here to avoid warning when
16492         building srcdir != builddir. (#9656)
16493
16494 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
16495
16496         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
16497         handlers in gtkrange.c return the proper values (TRUE == handled)
16498         (#10316).
16499
16500         This is just the tip of the iceberg, but gtkrange.c is the
16501         most common place where the propagation is problematical,
16502         and also a place where it is almost certainly safe to change
16503         this in the stable branch.
16504
16505         (You don't want right click popups on a range control or anything...)
16506
16507 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
16508
16509         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
16510         area on focus out, even if a background pixmap isn't set.
16511         (#13941)
16512         
16513 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
16514
16515         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
16516         to deal with setting the shape properly when scrolling arrows are
16517         turned on, but not visible because there is sufficient space.
16518         (#13432)
16519
16520 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
16521
16522         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
16523         items with submenus, destroy the item along with the submenu.
16524         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
16525         properly.
16526
16527         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
16528         later.
16529
16530 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
16531
16532         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
16533         the focus widget sometimes wasn't drawn with the default if there
16534         was no default widget.
16535
16536         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
16537         unreference pixmaps. 
16538
16539         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
16540         for some extra safety.
16541
16542 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
16543
16544         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
16545         the text of a cell to the old pointer value better, by
16546         copying the new text before freeing the old text. Some code
16547         cleanup. (#8079, Karl Nelson)
16548
16549 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
16550
16551         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
16552         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
16553
16554 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
16555
16556         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
16557         item from a menu, check to see if it matches 
16558         menu->old_active_menu_item, and if so, unref and clear
16559         old_active_menu_item (Patch from Pavel Cisler)
16560
16561         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
16562         menu_shell->active_menu_item, if it is the child being
16563         removed. (Patch based on that of Gene Ragan, #50337)
16564
16565 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
16566
16567         * gdk/linux-fb/gdkselection-fb.c: 
16568         * gdk/linux-fb/gdkcolor-fb.c: 
16569         * gdk/linux-fb/gdkdrawable-fb2.c: 
16570         * gdk/linux-fb/gdkfont-fb.c: 
16571         * gdk/linux-fb/gdkim-fb.c: 
16572         * gdk/linux-fb/gdkinput.c: 
16573         * gdk/linux-fb/gdkkeyboard-fb.c: 
16574         * gdk/linux-fb/gdkmain-fb.c: 
16575         * gdk/linux-fb/gdkrender-fb.c: 
16576         A bunch of whitespace cleanup.
16577         
16578 2001-01-30  Havoc Pennington  <hp@pobox.com>
16579
16580         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
16581         #ifdef GTK_ENABLE_BROKEN.
16582
16583         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
16584         GTK_ENABLE_BROKEN just before including the broken headers.
16585         
16586         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
16587         deprecated types registered.
16588
16589         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
16590         we have to test the broken stuff.
16591
16592         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
16593         
16594 2001-01-30  Havoc Pennington  <hp@redhat.com>
16595
16596         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
16597         here where prev pointer was set to the wrong thing
16598
16599         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
16600         (gtk_tree_path_is_descendant): new function
16601
16602         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
16603         cached length
16604         (gtk_list_store_get_iter): don't modify iter if we can't get the
16605         path.
16606
16607         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
16608         
16609         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
16610         GtkTreeDragDest
16611
16612         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
16613         was causing segfault
16614
16615         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
16616         pointer to NULL
16617
16618         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
16619
16620         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
16621         on returning FALSE
16622         (gtk_list_store_iter_children): ditto
16623         (gtk_list_store_iter_nth_child): ditto
16624         (gtk_list_store_iter_nth_child): ditto
16625         (gtk_list_store_iter_parent): ditto
16626
16627         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
16628         on iter->user_data != NULL instead of silently accepting it.
16629         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
16630         we are returning TRUE.
16631         (gtk_tree_store_iter_children): ditto
16632         (gtk_tree_store_iter_nth_child): ditto
16633         (gtk_tree_store_iter_parent): ditto
16634         (gtk_tree_store_insert): remove handling of parent->user_data ==
16635         NULL, replace with parent == NULL       
16636
16637         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
16638         and a comment explaining things
16639
16640         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
16641         interface support to GtkTreeStore.
16642
16643         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
16644         FALSE if no prev, fix
16645
16646         * gtk/gtktreeview.c (set_source_row): use a row reference
16647         (set_dest_row): use a row reference
16648
16649 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
16650
16651         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
16652         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
16653         (gtk_tree_selection_select_iter): The same as above.
16654
16655 2001-01-26  Havoc Pennington  <hp@redhat.com>
16656
16657         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
16658         which holds a handle to a specific row (particular set of values
16659         in the model, i.e. pointer-identity row).
16660
16661         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
16662         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
16663         Still need to use it for the src/dest row saved on the drag context.
16664
16665 2001-01-26  Havoc Pennington  <hp@redhat.com>
16666
16667         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
16668
16669         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
16670         not offset by TREE_VIEW_HEADER_HEIGHT
16671         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
16672         TREE_VIEW_HEADER_HEIGHT
16673
16674         * configure.in (included_loaders): for me, --with-included-loaders
16675         generates the error "the specified loader yes does not exist",
16676         i.e. the arg defaults to "yes", so change test for value ""
16677         to test for value "yes", and include all loaders in that case.
16678
16679         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
16680
16681         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
16682         handle TREE_VIEW_VERTICAL_SEPARATOR
16683         (gtk_tree_view_bin_expose): fix to consider the row offset as
16684         pointing halfway into vertical separator.       
16685         (gtk_tree_view_draw_node_focus_rect): ditto
16686
16687         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
16688         --gtk-debug=updates, which causes gdk_window_set_debug_updates
16689         (TRUE) to be called.
16690
16691         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
16692         debug mode where the invalid region is colored in on invalidate,
16693         so you can see the flicker and know whether your redraw code is 
16694         doing a good job.
16695
16696         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
16697         tree window coordinates (clip rect is in tree window coords)
16698
16699         * gtk/Makefile.am: add gtktreednd.[hc]
16700
16701         * gtk/gtkliststore.c: implement gtktreednd interfaces.
16702
16703         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
16704         drag-and-drop data operations on a model (so we can set up tree
16705         drag-and-drop automatically)
16706
16707         * gtk/testgtk.c: Add a window to change sensitivity in the
16708         GtkLabel test; add a way to change the entry frame in GtkEntry
16709         test
16710
16711         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
16712         (gtk_entry_get_has_frame): new functions to remove the frame
16713         around an entry
16714         (gtk_entry_size_request): shrink requisition if no frame
16715         (gtk_entry_draw_focus): don't draw frame if no frame
16716
16717         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
16718         checks inside a cell renderer
16719         (gtk_default_draw_option): ditto for options
16720
16721         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
16722         children from the alignment, not the button
16723         (gtk_tree_view_column_init): ref/sink the column, to emulate
16724         GObject refcounting.
16725
16726         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
16727         
16728         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
16729         Use theme functions to draw the toggles 
16730
16731         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
16732
16733         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
16734         GdkPangoAttrEmbossed to use in rendering insensitive text
16735
16736         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
16737
16738         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
16739         using new GDK features
16740         
16741 2001-01-24  Alexander Larsson  <alexl@redhat.com>
16742
16743         * gtk/gtkimage.c:
16744         Splitted gtk_image_clear into gtk_image_clear() and
16745         gtk_image_reset(). Call gtk_image_clear() in ::destroy
16746         to avoid leaks.
16747
16748         * gtk/gtklabel.c (set_markup):
16749         Don't leak text.
16750
16751         * gtk/gtktextlayout.c:
16752         Always free display->shaped_objects.
16753
16754         * gtk/testgtk.c (create_clist):
16755         Don't leak custom style.
16756
16757 2001-01-23  Alexander Larsson  <alexl@redhat.com>
16758
16759         * gtk/gtkcolorsel.c (grab_color_at_mouse):
16760         Don't leak image. Simplify using gdk_colormap_query_color().
16761         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
16762
16763         * linux-fb/gdkcolor-fb.c:
16764         Implemented gdk_colormap_query_color.
16765
16766 2001-01-23  Alexander Larsson  <alexl@redhat.com>
16767
16768         * linux-fb/gdkcursor-fb.c:
16769         Don't leak built-in cursors.
16770
16771         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
16772         Don't leak tmp_points.
16773
16774         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
16775         Don't modify desc. Don't leak font if the PangoFont
16776         isn't found.
16777         
16778         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
16779         Free dash_list.
16780
16781         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
16782         Don't leak string.
16783         
16784 2001-01-20  Havoc Pennington  <hp@pobox.com>
16785
16786         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
16787         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
16788         me, matches Pango
16789
16790 2001-01-22  Havoc Pennington  <hp@redhat.com>
16791
16792         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
16793
16794         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
16795
16796         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
16797         Remove, move back to gdk-pixbuf
16798
16799         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
16800         to all the word functions
16801
16802         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
16803         before doing anything on NULL layout or if we don't have the focus
16804
16805         * gtk/testtext.c (fill_example_buffer): "justification"
16806
16807         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
16808         to be called "justification" not "justify"
16809
16810         * demos/gtk-demo/textview.c (create_tags): "justification"
16811         
16812         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
16813
16814 2001-01-22  Alexander Larsson  <alexl@redhat.com>
16815
16816         * gdk/gdkwindow.c (gdk_window_invalidate_region):
16817         Don't leak visible_region. Use visible_region instead of region.
16818         
16819         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
16820         Don't do extra gdk_drawable_ref(). This is not X.
16821         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
16822         gdk_fb_focused_window is ref:ed.
16823         (gdk_fb_window_send_crossing_events): Watch out for destroyed
16824         windows.
16825
16826 2001-01-22  Alexander Larsson  <alexl@redhat.com>
16827
16828         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
16829         Don't leak the PangoFontDescriptor.
16830
16831 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
16832
16833         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
16834         when not realized.
16835         (gtk_tree_view_scroll_to_cell): Make work when not realized.
16836         (gtk_tree_view_realize): add scroll_to support
16837         (gtk_tree_view_finalize): add a finalize method.  Populate.
16838         (gtk_tree_view_insert_column): ref and sink the column.
16839         (gtk_tree_view_append_column): ref and sink the column.
16840         (gtk_tree_view_queue_draw_node): New function to handle redrawing
16841         individual nodes.  Should make the code much more efficient, if
16842         actually used.
16843
16844 2001-01-19  Havoc Pennington  <hp@redhat.com>
16845
16846         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
16847         byte_offset variable was being used to mean both "offset into
16848         layout" and "offset into buffer line" which was no longer true
16849         with addition of preedit string; fix
16850
16851 2001-01-19  Havoc Pennington  <hp@redhat.com>
16852
16853         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
16854
16855         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
16856         function
16857
16858         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
16859         implement
16860
16861         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
16862         scroll_to_cell, matches TextView scroll functions better
16863         (gtk_tree_view_tree_to_widget_coords): new function
16864         (gtk_tree_view_widget_to_tree_coords): new function
16865         (gtk_tree_view_get_visible_rect): new function
16866         (gtk_tree_view_get_path_at_pos): accept negative coordinates
16867         (gtk_tree_view_draw_node_focus_rect): new function moved from
16868         draw_focus, also, use width of bin_window as width of the focus
16869         rect
16870         (gtk_tree_view_expand_row): fix bug where it didn't recognize
16871         already-expanded rows
16872         (gtk_tree_view_get_cell_rect): new function
16873         (gtk_tree_view_get_path_at_pos): return the click position
16874         relative to the passed-in cell
16875         (gtk_tree_view_set_expander_column): new function
16876
16877         * configure.in: remove gtk-config-2.0 chmod
16878
16879         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
16880         and properly handle drags with targets we don't understand
16881         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
16882         scrolling anyway
16883         (gtk_text_view_drag_drop): stop scrolling here though, and set the
16884         mark invisible
16885
16886         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
16887         function
16888         (gtk_drag_dest_get_target_list): new function
16889         (gtk_drag_dest_set_target_list): new function
16890         
16891         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
16892
16893         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
16894         related to drag-and-drop
16895
16896 2001-01-19  Alexander Larsson  <alexl@redhat.com>
16897
16898         * gdk/linux-fb/gdkprivate-fb.h:
16899         Define EMULATE_GDKFONT.
16900         Add extra pango_font stuff to GfkFontPrivate.
16901         
16902         * gdk/linux-fb/gdkdrawable-fb2.c:
16903         * gdk/linux-fb/gdkfont-fb.c:
16904         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
16905         emulation using PangoFont.
16906
16907 2001-01-17  Havoc Pennington  <hp@pobox.com>
16908
16909         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
16910         all the non-deprecated set_foo functions. Added missing object
16911         properties, and added g_object_notify() to setters. 
16912         Wrote docs.
16913         
16914 2001-01-18  Tor Lillqvist  <tml@iki.fi>
16915
16916         * gtk/gtkmain.c
16917         * gtk/gtkrc.c: (Win32) Use the new
16918         g_win32_get_package_installation_(sub)directory() functions.
16919
16920         * config.h.win32.in: New file.
16921         
16922         * config.h.win32: Removed.
16923
16924         * configure.in: Output config.h.win32.
16925
16926         * Makefile.am: Add it to EXTRA_DIST.
16927
16928         * gtk/gtk.def: Update.
16929
16930 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
16931
16932         * gtk/gtklabel.c (gtk_label_size_request): Set the
16933         attributes onto the PangoLayout even if they are newly
16934         created from label->pattern.
16935
16936 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
16937
16938         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
16939
16940         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
16941         structures in functions. Fixes bug where gtk_dataset_*
16942         was accidentally still being used in one place, causing
16943         every dest side event to be treated independently.
16944
16945         * gtk/gtkdnd.c: Remove last vestages of handling
16946         ::draw (fixes warning)
16947         
16948         * gtk/gtkentry.[ch]: Add drag and drop support.
16949
16950         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
16951         new function gtk_check_drag_threshhold() for checking
16952         to check if (dx,dy) has exceeded the threshhold for starting
16953         a drag and use it everywhere.
16954
16955 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
16956
16957         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
16958         add -I{includedir}/gtk-2.0.
16959
16960         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
16961         gdk/gdk-pixbuf.h: Doc fixups.
16962         
16963         * gtk/gtkobject.h: Remove trailing , from enum
16964
16965 2001-01-17 Alexander Larsson <alexl@redhat.com> 
16966
16967         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
16968         Doh! Mixed up x and y.
16969
16970         * gdk/linux-fb/gdkglobals-fb.c:
16971         Removed gdk_fb_pointer_grab_window_events,
16972         added _gdk_fb_pointer_grab_owner_events and
16973         _gdk_fb_keyboard_grab_owner_events.
16974
16975         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
16976         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
16977         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
16978         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
16979         Send crossing events after ungrab finished.
16980         (gdk_keyboard_grab): Set ..._owner_events
16981         (type_masks): Move out of function.
16982         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
16983         gdk_fb_keyboard_event_window): New functions, return the
16984         window an event should be targeted at. Handles grabs and
16985         event propagation. Can return NULL.
16986         (gdk_event_make): Remove event_mask checking. Now always
16987         returns an event.
16988                 
16989         * gdk/linux-fb/gdkkeyboard-fb.c:
16990         * gdk/linux-fb/gdkproperty-fb.c:
16991         * gdk/linux-fb/gdkselection-fb.c:
16992         Use new event_window/gdk_event_make() behaviour.
16993         
16994         * gdk/linux-fb/gdkmouse-fb.c:
16995         Use new event_window/gdk_event_make() behaviour.
16996         Only send motion events if in the same window.
16997         If grabbed, use cursor from window if sibling of grabbed
16998         window, and cursor from grabbed window otherwise.
16999
17000         * gdk/linux-fb/gdkprivate-fb.h:
17001         Update gdk_fb_window_send_crossing_events, gdk_event_make
17002         and grab varaible declarations. Add gdk_fb_*_event_window().
17003
17004         * gdk/linux-fb/gdkwindow-fb.c:
17005         Use new event_window/gdk_event_make() behaviour.
17006         Keep correct track of focus window.
17007         (gdk_window_set_events): Set all specific button motion masks
17008         if GDK_BUTTON_MOTION_MASK set.
17009
17010         * gtk/gtkdnd.c (gtk_drag_update):
17011         Free info->last_event if gdk_drag_motion returned FALSE.
17012
17013 2001-01-16  Tor Lillqvist  <tml@iki.fi>
17014
17015         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
17016         Eliminate redraws when input-only windows are shown or
17017         hidden. Thanks to jpe@archaeopteryx.com.
17018
17019 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
17020
17021         * docs/faq/gtk-faq.sgml: FAQ update:
17022           - Update to bugzilla
17023           - Add GTK+ and security/SUID/SGID
17024           - Add DnD question
17025
17026 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
17027
17028         * gdk/linux-fb/gdkdnd-fb.c:
17029         Some cleanups.
17030         
17031 2001-01-15  Havoc Pennington  <hp@pobox.com>
17032
17033         * tests/testtreeview.c: add test stuff for CellRendererToggle
17034
17035         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
17036         accessor
17037
17038         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
17039         only toggle on button press (would do release like GtkButton, but
17040         we'd need implicit grab code for treeview cells)
17041
17042 2001-01-16  Tor Lillqvist  <tml@iki.fi>
17043
17044         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
17045
17046         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
17047         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
17048
17049         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
17050         to g_{locale,filename}_{to,from}_utf8 to match current API.
17051
17052         * gtk/makefile.msc.in (gtk_OBJECTS)
17053         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
17054
17055         * gtk/gtk.def: Update.
17056
17057 2001-01-15  Tor Lillqvist  <tml@iki.fi>
17058
17059         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
17060         implementaion that more closely mimics the events that an X server
17061         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
17062         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
17063         with nested preview widgets, for instance, more responsive when
17064         you move the mouse quickly into them.
17065         (find_window_for_pointer_event): Make it actually compile.
17066         (gdk_event_translate): Set send_event to the value of
17067         InSendMessage (). This doesn't really mean the same as X11's
17068         send_event flag, but is close enough, says jpe@archaeopteryx.com
17069
17070 2001-01-15  Alexander Larsson  <alexl@redhat.com>
17071
17072         * gdk/linux-fb/gdkdnd-fb.c:
17073         Implemented drag and drop.
17074         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
17075         when it tries to free and then copy the same event (info->last_event).
17076         I am not sure about why this happens, but will continue looking.
17077
17078 2001-01-15  Alexander Larsson  <alexl@redhat.com>
17079
17080         * gdk/linux-fb/gdkwindow-fb.c:
17081         Use gdk_window_invalidate_rect instead of
17082         gdk_window_invalidate_rect_clear to minimise flashing.
17083         When hiding windows you need to clear the root window though.
17084
17085 2001-01-15  Alexander Larsson  <alexl@redhat.com>
17086
17087         * gdk/linux-fb/gdkdrawable-fb2.c:
17088         For optization, add an full_shapes argument to gdk_fb_clip_region.
17089         If this is false, only the cliprects of the shapes are used.
17090
17091         * gdk/linux-fb/gdkprivate-fb.h:
17092         Export gdk_fb_window_peek_shape.
17093         Add full_shapes to gdk_fb_clip_region.
17094
17095         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
17096         When moving a window, don't clear everything under the it, just the
17097         root window. Makes stuff faster and flash less.
17098         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
17099         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
17100         offset of the shape.
17101         
17102
17103 2001-01-12  Havoc Pennington  <hp@redhat.com>
17104
17105         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
17106         current invalid region, fixes redraw bug while scrolling the 
17107         text widget
17108
17109         * gtk/gtktextview.c, gtk/gtktextview.h:
17110         Rearrange the scrolling/validation/etc. code in a major way, 
17111         so it seems to make sense to me. Probably isn't genuinely that
17112         much better, but...
17113
17114         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
17115         notifies
17116
17117         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
17118
17119 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
17120
17121         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
17122         Hide mouse pointer while rotation. Show it afterwards.
17123
17124 2001-01-12  Alexander Larsson  <alexl@redhat.com>
17125
17126         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
17127         windows in consideration when generating clip region.
17128
17129         * gdk/linux-fb/gdkfb.h:
17130         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
17131
17132         * gdk/linux-fb/gdkprivate-fb.h:
17133         Add shape to GdkWindowFBDatat.
17134         exported gdk_fb_window_get_abs_shape().
17135         removed gdk_fb_draw_lines declaration.
17136
17137         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
17138         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
17139         send focus changes when there is a grabbed window.
17140         (gdk_window_get_pointer): Handle shaped windows.
17141         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
17142         (gdk_fb_window_peek_shape): Returns the shape for a window,
17143         handles GDK_FB_USE_CHILD_SHAPE.
17144         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
17145         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
17146         (gdk_window_shape_combine_mask): Implement.
17147
17148         * gtk/gtkwindow-decorate.c:
17149         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
17150         setting the shape of a window makes the window transparent.
17151
17152 2001-01-11  Havoc Pennington  <hp@redhat.com>
17153
17154         * gtk/gtktreemodelsimple.h: Oops, broke some macros
17155
17156 2001-01-10  Havoc Pennington  <hp@redhat.com>
17157
17158         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
17159         add this function, bug 40251
17160
17161         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
17162         of type macro   
17163
17164 2001-01-11  Alexander Larsson  <alexl@redhat.com>
17165
17166         * acconfig.h:
17167         Added ENABLE_SHADOW_FB
17168
17169         * configure.in:
17170         Added --disable-shadowfb
17171
17172         * gdk/linux-fb/gdkcursor-fb.c:
17173         Update shadowfb when updating cursor
17174
17175         * gdk/linux-fb/gdkdrawable-fb2.c:
17176         Added wrappers for shadowfb that calls  the normal drawable
17177         methods, but calls gdk_shadow_fb_update(bounding box) when
17178         GdkWindows are drawed to.
17179         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
17180         which also returns the bounding box.
17181
17182         * gdk/linux-fb/gdkfb.h:
17183         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
17184
17185         * gdk/linux-fb/gdkgeometry-fb.c:
17186         Update shadowfb when scrolling window.
17187
17188         * gdk/linux-fb/gdkglobals-fb.c:
17189         Add _gdk_fb_screen_angle.
17190         
17191         * gdk/linux-fb/gdkkeyboard-fb.c:
17192         Test code for screen rotation. Shift-F2 in the xlate driver
17193         rotates the screen.
17194
17195         * gdk/linux-fb/gdkmain-fb.c:
17196         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
17197
17198         * gdk/linux-fb/gdkmouse-fb.c:
17199         Use fb_width/height instead of modeinfo.xres/yres.
17200
17201         * gdk/linux-fb/gdkprivate-fb.h:
17202         Added fb_men, fb_width, fb_height & fb_stride. When using
17203         shadow fb these can differ from the framebuffer stuff.
17204         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
17205         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
17206         _gdk_fb_screen_angle. Removed CM, RP.
17207
17208         * gdk/linux-fb/gdkrender-fb.c:
17209         Added code for shadowfb handling and screen rotation using
17210         shadowfb.
17211
17212         * gdk/linux-fb/gdkwindow-fb.c:
17213         Use fb_mem, fb_stride, fb_width, fb_height.
17214         Added recompute_rowstride to reset the rowstride of all windows.
17215         Added gdk_fb_recompute_all() which recomputes rootwindow size,
17216         window abs positions and window rowstrides. Usefull when the
17217         rotation has changed.
17218
17219 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
17220
17221         * docs/faq/gtk-faq.sgml: update to make web site updating easier
17222
17223 2001-01-10  Havoc Pennington  <hp@redhat.com>
17224
17225         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
17226         where sibling == iter
17227         (gtk_tree_store_insert_after): handle sibling == iter
17228         (gtk_tree_store_prepend): remove stamp checks
17229         (gtk_tree_store_insert_before): ditto
17230         (gtk_tree_store_append): ditto
17231         (gtk_tree_store_get_path): ditto
17232         (gtk_tree_store_get_value): ditto
17233         (gtk_tree_store_iter_has_child): ditto
17234         (gtk_tree_store_iter_n_children): ditto
17235         (gtk_tree_store_iter_nth_child): ditto
17236         (gtk_tree_store_insert_after): ditto
17237         (gtk_tree_store_is_ancestor): ditto
17238         (gtk_tree_store_iter_depth): ditto
17239         (gtk_tree_store_insert_before): assert that sibling's parent is
17240         the same as the passed-in parent
17241         (gtk_tree_store_insert_after): assert that sibling's parent is
17242         the same as the passed-in parent
17243
17244         
17245         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
17246         function to get the first iterator in a model
17247         
17248         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
17249         conventionally the "root" in this sense is just NULL afaict.
17250
17251         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
17252         where sibling == iter
17253         (gtk_list_store_insert_after): handle case where sibling == iter
17254
17255         * tests/testtreeview.c (run_automated_tests): fairly lame basic
17256         automated tests for ListStore, TreeStore
17257
17258         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
17259         (gtk_list_store_insert): update tail pointer, and fix it to work
17260         (gtk_list_store_insert_before): update tail pointer, and fix it to work
17261         (gtk_list_store_append): use tail to be faster
17262         (gtk_list_store_prepend): fix it, update tail pointer
17263         (gtk_list_store_insert_after): fix it, update tail pointer
17264
17265         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
17266         the list
17267
17268 2001-01-09  Havoc Pennington  <hp@redhat.com>
17269
17270         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
17271         is NULL due to a pending resize
17272
17273         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
17274         column width to values less than 1
17275
17276         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
17277         width to be between min/max width, and still set the width 
17278         even if autosize is turned on, so the tree view can use this 
17279         function in order to autosize.
17280         (gtk_tree_view_column_init): set initial width to 1 not 0
17281
17282         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
17283         setter function to modify column width, so we get notification
17284         (gtk_tree_view_insert_iter_height): ditto
17285         (gtk_tree_view_calc_size): ditto
17286         (gtk_tree_view_check_dirty): ditto
17287
17288         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
17289         properties to change all the interesting attributes of the tree
17290         view column.
17291         (gtk_tree_view_column_set_header_clickable): rename set_clickable
17292         (gtk_tree_view_column_get_clickable): add
17293         (gtk_tree_view_column_set_cell_renderer): don't unset the current
17294         attributes; assume a cell renderer with equivalent object
17295         properties has been swapped in. Do g_object_notify().
17296         (gtk_tree_view_column_set_visible): g_object_notify
17297         (gtk_tree_view_column_get_sizing): rename from get_col_type
17298         (gtk_tree_view_column_set_sizing): g_object_notify
17299         (gtk_tree_view_column_set_width): add g_object_notify
17300         (gtk_tree_view_column_set_min_width): ditto
17301         (gtk_tree_view_column_set_max_width): ditto
17302         (gtk_tree_view_column_set_title): ditto
17303         (gtk_tree_view_column_set_clickable): ditto
17304         (gtk_tree_view_column_set_widget): ditto
17305         (gtk_tree_view_column_set_justification): ditto
17306
17307 2001-01-09  Havoc Pennington  <hp@redhat.com>
17308
17309         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
17310         there are no rows in the model
17311
17312         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
17313         NULL, then return the start of the list
17314
17315         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
17316         if we can't get any rows from an empty model 
17317
17318         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
17319         extraneous * after function pointer typedef usage
17320
17321         * Makefile.am: don't specify full path to cp and rm
17322
17323         * gtk/gtkcellrenderertextpixbuf.c
17324         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
17325         NULL before dereferencing, fixes a segfault that happened from
17326         time to time
17327
17328         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
17329         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
17330         and reindent the function
17331         (gtk_cell_renderer_pixbuf_get_size): indentation
17332
17333         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
17334         we quit it
17335         (gtk_dialog_add_buttons_valist): add g_return_if_fail
17336         (gtk_dialog_set_default_response): New function, to set default
17337         button
17338         (gtk_dialog_set_response_sensitive): New function, to set 
17339         sensitivity of buttons
17340
17341         * gtk/gtkcellrendererpixbuf.c
17342         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
17343         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
17344
17345         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
17346         handle any G_TYPE_OBJECT subclass, not just the base class, and 
17347         also boxed types.
17348         (_gtk_tree_data_list_value_to_node): ditto
17349
17350         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
17351         --gtk-debug=tree
17352
17353         * gtk/gtkmain.c: add GTK_DEBUG_TREE
17354
17355         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
17356
17357 2001-01-09  Tor Lillqvist  <tml@iki.fi>
17358
17359         * gdk/win32/gdkevents-win32.c: Implement better mouse
17360         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
17361         (find_window_for_pointer_event): New function.
17362         (gdk_event_translate): Use it when handling mouse events.
17363
17364 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
17365
17366         * configure.in:
17367         Added --with-included-loaders option
17368
17369         * gdk-pixbuf/Makefile.am:
17370         * gdk-pixbuf/gdk-pixbuf-io.c:
17371         Add support for including selected gdk-pixbuf loaders only.
17372
17373         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
17374         gtk_window_set_has_frame):
17375         Added inline documentation.
17376
17377         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
17378         * docs/reference/gdk/tmpl/windows.sgml:
17379         Added inline documentation.
17380
17381 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
17382
17383         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
17384         realizing buttons that have already been realized.
17385
17386 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
17387
17388         * tests/testtreeview.c (main): Show menu items before adding to
17389         option menu.
17390
17391         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
17392         around if we kill them.
17393
17394         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
17395         Return if we pass in a NULL model.
17396
17397 2001-01-08  Havoc Pennington  <hp@redhat.com>
17398
17399         * tests/testtreeview.c: hack on this some
17400
17401         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
17402         gtk_tree_store_set_valist, v is for arrays, valist for varargs
17403         list
17404         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
17405
17406         * gtk/gtkliststore.h: Add varargs set() and get() convenience
17407         functions
17408
17409 2001-01-08  Alexander Larsson  <alexl@redhat.com>
17410
17411         * gtk/gtkwindow-decorate.[hc]:
17412         * gtk/Makefile.am:
17413         New files. Contains an implementation of a minimal WM for
17414         linux-fb.
17415
17416         * gtk/gtkwindow.h:
17417         Add the possibility for GtkWindows to specify a frame. This
17418         is used for the window decoration code, but could concievably
17419         be used for X programs too (xmms style windows).
17420         GtkWindow->frame is the toplevel window if the window is framed.
17421         The signal frame_event gets all events that are targeted to
17422         GtkWindow->frame.
17423         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
17424         
17425         * gtk/gtkwindow.c:
17426         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
17427         Call out to gtkwindow-decorate.c for WM support in linx-fb.
17428
17429 2001-01-08  Alexander Larsson  <alexl@redhat.com>
17430
17431         * docs/README.linux-fb:
17432         Correct filename ~/.pangoft2_aliases
17433
17434         * gdk/gdkwindow.h:
17435         Added new function gdk_window_get_decorations.
17436
17437         * gdk/linux-fb/gdkfb.h:
17438         Removed _gdk_window_get_decorations declaration.
17439         Renamed _gdk_window_set_child_handler to
17440         gdk_fb_window_set_child_handler.
17441
17442         * gdk/linux-fb/gdkwindow-fb.c:
17443         Renamed _gdk_window_set_child_handler to
17444         gdk_fb_window_set_child_handler.
17445
17446         * gdk/x11/gdkwindow-x11.c:
17447         New function gdk_window_get_mwm_hints().
17448         Implemented gdk_window_get_decorations.
17449
17450         * docs/reference/gdk/tmpl/windows.sgml:
17451         * docs/reference/gdk/gdk-sections.txt:
17452         Added gdk_window_get_decorations docs.
17453         
17454 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
17455
17456         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
17457         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
17458         gdk_fb_window_send_crossing_events):
17459         Possibly send focus events when the mouse moves from one
17460         window to another.
17461
17462 2001-01-07  Tor Lillqvist  <tml@iki.fi>
17463
17464         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
17465         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
17466         to match current API.
17467
17468         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
17469         environment variable is set, don't call g_error when on a
17470         palettized (PseudoColor) display. Some people want to use GTK+ 
17471         in 256-colour mode even though works only partially.
17472
17473         * gdk/gdk.def
17474         * gtk/gtk.def
17475         * gtk/makefile.mingw.in: Update.
17476
17477 2001-01-05  Havoc Pennington  <hp@redhat.com>
17478
17479         * tests/testtreeview.c: hack on this a bit
17480
17481         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
17482         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
17483
17484         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
17485         was spelled incorrectly
17486         (GTK_IS_TREE_MODEL_SIMPLE): ditto
17487
17488         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
17489         from gtk_tree_view_set_headers_active   
17490
17491         * gtk/gtktexttag.c:
17492         (gtk_text_tag_get_property): handle PROP_DIRECTION
17493         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
17494         properties, bug 40235
17495
17496         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
17497         forward_to_line_end
17498
17499 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
17500
17501         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
17502         modules/input/gtkimcontextxim.c: Adapt to new prototypes
17503         for unicode,locale,filename conversion functions.
17504
17505 2001-01-05  Havoc Pennington  <hp@redhat.com>
17506
17507         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
17508         broken if called on the first position in the buffer.
17509
17510         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
17511         forward_to_delimiters to be called only if we aren't already at
17512         the delimiters.
17513
17514 2001-01-05  Havoc Pennington  <hp@redhat.com>
17515
17516         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
17517
17518 2001-01-05  Alexander Larsson  <alexl@redhat.com>
17519
17520         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
17521         colormap in here. Sync from X port.
17522         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
17523         Sync from X port.
17524         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
17525         This happens now and then, and i don't think it is a bug.
17526         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
17527         != endpoint.
17528         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
17529         GDK_LINE_SOLID.
17530
17531         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
17532         some of the fields filled in at least.
17533
17534         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
17535         miLineArcD is no more, remove it from the function definition.
17536
17537 2001-01-04  Havoc Pennington  <hp@redhat.com>
17538
17539         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
17540         this
17541
17542         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
17543         user_data instead of tree_node
17544
17545         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
17546         TREE_VIEW_COLUMN_SIZE
17547
17548         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
17549         "size" field to "width" finishes bug 40061
17550
17551         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
17552         for bitfields, bug 40268
17553
17554 2001-01-04  Havoc Pennington  <hp@redhat.com>
17555
17556         Rename some stuff:
17557         
17558         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
17559
17560         s/GtkModelSimple/GtkTreeModelSimple/g;
17561         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
17562         s/gtk_model_simple/gtk_tree_model_simple/g;
17563         s/gtkmodelsimple/gtktreemodelsimple/g;
17564
17565         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
17566
17567         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
17568         s/column_set_col_type/column_set_sizing/g;
17569
17570         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
17571         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
17572
17573         s/GtkCellRendererType/GtkCellRendererState/g;
17574         
17575         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
17576         (gtk_cell_renderer_toggle_class_init): change "state" property to
17577         "active", to match GtkToggleButton
17578         (gtk_cell_renderer_toggle_get_active): new function, bug
17579         40269
17580         (gtk_cell_renderer_toggle_set_active): new function
17581         (gtk_cell_renderer_toggle_set_property): route changes to toggle
17582         state through gtk_cell_renderer_set_active
17583
17584 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
17585
17586         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
17587         temporarily until they work again.  Brought up to date with
17588         changes in the model.
17589         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
17590         model.
17591
17592 2001-01-04  Havoc Pennington  <hp@redhat.com>
17593
17594         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
17595         equal to the line length, then position iterator before paragraph 
17596         separators. Fixes crash reported by Mikael Hermansson when
17597         pressing left arrow from the start of a line.   
17598
17599         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
17600         about byte indexes off the end
17601         (iter_set_from_char_offset): add g_error about char offsets
17602         off the end
17603
17604 2001-01-03  Havoc Pennington  <hp@redhat.com>
17605
17606         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
17607
17608         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
17609         of private functions; remove inclusion of private headers.
17610
17611         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
17612         function, so we don't need private functions in gtktextdisplay.c
17613
17614         * gtk/gtktextiterprivate.h: underscore-ification
17615
17616         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
17617         to instead say "only useful to implement widgets"
17618
17619         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
17620         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
17621         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
17622
17623         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
17624         This function was completely broken
17625
17626         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
17627
17628         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
17629
17630         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
17631
17632         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
17633
17634         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
17635
17636         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
17637
17638         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
17639         gtk_paint_layout
17640
17641         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
17642         gtk_paint_layout
17643
17644         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
17645         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
17646         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
17647         which were not implemented.     
17648
17649         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
17650         insert_pixbuf signal. Rename delete_text to delete_range since it
17651         also deletes pixbufs and child anchors. This almost closes bug
17652         40245 (still need to deal with child anchors)
17653
17654         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
17655         insert_pixbuf, change signal names as appropriate, change types of
17656         signals taking marks/tags to have the specific type, not just
17657         G_TYPE_OBJECT
17658         
17659         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
17660         closes bug 40051
17661
17662         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
17663         unnecessary remove_contents() call
17664         (gtk_option_menu_class_init): add a "changed" signal, closes
17665         bug 40039
17666         (gtk_option_menu_update_contents): emit "changed" if the 
17667         active menu item changes
17668
17669         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
17670         cast to GtkObject, reported by Jonas Borgstrom
17671         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
17672         we can't do stuff with side effects in finalize. Instead, spew a
17673         warning if the loader isn't closed.
17674
17675         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
17676         colormap in here, non-X ports probably need to sync to this change
17677
17678         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
17679         assertion that colormap != NULL, you can set the colormap to NULL
17680         if you like.
17681         
17682         * Makefile.am: remove gtk-config-2.0
17683
17684         * configure.in: Use pkg-config to locate GLib. Remove
17685         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
17686         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
17687         Use pkg-config to locate Pango. Output correct Pango libs to
17688         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
17689
17690         * Makefile.am (pkgconfig_DATA): install only target-specific pc
17691         files
17692         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
17693         X11 pc files
17694
17695         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
17696         unref from here
17697
17698 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
17699
17700         * configure.in:
17701         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
17702
17703 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
17704
17705         * gtk/gtktextlayout.c
17706         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
17707         variable when moving back onto a single line.
17708
17709 2001-01-01  Havoc Pennington  <hp@redhat.com>
17710
17711         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
17712
17713         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
17714
17715         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
17716         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
17717
17718 2001-01-01  Havoc Pennington  <hp@redhat.com>
17719
17720         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
17721
17722         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
17723         GtkTextAttributes
17724
17725         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
17726         #40246
17727         (gtk_text_attributes_copy_values): rename from 
17728         gtk_text_attributes_copy
17729         (gtk_text_attributes_copy): a more standard GTK copy function, 
17730         which returns a new object
17731
17732 2001-01-01  Havoc Pennington  <hp@redhat.com>
17733
17734         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
17735         
17736         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
17737         don't fill in tree_view->priv->selection, kind of an unexpected
17738         side effect
17739
17740         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
17741         gtkintl.h
17742         
17743         * gtk/gtkcellrenderer.c: Remove definition of _ and include
17744         gtkintl.h
17745         (gtk_cell_renderer_get_property): remove calls to g_value_init
17746
17747         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
17748         gtkintl.h
17749
17750         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
17751         and include gtkintl.h
17752         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
17753         property names
17754
17755         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
17756         GtkTreeSelection
17757         (_gtk_tree_selection_new_from_with_view): rename, return
17758         GtkTreeSelection
17759         (_gtk_tree_selection_set_tree_view): rename with uscore
17760         (gtk_tree_selection_get_selected): fill in the "model" out param
17761         first, so it gets filled in even if we return at the top of the 
17762         function
17763         (gtk_tree_selection_real_select_all): add a comment and an else{}
17764         to clarify this a bit
17765         (gtk_tree_selection_real_unselect_all): add the same else{}
17766
17767         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
17768         set_tree_view to have underscore prefixes, move them to the
17769         private header, fix return type of new_with_tree_view
17770         (struct _GtkTreeSelection): mark struct
17771         fields private  
17772
17773         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
17774         GtkTreeModelFlags, not a guint
17775         (gtk_tree_path_prev): return gboolean not gint
17776         (gtk_tree_path_up): return gboolean not gint
17777
17778         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
17779         return GtkTreeModelFlags, not a guint
17780
17781         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
17782         that child model is non-null before unrefing it
17783         (g_value_int_compare_func): make this a qsort compare func, not 
17784         a boolean predicate
17785
17786         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
17787         (add -umn to the end), and mark it unimplemented
17788         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
17789         I don't see what it's for - doesn't the model always sort itself?
17790         (gtk_tree_model_sort_set_compare): this had the wrong signature
17791
17792         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
17793         Fix the docs to say that it destructively replaces existing
17794         attributes (previously said that it added attributes).
17795         (gtk_tree_view_column_set_visible): canonicalize bool before
17796         equality testing. Also, check for realization before
17797         hiding/showing the tree_column->window; if this window could exist
17798         before realization, then it's busted and needs fixing, we can't 
17799         create GDK resources pre-realization. Also, remove
17800         superfluous queue_resize(), since set_size() does that for us.
17801         (gtk_tree_view_column_set_col_type): check realization before 
17802         using tree_column->window
17803
17804         * gtk/gtktreedatalist.c: fix filename in copyright notice
17805
17806 2000-12-31  Havoc Pennington  <hp@pobox.com>
17807
17808         * gtk/gtktextview.c: Rearrange all the
17809         scroll-while-dragging-or-selecting code to be different, not
17810         necessarily better. ;-)
17811         (gtk_text_view_scroll_to_mark): Change this
17812         function to take within_margin as a fraction instead of a pixel
17813         value, and to take alignment arguments (indicating where to align 
17814         the mark inside the visible area)
17815         
17816         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
17817         to GtkObject
17818
17819         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
17820         behavior so that offsets past the end of the line are not 
17821         allowed, and an offset equal to the line length moves the iterator
17822         to the next line
17823         (gtk_text_iter_set_line_index): make parallel change
17824         (gtk_text_iter_get_bytes_in_line): add this function
17825         
17826         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
17827         of byte indexes off the end of the line; byte index at the end of
17828         the line now returns FALSE and doesn't fill in the requested
17829         values, byte index past the end of the line is an error.  Also,
17830         don't allow -1 offset anymore, since its meaning is unclear.
17831
17832         This change exposes some bug in visual cursor motion, where we
17833         end up with a huge invalid byte index; needs fixing. Symptom of 
17834         bug is a crash when you hit up arrow.
17835         
17836         (_gtk_text_line_char_locate): match the change to byte_locate
17837
17838         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
17839         from start of line properly. fixes bug reported by Mikael
17840         Hermansson where backspace would delete all text before the
17841         cursor.
17842
17843 2000-12-30  Tor Lillqvist  <tml@iki.fi>
17844
17845         * gdk/win32/gdkwindow-win32.c
17846         (gdk_window_impl_win32_get_visible_region): New function, as in
17847         the X11 backend.
17848         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
17849         instead of duplicating the same code here.
17850
17851         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
17852         GDK_COLORMAP macro.
17853
17854         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
17855         destroy function.
17856         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
17857         access that.
17858
17859         * gtk/gtk.def: Update.
17860
17861         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
17862
17863 2000-12-30  Havoc Pennington  <hp@pobox.com>
17864
17865         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
17866         colormap on input only windows, to avoid special cases all over
17867         the code for these windows.
17868
17869 2000-12-26  Tor Lillqvist  <tml@iki.fi>
17870
17871         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
17872         we are on a palettized display ("PseudoColor" in X11), as the code
17873         for that doesn't work anyway, and never has.
17874
17875 2000-12-22  Alexander Larsson  <alexl@redhat.com>
17876
17877         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
17878         Don't use isprint() for chars > 255.
17879
17880 2000-12-21  Havoc Pennington  <hp@redhat.com>
17881
17882         * tests/testtreeview.c: more work
17883
17884 2000-12-21  Alexander Larsson  <alexl@redhat.com>
17885
17886         * docs/README.linux-fb:
17887         Update the docs to the new pangoft2 way.
17888
17889 2000-12-21  Alexander Larsson  <alexl@redhat.com>
17890
17891         * configure.in:
17892         For linux-fb get the pangoft2 cflags and libs. This needs a recent
17893         pango version.
17894         Remove modules/linux-fb/Makefile.
17895
17896         * gdk/linux-fb/gdkdrawable-fb2.c:
17897         Render glyphs using freetype.
17898
17899         * gdk/linux-fb/gdkfb.h:
17900         Add new fb-specific functions needed for managing windows.
17901
17902         * gdk/linux-fb/gdkmain-fb.c:
17903         Remove gdk_font_init/fini() calls.
17904
17905         * gdk/linux-fb/gdkpango-fb.c:
17906         Remove old implementation. Use pangoft2 instead.
17907
17908         * gdk/linux-fb/gdkprivate-fb.h:
17909         Remove PangoFBFont and related stuff.
17910
17911         * gdk/linux-fb/gdkwindow-fb.c:
17912         Implement drawable->get_visible_region.
17913         Implement support for _gdk_window_set_child_handler () and
17914         _gdk_window_get_decorations().
17915
17916         * modules/Makefile.am:
17917         Remove linux-fb subdir.
17918
17919         * modules/linux-fb/*:
17920         Removed all.
17921         
17922 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
17923
17924         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
17925         calls, as they are no longer needed.
17926
17927         * gtk/gtktreemodelsort.c: Fix up the comparison code.
17928         
17929         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
17930         figure out how to emit a signal on an interface.
17931
17932 2000-12-20  Havoc Pennington  <hp@redhat.com>
17933
17934         * tests: new directory to contain tests, gtk/test* should move
17935         here sometime (with appropriate on-cvs-server hackery)
17936
17937         * tests/testtreeview.c, tests/Makefile.am: a test
17938         
17939         * configure.in (AC_OUTPUT): add tests/Makefile
17940
17941         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
17942         and "invisible_set" which were missing
17943
17944         * gtk/gtkrbtree.h: some cheesy indentation fix
17945         
17946 2000-12-20  Alexander Larsson  <alexl@redhat.com>
17947
17948         * gtk/gtkinvisible.c (gtk_invisible_realize):
17949         Attach the style to the window so that the style it is not
17950         leaked when unrealizing the window.
17951
17952 2000-12-18  Havoc Pennington  <hp@redhat.com>
17953
17954         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
17955         begin/end user action where appropriate
17956         (gtk_text_view_commit_handler): add begin/end user action
17957
17958         * gtk/gtktextbuffer.c: add begin/end user action signals, and
17959         bracket interactive operations with begin/end user action pair.
17960         
17961         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
17962         "interactive" arg from insert_text and delete_text signals.
17963         Add begin_user_action, end_user_action signals
17964         (gtk_text_buffer_begin_user_action): 
17965         (gtk_text_buffer_end_user_action): New functions to delimit 
17966         a user-visible action
17967
17968         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
17969         signals.
17970         
17971 2000-12-18  Havoc Pennington  <hp@redhat.com>
17972
17973         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
17974         was pretty non-working.
17975
17976         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
17977         by passing the length to g_utf8_validate().
17978
17979 2000-12-16  Havoc Pennington  <hp@pobox.com>
17980
17981         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
17982         Port to GObject, can go back in gdk-pixbuf after setting up 
17983         a gdk-pixbuf-marshal.h header over there.
17984
17985         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
17986         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
17987         args
17988         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
17989         set
17990         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
17991         here, do it when we create the buttons later
17992         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
17993         (gtk_tree_view_map): paranoia checks that column->button is shown 
17994         and unmapped
17995         (gtk_tree_view_size_request): only request visible children.
17996         Move header size calculation in here, for cleanliness, and 
17997         to maintain invariants for child widgets if we eventually 
17998         let users set different children inside the buttons
17999         (gtk_tree_view_map_buttons): factor out code to map buttons,
18000         since it was being called several times
18001         (gtk_tree_view_size_allocate_buttons): move_resize the drag
18002         windows instead of just moving them; their height may change 
18003         if we allow random widgets in there, or the theme changes.
18004         (gtk_tree_view_size_allocate): move button size allocation 
18005         above emitting the scroll signals, to ensure a sane state when we
18006         hit user code
18007         (gtk_tree_view_button_release): remove queue_resize after
18008         tree_view_set_size(), set_size() will handle any resize queuing
18009         that's needed
18010         (gtk_tree_view_focus_in): just queue a draw, don't fool with
18011         draw_focus goo
18012         (gtk_tree_view_focus): use gtk_get_current_event() and
18013         gdk_event_get_state()
18014         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
18015         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
18016         semicolon
18017         (gtk_tree_view_create_button): show the button here
18018         (gtk_tree_view_button_clicked): actually emit the clicked signal
18019         on the column
18020         (_gtk_tree_view_set_size): return right away if the size is
18021         unchanged, as a cheesy optimization
18022         (gtk_tree_view_setup_model): rename set_model_realized to 
18023         setup_model to match the flag that indicates whether we've 
18024         called it
18025         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
18026         exist, because set_scroll_adjustment does that and it shouldn't
18027         matter what order you call these in
18028         (gtk_tree_view_get_vadjustment): ditto
18029         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
18030         for paranoia
18031         (gtk_tree_view_set_headers_visible): call
18032         gtk_tree_view_map_buttons() instead of using cut-and-paste code
18033         (gtk_tree_view_append_column): clarify whether the return value
18034         is the count of columns before or after, and do the increment 
18035         separately from the return statement so you can tell from the code.
18036         (gtk_tree_view_remove_column): ditto
18037         (gtk_tree_view_insert_column): ditto
18038         (gtk_tree_view_get_column): remove g_return_if_fail for columns
18039         outside the existing range, the docs say that outside-range
18040         columns are allowed, so we handle them as documented. (Presumably
18041         this allows a nice loop with column != NULL as test.)
18042         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
18043         mean (left/right/center etc.).
18044         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
18045         (gtk_tree_view_expand_row): add docs
18046         (gtk_tree_view_collapse_row): add docs
18047
18048         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
18049         function to emit the clicked signal on a column
18050         
18051         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
18052         state of an event
18053         (gdk_event_get_time): don't treat GDK_SCROLL 
18054         as a button event, remove default case from switch so gcc 
18055         will whine if we don't explicitly handle all event types
18056
18057         * gtk/gtktreeselection.h: added some FIXME 
18058         
18059         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
18060         "columns" to "n_columns" and "column" to "columns" for clarity
18061
18062 2000-12-16  Havoc Pennington  <hp@pobox.com>
18063         
18064         * gtk/gtktextiter.c: General cleanup of the log attr iteration
18065         stuff. This should make e.g. the delete key work again in the
18066         text widget...
18067         (gtk_text_iter_forward_cursor_positions): handle negative count
18068         (gtk_text_iter_backward_cursor_positions): handle negative count
18069         (gtk_text_iter_forward_word_ends): handle negative count
18070         (gtk_text_iter_backward_word_starts): handle negative count
18071
18072         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
18073         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
18074         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
18075         GObject. No doubt will cause breakage.
18076
18077         * demos/gtk-demo/textview.c: remove hacks around
18078         non-GObject-ification of the text objects
18079
18080         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
18081         the text tag
18082         
18083 2000-12-14  Havoc Pennington  <hp@pobox.com>
18084
18085         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
18086         that we have Xrender
18087
18088 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
18089
18090         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
18091         Add two virtualized functions gdk_drawable_get_clip_region - to
18092         get the clip region when drawing.
18093         
18094         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
18095         use invalidate_region.
18096
18097         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
18098         region.
18099
18100         * acconfig.h configure.in: Check for Xft. For now, assume
18101         that if Xft is found, Pango was compiled with Xft support
18102         as well.
18103
18104         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
18105         gdk_colormap_query_color().
18106         
18107         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
18108         with Xft if appropriate.
18109
18110         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
18111         a pangoxft context if we have XFT and the environment
18112         variable GD_USE_XFT is set.
18113         
18114         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
18115         and also possibly an XftDraw structure.
18116
18117         * gtk/gtkfontsel.c: Handle the case where the font from the
18118         style doesn't match any of the fonts a bit better.
18119         
18120         * gtk/testgtk.c: Add tabs between directional segments for
18121         hebrew/arabic test. (Not really necessary, just a little
18122         prettier.)
18123
18124 2000-12-14  Havoc Pennington  <hp@redhat.com>
18125
18126         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
18127         reading a file
18128
18129 2000-12-14  Havoc Pennington  <hp@redhat.com>
18130
18131         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
18132         unused call to get_last_line()
18133
18134         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
18135         here until boxed is working (and maybe after that - we should
18136         really not gratuitously break old code)
18137
18138         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
18139         specific types for font_desc and tabs args, move them to
18140         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
18141         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
18142
18143         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
18144         use GTK_TYPE_POINTER for signal signatures as a hack-around
18145
18146         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
18147         PangoTabArray
18148
18149         * gtk/gtktextlayout.c (line_display_iter_to_index): 
18150         make static
18151         (line_display_index_to_iter): make static
18152
18153         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
18154         to marshal a string not a boxed
18155
18156         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
18157
18158         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
18159         since the UTF-8 isn't validated yet
18160
18161         * gtk/gtktextsegment.c (char_segment_check_func): don't require
18162         lines to end in '\n'
18163         
18164         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
18165         forward_to_delimiters, and grapheme boundaries
18166         (gtk_text_view_delete_from_cursor): properly handle non-newline
18167         delimiters, and grapheme boundaries
18168
18169         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
18170         to gtk_text_iter_forward_to_delimiters, and make it work properly
18171         if empty lines end with a character other than '\n'
18172
18173         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
18174         position
18175
18176 2000-12-15  Tor Lillqvist  <tml@iki.fi>
18177
18178         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
18179
18180         * gtk/gtk.def
18181         * gdk/gdk.def: Update.
18182
18183         * gdk/win32/gdkmain-win32.c
18184         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
18185         gdkmain-win32.c here.
18186
18187         * gdk/win32/makefile.mingw.in (all): No need to make
18188         gdk-win32res.o here, the makefile one step up will call us to make
18189         it.
18190
18191         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
18192         gdkkeys-win32.
18193
18194         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
18195
18196         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
18197         call to g_source_add().
18198
18199         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
18200         leak. Thanks to Andreas Kemnade.
18201
18202 2000-12-13  Havoc Pennington  <hp@pobox.com>
18203
18204         * gtk/gtktextbtree.h: Remove double _ in front of some functions
18205
18206         * gtk/gtktext*.[hc]: update accordingly
18207         
18208 2000-12-13  Havoc Pennington  <hp@pobox.com>
18209
18210         * gtk/gtktextbtree.h: Put _ in front of every function in this 
18211         header file
18212
18213         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
18214
18215 2000-12-13  Alex Larsson  <alexl@redhat.com>
18216
18217         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
18218         Add support for ps2 intellimouse.
18219
18220         * gdkkeyboard-fb.c:
18221         Move shift-F1 repaint handling to xlate handler only.
18222         
18223         * docs/README.linux-fb:
18224         Add imps2 to docs.
18225         Document the new refresh keys.
18226         
18227 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
18228
18229         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
18230
18231         * gtk/gtkbox.c: change property types from (u)long to (u)int for
18232         ::position and ::padding.
18233
18234         * gtk/gtkcontainer.c: make ::border_width an INT property.
18235
18236         * gtk/gtkpacker.c: make ::position an INT property.
18237
18238         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
18239         guard against NULL h/v scrollbars, since this is used at construction
18240         time.
18241
18242         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
18243         internal gtk_clist_constructor().
18244
18245         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
18246         gtk_ctree_constructor().
18247
18248         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
18249         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
18250
18251         * docs/reference/Makefile.am: fun stuff, disabled docs generation
18252         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
18253
18254         * gtk/gtkwidget.[hc]:
18255         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
18256         and gtk_widget_get().
18257         (gtk_widget_new): use g_object_new_valist().
18258         (gtk_widget_set): use g_object_set_valist().
18259
18260         * gtk/gtkobject.[hc]:
18261         removed gtk_object_arg_get_info(), gtk_object_getv(),
18262         gtk_object_query_args(), gtk_object_newv(),
18263         gtk_object_class_add_signals(),
18264         gtk_object_class_user_signal_new(),
18265         gtk_object_class_user_signal_newv(),
18266         gtk_object_arg_set(), gtk_object_arg_get(),
18267         gtk_object_args_collect(),
18268         gtk_object_default_construct(),
18269         gtk_object_constructed(),
18270         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
18271         removed nsignals, signals and n_args members from GtkObjectClass.
18272         (gtk_object_new): use g_object_new_valist().
18273         (gtk_object_set): use g_object_set_valist().
18274         (gtk_object_get): use g_object_get_valist().
18275         
18276         * gtk/gtkcompat.h: define gtk_object_default_construct().
18277         
18278         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
18279         g_object_new().
18280
18281         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
18282         fucntions, cleaned up method assignments (make sure your structures
18283         are setup properly before calling out). removed all GTK_CONSTRUCTED
18284         hacks ;)
18285
18286 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
18287
18288         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
18289         off-by-one error in checks. (Dave Lambert)
18290
18291 2000-12-12  Alexander Larsson  <alexl@redhat.com>
18292
18293         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
18294         Don't free gdk_fb_keyboard twice.
18295
18296 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
18297
18298         * gtk/testgtk.c:
18299         (create_tooltips): 
18300         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
18301         use GObject swapped_signal:: properties instead.
18302
18303         * gtk/gtkcellrenderertoggle.c: 
18304         * gtk/gtkcellrenderertextpixbuf.c: 
18305         * gtk/gtkcellrenderertext.c: 
18306         * gtk/gtkcellrendererpixbuf.c: 
18307         * gtk/gtkcellrenderer.c:
18308         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
18309         missing warnings for invalid property ids, install properties
18310         with g_object_class_install_property() now.
18311         
18312         * gtk/gtksignal.c:
18313         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
18314         
18315 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
18316         
18317         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
18318         to determine if a window is the focus widget within
18319         its toplevel.
18320
18321         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
18322         to be boolean.
18323
18324         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
18325         of the case where the container CAN_FOCUS to here instead
18326         of having it in each individual move-the-focus place.
18327
18328         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
18329         focusing to be geometric in a much more obvious sense. Arrowing
18330         around is still non-intuitive because it isn't perfect and
18331         because entries, etc, grab the arrow keys, but it at least
18332         usually will do what you expect now.
18333         
18334         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
18335         file.
18336
18337         * gtk/gtknotebook.c: Change tabs to be a single item in
18338         the focus chain. Make movement of focus on tabs with arrow
18339         keys wrap around.
18340         
18341         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
18342         CHECK_FIND_CHILD macro to give informative error messages
18343         instead of silent returns.
18344
18345         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
18346         flag since we handle GdkReturn on the tabs.
18347
18348         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
18349         windows rather than sending expose events directly.
18350
18351         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
18352         definition for GtkNotebookPage into .c file, since it is private.
18353
18354         * gtk/testgtk.c (create_notebook): Add option for 
18355         testing borderless notebook.
18356
18357         * gtk/testgtk.c (page_switch): Removed egregious poking
18358         around in GTK+ internals.
18359
18360         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
18361
18362         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
18363         properly through gtk_clist_focus. Make the title headers a
18364         single item in the tab-focus chain, and make left-right wrap
18365         around.
18366
18367         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
18368         focus method so that wrapping around works properly.
18369
18370         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
18371         that is handled for the widget now. 
18372
18373 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
18374
18375         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
18376         widgets as TOPLEVEL.
18377
18378         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
18379         TOPLEVEL widgets are containers.
18380
18381         * gtk/gtkinvisible.h: Remove useless include.
18382
18383 2000-12-11  Havoc Pennington  <hp@redhat.com>
18384
18385         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
18386         Handle chopping off \r\n and 0x2029 in addition to \n before
18387         passing to PangoLayout
18388
18389         * gtk/gtkimcontextsimple.c
18390         (gtk_im_context_simple_get_preedit_string): 
18391         return an empty string if no match is pending
18392
18393         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
18394         assertion that the returned preedit string was sane
18395
18396         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
18397         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
18398         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
18399
18400 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
18401
18402         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
18403         Fix up finalizer to chain to its parent.
18404
18405 2000-12-11  Alexander Larsson  <alexl@redhat.com>
18406
18407         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
18408         Clearified the difference between the keyboard types. Wrote a note
18409         about the magic sysrq key to get out of raw mode.
18410
18411 2000-12-09  James Henstridge  <james@daa.com.au>
18412
18413         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
18414         member to hold masks for detecting the start of a protocol packet.
18415         (mouse_devs): add packet start masks for ps2 and ms device types.
18416         Left the mask for fidmour blank, as I have no idea what it should
18417         be.
18418         (handle_mouse_io): skip bytes until we get to the start of a
18419         packet.  My Logitech mouse seems to be passing an extra NULL pad
18420         byte, and GPM does a similar thing here.
18421         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
18422         this is the ms mouse driver.
18423         (gdk_fb_mouse_ms_packet): fix up button handling, which was
18424         completely broken except for button1.  It was checking the wrong
18425         bit in the packet for the status of the right mouse button, and
18426         wrongly assuming right == button2 rather than 3.  I fixed that and
18427         also added support for middle button (button2).
18428
18429 2000-12-08  Havoc Pennington  <hp@redhat.com>
18430
18431         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
18432         that cause a segfault on text insertion
18433
18434         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
18435         warning
18436
18437         * gtk/gtktextiter.c (test_log_attrs): use
18438         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
18439
18440         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
18441         Get log attrs for a line, using a cache stored on the buffer
18442         
18443         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
18444         reported by Jeff Franks
18445
18446 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
18447
18448         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
18449         /dev/ttyS0 -> /dev/mouse
18450
18451 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
18452
18453         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
18454         Added dummy gdk_fontset_load.
18455
18456 2000-12-08  Alexander Larsson  <alexl@redhat.com>
18457
18458         * docs/README.linux-fb:
18459         * docs/Makefile.am:
18460         Initial GtkFB docs.
18461         
18462         * gdk/linux-fb/Makefile.am:
18463         Define GDK_DATA_PREFIX.
18464
18465         * gdk/linux-fb/gdkmain-fb.c:
18466         Fix typo.
18467         Change default display to /dev/fb0.
18468
18469         * gdk/linux-fb/gdkpango-fb.c:
18470         Add $(prefix)/share/fonts/ to font path.
18471         
18472 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
18473
18474         * gdk/linux-fb/gdkkeyboard-fb.c:
18475         New file containing the abstracted keyboard driver. Most code
18476         taken from gdkinput-ps2.c
18477
18478         * gdk/linux-fb/gdkinput-ps2.c:
18479         Removed file.
18480         
18481         * gdk/linux-fb/Makefile.am:
18482         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
18483
18484         * gdk/linux-fb/gdkcolor-fb.c:
18485         display->fb was renamed to display->fb_fd.
18486
18487         * gdk/linux-fb/gdkcursor-fb.c:
18488         gdk_mouse_get_info -> gdk_fb_mouse_get_info
18489
18490         * gdk/linux-fb/gdkinput.c:
18491         Moved gdk_input_init here from gdkinput-ps2.c
18492
18493         * gdk/linux-fb/gdkmain-fb.c:
18494         display->fb was renamed to display->fb_fd.
18495         Now the tty and the console is opened here instead
18496         of in the keyboard driver. Also check GDK_VT to see what
18497         tty to open.
18498         Move gdk_beep () here from gdkinput-ps2.c
18499         gdk_mouse_get_info -> gdk_fb_mouse_get_info
18500
18501         * gdk/linux-fb/gdkmouse-fb.c:
18502         Add header.
18503         gdk_mouse_get_info -> gdk_fb_mouse_get_info
18504         Return correct keyboard modifiers.
18505         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
18506
18507         * gdk/linux-fb/gdkprivate-fb.h:
18508         Add tty and vt info to display.
18509         Add orignal modeinfo storage to display
18510         Update global functions
18511
18512         * gdk/linux-fb/gdkwindow-fb.c:
18513         Added gdk_fb_window_find_focus().
18514         gdk_mouse_get_info -> gdk_fb_mouse_get_info
18515
18516 2000-12-07  Havoc Pennington  <hp@pobox.com>
18517
18518         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
18519         function, noticed by Alex
18520
18521 2000-12-06  Elliot Lee  <sopwith@redhat.com>
18522
18523         * configure.in: Detect freetype properly
18524
18525         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
18526         above.
18527
18528 2000-12-06  Alexander Larsson  <alexl@redhat.com>
18529
18530         * gdk/linux-fb/Makefile.am:
18531         Add gdkmouse-fb.c
18532         
18533         * gdk/linux-fb/gdkmouse-fb.c:
18534         New file. Abstracted the mouse drivers a bit.
18535
18536         * gdk/linux-fb/gdkcursor-fb.c:
18537         The cursor hide/show functions was moved here from gdkinput-ps2.c.
18538
18539         * gdk/linux-fb/gdkinput-ps2.c:
18540         Removed old mouse handling code. Moved cursor handling code
18541         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
18542         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
18543         gdk_mouse_get_info.
18544
18545         * gdk/linux-fb/gdkmain-fb.c:
18546         Pass NULL pointers for x,y in gdk_mouse_get_info call.
18547
18548         * gdk/linux-fb/gdkprivate-fb.h:
18549         Removed public gdk_fb_find_common_ancestor, added and renamed
18550         functions for the new mouse handling code.
18551
18552         * gdk/linux-fb/gdkwindow-fb.c:
18553         Moved gdk_fb_window_send_crossing_events here. added global
18554         variable gdk_fb_window_containing_pointer. made
18555         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
18556         renamed to gdk_mouse_get_info.
18557
18558 2000-12-06  Alexander Larsson  <alexl@redhat.com>
18559
18560         * gdk/linux-fb/gdkevents-fb.c:
18561         Update to match latest gmain/gsource changes.
18562
18563         * gdk/linux-fb/gdkinput-ps2.c:
18564         Bogus gdk_keymap_get_entries_for_keycode implementation so that
18565         it links. Will be implemented later.
18566
18567 2000-12-03  Havoc Pennington  <hp@pobox.com>
18568
18569         * gdk/Makefile.am: add gdkkeys.[hc]
18570
18571         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
18572         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
18573
18574         * acconfig.h, configure.in: add checks and command line options
18575         for XKB
18576
18577         * gdk/x11/gdkkeys-x11.c: Implement the above functions
18578         
18579         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
18580         and group in the key event
18581
18582         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
18583         field with the low-level hardware key code, and a group
18584         field with the keyboard group
18585
18586         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
18587         and declare a couple globals used for keymap handling
18588         
18589         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
18590         hold down Shift-Control and type a hex number to get a Unicode 
18591         character corresponding to the hex number
18592         (gtk_im_context_simple_get_preedit_string): Fix cursor position
18593         (return bytes not chars)
18594
18595 2000-12-05  Elliot Lee  <sopwith@redhat.com>
18596
18597         * gdk/gdkcolor.h: Make GdkColor specify element sizes
18598         to avoid waste on 64-bit platforms.
18599
18600 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
18601
18602         * INSTALL: Fix link to PNG home, remove reference
18603         to fribidi.
18604
18605         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
18606         
18607         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
18608         tested.)
18609
18610         * gtk/gtkcheckmenuitem.c: Permanently turn on
18611         always_show_toggle.
18612
18613         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
18614         be NULL. (Vladimir Klebanov, #26545)
18615
18616         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
18617         some signed/unsigned comparison problems. (#6510,
18618         David Kaelbling)
18619
18620         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
18621         return type to boolean (Oskar Liljeblad, #18648)
18622
18623 2000-12-05  Alexander Larsson  <alexl@redhat.com>
18624
18625         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
18626         Remove bogus colormap setting.
18627
18628 2000-12-05  Alexander Larsson  <alexl@redhat.com>
18629
18630         * gdk/linux-fb/gdkcolor-fb.c:
18631         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
18632
18633         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
18634         Must set colormap.
18635         
18636 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
18637
18638         * docs/tutorial/gtk-tut.sgml: DND updates
18639
18640 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
18641
18642         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
18643         Remove old debug g_warning().
18644         (gdk_fb_draw_drawable): The src argument can be either a wrapper
18645         or an implementation, just pass the implementation to draw_drawable_2.
18646         
18647         * gdk/linux-fb/gdkprivate-fb.h:
18648         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
18649
18650         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
18651         clear and invalidate area when window is destroyed.
18652         (send_map_events): Remove old commented out code.
18653
18654 2000-12-05  Alexander Larsson  <alexl@redhat.com>
18655
18656         * gdk/linux-fb/gdkpango-fb.c:
18657         Use italic instead of oblique in font aliases.
18658         
18659         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
18660         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
18661         other unsupported functions.
18662
18663 2000-12-04  Havoc Pennington  <hp@redhat.com>
18664
18665         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
18666
18667         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
18668
18669         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
18670
18671         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
18672         hack to avoid infinite loops (synthetic expose event) - 
18673         Owen has more appropriate fixes in a branch he'll check in later.
18674
18675         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
18676         separator, CR, and CRLF as line ends
18677
18678         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
18679         into lines using pango_find_paragraph_boundary(); other bits of
18680         the widget are still going to be broken if the boundary isn't '\n'
18681         though
18682
18683 2000-12-04  Alexander Larsson  <alexl@redhat.com>
18684
18685         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
18686         multiply.
18687
18688         * gdk/linux-fb/gdkpango-fb.c:
18689         Copied some 26.6 scaling macros from pango to clean up the rounding.
18690         (pango_fb_font_get_glyph_info): Correct sign on x value.
18691
18692         * gdk/linux-fb/gdkprivate-fb.h:
18693         Removed unreferenced external functions.
18694
18695         * modules/linux-fb/Makefile.am: Use ` instead of '.
18696
18697         * modules/linux-fb/basic.c:
18698         Remove dead code. In particular the dummy lang engine which broke all
18699         pango layouts in GtkFB. Don't include tables-big.i anymore.
18700
18701         * modules/linux-fb/tables-big.i:
18702         Upgrade to latest version from pango. Left for reference, basic_ranges
18703         moved to basic.c.
18704         
18705 2000-12-04  Havoc Pennington  <hp@redhat.com>
18706
18707         Fix bugs Alex found:
18708         
18709         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
18710         to "draw"
18711
18712         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
18713
18714         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
18715
18716         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
18717         implementation in here, apparently the expose() implementation was
18718         dead code.
18719
18720 2000-12-04  Alexander Larsson  <alexl@redhat.com>
18721
18722         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
18723         Return positive descent.
18724
18725 2000-12-02  Havoc Pennington  <hp@pobox.com>
18726
18727         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
18728         method and signal
18729         
18730         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
18731         calls gdk_window_process_updates() to push the exposes through
18732         (gtk_widget_class_init): No more draw signal, no
18733         gtk_widget_real_draw()  
18734         
18735         * gtk/gtkbin.c (gtk_bin_draw): remove
18736
18737         * gtk/gtkbox.c (gtk_box_draw): remove
18738
18739         * gtk/gtkbutton.c (gtk_button_draw): remove
18740
18741         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
18742
18743         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
18744
18745         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
18746
18747         * gtk/gtkclist.c (gtk_clist_draw): remove
18748
18749         * gtk/gtkentry.c (gtk_entry_draw): remove
18750
18751         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
18752
18753         * gtk/gtkfixed.c (gtk_fixed_draw): remove
18754
18755         * gtk/gtkframe.c (gtk_frame_draw): remove
18756
18757         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
18758
18759         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
18760
18761         * gtk/gtklayout.c (gtk_layout_draw): remove
18762
18763         * gtk/gtklist.c (gtk_list_draw): remove
18764
18765         * gtk/gtklistitem.c (gtk_list_item_draw): remove
18766
18767         * gtk/gtkmenu.c (gtk_menu_draw): remove
18768
18769         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
18770
18771         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
18772
18773         * gtk/gtknotebook.c (gtk_notebook_draw): remove
18774
18775         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
18776
18777         * gtk/gtkpacker.c (gtk_packer_draw): remove
18778
18779         * gtk/gtkrange.c (gtk_range_draw): remove
18780
18781         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
18782
18783         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
18784
18785         * gtk/gtktable.c (gtk_table_draw): remove
18786
18787         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
18788
18789         * gtk/gtktext.c (gtk_text_draw): remove
18790
18791         * gtk/gtktextview.c (gtk_text_view_draw): remove
18792
18793         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
18794
18795         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
18796
18797         * gtk/gtktree.c (gtk_tree_draw): remove
18798
18799         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
18800
18801         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
18802
18803         * gtk/gtkviewport.c (gtk_viewport_draw): remove
18804
18805         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
18806
18807         * gtk/gtkvscale.c (gtk_vscale_draw): remove
18808
18809         * gtk/gtkwindow.c (gtk_window_draw): remove
18810
18811 2000-20-01  Anders Carlsson  <andersca@gnu.org>
18812
18813         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
18814         a GtkToggleButton is both insensitive and active, it was being
18815         drawn by the GtkButton draw handler which doesn't check the
18816         state. Now it's calling gtk_toggle_button_paint instead.
18817         
18818 2000-12-01  Havoc Pennington  <hp@redhat.com>
18819
18820         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
18821         dangling pointers to the appearance attributes from the 
18822         line display
18823
18824         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
18825         width/height to mean "full width/height of drawable"
18826
18827         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
18828         click to select word/line
18829         
18830         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
18831         when getting log attrs. Get a slice, so that pixmaps and stuff
18832         are properly handled.
18833
18834         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
18835         paste into the selection (replaces selection now, previously
18836         crashed or added to selection). Reveals longstanding btree bug -
18837         select multiple lines, middle-click on the selection, boom. This
18838         isn't related to my changes though.
18839
18840         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
18841         PangoLogAttrs changes
18842         (gtk_entry_move_backward_word): ditto
18843
18844         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
18845         functions return bool whether the iter moved onto a
18846         dereferenceable position.
18847  
18848         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
18849         functions for motion in terms of display lines.
18850
18851         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
18852         get the buffer a mark is inside
18853         
18854 2000-12-01  Alexander Larsson  <alexl@redhat.com>
18855
18856         * gdk/linux-fb/Makefile.am:
18857         * modules/linux-fb/Makefile.am:
18858         Freetype 2 final uses freetype-config
18859
18860         * gdk/linux-fb/gdkpango-fb.c:
18861         Upgrade to use Freetype 2 final.
18862         More flexible support for font aliases, this also fixes a bug with
18863         GtkFontSelector, as the aliases must be visible in the font/family list,
18864         or GtkFontSelector reads uninitialized memory.
18865
18866 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
18867
18868         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
18869         XGetIMValues to properly terminate variable argument list, and do
18870         NULL return check for ic_values and xim_styles.
18871
18872         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
18873         Restore preedit state after XmbResetIC().
18874         
18875         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
18876         XvaCreateNestedList() should take XvaNestedList, but not
18877         XvaNestedList*.
18878
18879         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
18880         preedit_draw_callback, preedit_caret_callback): Match
18881         "preedit-changed" signal name to "preedit_changed" to be
18882         consistent to the spec.
18883
18884         * gtk/gtkimcontextsimple.c (check_table):
18885         Match "preedit-changed" to "preedit_changed" to be consistent
18886         to the spec.
18887
18888 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
18889
18890         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
18891         gc->clip_region == NULL>
18892
18893 2000-11-30  Tor Lillqvist  <tml@iki.fi>
18894
18895         Changes by Hans Breuer:
18896         
18897         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
18898         Dont't use negative width and height as max_hints. This fixes
18899         Owen's recent testgtk changes for win32.
18900
18901         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
18902         gdk_win32_hdc_release): These are exported and may be called with
18903         other drawable types than our GdkDrawableImplWin32 (?).
18904
18905         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
18906         so always #define USE_BACKING_STORE.
18907
18908         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
18909         of printf for debugging output.
18910
18911         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
18912         
18913         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
18914
18915         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
18916         declaration.
18917
18918         * gtk/gtktexttypes.h: Ditto.
18919
18920         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
18921         (GDK_VoidSymbol) also if in case of arg check failure.
18922
18923         * gtk/gtkimcontextsimple.c
18924         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
18925         position to the pointer, but to the variable it points to.
18926
18927         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
18928
18929         * gtk/gtk.def: Updates.
18930
18931 2000-11-29  Elliot Lee  <sopwith@redhat.com>
18932
18933         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
18934         GTK_TYPE_TREE_MODEL.
18935
18936 2000-11-29  Alexander Larsson  <alexl@redhat.com>
18937
18938         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
18939         Set the size of the font from the description.
18940         (gdk_text_width): Gross hack that calculates the width
18941         of text by text_length * size/2. This is necessary because
18942         GtkLabel does some ugly gtk_string_width call to calculate
18943         an good size.
18944         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
18945
18946 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
18947
18948         * docs/tutorial/gtk-tut.sgml: DND updates
18949
18950 2000-11-29  Alexander Larsson  <alexl@redhat.com>
18951
18952         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
18953         If you pass width or height == 0 to gdk_window_clear_area they
18954         should be calculated from the window size.
18955
18956 2000-11-29  Alexander Larsson  <alexl@redhat.com>
18957
18958         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
18959         a grab, but no grab-cursor, use the cursor from the grabbed
18960         window. (gdk_fb_window_send_crossing_events): Send normal
18961         enter/leave notifications if grab and owner_events == TRUE.
18962
18963 2000-11-29  Alexander Larsson  <alexl@redhat.com>
18964
18965         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
18966         Do implicit button grabs, even if the window doesn't
18967         want the event.
18968         (gdk_fb_window_send_crossing_events): If there is a
18969         grab, only the grabbed window gets normal enter/leave
18970         notifications. On ungrab go from grabbed window to current.
18971         Don't send any notification to b when propagating from c -> b.
18972         If setting a grab on window, don't set prev_window.
18973         (handle_mouse_input): Send enter/leave events to the window the
18974         mouse is over, not the grabbed one.
18975         
18976 2000-11-28  Elliot Lee  <sopwith@redhat.com>
18977
18978         * gdk/gdkregion-generic.c: Zap warning.
18979         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
18980         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
18981
18982 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
18983
18984         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
18985         The cursor should be hidden if it is part of either the
18986         source or destination region. Not only if it is in both.
18987         (gdk_window_set_transient_for): Silence warnings.
18988
18989 2000-11-28  Alexander Larsson  <alexl@redhat.com>
18990
18991         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
18992         The default mode in X is Pie Arcs, therefore that is
18993         what Gtk+ uses.
18994
18995 2000-11-28  Alexander Larsson  <alexl@redhat.com>
18996
18997         * gdk/linux-fb/gdkinput-ps2.c:
18998         Implement correct EnterNotify/LeaveNotify:
18999         (gdk_fb_window_send_crossing_events): New function that sends
19000         all GdkCrossingEvents from the last mouse-window to the specified
19001         destination.
19002         (gdk_fb_window_visibility_crossing): Removed function.
19003         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
19004         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
19005         instead of gdk_window_get_pointer() for better readability.
19006
19007         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
19008         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
19009
19010         * gdk/linux-fb/gdkprivate-fb.h:
19011         removed gdk_fb_window_visibility_crossing, added
19012         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
19013
19014         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
19015         New function that finds the least common ancestor of two windows.
19016         (gdk_window_show, gdk_window_hide):
19017         Use gdk_fb_window_send_crossing_events.
19018         (gdk_fb_window_move_resize): Send configure events to toplevel
19019         windows. Use gdk_fb_window_send_crossing_events.
19020
19021 2000-11-27  Havoc Pennington  <hp@redhat.com>
19022
19023         * gtk/gtkprivate.h (enum): Remove a trailing comma
19024
19025 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
19026
19027         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
19028         the "changed" callback of the adjustment.  We need to redraw the
19029         spin button's arrows when the adjustment's range changes.
19030         (adjustment_changed_cb): Draw the arrows.
19031         (gtk_spin_button_value_changed): Draw the arrows.
19032
19033 2000-11-23  Alexander Larsson  <alexl@redhat.com>
19034
19035         * gdk/linux-fb/gdkselection-fb.c:
19036         Initial selection implementation.
19037
19038         * gtk/gtkselection.c:
19039         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
19040         requestor in gtk_selection_request.
19041         
19042         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
19043         Added gdk_selection_property atom.
19044
19045         * gdk/linux-fb/gdkprivate-fb.h:
19046         Export _gdk_selection_window_destroyed.
19047         Removed mask_off_x/y from GdkCursorPrivateFB.
19048         Removed hbearing, added top, left to PangoFBGlyphInfo.
19049
19050         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
19051         Call _gdk_selection_window_destroyed
19052         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
19053         the root window has been created.
19054         (static_dx_hack, static_dy_hack, compare_draw_rects,
19055         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
19056         in region. They are already sorted. Instead just traverse them in
19057         reverse if draw_direction < 0.
19058         
19059         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
19060         Double-clicks must be sent after the normal button_press.
19061         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
19062         
19063         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
19064         Pass _gdk_fb_screen_gc instead of NULL.
19065
19066         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
19067         Initialize gdk_selection_property.
19068         (gdk_event_make): Remove unused code.
19069
19070         * gdk/linux-fb/gdkcursor-fb.c:
19071         Make the pixmap for the cursor the same size as the mask. Also remove
19072         the mask_off_x/y fields in GdkCursorPrivateFB and combine
19073         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
19074         Now the whole cursor is visible.
19075
19076         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
19077         Fix bug where xdest+height instead of ydest+height was used
19078         to calculate if the source and dest overlapped. This fixes the
19079         redraw bug when the main window in testgtk was scrolled when
19080         partially covered by a tall window.
19081         Copy rectangles in region in order depending on draw_direction.
19082         Also moved the draw_direction flipping of start_y and end_y into
19083         the gc functions, as this might not be what all of them want.
19084         (gdk_fb_draw_lines): Support dashed lines.
19085         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
19086         so that the text is positioned correctly (was 1 pixel high).
19087
19088         gdk/linux-fb/gdkgc-fb.c:
19089         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
19090         all lines were drawn a pixel to short. Also checked the default of
19091         the rest of the values, and they're the same as X now.
19092
19093         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
19094         Clean up pixel positioning of the glyphs. Just use bgy->top and
19095         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
19096         to all divisions to get correct rounding behaviour.
19097
19098         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
19099         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
19100         Moved start_y/end_y flip into draw_drawable implementations.
19101         Flip also x rendering when draw_direction < 0.
19102         Remove unneccesary multiply with draw_direction.
19103
19104 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
19105
19106         * docs/tutorial/gtk-tut.sgml:
19107           - get rid of gtk_toggle_button_toggled FUD
19108           - start DND section - needs work - based on:
19109                 http://wolfpack.twu.net/docs/gtkdnd/
19110
19111 2000-11-22  Alexander Larsson  <alexl@redhat.com>
19112
19113         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
19114         Correct calculation of font metrics. Now GtkEntrys have sane
19115         size.
19116
19117 2000-11-22  Alexander Larsson  <alexl@redhat.com>
19118
19119         * gdk/gdktypes.h:
19120         Add new type GdkSpan
19121         
19122         * docs/reference/gdk/gdk-sections.txt,
19123         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
19124         gdk/gdkregion.h:
19125         Implement and document gdk_region_spans_intersect_foreach.
19126
19127         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
19128         Add new file gdkrender-fb.c which contains all core
19129         rendering code.
19130         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
19131         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
19132         (optimized rectangle fillers).
19133
19134         * gdk/linux-fb/gdkdrawable-fb2.c:
19135         Move all rendering code to gdkrender-fb.c.
19136         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
19137         Use the new span intersection functions in gdk_fb_fill_spans.
19138         gdk_fb_draw_rectangle() clips filled rectangles and calls
19139         gc->fill_rectangle with the result.
19140         gdk_fb_fill_spans() gets extra argument "sorted".
19141
19142         * gdk/linux-fb/gdkevents-fb.c:
19143         Remove unused includes and defines.
19144         New function gdk_fb_get_time() to get correct time for events.
19145
19146         * gdk/linux-fb/gdkinput-ps2.c:
19147         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
19148         Make sure to set the time of all events.
19149
19150         * gdk/linux-fb/gdkmain-fb.c:
19151         Use gdk_fb_get_time ().
19152
19153         * gdk/linux-fb/gdkprivate-fb.h:
19154         New virtual GC calls: fill_span & fill_rectangle.
19155         Export gdk_fb_get_time().
19156         gdk_fb_fill_spans() gets extra argument "sorted".
19157
19158         * gdk/linux-fb/mi*.c:
19159         Use GdkSpan instead of GdkRectangle.
19160         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
19161         from XFree 4 source)
19162         
19163 2000-11-22    <jrb@redhat.com>
19164
19165         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
19166         reversing the order in an if statement will do.  Doing so managed
19167         to make the treemodelsort half work.  Other half will follow after
19168         I get the insert function fully fixed.
19169
19170 2000-11-21  Elliot Lee  <sopwith@redhat.com>
19171         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
19172         more than 2 bits. Besides, I need to implement an evil hack. :)
19173
19174 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
19175
19176         * docs/tutorial/gtk-tut.sgml: minor corrections
19177
19178 2000-11-20  Jonathan Blandford <jrb@redhat.com>
19179         * gtk/gtktreemodelsort.h: Add convertion functions to let you
19180           convert to and from relative path's and iters.
19181
19182         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
19183           testing sorting functions a bit better.  Currently broken -- will
19184           fix in morning.
19185
19186 2000-11-20  Havoc Pennington  <hp@redhat.com>
19187
19188         * gtk/gtkwidget.c: Documented a bunch of functions in here
19189         (gtk_widget_realize): Warn if you try to realize
19190         a widget with no parent that isn't a toplevel
19191         (gtk_widget_intersect): return a gboolean
19192
19193 2000-11-20  Havoc Pennington  <hp@redhat.com>
19194
19195         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
19196         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
19197         scrolling to be implemented in GDK to finish. Also, right now
19198         we just size_allocate all children on every layout change,
19199         which is pretty lame. Test commented out of testtext.c, 
19200         until it works better.
19201
19202 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
19203
19204         * gdk/linux-fb/gdkdrawable-fb2.c:
19205         Removed unused arguments from gdk_fb_drawable_get_pixel().
19206
19207         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
19208         Renamed fidur specific mouse packet data in MouseDevice to
19209         generic. Used it in ps2 mouse handling code to avoid blocking
19210         reads.
19211
19212 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
19213
19214         * demos/gtk-demo/main.c: Changed to have the list become
19215         non-italic when the demo window is destroyed through an external
19216         event (like a close button).  Doing so found three bugs in the
19217         widget.
19218
19219         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
19220
19221         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
19222         we actually set the cell.
19223
19224         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
19225
19226         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
19227         free a leaked path.  Thanks memprof.
19228
19229 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
19230
19231         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
19232         off-by-one error when destroying allocated segments
19233         on failure. (Elliot)
19234
19235 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
19236
19237         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
19238         memleaks found by Evan Martin.
19239
19240 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
19241
19242         * Released 1.3.2
19243         
19244         * NEWS: Updates for 1.3.2
19245
19246 2000-11-17  Tor Lillqvist  <tml@iki.fi>
19247
19248         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
19249         but in general for window system specific events.
19250
19251         * gtk/gtk.def
19252         * gtk/makefile.mingw.in
19253         * gtk/makefile.msc.in: Update.
19254         
19255         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
19256
19257 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
19258
19259         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
19260         distribute gtk.immodules.
19261
19262         * gtk/Makefile.am (install-data-local): Don't install the
19263         gtk.immodules file created for the uninstalled modules;
19264         instead run gtk-query-immodules after install
19265
19266 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
19267
19268         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
19269         -rpath to the right install location.
19270
19271         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
19272         -export-dynamic.
19273
19274         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
19275         properly.
19276
19277 2000-11-15  Havoc Pennington  <hp@pobox.com>
19278
19279         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
19280         patch from Mikael Hermansson to temporarily stop blinking while
19281         the user is using the keyboard to type or navigate. 
19282
19283         Also, when blinking, stay on for longer than we stay off. Also,
19284         return from start_cursor_blink if !cursor_visible, to save
19285         checking that flag all over the place before we call
19286         start_cursor_blink.
19287
19288 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
19289
19290         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
19291         only contain a "fontset" line, which is now ignored.
19292
19293         * gtk/gtkentry.c (gtk_entry_button_release): Make 
19294         double-click-to-select-word work.
19295         
19296 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
19297
19298         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
19299         Don't move back one char when we are actually at the end of the 
19300         paragraph.
19301
19302 2000-11-15  Robert Brady  <robert@suse.co.uk>
19303
19304         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
19305         'o' < 'p'.
19306         
19307         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
19308         bind_textdomain_codeset.
19309
19310         (gtk_init_check): Make the warning about translating default:LTR
19311         sterner.
19312         
19313 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
19314
19315         * **/Makefile.am : remove unecessary rules for win32-specific
19316         config-substituted targets. If you want these rules, use
19317         --enable-maintainer-mode (called automatically by autogen.sh).
19318         Stops a lot of unneccessary make-time warnings.
19319
19320         * gtk/gtktext{layout,display}.c: Factor in total width as
19321         well as screen when figuring alignment for word-wrap as well as
19322         no wrap; this is necessary to handle lines that cannot be wrapped
19323         at all.
19324
19325 2000-11-15  Havoc Pennington  <hp@redhat.com>
19326
19327         * gtk/testtext.c: Implement essential color cycling feature
19328
19329 2000-11-15  Havoc Pennington  <hp@redhat.com>
19330
19331         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
19332         when we invalidate the main window.
19333
19334         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
19335         GtkTextView will now invalidate the side windows for us when text
19336         changes.
19337
19338 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
19339
19340         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
19341         unconditionally, since we may need to update the horizontal
19342         scrollbars even if the height didn't change.
19343
19344         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
19345         the extra attrs, since some of them affect size.
19346
19347         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
19348         x_offset correctly.
19349
19350 2000-11-15  Havoc Pennington  <hp@redhat.com>
19351
19352         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
19353         don't move the first line out into the margin, instead move the
19354         whole paragraph in order to make space for the first line within 
19355         the margin
19356
19357 2000-11-15  Havoc Pennington  <hp@redhat.com>
19358
19359         * gtk/gtktextview.c (changed_handler): offset redraw rect by
19360         xoffset in addition to yoffset, so horizontal scrolling doesn't
19361         break redraws
19362
19363 2000-11-15  Havoc Pennington  <hp@redhat.com>
19364
19365         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
19366         from the cursor
19367         (render_layout_line): fix reversed test that caused weird
19368         underlines to get drawn
19369
19370 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
19371
19372         * gdk/linux-fb/gdkprivate-fb.h:
19373         Fix debug macros.
19374         
19375 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
19376
19377         * gdk/linux-fb/gdkprivate-fb.h:
19378         Added virtual functions set_pixel, get_color,
19379         fill_span and draw_drawable to the GC.
19380         Added global _gdk_fb_screen_gc to use instead of
19381         NULL when drawing to the screen.
19382         Added _gdk_fb_gc_calc_state() prototype.
19383
19384         * gdk/linux-fb/gdkgc-fb.c:
19385         Call _gdk_fb_gc_calc_state() on any gc state change.
19386
19387         * gdk/linux-fb/gdkglobals-fb.c:
19388         Add _gdk_fb_screen_gc
19389                 
19390         * gdk/linux-fb/gdkdrawable-fb2.c:
19391         _gdk_fb_gc_calc_state() calculates best functions
19392         for the GC state and depth.
19393         Moved bpp specialized code to separate functions.
19394         Added optimized 24 bpp AA draw_drawable.
19395
19396         * gdk/linux-fb/gdkevents-fb.c:
19397         Silence gcc warning.
19398
19399         * gdk/linux-fb/gdkimage-fb.c:
19400         Use _gdk_fb_screen_gc
19401
19402         * gdk/linux-fb/gdkwindow-fb.c:
19403         Init and use _gdk_fb_screen_gc
19404
19405         * gdk/linux-fb/mitypes.h:
19406         Remove unused types.
19407
19408 2000-11-14  Havoc Pennington  <hp@pobox.com>
19409
19410         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
19411         to pixels
19412
19413 2000-11-14  Havoc Pennington  <hp@pobox.com>
19414
19415         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
19416
19417         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
19418         unknown char, no real reason we were using a variable. 
19419         Remove gtk_text_unknown_char variable. Fix all the text widget
19420         files accordingly.
19421
19422         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
19423         since the Unicode spec seems to prefer that character for our
19424         purposes.
19425
19426 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
19427
19428         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
19429         value of g_getenv() isn't freeable, so g_strdup it.
19430
19431         * modules/input/inuktitut.c: Inuktitut input method.
19432
19433         * modules/input/Makefile.am: Build this.
19434         
19435 2000-11-14  Elliot Lee  <sopwith@redhat.com>
19436
19437         * gtk/Makefile.am: Install gtk.immodules, needed for operation
19438         of gtk programs.
19439
19440 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
19441
19442         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
19443         reversed > that was causing Home to go to end of previous line.
19444
19445         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
19446         modified-keypresses (leave for bindings.)
19447
19448         * modules/input/Makefile.am: Remove useless -export-dynamic
19449         from module LDFLAGS.
19450
19451 2000-11-14  Havoc Pennington  <hp@redhat.com>
19452
19453         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
19454         higher.
19455
19456         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
19457         account. Also, render rise, underline, background, etc. for
19458         pixbufs as well as text. Also, draw underlines one pixel higher.
19459
19460         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
19461         PangoAttribute for the rise, so it gets drawn properly. Also,
19462         add the GtkTextAppearance attribute for pixbuf/widget segments
19463         as well; we should go ahead and have rise, underline, background,
19464         stipple work for those
19465
19466         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
19467         Pango
19468
19469 2000-11-15  Tor Lillqvist  <tml@iki.fi>
19470
19471         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
19472
19473         * gtk/gtk.def: Update.
19474
19475         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
19476         included.
19477         (gtk_rc_get_im_module_file): Use run-time installation directory
19478         on Win32.
19479
19480         * gdk/win32/rc/gdk.rc: Remove.
19481         * gdk/win32/rc/gdk.rc.in: New file.
19482         * gdk/win32/rc/Makefile.am: New file
19483         * gdk/win32/Makefile.am: Corresponding changes.
19484
19485         * gtk/gtk.rc: Remove.
19486         * gtk/gtk-win32.rc.in: New file.
19487         * gtk/Makefile.am: Corresponding changes.
19488
19489         * configure.in: Corresponding changes.
19490
19491         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
19492         has a built gtkcompat.h. Developers using CVS code on Win32 can
19493         hand-edit it from gtkcompat.h.in.
19494
19495         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
19496         gtkcompat.h from gtkcompat.h.win32.
19497
19498 2000-11-14  Havoc Pennington  <hp@redhat.com>
19499
19500         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
19501         to default to GDK_ACTION_MOVE if the drag is within a single
19502         widget. Defaults to GDK_ACTION_COPY between widgets.
19503
19504 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
19505
19506         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
19507
19508         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
19509
19510         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
19511         srcdir != builddir
19512
19513         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
19514
19515         * configure.in (GTK_VERSION): Up to 1.3.2
19516
19517         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
19518         gtkimcontextxim.h
19519
19520         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
19521         missing doc comment.
19522
19523 2000-11-14  Alexander Larsson  <alexl@redhat.com>
19524
19525         * modules/linux-fb/basic.c:
19526         Use the glib iconv wrappers.
19527
19528 2000-11-13  Havoc Pennington  <hp@pobox.com>
19529
19530         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
19531         still more bugs.
19532
19533         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
19534         scroll the GdkWindows before realization.
19535
19536 2000-11-13  Havoc Pennington  <hp@redhat.com>
19537
19538         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
19539         where GC didn't always get updated properly
19540
19541         * demos/gtk-demo/textview.c (create_tags): Use subattributes
19542         of fonts instead of setting the entire font
19543
19544         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
19545         setting entire font
19546
19547         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
19548
19549         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
19550         a bunch of individually-settable font attributes. You can still 
19551         use the "font" and "font_desc" args, they just set all the font
19552         attributes at once.
19553
19554 2000-11-13 Elliot Lee <sopwith@redhat.com>
19555
19556         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
19557
19558 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
19559
19560         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
19561         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
19562
19563         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
19564         work better.
19565
19566 2000-11-13  Havoc Pennington  <hp@redhat.com>
19567
19568         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
19569         the module file.
19570
19571         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
19572         dest->language
19573
19574         * gtk/testtext.c: Test pixels above/below/inside paragraphs
19575         settings
19576
19577         * gtk/gtktextview.c: Implement object args and setters/getters for
19578         all the aspects of the GtkTextAttributes that are not set from
19579         GtkWidget attributes. This is spacing, justification, margins,
19580         etc.
19581
19582         (gtk_text_view_set_arg)
19583         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
19584         args
19585         (gtk_text_view_class_init): Add args for justify, left_margin,
19586         right_margin, indent, and tabs
19587         
19588
19589         * gtk/gtktextlayout.c (set_para_values): fix to display indent
19590         attribute properly
19591
19592         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
19593         replace with indent attribute
19594
19595         * gtk/gtktextlayout.c (set_para_values): multiply indent by
19596         PANGO_SCALE
19597
19598         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
19599         rearranging code to do that
19600         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
19601         i.e. don't subtract the top_margin first, just to keep
19602         all margin-futzing in one place.
19603
19604         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
19605
19606         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
19607         special case of last line, Pango now handles this itself.
19608         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
19609         Y coordinate
19610         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
19611         (find_display_line_above): wasn't moving the byte index as it
19612         iterated over lines, so always returned byte 0. Also, port to use
19613         PangoLayoutIter.
19614         (find_display_line_below): same problem as
19615         find_display_line_above. Also, port to use PangoLayoutIter.
19616
19617 2000-11-13  Alexander Larsson  <alexl@redhat.com>
19618
19619         * gdk/linux-fb/*.[ch]:
19620         Massive reindent to gtk+ standard. My hands hurt.
19621
19622         * gdk/linux-fb/gdkcolor-fb.c:
19623         Move GdkColorPrivateFB from inherited to windowing_data
19624
19625         * gdk/linux-fb/gdkcursor-fb.c:
19626         _gdk_cursor_new_from_pixmap made static
19627
19628         * gdk/linux-fb/gdkdnd-fb.c:
19629         GdkDragContextPrivate moved to windowing_data
19630
19631         * gdk/linux-fb/gdkdrawable-fb2.c:
19632         Removed endian.h, use glib endianness macros instead
19633         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
19634         and GDK_DRAWABLE_IMPL_FBDATA
19635
19636         * gdk/linux-fb/gdkfont-fb.c:
19637         Add empty gdk_font_load(). Needed for linking of Gtk+.
19638
19639         * gdk/linux-fb/gdkimage-fb.c:
19640         Removed endian.h, use glib endianness macros instead
19641         Moved GdkImagePrivateFB to windowing_data
19642         gdk_image_new_bitmap didn't always allocate enough
19643         memory.
19644
19645         * gdk/linux-fb/gdkinput-ps2.c:
19646         Added semi-working support for MS serial mice.
19647
19648         * gdk/linux-fb/gdkprivate-fb.h:
19649         s/GdkWindowPrivate/GdkWindowObject/
19650         Removed GdkWindowPrivate typedef
19651         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
19652         Removed GDK_DRAWABLE_P
19653         Move GdkColorPrivateFB from inherited to windowing_data
19654         Moved GdkImagePrivateFB to windowing_data
19655
19656         * gdk/linux-fb/gdkvisual-fb.c:
19657         Removed some unused debug code.
19658
19659         * gdk/linux-fb/gdkwindow-fb.c:
19660         Use stock cursors instead of including X headers.
19661         s/GdkWindowPrivate/GdkWindowObject/
19662
19663         * gdk/linux-fb/mitypes.h:
19664         Removed unused types.
19665
19666         * modules/linux-fb/basic.c:
19667         Use the pango fribidi wrappers.
19668
19669 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
19670
19671         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
19672         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
19673         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
19674         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
19675         GEqualFunc where applicable.
19676         
19677         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
19678         pango_font_description_equal as changed in pango.
19679         
19680         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
19681
19682         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
19683
19684         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
19685
19686         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
19687
19688         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
19689
19690         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
19691
19692         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
19693         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
19694
19695         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
19696         gtk_rc_styles_compare -> gtk_rc_styles_equal.
19697
19698 2000-11-12  Havoc Pennington  <hp@pobox.com>
19699
19700         * demos/gtk-demo/Makefile.am (democodedir): change demo install
19701         dir to datadir/gtk+-2.0/demo
19702
19703         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
19704         sorts of text widget and Pango font bugs. Urgh.
19705
19706         * demos/gtk-demo/Makefile.am (demos): Add textview.c
19707
19708         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
19709         tree that you should double click to see the demo. Fix 
19710         types of variables to reflect changed return values from 
19711         GtkTreeStore and GtkTreeViewColumn constructors.
19712
19713         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
19714         newly-created buffer to prepare for GObject semantics
19715
19716         * gtk/testtext.c: don't leak the buffer with GObject semantics
19717
19718         * gtk/testtextbuffer.c: ditto
19719         
19720 2000-11-12  Havoc Pennington  <hp@pobox.com>
19721
19722         Rename this testgtk to gtk-demo to avoid confusion, and 
19723         install it so people can use it as a supplement to 
19724         the documentation.
19725         
19726         * demos/gtk-demo: Moved from demos/testgtk
19727
19728         * demos/testgtk: Removed
19729
19730         * configure.in: make Makefile in gtk-demo
19731         
19732         * demos/gtk-demo/Makefile.am: Install sample source to 
19733         datadir/gtk-demo (maybe there's a better place?), and 
19734         rename the binary to gtk-demo
19735         
19736         * demos/gtk-demo/main.c (load_file): Load installed sample
19737         source if source isn't found in pwd.
19738
19739 2000-11-09  Havoc Pennington  <hp@pobox.com>
19740
19741         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
19742         argument to set the char displayed when visibility == FALSE
19743         (gtk_entry_create_layout): If !entry->visible, replace 
19744         all chars with the "invisible char"
19745
19746         * gtk/testgtk.c: Test the invisible_char deal
19747         
19748 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
19749
19750         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
19751         can't get a native font in the right encoding.
19752
19753 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
19754
19755         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
19756         respectively.
19757
19758 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
19759
19760         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
19761         Fix warning when moving between paragraphs.
19762
19763         * gtk/gtkentry.[ch]: Change move => move_cursor, 
19764         delete => delete_from_cursor, insert => insert_at_cursor
19765
19766 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
19767
19768         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
19769
19770         * modules/input/imthai-broken.c: A Thai input method for use if
19771         Thai keys are really generating Latin1 keysyms.
19772
19773         * modules/input/Makefile.am: Build these.
19774
19775 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
19776
19777         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
19778         g_filename_{to,from}_utf8 now takes an extra parameter.
19779
19780         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
19781         strftime into UTF-8.
19782
19783         (column_from_x, gtk_calendar_paint_day_names): Support RTL
19784         calendars.
19785
19786         (gtk_calendar_paint_day_names): Draw day names in the right 
19787         place.
19788         
19789 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
19790
19791         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
19792         problem with using result of g_get_charset() backwards -
19793         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
19794
19795         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
19796         negative min_width/height and max_width/height to
19797         mean "requisition"; this allows setting a window
19798         to be user-resizable in only one direction easily.
19799
19800         * gtk/testgtk.c (create_main_window): Remove hard-coded
19801         usize - set a default size in the vertical direction.
19802
19803 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
19804
19805         * gtk/gtkrange.c: Add some missing casts. Support 
19806         2 and 3 button clicks on the arrows to mean 
19807         "move by pages" and "jump to end". (Like gtkspinbutton)
19808
19809 2000-11-12 Hans Breuer <Hans@Breuer.Org>
19810
19811         * gdk/win32/makefile.msc : reflect build module changes
19812
19813         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
19814         from GdkPixmap*, cast implementation member instead.
19815
19816         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
19817         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
19818         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
19819         more Gdi functions return value checking. 
19820         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
19821         GdkImagePrivateWin32 *.
19822
19823         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
19824         menus useable again. Add #pragma message to keep reminded on this issue.
19825         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
19826         windows. This allows to enable backing store on Win32!
19827
19828         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
19829         in drawable is of impl type. Correct specific type checks appropriate.
19830  
19831         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
19832         GDK_WINDOW_DESTROYED before allocating new resources.
19833
19834         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
19835
19836         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
19837         (gdk_window_foreign_new) initialize parent handle.
19838         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
19839
19840         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
19841         Let the GDI invalidate the window on MoveWindow call to fix scrolling
19842         problems (e.g. main buttons in testgtk). 
19843
19844 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
19845
19846         * gtk/gtkentry.c (gtk_entry_key_press): Call 
19847         gtk_widget_activate for GDK_Return.
19848
19849         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
19850         of preedit cursor position.
19851
19852 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
19853
19854         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
19855         static.
19856
19857 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
19858
19859         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
19860         out support for multiple locales; that simple doesn't
19861         work reliably with current Xlib
19862
19863         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
19864         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
19865         Add support for positioning the cursor within the preedit string.
19866
19867 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
19868
19869         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
19870         at XIM input method module.
19871
19872         * gtk/gtktextview.c: Check for bindings after passing
19873         events to im context filter.
19874
19875 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
19876
19877         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
19878         empty attribute lists properly.
19879
19880 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
19881
19882         * gtk/queryimmodules.c (main): Return non-zero exit
19883         status if errors were encountered querying any
19884         modules.
19885
19886         * modules/input/Makefile.am (moduledir): remove
19887         leftover bin program target.
19888
19889         * docs/make-todo: Fix typo in error message.
19890
19891 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
19892
19893         * configure.in: Add modules/input/Makefile
19894
19895 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
19896
19897         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
19898         don't include gtkthemes.h.
19899
19900         * gtk/testgtk.c gtk/testtext.c: Set environment variables
19901         to point
19902
19903         * gtk/Makefile.am: Add new .c and .h files, build 
19904         gtk-query-immodules and use it to create a gtk.immodules
19905         file for use of test programs.
19906
19907         * gtk/gtkpreview.c: remove extra blank line.
19908
19909 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
19910
19911         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
19912         Add the ability to add extra tables beyond the default
19913         one, and also the ability to have compose sequences 
19914         that are prefixes of other compose sequences. 
19915
19916         * gtk/gtkimcontextsimple.c: Export a preedit string which
19917         consists of possible candidates for keystrokes that have
19918         been entered but not yet committed.
19919
19920         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
19921         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
19922
19923         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
19924         Add a function to add input-method switching menu items
19925         to a menu.
19926
19927         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
19928         when switching input methods.
19929
19930         * gtk/gtkimcontextsimple.[ch]: Change the format of
19931         the compose table to allow compose tables of different
19932         lengths / sequence.
19933
19934 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
19935
19936         * gtk/gtkimmodule.[ch]: Support routines for loading
19937         GtkIMContext implementations dynamically at runtime.
19938
19939         * modules/input/imcyrillic-translit.c: A sample input
19940         method (based on GtkIMContextSimple with an extra table),
19941         which demonstrates preedit strings and the module
19942         system for input modules
19943
19944         * gtk/queryimmodules.c: Program to query the available
19945         input modules and write the results into a file.
19946          
19947         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
19948         extra config options "im_module_file" (cache file for
19949         input method modules), and "im_module_path" - path
19950         to look for modules when generating cache file.
19951
19952         This doesn't scale.
19953
19954 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
19955
19956         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
19957         generic code from gtkthemes into a new abstraction
19958         GtkModule which has the logic for implementing
19959         a loadable module which implements a number of 
19960         GObject types.
19961
19962 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
19963
19964         * gtk/gtkeditable.[ch]: Convert GtkEditable from
19965         a class into an interface  
19966         
19967         * gtk/gtkoldeditable.[ch]: Move the old editable
19968         implementation into here, so legacy widgets can
19969         still rely on the implemenation. GtkOldEditable
19970         exports GtkEditable. Make selection handling
19971         code use new text conversion functions (and
19972         handle UTF-8 as a side-effect). Use GtkClipboard
19973         for CLIPBOARD.
19974
19975         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
19976         Adopt to match above changes.
19977
19978         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
19979         avoid GtkOldEditable implementation. Restructure
19980         to reduce number of places that modify state directly.
19981         Move to GtkBindingSet. Display the preedit string.
19982         Queue recomputation of PangoLayout and scroll position
19983         to improve effiency of doing complex changes naively.
19984         Add a menu with cut/copy/paste and input method selection.
19985
19986 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
19987
19988         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
19989         to set preedit string and attributes; display preedit string by
19990         inserting string and attributes at cursor when creating the
19991         GtkTextLineDisplay.
19992
19993         * gtk/gtktextlayout.c: Move all conversions between byte
19994         positions in PangoLayout and GtkTextIter into new functions
19995         line_display_iter_to_index/index_to_iter that properly
19996         handle the preedit string.
19997
19998         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
19999         it to return const char * (eventually will end up
20000         as GCONST char *, most likely.)
20001
20002         * gtk/gtktextview.[ch]: Handle the preedit string, call
20003         gtk_im_context_reset() as necessary, add a menu to switch
20004         input methods.
20005         
20006         * gtk/gtktextlayout.[ch]: Remove useless
20007         gtk_text_layout_get_log_attrs() function.
20008
20009 2000-11-11  Tor Lillqvist  <tml@iki.fi>
20010
20011         * gdk/gdk.def
20012         * gtk/gtk.def: Update.
20013
20014         * gdk/win32/*.c: Add last argument to g_type_register_static()
20015         calls.
20016
20017         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
20018
20019         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
20020         generated by older wheel mouse drivers. Get the correct y
20021         coordinate from WM_MOUSEWHEEL messages.
20022
20023         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
20024         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
20025         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
20026         Debugging functions.
20027
20028         * gdk/win32/gdkprivate-win32.h: Declare them.
20029
20030         * gdk/win32/gdkinput-win32.h: Add declaration for
20031         gdk_input_window_destroy().
20032
20033         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
20034
20035 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
20036
20037         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
20038         function to help handle keeping things in sync.
20039
20040 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
20041
20042         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
20043         BOXED marshallers.
20044
20045         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
20046         (gtk_list_store_class_init): use the new BOXED marshallers.
20047
20048         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
20049         new_with_values to new_with_types.
20050         (gtk_tree_store_get_column_type): add this.
20051         (gtk_tree_store_class_init): use the new BOXED marshallers.
20052
20053         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
20054         mirror some POINTER marshallers.
20055
20056 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
20057
20058         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
20059         allow more interesting iterators.  Also, made the lifecycle of
20060         iterators more explicit.
20061
20062         * gtk/gtktreemodelsort.[ch]: New model for sorting.
20063
20064         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
20065         types.
20066
20067 2000-11-09  Alexander Larsson  <alexl@redhat.com>
20068
20069         * demos/testgtk/menus.c:
20070         Changes to make the new testgtk compile after
20071         gtk_menu_append was removed.
20072
20073         * gdk/linux-fb/gdkdrawable-fb2.c
20074         (gdk_fb_get_depth, gdk_fb_get_visual,
20075         gdk_drawable_impl_fb_class_init): Implement
20076         these drawable functions. Now GtkImages work again.
20077
20078         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
20079
20080         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
20081         
20082         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
20083         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
20084         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
20085         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
20086
20087 2000-11-08  Havoc Pennington  <hp@pobox.com>
20088
20089         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
20090         visible_set args, don't know where these had gone, I thought they
20091         used to be there
20092
20093         * gtk/testtext.c: Add a menu item to apply invisibility tag;
20094         now we can test the feature and see that it's totally broken.
20095
20096 2000-11-08  Havoc Pennington  <hp@pobox.com>
20097
20098         Make DND copy pixbufs and tags when source and target share a 
20099         tag table.
20100         
20101         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
20102         in-process GTK_TEXT_BUFFER_CONTENTS target
20103         (gtk_text_view_drag_data_received): Paste from
20104         GTK_TEXT_BUFFER_CONTENTS if we receive it.
20105
20106 2000-11-08  Alexander Larsson  <alexl@redhat.com>
20107
20108         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
20109         API changes.
20110
20111         * gtk/gtkmenu.c: Add support for scrolling menus.
20112         Remove gtk_menu_append/prepend/insert, these have been moved to
20113         gtkcompat.h as #defines.
20114
20115         * gtk/gtkcompat.h.in:
20116         Add compatibility #defines for gtk_menu_append/prepend/insert
20117
20118         * gtk/gtkmenu.h: Add data needed for scrolling menus.
20119         GtkMenuPositionFunc gets an extra argument push_in.
20120         gtk_menu_append/prepend/insert removed.
20121         
20122         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
20123         positioning behaviour to fit to scrolling menus.
20124
20125         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
20126         into menuitem->submeny. That is wrong, and broke torn
20127         off submenus of torn off menus, since they were unrealized
20128         when the first menu was unrealized.
20129
20130         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
20131         gtk_menu_shell_select_item() since these need to be overridden in
20132         GtkMenu.
20133
20134         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
20135         positioning behaviour to fit to scrolling menus.
20136         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
20137         the current item so that it is prelighted when the menu pops up.
20138         This is a workaround to the fact that the menu doesn't get the
20139         initial enter event (due to grabs).
20140
20141         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
20142         s/gtk_menu_append/gtk_menu_shell_append/
20143
20144         * gtk/gtknotebook.c:
20145         s/gtk_menu_insert/gtk_menu_shell_insert/
20146
20147         * gtk/testgtk.c (create_menu, create_menus):
20148         Create the first menu with 50 items so that menu scrolling
20149         can be tested.
20150         
20151         
20152         Patch from Jonathan Blandford  <jrb@redhat.com>
20153
20154         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
20155         system to handle size requests.  First, we ask what the size of
20156         the toggle is.  Then, when allocating the size, we allocate the
20157         toggle_size first.  This way we can have multiple menu-item
20158         classes w/o needing a seperate class for each.
20159
20160         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
20161         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
20162
20163         * gtk/gtkcheckmenuitem.c
20164         (gtk_check_menu_item_toggle_size_request): New function to handle
20165         the toggle size-request.
20166
20167 2000-11-07  Havoc Pennington  <hp@redhat.com>
20168
20169         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
20170         Half-ass somewhat fix this function, so that scrolling to the
20171         insertion point works. Pango hacking is in the future to really
20172         fix it.
20173
20174         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
20175         length of data, no longer used.
20176
20177         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
20178         method contents in here, get rid of destroy method
20179         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
20180         that were backward. Remove debug spew.
20181         (cut_or_copy): Make the clipboard work with insert_range to
20182         preserve tags and pixbufs, not just the primary selection.
20183
20184 2000-11-07  Havoc Pennington  <hp@redhat.com>
20185
20186         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
20187         to gtk_text_mark_get_visible
20188
20189         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
20190         bug that was generating an invalid iterator
20191
20192         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
20193         ensure_char_offsets() in front of code placing the iter in an
20194         invalid state.
20195
20196         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
20197         make override_location arg const
20198         (paste): Replace the selection if we paste into the 
20199         current selection
20200
20201         * gtk/gtkselection.h: Remove "GtkSelectioData"
20202         (struct _GtkSelectionData): move the definition here.
20203
20204         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
20205         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
20206
20207         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
20208
20209         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
20210         (gtk_text_buffer_insert_range_interactive): implement
20211         (gtk_text_buffer_get_tags): Remove, replaced by
20212         gtk_text_iter_get_tags()
20213
20214         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
20215         limit parameter, to avoid infinite linear scan.
20216         (gtk_text_iter_backward_search): Add search limit
20217         (gtk_text_iter_forward_find_char): Add search limit
20218         (gtk_text_iter_backward_find_char): Add search limit
20219
20220 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
20221
20222         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
20223         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
20224         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
20225         gdk/linux-fb/gdkwindow-fb.c:
20226         use g_object_new() instead of g_type_create_instance() which
20227         is a private function for fundamental type implementations.
20228
20229         * gdk/linux-fb/gdkinput-ps2.c:
20230         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
20231         instead just store the current modifier state. Add a (somewhat broken)
20232         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
20233         Rename exported function gdk_input_ps2_get_mouseinfo to
20234         gdk_input_get_mouseinfo.
20235
20236         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
20237         gdk/linux-fb/gdkwindow-fb.c:
20238         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
20239         
20240
20241 2000-11-02  Havoc Pennington  <hp@redhat.com>
20242
20243         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
20244         use stock buttons. Should be 100% source compatible, appropriate
20245         filesel fields now point to dialog->vbox and dialog->action_area.
20246         On the bizarre side, dialog->action_area and filesel->action_area
20247         are not the same widget.
20248         (gtk_file_selection_init): Put some padding around the selection
20249         entry, so it isn't touching the GtkDialog separator.    
20250
20251         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
20252         use stock buttons, etc. Should also be source compatible.
20253         Set the dialog default title in _init not _new().
20254         
20255         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
20256         Use stock buttons; don't put a button box inside the existing
20257         dialog button box. Don't bother with push/pop colormap anymore.
20258
20259         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
20260         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
20261         for message dialog, and necessary for the font selection and color
20262         selection with help and apply buttons.
20263         
20264         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
20265         to the created button widget. Set GTK_CAN_DEFAULT on the button.
20266         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
20267         between buttons, put less padding around the action area.
20268         (gtk_dialog_run): Exit on unmap rather than on destroy. 
20269         This will also exit the loop if the widget is hidden.
20270         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
20271         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
20272         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
20273         special-case delete event.
20274
20275         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
20276         formatting
20277         
20278 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
20279
20280         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
20281         button to temporarily disable position recording in the
20282         "saved position" test.
20283
20284 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
20285
20286         * gtk/gtkthemes.c: added compat code that temporarily implements
20287         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
20288         going to be revamped by owen's upcoming GtkModule patches, but
20289         untill then people want gtk to build, right? ;)
20290
20291 2000-11-04  Havoc Pennington  <hp@pobox.com>
20292
20293         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
20294         list
20295
20296         * docs/Changes-2.0.txt: Add note about
20297         gtk_container_get_toplevels()
20298
20299         * gtk/gtktextview.h: formatting
20300         
20301         * gtk/gtktextview.c: don't start descriptions with "Returns",
20302         confuses gtk-doc
20303
20304 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
20305
20306         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
20307         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
20308
20309 2000-11-03  Havoc Pennington  <hp@redhat.com>
20310
20311         * gtk/gtktexttagtable.c: Docs
20312         (gtk_text_tag_table_size): return a signed int
20313
20314         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
20315         (gtk_text_tag_event): make the event_object a GObject
20316
20317         * gtk/gtktextview.c: Write API docs for all functions.
20318
20319         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
20320         for gtk_text_view_get_window_type() called on one of the private
20321         windows.
20322
20323         * gtk/gtktextview.c: Instead of accessing text_view->buffer
20324         directly, call get_buffer() which demand-creates a default
20325         buffer. So gtk_text_view_new() can be used to create a view with a
20326         default buffer in it, if you just want an empty text box users can
20327         put data in. Useful for GUI builders also.
20328
20329 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
20330
20331         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
20332         the charset encodign portion MUST be in lowercase.
20333         * gtk/gtkrc.az: added file for Azeri language
20334
20335 2000-11-03  Havoc Pennington  <hp@redhat.com>
20336
20337         Get widgets working on the btree/buffer side. Display of them 
20338         still doesn't work.
20339         
20340         * gtk/gtktextview.c: start implementing child widget stuff
20341
20342         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
20343
20344         * gtk/gtktextlayout.c: handle embedded widgets
20345
20346         * gtk/gtktextdisplay.c: handle embedded widgets
20347
20348         * gtk/gtktextchild.c: Implement all the child anchor goo
20349
20350         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
20351         function
20352
20353         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
20354         (insert_pixbuf_or_widget_segment): abstract out common portions of 
20355         creating a child anchor or a pixbuf segment.
20356         (gtk_text_btree_create_child_anchor): new function
20357         (gtk_text_btree_unregister_child_anchor): new function
20358
20359         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
20360         allocate_child signal on GtkTextLayout
20361
20362         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
20363         values
20364         (gtk_text_iter_get_child_anchor): new function
20365
20366         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
20367         default handler for the changed signal, which calls
20368         gtk_text_buffer_set_modified(), instead of just always emitting
20369         changed then calling set_modified() manually. I guess this is
20370         maybe more flexible. It seems logical.
20371
20372 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
20373
20374         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
20375         now.
20376
20377         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
20378
20379 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
20380
20381         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
20382         been marked static.
20383
20384 2000-11-02  Havoc Pennington  <hp@redhat.com>
20385
20386         * gtk/testgtk.c (create_labels): had a test backward
20387
20388         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
20389         fields, so the dest GC ends up with the correct clip origin, 
20390         etc. Fixes a bug where colored labels didn't redraw 
20391         properly.
20392
20393 2000-11-02  Alexander Larsson  <alexl@redhat.com>
20394
20395         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
20396         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
20397         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
20398         Add last argument to t_type_register_static call.
20399         
20400         * gdk/linux-fb/gdkdrawable-fb2.c:
20401         Add last argument to t_type_register_static call.
20402         export the get_image drawable virtual function.
20403
20404         * gdk/linux-fb/gdkimage-fb.c:
20405         Add last argument to t_type_register_static call.
20406         rename gtk_image_get to _gdk_fb_get_image and
20407         export it for use by gdkdrawable-fb2.
20408
20409         * gdk/linux-fb/gdkprivate-fb.h:
20410         export _gdk_fb_get_image.
20411
20412         * gdk/linux-fb/gdkselection-fb.c:
20413         Add new api call stubs.
20414
20415         * gtk/Makefile.am:
20416         Missing ( in linux-fb part.
20417
20418         * modules/linux-fb/Makefile.am:
20419         Must link with gdk_pixbuf or get unresolved symbol.
20420
20421 2000-11-01  Havoc Pennington  <hp@pobox.com>
20422
20423         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
20424         GTK_TYPE_TEXT_ITER and BOXED marshallers
20425
20426         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
20427
20428         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
20429         
20430         * gtk/gtk-boxed.defs: add GtkTextIter
20431
20432         * gtk/gtkmarshal.list: Add marshallers for text widget that 
20433         properly use OBJECT and BOXED
20434
20435 2000-11-01  Havoc Pennington  <hp@redhat.com>
20436
20437         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
20438
20439         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
20440         before returning it. 
20441         
20442 2000-11-01  Havoc Pennington  <hp@redhat.com>
20443
20444         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
20445         Clip the rectangle to be rendered to the drawable, since
20446         get_from_drawable() requires a region within the drawable
20447
20448 2000-11-01  Havoc Pennington  <hp@redhat.com>
20449
20450         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
20451         from coordinates.
20452
20453 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
20454
20455         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
20456         it isn't NULL.
20457
20458 2000-11-01  Havoc Pennington  <hp@pobox.com>
20459
20460         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
20461         on a label
20462         (gtk_label_finalize): unref the attr list if any.
20463
20464         * gtk/testgtk.c (create_get_image): close test on second click
20465         (make_message_dialog): close dialog if it exists
20466
20467         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
20468
20469         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
20470         gdk-pixbuf
20471
20472         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
20473         from Pango markup format
20474         (gtk_label_set_markup_with_accel): ditto but with accelerator
20475         parsing
20476
20477         * gtk/gtkimage.c (gtk_image_expose): reformatting.
20478
20479         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
20480         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
20481         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
20482         call gdk_window_get_origin().
20483
20484         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
20485         implement GDK_PIXBUF_ALPHA_FULL
20486         
20487 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
20488
20489         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
20490         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
20491         g_signal_handlers_disconnect_matched to block/unblock and disconnect
20492         multiple handlers respectively, instead of only treating the
20493         first handler found (bug reported by owen).
20494
20495 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
20496
20497         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
20498
20499         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
20500
20501         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
20502         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
20503         gtk/gtktreeviewcolumn.h: Fixed inline docs.
20504
20505         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
20506         widget.  Needs writing someday.
20507
20508         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
20509         the docs.
20510
20511 2000-10-30  Havoc Pennington  <hp@redhat.com>
20512
20513         * gtk/gtktextview.h, gtk/gtktextview.c:
20514         Rename delete_at_cursor delete_from_cursor, and 
20515         move to move_cursor.
20516
20517 2000-10-30  Havoc Pennington  <hp@redhat.com>
20518
20519         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
20520         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
20521         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
20522         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
20523         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
20524         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
20525         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
20526         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
20527         gtktexttypes.h, gtktextview.c, gtktextview.h:
20528
20529         Massive reindentation and reformatting. Arg alignment and comments
20530         still need fixing in various places.
20531
20532 2000-10-30  Havoc Pennington  <hp@redhat.com>
20533
20534         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
20535         to be named insert_at_cursor and delete_at_cursor so C++ can
20536         handle them.
20537
20538 2000-10-28  Tor Lillqvist  <tml@iki.fi>
20539
20540         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
20541         to get a double directory separator in case the home directory
20542         ends with one. This would cause trouble especially on Windows,
20543         where the path will be confused with the syntax for an an UNC
20544         (network share) path \\server\share\path.
20545         (gtk_rc_add_initial_default_files): Ditto.
20546
20547 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
20548
20549         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
20550
20551         * gtk/gtktextview.c: Use correct marshallers.
20552
20553 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
20554
20555         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
20556         use new iter stuff, and added all the appropriate signals et al.
20557
20558         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
20559         code is internal to gtk only.
20560
20561 2000-10-28  Tor Lillqvist  <tml@iki.fi>
20562
20563         * gtk/gtk.def
20564         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
20565         glib-genmarshal etc.
20566
20567 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
20568
20569         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
20570         parallel builds.
20571
20572 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
20573
20574         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
20575
20576 2000-10-27  Robert Brady  <robert@suse.co.uk>
20577
20578         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
20579         en_GB (British), ia (Interlingua).
20580
20581 2000-10-26  Havoc Pennington  <hp@redhat.com>
20582
20583         * gtk/gtktextiter.c (my_strrstr): fix constness warning
20584
20585         Fixed output of:
20586         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
20587         
20588         * gtk/gtktextsegment.c (char_segment_new): rename
20589         (_char_segment_new_from_two_strings): rename
20590         (_toggle_segment_new): rename
20591         
20592         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
20593         (make_clipboard_widget): make it static
20594         (text_get_func): static
20595         (text_clear_func): static
20596
20597         * gtk/gtkcolorsel.c (adjustment_changed): make this function
20598         static
20599         (hex_changed): make it static
20600         (hsv_changed): make it static
20601         (opacity_entry_changed): make it static
20602
20603         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
20604         (toggle_segment_check_func): rename with _gtk
20605
20606         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
20607         (_widget_segment_new): rename
20608         (_widget_segment_add): rename
20609         (_widget_segment_remove): rename
20610         (_widget_segment_ref): rename
20611         (_widget_segment_unref): rename
20612
20613         * gtk/gtktextmark.c (_mark_segment_new): Rename
20614         _gtk_mark_segment_new   
20615
20616 2000-10-26  Havoc Pennington  <hp@redhat.com>
20617
20618         * gtk/gtkmarshal.list: add new marshallers used by the text widget
20619         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
20620         types
20621
20622         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
20623         marshaller types
20624
20625         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
20626         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
20627         license on these files.
20628
20629         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
20630         work.
20631
20632         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
20633         runtime random number different for each tree, instead of 
20634         a constant I made up.
20635
20636 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
20637
20638         * gtk/Makefile.am: buncha cleanups, kludged build sources
20639         dependencies with a Makefile: oldest-source-stamp dependancy
20640         for the moment. automake is really fighting us here, with
20641         intentionally not allowing user-defined rules or dependancies
20642         prior to it's -include $(DEP_FILES) statement. sucks rocks!
20643
20644         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
20645         to public headers. tehy have a comment stating that they are
20646         "semi-public" aren't included by gtk.h and if enums popup there,
20647         they can be /*< skip >*/-ed.
20648
20649         * gtk/gtktextlayout.h: 
20650         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
20651         added LGPL... <SIGH>
20652
20653 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
20654
20655         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
20656         GtkTreeIter.  Added iterators everywhere.
20657
20658         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
20659
20660         * gtk/gtktreeviewselection.c: Changed to use the iterators.
20661
20662         * gtk/gtktreestore.c: Changed to use the iterators.
20663
20664         * gtk/gtkliststore.c: Commented out the code.  Will convert to
20665         iterators tomorrow.
20666
20667         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
20668         iterators tomorrow.
20669
20670         * gtk/treestoretest.c: Changed to use iterators.
20671
20672         * demos/testgtk/main.c: Moved to use the new iterator system.
20673
20674 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
20675
20676         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
20677         localization misbehaviour.
20678
20679         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
20680         a useless type without copy/free.
20681
20682         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
20683         of GTK_TYPE_CTREE_NODE.
20684
20685 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
20686
20687         * gtk/gtksignal.c:
20688         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
20689         applicable.
20690
20691         * gtk/gtk-boxed.defs (GtkSelectionData): specify
20692         gtk_selection_data_copy and gtk_selection_data_free
20693         do GtkSelectionData work as params in signals.
20694
20695 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
20696
20697         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
20698         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
20699         couldn't they at least give it a non-standard name?
20700         
20701         * gtk/gtktextlayout.c: arg! yet another implementation of
20702         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
20703
20704         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
20705         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
20706         home. now i know this _is_ a conspiracy.
20707
20708         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
20709         ::state-changed.
20710
20711         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
20712         (gtk_accel_group_create_add): marshaller signature fixups.
20713
20714         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
20715         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
20716
20717         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
20718         anymore.
20719
20720 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
20721
20722         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
20723         due to the signal system changes, it wouldn't build currently. to
20724         be fixed soon.
20725
20726         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
20727
20728         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
20729         so it needs gtk_marshal_VOID__ENUM() instead of
20730         gtk_marshal_NONE__UINT().
20731
20732         * gdk/gdk*.c: adapted type registration functions.
20733
20734         * gtk/gtkbindings.c:
20735         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
20736         gone.
20737
20738         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
20739
20740         * gtk/gtkobject.c:
20741         (gtk_object_destroy):
20742         (gtk_object_shutdown): fixed recursion guards. basically we have to
20743         catch the case where any of GObject.shutdown() or gtk_object_destroy()
20744         is called during ::destroy, and avoid recursion there.
20745
20746         * gtk/gtktypeutils.c:
20747         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
20748         boxed_copy/boxed_free. this needs a more general solution based on a
20749         publically installed code-generator utility.
20750
20751         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
20752         glib's gobject has support for that now.
20753         define GtkSignalMarshaller in terms of GSignalCMarshaller.
20754
20755 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
20756
20757         * gtk/gtksignal.[hc]:
20758         * gtk/gtkmarshal.[hc]:
20759         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
20760         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
20761         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
20762         care of that.
20763
20764         * *.c: marshaller name fixups.
20765
20766         * gtk/gtkmarshal.list: added a comment briefing the format.
20767
20768 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
20769
20770         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
20771         compatibility macros here now. more specifically, most of
20772         the API is preserved (yes, _most_, nonwithstanding the
20773         following exceptions listed, the API is stil lHUGE ;)
20774         things that got removed completely:
20775         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
20776         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
20777         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
20778         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
20779         gtk_signal_remove_emission_hook().
20780         non-functional functions variants:
20781         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
20782         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
20783         not supported anymore.
20784         (gtk_signal_compat_matched): new internal function to aid
20785         implementation of the compatibility macros, it  provides
20786         functionality to block/unblock/disconnect handlers based
20787         on func/data.
20788
20789         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
20790
20791         * *.c: adaptions to new type registration API signatures.
20792
20793 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
20794
20795         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
20796
20797 2000-10-25  Robert Brady  <robert@suse.co.uk>
20798
20799         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
20800         gdk_property_delete): If window == NULL, assume the root window.
20801         (restoring the behaviour that was in 1.2).
20802         
20803         * gtk/testtext.c (save_buffer): Allow creation of new files when
20804         saving.
20805
20806         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
20807         calls to read().
20808
20809 2000-10-25  Tor Lillqvist  <tml@iki.fi>
20810
20811         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
20812
20813         * gdk/win32/gdkdrawable-win32.c
20814         * gdk/win32/gdkimage-win32.c
20815         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
20816         X11 backend.
20817
20818         * gdk/win32/gdkcc-win32.c
20819         * gdk/win32/gdkcolor-win32.c
20820         * gdk/win32/gdkfont-win32.c
20821         * gdk/win32/gdkinput-win32.c
20822         * gdk/win32/gdkmain-win32.c
20823         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
20824
20825 2000-10-24  Havoc Pennington  <hp@redhat.com>
20826
20827         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
20828         it a static function
20829
20830         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
20831         redraw text when a tag is applied to it.
20832
20833         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
20834         (gtk_text_tag_affects_nonsize_appearance): private functions to
20835         see if a tag requires various kinds of redraw/layout to be queued
20836         up.
20837
20838         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
20839
20840         * gtk/testtext.c (fill_example_buffer): Put the cursor 
20841         at the start of the buffer, so search works by default
20842
20843         * gtk/gtktextiter.c (lines_match): init match_start always
20844
20845         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
20846         function, get iter at a line + a byte index
20847
20848         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
20849         to set byte position within a line
20850         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
20851
20852 2000-10-23  Havoc Pennington  <hp@redhat.com>
20853
20854         * gtk/testtext.c: Re-enable the "find" dialog
20855
20856         * gtk/testgtk.c: Add test for gdk_drawable_get_image
20857         
20858         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
20859         the arguments to gdk_draw_drawable were in the wrong order
20860         (gdk_window_paint_init_bg): This function was ignoring the
20861         init_region, instead of clipping to it, so the entire backing
20862         pixmap was cleared on every begin_paint()
20863         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
20864         was in here again, the loop kept using the same GtkWindowPaint
20865         over and over.
20866         (gdk_window_begin_paint_region): Fix a bug where we had two
20867         x_offset instead of x_offset and y_offset
20868
20869         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
20870         before we get the image.
20871         (gdk_draw_drawable): get the composite before we draw the drawable.
20872         (gdk_drawable_real_get_composite_drawable): default
20873         get_composite_drawable implementation that returns the drawable 
20874         itself
20875
20876         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
20877         get_composite_drawable virtual function
20878
20879         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
20880         list-walking bug
20881
20882         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
20883         make this work if the source drawable is a GdkDrawableImplX11
20884         instead of a public drawable type. This is really broken; the
20885         problem is that GdkDrawable needs a virtual method get_xid(), but
20886         of course that doesn't work in practice. Enter RTTI.
20887
20888         Also, improve mismatched depth message.
20889
20890         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
20891         GdkPixmap
20892
20893         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
20894         install _gdk_x11_get_image as our implementation of get_image
20895         
20896         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
20897         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
20898
20899         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
20900         gdk_drawable_get_image
20901
20902         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
20903
20904         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
20905         get_image
20906
20907         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
20908         trailing semicolon after for loop
20909
20910 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
20911
20912         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
20913         where font_desc for widget's context lagged widget's font_desc by
20914         one step.
20915
20916 2000-10-22  Tor Lillqvist  <tml@iki.fi>
20917
20918         * gdk/win32/gdkgc-win32.c
20919         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
20920
20921         * gtk/makefile.mingw.in
20922         * gtk/gtk.def: Updates.
20923
20924         * gtk/testgtk.c: sleep() is called _sleep in MS's C
20925         library.
20926
20927         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
20928
20929         * gtk/makefile.msc: Remove
20930
20931         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
20932
20933         * gtk/Makefile.am: Add it.
20934
20935         * configure.in: Generate it.
20936
20937         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
20938         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
20939         something even if not implemented, to satisfy picky MSVC.
20940
20941         Patches by Hans Breuer:
20942         
20943         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
20944         SetBkMode() and SetTextAlign() before calling
20945         pango_win32_render().
20946
20947         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
20948         Set hcliprgn to NULL after destroying it.
20949         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
20950
20951         * gdk/win32/gdkgeometry-win32.c
20952         (_gdk_windowing_window_queue_antiexpose): More effective
20953         implementation.
20954
20955         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
20956         depth as default, not the visual's.
20957
20958         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
20959         against empty title.
20960
20961         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
20962         IMAGE_PRIVATE_DATA.
20963
20964         * gdk/win32/gdkimage-win32.c: Use it.
20965
20966 2000-10-22  Robert Brady  <robert@suse.co.uk>
20967
20968         * configure.in: Check for bind_textdomain_codeset
20969
20970         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
20971         present, make use of it.
20972
20973         Add a translatable string "default:LTR" which, if translated
20974         to "default:RTL", will cause the default direction to be
20975         Right-to-Left.
20976
20977         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
20978         direction if marked as flippable.
20979
20980         * gtk/gtkhscale.c: Mark widget as flippable.
20981         
20982 2000-10-04  Havoc Pennington  <hp@redhat.com>
20983
20984         * gtk/testgtk.c (create_buttons): create some stock buttons
20985         with the default accel group
20986         (create_image): test some new GtkImage features
20987         (make_message_dialog): test GtkMessageDialog
20988         (create_modal_window): fix someone's bizzarro indentation
20989
20990         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
20991         GTK_WIN_POS_CENTER_ON_PARENT. 
20992         Add "destroy with parent" setting, which means the window goes
20993         away with its transient parent.
20994         (gtk_window_get_default_accel_group): get the default accel group
20995         for the window.
20996         (gtk_window_set_destroy_with_parent): set/unset destroy with
20997         parent flag
20998         (gtk_window_read_rcfiles): invalidate icon set caches
20999         after reloading rcfiles 
21000
21001         * gtk/gtkenums.h (GtkWindowPosition): add
21002         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
21003         on its parent window when the dialog is mapped for the first time.
21004
21005         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
21006         a simple message dialog class
21007         
21008         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
21009         handler to emit response signal, and maybe later it would
21010         honor a hide_on_delete flag - though that isn't there yet.
21011         Set border width on the vbox to 2, so we get some padding.      
21012         Use a button box for the action area.
21013         (gtk_dialog_key_press): synthesize a delete event if Esc
21014         is pressed and the GtkWidget key press handler didn't 
21015         handle the escape key.
21016         (gtk_dialog_new_with_buttons): new function creates a dialog
21017         with some default buttons in it.
21018         (gtk_dialog_add_action_widget): add an activatable widget
21019         as a button in the dialog - you can also add a non-activatable
21020         widget by accessing the action area directly.
21021         (gtk_dialog_add_button): add a simple button - stock ID or 
21022         label - to the action area
21023         (gtk_dialog_response): emit response signal
21024         (gtk_dialog_run): block waiting for the dialog, return 
21025         the response. Override normal delete_event behavior, so that 
21026         delete_event does nothing inside gtk_dialog_run().
21027         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
21028         emitted when an action widget is clicked or the dialog gets
21029         delete_event
21030
21031         * gtk/gtk.h: add gtkmessagedialog.h
21032
21033         * gtk/Makefile.am: add gtkmessagedialog.[hc]
21034
21035 2000-10-18  Havoc Pennington  <hp@redhat.com>
21036
21037         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
21038         where any number of empty lines would get skipped
21039
21040         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
21041         edge.
21042
21043         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
21044         warning about invalid iterators (explain more thoroughly)
21045         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
21046
21047         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
21048         big
21049
21050         * demos/*.c: Add error handling
21051
21052         * gtk/gtktextbuffer.c: don't modify const iterators
21053
21054         * gtk/gdk-pixbuf-loader.c: Add full error handling here
21055
21056         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
21057         on file load
21058
21059         * gtk/gtkiconfactory.c: Update to reflect addition of error
21060         handling to gdk-pixbuf loaders
21061
21062 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
21063
21064         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
21065         move to new modularized testgtk.
21066
21067 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
21068
21069         * gtk/gtktreeview.c: Draw the arrows correctly.
21070
21071         * gtk/gtktreemodel.c: Added user docs.
21072
21073         * gtk/gtk.h: remove gtktreedatalist.h.
21074
21075         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
21076         parent when generating my type.
21077
21078         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
21079         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
21080
21081 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
21082
21083         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
21084         GtkTreeModel from object to interface.
21085
21086 2000-10-16  Havoc Pennington  <hp@redhat.com>
21087
21088         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
21089         compilation
21090
21091 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
21092
21093         * gtk/gtktreeselection.c: Add API documentation to all public
21094         functions.
21095
21096         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
21097         functions.
21098
21099 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
21100
21101         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
21102         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
21103         docs to all public functions.
21104
21105         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
21106         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
21107         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
21108         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
21109         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
21110         issue.
21111
21112 2000-10-14  Robert Brady  <robert@suse.co.uk>
21113
21114         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
21115
21116 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
21117
21118         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
21119         values other then G_TYPE_STRING.
21120         * gtk/gtktreeselection.c: Minor commenting updates.
21121         * gtk/gtktreeview.c: Format updates.
21122
21123 2000-10-09  Tor Lillqvist  <tml@iki.fi>
21124
21125         * README.win32: Update.
21126
21127         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
21128         lines that had been deleted by mistake (?).
21129
21130         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
21131         also the case fg==white and bg==black (but still not randomly
21132         coloured cursors). Thanks to Wolfgang Sourdeau.
21133
21134         * gdk/win32/*.c: Silence gcc -Wall.
21135
21136         * gtk/gtk.def: Add missing entry points.
21137
21138         Fixes by Hans Breuer:
21139
21140         * gdk/makefile.msc
21141         * gdk/win32/makefile.msc: Update.
21142
21143         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
21144         some MSVC thing, presumably), cause breakpoint on failures. Add
21145         GDK_NOR case. Call g_log_set_always_fatal.
21146
21147         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
21148         should be pased by reference.
21149         
21150         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
21151         
21152         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
21153
21154         * gdk/win32/gdkevents-win32.c
21155         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
21156
21157         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
21158         implementation object.
21159
21160         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
21161         not just windows.
21162         
21163         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
21164         Use the wrapper object.
21165         
21166 2000-10-06  Havoc Pennington  <hp@redhat.com>
21167
21168         * Makefile.am (SRC_SUBDIRS): contrib subdir
21169
21170         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
21171         so it can be used in Xlib version
21172
21173         * demos/testpixbuf.c (update_timeout): error checking from 1.0
21174         tree
21175
21176         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
21177         change from 1.0 tree that returns first frame of animation
21178         if the loaded file is an animation.
21179
21180         * contrib: add new directory to hold stuff that comes with GTK+
21181         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
21182         
21183         * configure.in: add contrib/*
21184
21185 2000-10-05  Havoc Pennington  <hp@redhat.com>
21186
21187         * demos/testpixbuf-save.c: add pixbuf save test
21188
21189         * demos/Makefile.am: add testpixbuf-save.c
21190
21191 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
21192
21193         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
21194         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
21195         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
21196         * gtk/gtktreeselection.[ch]: Replaced
21197         "node_selected"/"node_unselected" signal with "selection_changed"
21198         signal.
21199
21200 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
21201
21202         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
21203         tree widget.
21204
21205 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
21206
21207         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
21208         drawing.
21209
21210 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
21211
21212         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
21213         Move list pointer forwards before removing item from
21214         list. (Crash reported by Salmaso Raffaele)
21215
21216         * gdk/gdkwindow.h: Remove spurious trailing ,
21217
21218         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
21219         dependencies on uninstalled libraries, sorry folks.
21220
21221 2000-10-04  Havoc Pennington  <hp@redhat.com>
21222
21223         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
21224         gtk/gtkiconfactory.c: Fix copyrights    
21225
21226         * demos/testpixbuf.c: add inline pixbuf test
21227         
21228 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
21229
21230         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
21231         Add gdk_window_iconify.
21232
21233         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
21234         (gdk_window_set_geometry_hints): Add win_gravity
21235         to geometry structure.
21236
21237         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
21238         Implement _NET_WM_PING.
21239
21240         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
21241         Set _NET_WM_PID on the client leader.
21242
21243         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
21244         Handle UTF-8 better.
21245
21246         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
21247         UTF-8 better, set _NET_WM_NAME as well. Only set
21248         icon name if it hasn't previously been explicitely 
21249         set.
21250
21251 2000-10-03  Havoc Pennington  <hp@redhat.com>
21252
21253         * gtk/testtextbuffer.c: clean up trailing whitespace,
21254         add extensive tests for tag toggle iteration.
21255         
21256         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
21257         distance
21258
21259         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
21260         optimize case where the tag root is on level 1
21261         (gtk_text_line_previous_could_contain_tag): attempt to implement
21262         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
21263         functionality
21264
21265         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
21266         Implement this, though not very efficiently.
21267
21268         * gtk/gtktextiterprivate.h: reformat
21269
21270         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
21271         iterator
21272
21273         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
21274         this to properly revalidate the iterators.
21275
21276         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
21277         properly at the end of the line (and therefore on empty lines)
21278
21279         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
21280         maybe we should return a value...
21281
21282 2000-10-03  Tor Lillqvist  <tml@iki.fi>
21283
21284         * config.h.win32: Guard definition of alloca(). glib.h now handles
21285         that.
21286
21287         * gdk/gdk.def
21288         * gtk/gtk.def: Add new entry points.
21289
21290         Changes just to make GTK+ build without errors on Win32. No hope
21291         of it working in its current state, though...:
21292         
21293         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
21294         some functions from the X11 backend, just to make GTK+ build.
21295
21296         * gdk/makefile.mingw.in
21297         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
21298         number. Add new object files.
21299
21300         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
21301         GetMessageTime to get timestamp (where on X11 uses
21302         gdk_x11_get_server_time()).
21303
21304 2000-10-02  Havoc Pennington  <hp@pobox.com>
21305
21306         * gtk/gtktextview.c: text_window_* weren't static and should have
21307         been.
21308         Start work on child widgets; not yet complete, syncing to 
21309         office computer.
21310
21311         * gtk/gtktextchild.h: change this to contain a public interface,
21312         starting work on child interfaces.
21313         * gtk/gtktextchildprivate.h: move private interfaces here
21314
21315         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
21316
21317         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
21318         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
21319         gtk/gtktextmark.c: copyright notices
21320
21321         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
21322         internal functions      
21323
21324         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
21325         internal function
21326
21327         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
21328         Reformatting    
21329
21330 2000-09-30  Havoc Pennington  <hp@pobox.com>
21331
21332         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
21333         NULL start/end pointers
21334
21335         * gtk/gtktextbuffer.c: Write some docs
21336         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
21337         NULL, so you can just check whether there's a selection.        
21338
21339         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
21340         cleanup_line or segments_changed ourselves, it gets done 
21341         in unlink_segment
21342
21343         * gtk/gtktextmark.h:
21344         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
21345         
21346         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
21347
21348         * gtk/gtktextmark.c: delete some more old Tk cruft
21349
21350         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
21351         mark before removing it, so we can emit MARK_DELETED with a valid
21352         pointer.
21353         (gtk_text_buffer_mark_set): hold ref across signal emission
21354
21355         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
21356         whining about attempts to delete special marks
21357
21358         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
21359         underscore, since it's internal.
21360
21361         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
21362         now implemented in terms of iterators in gtktextiter.h
21363
21364         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
21365         New function, destructively sets contents of buffer. Also 
21366         a convenient way to clear the buffer by setting text to ""
21367
21368         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
21369         multiline string literal
21370
21371         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
21372         text changes.
21373
21374         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
21375         is not dereferenceable
21376         (gtk_text_iter_forward_lines): fix return value
21377
21378 2000-09-29  Havoc Pennington  <hp@redhat.com>
21379
21380         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
21381
21382         * gtk/gtktextview.c: Implement drag thresholding; change functions 
21383         that set border window size to have nicer name
21384         (gtk_text_view_mark_set_handler):  Fix this to have the 
21385         right signature.
21386
21387         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
21388
21389         * gtk/testtext.c: Update with API changes, put line numbers on 
21390         both sides.
21391         
21392         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
21393         with this
21394
21395         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
21396         pixbuf; delete a big block of #if 0 Tk code
21397
21398         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
21399         insert_pixmap with insert_pixbuf
21400
21401 2000-09-29  Martin Baulig  <baulig@suse.de>
21402
21403         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
21404         confusion with the GdkPixbuf of the GNOME 1.x platform.
21405
21406 2000-09-29  Havoc Pennington  <hp@pobox.com>
21407
21408         * gtk/gtktextview.c: Implement the side windows.
21409
21410         * gtk/testtext.c: Implement simple line numbering in the 
21411         left side window; seems to make scrolling sloooow. Oops.
21412         Also, cursor blink is for some reason causing redraws
21413         of the line numbers. Should investigate...
21414
21415 2000-09-28  Havoc Pennington  <hp@redhat.com>
21416
21417         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
21418         scrolling child windows, and draw focus rectangle properly.
21419         
21420         (gtk_text_view_buffer_to_window_coords):
21421         Coordinate transformation to deal with all these freaking windows
21422         and offsets
21423         (gtk_text_view_window_to_buffer_coords): transform the other way
21424
21425         * gtk/testtext.c (create_buffer): Update to match Pango API change
21426
21427         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
21428         anonymous tags
21429         (foreach_unref): don't emit remove signal from finalize, just
21430         set tag's parent to NULL
21431
21432 2000-09-26  Havoc Pennington  <hp@redhat.com>
21433
21434         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
21435         Fix some warnings       
21436
21437 2000-09-26  Havoc Pennington  <hp@redhat.com>
21438
21439         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
21440         headers into the private header list
21441
21442         * Makefile.am (pkgconfig_DATA): install pkg-config files
21443
21444         * configure.in: add pkg-config files
21445
21446         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
21447
21448         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
21449         outstanding icon caches on theme change.
21450
21451         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
21452         important types:
21453
21454         (GtkIconSource): Specification for creating a pixbuf 
21455         appropriate for a direction/state/size triplet from 
21456         a source pixbuf or filename
21457
21458         (GtkIconSet): List of GtkIconSource objects that are used to
21459         create the "same" icon (e.g. an OK button icon), and cache for
21460         rendered icons
21461
21462         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
21463         up the icon set for a given stock ID.  GTK maintains a stack of
21464         GtkIconFactory to search, and applications or libraries can add
21465         additional icon factories on top of the stack
21466         
21467         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
21468         the set of GtkIconSource specified for a given stock ID into 
21469         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
21470         RcStyle, under the specified stock ID.
21471
21472         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
21473         render_icon used to derive a GdkPixbuf from a GtkIconSource.
21474         This allows people to theme how prelight, insensitive, etc. are
21475         done.
21476
21477         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
21478         icon factories for a style, and return the resulting 
21479         icon set if any.
21480
21481         (gtk_style_render_icon): Render an icon using the render_icon 
21482         method in the GtkStyleClass.
21483
21484         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
21485         Use the style for a given widget to look up a stock ID, get the
21486         icon set, and render an icon using the render_icon method 
21487         of the style
21488
21489         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
21490         (contains information about a stock item), the built-in stock item
21491         IDs, and functions to add/lookup stock items.
21492
21493         * gtk/stock-icons/*: Stock icons that come with GTK
21494
21495         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
21496         a button based on a GtkStockItem
21497         (gtk_button_new_accel): Takes a uline string and accel group, and
21498         installs the accelerator.
21499
21500         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
21501         image-display widget.
21502
21503 2000-09-25  Havoc Pennington  <hp@redhat.com>
21504
21505         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
21506
21507         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
21508         Fix a bug when removing node data, we didn't properly 
21509         re-splice the linked list after removing the data.
21510
21511         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
21512         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
21513
21514         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
21515
21516         * gtk/gtktextlayout.c (set_para_values): Set tab array 
21517         for the layout from the GtkTextTag.
21518
21519         * gtk/gtktexttypes.h: delete tab and search cruft, 
21520         remove g_convert() in favor of GLib version
21521
21522         * gtk/gtktexttypes.c: remove tab implementation from here,
21523         move to Pango
21524
21525         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
21526         tab stuff using new PangoTabArray from Pango
21527
21528         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
21529         unused border_width stuff
21530
21531 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
21532
21533         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
21534         glib) and now useless utf_to_latin1() latin1_to_utf()
21535
21536         * gtk/gtktextview.[ch]: Change ::move_insert and
21537         ::delete_text action signals to ::move and ::delete;
21538         create the signals with the right enumeration type,
21539         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
21540         C-v bindings, change Home, End to move to beginning/end
21541         of line, Add C-Home C-End to move to beginning/end
21542         of buffer. Change ::cut_text to ::cut_clipboard, etc;
21543         combine ::scroll_text into ::move; use new GtkSelectionData
21544         functions to simplify DND text handling.
21545         
21546         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
21547         deletion enumerations here, rename enumeration values to 
21548         be consistently plural.
21549
21550         * gtk/gtktextbuffer.c: Use new clipboard interfaces
21551         for cut/copy/paste and primary selection.
21552
21553         * gtk/gtktextbuffer.[ch]: Remove excess time and
21554         'interactive' arguments from cut/copy/paste;
21555         rename cut to cut_clipboard, etc; remove
21556         gtk_text_buffer_get_clipboard_contents().
21557
21558         * gtk/gtktextlayout.[ch]: Add 
21559         gtk_text_layout_move_iter_to_line_end() to move the iter to 
21560         line ends.
21561
21562         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
21563         Functions to set or get a UTF-8 string on the selection
21564         data.
21565
21566         * gtk/gtkclipboard.[ch]: New, simplified selection handling
21567         interfaces.
21568
21569         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
21570         created widgets - one of these is useless if we don't.
21571
21572         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
21573         a public function clear all targets registered for the
21574         widget.
21575
21576         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
21577         Never call gtk_widget_realize() - that was just asking
21578         for bizarre side-effects.
21579
21580         * gtk/gtkselection.c (gtk_selection_owner_set): Call
21581         gdk_selection_owner_set even if the widget is the
21582         same so that we reliably update the timestamp on
21583         the server.
21584
21585         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
21586         gdk_x11_get_server_time() function.
21587         
21588         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
21589         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
21590         Add some tricky filtering on serial numbers for
21591         selection clear events to fix up long-standard
21592         race condition FIXME's in gtkselection.c.
21593
21594         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
21595         routines to convert from utf8 to compound text or
21596         STRING and from a text property to UTF-8.
21597
21598         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
21599         a convenience function gdk_get_current_event_time().
21600
21601         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
21602         and free selection_data->data properly
21603
21604 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
21605
21606         * gtk/gtkthemes.c: Remove some unecessary includes.
21607
21608 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
21609
21610         * gtk/gtktextdisplay.c
21611         * gtk/gtktextlayout.c
21612         * gtk/gtktexttag.c
21613         * gtk/gtktexttag.h
21614         * gtk/testtext.c: Change the overstrike property to strikethrough,
21615         to closer match pango.
21616
21617 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
21618
21619         * gtk/gtktextview.c: Fix up visibility so that focus,
21620         cursor_visible and blink interact properly.  Reenable cursor blink
21621         which had been roughly disabled. Make blink and focus
21622         properly per-view.
21623
21624         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
21625         Add a flag for whether to display insertion cursor and
21626         a function to set the flag.
21627
21628         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
21629         get_line_y() to get_line_yrange(), to be a bit more generally
21630         useful.
21631
21632 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
21633
21634         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
21635           do stop_navigating_submenu, to clear last timeout properly.
21636           Also in gtk_menu_motion_notify move ignore_enter above
21637           the conditional to make it always happen as suggested by Owen
21638
21639 2000-09-07  Tor Lillqvist  <tml@iki.fi>
21640
21641         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
21642
21643         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
21644         w32api headers.
21645
21646         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
21647         declarations.
21648
21649         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
21650         (gdk_win32_get_colormap): A line had been deleted by mistake.
21651
21652         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
21653         (gdk_event_translate): Handle more virtual keycodes to be able to
21654         generate GDK events for Control-comma, Control-period, etc.
21655
21656         * gtk/gtk.def: Add some missing entry points.
21657
21658 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
21659
21660         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
21661         Doc comment fixing. (Mostly non-matching parameter names.)
21662
21663         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
21664         comments a little to avoid looking like a doc comment.
21665
21666         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
21667         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
21668         conversions be changed to GError?)
21669
21670         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
21671         Move private #defines into .c file.
21672
21673         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
21674         order of argument addition, remove duplicates.
21675
21676         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
21677         parent class is FrameClass, not BinClass.
21678
21679         * gtk/gtk.h: Add gtkinvisible, which was missing.
21680         (It's occasionalyl useful for client apps, if seldom.)
21681
21682         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
21683         #define.
21684
21685 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
21686
21687         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
21688         coordinates when creating window, instead of GDK-space
21689         coordinates. (Avoid BadValue on too large windows.)
21690
21691 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
21692
21693         * configure.in (use_mmx_asm): Remove conftest* after use along the
21694         lines of AC_TRY_COMPILE.        
21695         
21696         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
21697         of g_dirname, which is deprecated.
21698         (gtk_rc_parse_any): Removed calls to
21699         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
21700
21701         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
21702         Removed calls to g_hash_table_{freeze,thaw}, as they are
21703         deprecated now.
21704
21705         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
21706         instead of g_basename.
21707         
21708 2000-09-04 Elliot Lee <sopwith@redhat.com>
21709         
21710         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
21711         ANSI warning.
21712
21713 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
21714
21715         * gtk/gtkwidget.h:  Add some documenting comments about 
21716           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
21717           just as owen said on irc.
21718
21719         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
21720           set HAS_DEFAULT.  Only set it if there isn't another window
21721           holding it (a focus window which RECEIVES_DEFAULT) and only unset
21722           it if the widget is not the focused window with RECEIVES_DEFAULT.
21723           This fixes weird double default bugs in dialogs which has things
21724           call gtk_window_set_default at times.
21725
21726 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
21727
21728         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
21729         Nils Barth and David Santiago to improve submenu
21730         navigation. The patch does this by creating a triangular
21731         region from the point where the pointer leaves the
21732         menu to the submenu.  While the pointer is in
21733         that region and a timeout has not expired, events 
21734         that would cause the active submenu to change are
21735         ignored.
21736
21737 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
21738
21739         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
21740         moving a toplevel window immediately after sizing it would
21741         result in it being sized back to the old size since 
21742         impl->width, impl->height aren't updated until we hear
21743         back from the server. There is still a (longstanding) bug
21744         here that gdk_window_get_size() will give the wrong size
21745         until we do hear back.
21746
21747 2000-08-31  Havoc Pennington  <hp@redhat.com>
21748
21749         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
21750         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
21751         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
21752         Rename GtkTextStyleValues to GtkTextAttributes
21753
21754 2000-08-31  Havoc Pennington  <hp@pobox.com>
21755
21756         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
21757         for rapid testing whether an iterator is the end iterator
21758         (gtk_text_btree_new): init end line cache
21759         (gtk_text_line_is_last): use fast cached line to 
21760         see if we're the last line.
21761         (get_last_line): use cached line here too, should 
21762         speed up some random unrelated code.
21763         
21764 2000-08-30  Havoc Pennington  <hp@pobox.com>
21765
21766         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
21767         signals.
21768
21769         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
21770         delete_text signals. This allows the signals to be used for
21771         implementing undo.
21772
21773         * gtk/gtktextbuffer.c: Change signal handler signatures; 
21774         provide "interactive" argument when emitting insert_text or
21775         delete_text signal.
21776         
21777 2000-08-30  Havoc Pennington  <hp@pobox.com>
21778
21779         * gtk/gtktextbuffer.c: Docs
21780
21781 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
21782
21783         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
21784         from switch statements, since Tor removed the enumeration
21785         value.
21786         
21787         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
21788         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
21789
21790 2000-08-29 Elliot Lee <sopwith@redhat.com>
21791         * */*.h: Use G_GNUC_CONST.
21792
21793 2000-08-27  Havoc Pennington  <hp@pobox.com>
21794
21795         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
21796         minor indentation fixes, inserted some FIXME about stuff I
21797         realized was broken while documenting it.
21798         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
21799         GTK convention  
21800
21801 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
21802
21803         * gtk/testgtk.c (create_styles): Fix double free of
21804         font desc.
21805
21806 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
21807
21808         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
21809         
21810         * gtk/testgtk.c (create_styles): Add a test for modifying
21811         the style through gtk_widget_modify_*.
21812
21813         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
21814         a function to get the current modifier style.
21815
21816         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
21817         of the passed in GtkRcStyle instead of ref'ing it.
21818
21819         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
21820
21821 2000-08-20  Tor Lillqvist  <tml@iki.fi>
21822
21823         * gdk/gdkimage.h
21824         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
21825         shared memory image+pixmap GdkImage type, or
21826         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
21827         I am dropping that.
21828
21829         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
21830         actually call gtk_init_abi_check(), passing also
21831         sizeof(GtkWindow). Ditto for gtk_init_check(). 
21832
21833         * gtk/gtk.def
21834         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
21835         New functions, used to check that the GTK+-using code has been
21836         compiled using the correct compiler and switches. In particular,
21837         with gcc one has to use the -fnative-struct switch as GTK+ is
21838         compiled with that.
21839
21840 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
21841
21842         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
21843         ->prev fields when merging lists. (Found simultaneously
21844         by Pawel Salek and Jakub Jelinek)
21845
21846 2000-08-12  Tor Lillqvist  <tml@iki.fi>
21847
21848         * gdk/gdk.def
21849         * gtk/gtk.def: Add missing entries.
21850
21851         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
21852         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
21853
21854         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
21855         function. Dummy implementation at this point.
21856
21857         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
21858         rules. Undefine GTK_COMPILATION when compiling the test programs.
21859         
21860         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
21861
21862 2000-08-11  Tor Lillqvist  <tml@iki.fi>
21863
21864         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
21865         to convert back and forth from UTF-8 and the "system" (or "current
21866         locale") charset when necessary. Indentation/spacing cleanup.
21867
21868 2000-08-10  Havoc Pennington  <hp@redhat.com>
21869
21870         * Makefile.am (snapshot): Change the format of the snapshot
21871         version to match glib
21872
21873         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
21874         from EXTRA_DIST since it doesn't seem to exist
21875
21876 2000-08-10  Tor Lillqvist  <tml@iki.fi>
21877
21878         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
21879         version of the directory name (not the UTF-8 one) when building
21880         the path name to stat().
21881
21882 2000-08-03  Elliot Lee  <sopwith@redhat.com>
21883
21884         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
21885         PANGO_ATTR_SHAPE set.
21886
21887 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
21888
21889         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
21890         Peter Osterlund to simplify the code while keeping the
21891         functionality the same.
21892
21893 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
21894
21895         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
21896         is_viewable() test further inside the function, since removing the 
21897         window from the redraw list without clearing ->update_area
21898         was also very broken.
21899
21900 2000-08-02  Tor Lillqvist  <tml@iki.fi>
21901
21902         * configure.in: Check for <unistd.h>.
21903
21904 2000-08-01  Martin Baulig  <baulig@suse.de>
21905
21906         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
21907         to display the message that this is a development version of GTK+.
21908
21909 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
21910
21911         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
21912         was depending on widget->allocation instead of the width of text_area,
21913         which was incorrect for subclasses like GtkSpinButton.
21914
21915         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
21916         with width == 1 tests that should be width == -1.
21917
21918 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
21919
21920         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
21921         (broken, Elliot, every single window blank on X) custom code with call
21922         to gdk_window_is_viewable() which a) prevents code duplicate and
21923         b) works. 
21924
21925 2000-07-31  Elliot Lee  <sopwith@redhat.com>
21926
21927         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
21928         to get the GDK_PARENT_ROOT() macro to work.
21929         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
21930         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
21931         of, windows that aren't shown.
21932         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
21933         pointer grab stuff.
21934
21935 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
21936
21937         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
21938           s/gtk_main_iteration/g_main_iteration/
21939
21940           Did this already in change:
21941                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
21942           don't know how it got reverted.
21943
21944 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
21945
21946         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
21947         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
21948
21949         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
21950         not gdk_pixbuf.
21951
21952 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
21953
21954         * configure.in,po/{sp,sr}.po: Added Serbian files
21955
21956 2000-07-30  Tor Lillqvist  <tml@iki.fi>
21957
21958         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
21959
21960         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
21961         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
21962         GIOChannel implementation.
21963
21964         * gdk/win32/gdkinput.c
21965         * gdk/win32/gdkpango-win32.c: Update license name here, too.
21966
21967         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
21968         definition to match prototype.
21969
21970         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
21971
21972 2000-07-27  Elliot Lee  <sopwith@redhat.com>
21973
21974         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
21975         function, to allow handling image formats that cannot be detected
21976         by looking at content alone.
21977
21978 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
21979
21980         * docs/tutorial/*.gif *.jpg *.eps
21981           Update these to the same look-n-feel.
21982           Why does including images in DocBook suck so badly?
21983
21984 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
21985
21986         * gtk/gtktable.c: applied patch from Phil Thompson
21987         <phil@river-bank.demon.co.uk> that enables space settings for
21988         the last row/columns as well.
21989
21990 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
21991
21992         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
21993         updates the license headers to the GNU Lesser General Public License,
21994         as well as updating the copyright year to 2000.
21995
21996 2000-07-26  Robert Brady  <rwb197@zepler.org>
21997
21998         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
21999           and po/Makefile, was installing and looking for them under gtk20
22000           and gtk2 respectively.
22001
22002 2000-07-25  Havoc Pennington  <hp@redhat.com>
22003
22004         * gtk/testtext.c: Comment out some stuff that depends on the rest
22005         of my patches.
22006
22007 2000-07-25  Havoc Pennington  <hp@redhat.com>
22008
22009         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
22010         buffer
22011
22012 2000-07-25  Havoc Pennington  <hp@redhat.com>
22013
22014         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
22015         widget changes.
22016
22017         * gtk/gtktextview.h: To be consistent with usage of "line"
22018         throughout the API to mean "newline-terminated thingy", change
22019         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
22020         to MOVEMENT_LINE.
22021
22022         (GtkTextView): Add flags for default editability, and whether to
22023         show the cursor. Add functions to get/set that. Add 
22024
22025         (gtk_text_view_get_iter_location): new function
22026
22027         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
22028         gtktextlayout.h
22029         (g_convert): Add g_convert temporarily, will go in glib in a bit
22030         
22031         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
22032         GtkTextTagTableForeach instead of brokenly using GHFunc.
22033         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
22034
22035         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
22036         moved to public header.
22037
22038         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
22039         "invisible", since "elide" was a bad name.
22040         (gtk_text_tag_get_priority): Added
22041
22042         (GtkTextStyleValues): put this in public header, along with
22043         functions to use it.
22044
22045         * gtk/gtktextmarkprivate.h: Include more headers, since we no
22046         longer include gtktextbtree.h.
22047
22048         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
22049         gtk_text_mark_deleted
22050
22051         * gtk/gtktextlayout.h: Don't include the "really private" headers,
22052         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
22053         to make this possible. Now we only need to install
22054         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
22055         (However the Makefile.am isn't changed yet because of the
22056         logistics of merging gtk-hp-patches piecemeal)
22057
22058         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
22059         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
22060         gtk_text_iter_get_line is now used in the public API for a
22061         different purpose.
22062
22063         * gtk/gtktextiter.h: Clean up function names to be more
22064         consistent. Always call char offset "offset" and byte index
22065         "index". A "line" is always a line number. 
22066
22067         (gtk_text_iter_is_last): new function, more efficient than 
22068         the existing way to check
22069         (gtk_text_iter_is_first): new function, also more efficient
22070
22071         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
22072
22073         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
22074         gtk_text_iter_forward_char, etc.
22075
22076         (gtk_text_iter_forward_to_tag_toggle): Renamed from
22077         forward_find_tag_toggle, since this isn't a linear search
22078
22079         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
22080
22081         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
22082         New functions, search for a buffer substring.
22083
22084         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
22085         interactive and default editable (since we need to store that info
22086         until we receive the selection data).
22087
22088         Remove all the _at_char and at_line etc. versions of functions;
22089         only have iterator versions.
22090
22091         Add _interactive() versions of functions, that consider the
22092         editability of text. (FIXME add interactive flag to the 
22093         insert/delete signals per Darin's suggestion)
22094
22095         (gtk_text_buffer_get_tag_table): new function, demand-creates the
22096         tag table if necessary
22097
22098         Remove declaration of gtk_text_buffer_get_iter_from_string
22099
22100         (_gtk_text_buffer_get_btree): private/internal function, added.
22101         
22102
22103         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
22104         (gtk_text_line_is_last): new function
22105
22106 2000-07-25  Havoc Pennington  <hp@redhat.com>
22107
22108         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
22109         using GtkProgressBar. See Changes-2.0.txt for details.
22110
22111         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
22112         "pulse_step" which are the equivalent of
22113         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
22114         Implement new API.
22115         
22116         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
22117         (use_text_format) to mark whether text set on the progress bar is
22118         a format string. Deprecate entire GtkProgress interface.
22119
22120         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
22121         (gtk_progress_build_string): make this a no-op if use_text_format
22122         is FALSE
22123
22124         * docs/Changes-2.0.txt: Describe progress bar changes.
22125
22126 2000-07-25  Tor Lillqvist  <tml@iki.fi>
22127
22128         * Makefile.am: Include the build directory.
22129
22130         * configure.in: Generate build/Makefile, build/win32/Makefile,
22131         gdk/, gdk/win32/, and gtk/makefile.mingw.
22132
22133         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
22134         Add GETTEXT_PACKAGE.
22135         
22136         * gdk/gdk.def
22137         * gtk/gtk.def: Updates.
22138
22139         * gdk/gdkfont.h
22140         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
22141         need them any longer.
22142
22143         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
22144
22145         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
22146         PANGOWIN32_LIBS and gdk_pixbuf.
22147
22148         * gdk/win32: Compiles, but no doubt doesn't work at all.
22149
22150         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
22151
22152         * gdk/win32/gdkinput.c: New file, temporarily.
22153         
22154         * gdk/win32/gdkinput-win32.h: New file
22155
22156         * gdk/win32/gdkinputprivate.h: Remove.
22157
22158         * gdk/win32/gdkpango-win32.c: New file.
22159
22160         * gtk/makefile.mingw.in: New file
22161
22162         * gtk/makefile.cygwin: Removed
22163         
22164         * gtk/Makefile.am: Update accordingly.
22165
22166         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
22167         made externally visible.
22168
22169         * gtk/gtkmain.c: Use it.
22170         
22171         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
22172         is enough.
22173
22174         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
22175
22176 2000-07-24 Elliot Lee <sopwith@redhat.com>
22177         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
22178         individual backends already.
22179         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
22180         again. Yes, there really is a good reason for this, if you are using the gdkregion
22181         internals, and if you're not, why do you care?
22182         * gdk/gdkwindow.c: Fix inverted condition
22183         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
22184         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
22185         * gtk/gtkrange.c: Redraw trough when moving.
22186         * gtk/gtktypeutils.c: Fix warning by adding const cast.
22187         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
22188
22189 2000-07-23  Tor Lillqvist  <tml@iki.fi>
22190
22191         * configure.in: Check for mkstemp and sigsetjmp. Output
22192         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
22193
22194         More work on GDK for Win32. Still in an intermediate state.
22195
22196         * gdk/makefile.cygwin
22197         * gdk/win32/makefile.cygwin: Removed.
22198         
22199         * gdk/makefile.mingw.in
22200         * gdk/win32/makefile.mingw.in: New files.
22201
22202         * gdk/Makefile.am
22203         * gdk/win32/Makefile.am: Generate and distribute them.
22204
22205         * gdk/win32/gdkwindow-win32.h
22206         * gdk/win32/gdkdrawable-win32.h
22207         * gdk/win32/gdkpixmap-win32.h: New files.
22208
22209         * gdk/win32/gdkcolor-win32.c
22210         * gdk/win32/gdkcursor-win32.c
22211         * gdk/win32/gdkdrawable-win32.c
22212         * gdk/win32/gdkgc-win32.c
22213         * gdk/win32/gdkimage-win32.c
22214         * gdk/win32/gdkprivate-win32.h
22215         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
22216         Rename fields and variables called xcursor, xid, etc (these names
22217         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
22218
22219 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
22220
22221         * gtk/gtkentry.[ch]: Fix some problems with vertical
22222         alignment.
22223
22224         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
22225         char/byte confusion.
22226
22227 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
22228
22229         * gtk/gtktextview.c (changed_handler): Fix bug where
22230         redraw wasn't being done properly when height of
22231         dirty region changed.
22232
22233         * demos/Makefile.am: Remove various references to
22234         -lgmodule
22235
22236 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
22237
22238         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
22239         PangoAttrShape to reserve space for pixmaps, add 
22240         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
22241         in the display functions.
22242         
22243         * gtk/testgtk.c (create_layout): Set some more exotic
22244         scrolled window options
22245
22246         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
22247         Add function to set the shadow type of a window, to allow
22248         putting a shadow around widgets such as GtkLayout or GnomeCanvas
22249         which don't draw their own frame.
22250
22251 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
22252
22253         * docs/tutorial/package-db-tutorial.sh: New file for
22254           packaging DocBook format tutorial
22255
22256 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
22257
22258         * docs/tutorial/gtk-tut.sgml: Minor updates
22259
22260         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
22261
22262 2000-07-19  Tor Lillqvist  <tml@iki.fi>
22263
22264         * gtk/gtksignal.c: Fix C++ comment.
22265
22266         * gtk/gtkimmulticontext.c
22267         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
22268         don't return value from void functions.
22269
22270         * gtk/gtk.def: Add gtk_rc_style_unref.
22271
22272 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
22273
22274         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
22275         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
22276         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
22277         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
22278         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
22279         gtk/gtktypeutils.h: Include files outside of the extern "C"
22280         block. Makes some C++ compiler happy. Reported by Denis Vakatov
22281         <vakatov@peony.nlm.nih.gov>.
22282
22283 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
22284
22285         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
22286           Completes first pass. Hurrah!
22287
22288 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
22289
22290         * docs/tutorial/gtk-tut.sgml: More clean ups.
22291
22292 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
22293
22294         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
22295         paint the background of the text area which was accidentally
22296         removed at some point.
22297
22298         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
22299           
22300          - Move most of the functionality from the theme vtable
22301            into GtkRcStyleClass and GtkStyleClass. The moved
22302            vtable functions were changed a bit in the move to
22303            work better in their new home.
22304
22305          - Get rid of the engine and engine_data fields from
22306            GtkRcStyle and GtkStyle; instead the theme
22307            engine derives theme-specific subclasses of GtkRcStyle
22308            and GtkStyle
22309
22310          - Add extra dlsym() found entry point to themes,
22311            theme_create_rc_style().
22312
22313         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
22314         in gtk_style_real_copy.
22315
22316         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
22317         to register a type associated with an engine. (The engine
22318         won't be unloaded as there is an instance of the type.)
22319
22320
22321 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
22322
22323         * docs/tutorial/gtk-tut.sgml: Clean ups.
22324
22325 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
22326
22327         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
22328           of cleaning up to do.
22329
22330 2000-07-15  Tor Lillqvist  <tml@iki.fi>
22331
22332         * gdk/testgdk.c: New file, quick hack to test backends for
22333         pixel-by-pixel correctness of the most simple graphic operations.
22334
22335 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
22336
22337         * Really release 1.3.1
22338         
22339         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
22340         include structure.
22341
22342 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
22343
22344         * Released 1.3.1
22345
22346 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
22347
22348         * gtk/gtktextlayout.c: use FALSE for size_only most
22349         of the time when calling gtk_text_layout_get_line_display()
22350         to avoid causing double reshapes when a redraw follows
22351         immediately after.
22352
22353 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
22354
22355         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
22356         appropriate region and gdk_window_process_updates() so trough
22357         updating doesn't lag behind the window being scrolled.
22358
22359         * gdk/gdkgc.c: Make parent_class pointer static.
22360          
22361 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
22362
22363         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
22364         include <string.h>.
22365          
22366         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
22367         cut-and-paste error in computing memory offset for 4 channels.
22368
22369 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
22370
22371         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
22372         gtk_rc_append_default_pixmap_path(), since it wasn't
22373         adding an interesting path and we don't have a meaningful
22374         default for this value.
22375
22376 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
22377
22378         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
22379         gtk-config to gtk-config-2.0 move gtk_.m4 to
22380         gtk-2.0.m4
22381
22382         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
22383         gdk/Makefile.am demos/Makefile.am: Change 
22384         library names to libgtk-1.3.la, etc, so that we
22385         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
22386
22387         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
22388         gdk/Makefile.am gdk/x11/Makfile.am
22389         Move include files into /usr/include/gtk-2.0, 
22390         /usr/lib/gtk-2.0/include/
22391          
22392         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
22393         gtk/gtkintl.h: Change package for gettext from 
22394         gtk+ to gtk20. Put hack in autogen.sh to modify
22395         po/Makefile.in.in after gettextize to make this
22396         possible.
22397
22398         * gtk+.spec: Some updates, not tested.
22399
22400         * gdk-pixbuf/Makefile.am: Move loaders into
22401         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
22402
22403         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
22404         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
22405         to THEMENAME/gtk-2.0/. Move engine directory  to
22406         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
22407         
22408 2000-07-12  Tor Lillqvist  <tml@iki.fi>
22409
22410         Win32 changes, still doesn't build though.
22411
22412         * gdk/makefile.cygwin
22413         * gdk/win32/makefile.cygwin
22414         * gtk/makefile.cygwin: Updates.
22415
22416         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
22417         default values for fg and bg pixel as X11 does (0 and 1), not
22418         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
22419         Use 0 for pen width by default (treated as 1 anyway later, but for
22420         apps that might check the value in the GdkGC).
22421         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
22422         interface to gdk_gc_predraw and _postdraw.
22423
22424         * gdk/win32/gdkwin32.h
22425         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
22426
22427         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
22428         extraneous semicolon.
22429
22430         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
22431
22432         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
22433         not the Win32 bitspixel value.
22434
22435         * gdk/win32/gdkcc-win32.c:
22436         * gdk/win32/gdkcolor-win32.c 
22437         * gdk/win32/gdkprivate-win32.h
22438         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
22439         GDK object structure.
22440
22441 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
22442
22443         * docs/tutorial/gtk_tut_12.es.sgml (name): 
22444         * docs/tutorial/gtk_tut_it.sgml (name): 
22445         * docs/tutorial/gtk_tut_fr.sgml (name): 
22446         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
22447         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
22448
22449 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
22450
22451         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
22452           small changes.
22453
22454 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
22455
22456         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
22457         a bug here, never been here and never fixed anything ;(
22458         (don't segfault if tree->root_tree is NULL, which happens prior
22459         to widget realization, but puke instead).
22460
22461 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
22462
22463         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
22464         add the necessary tokens.
22465
22466         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
22467         (gtk_rc_style_to_style): copy thicknesses.
22468         (gtk_rc_init_style): apply thicknesses.
22469         (gtk_rc_parse_style): parse xthickness and ythickness.
22470
22471         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
22472
22473         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
22474         (gdk_window_new): 
22475         (_gdk_windowing_window_init): 
22476         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
22477         (gdk_pixmap_create_from_data): 
22478         (gdk_bitmap_create_from_data): 
22479         (gdk_pixmap_new): 
22480         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
22481         (gdk_image_new): 
22482         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
22483         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
22484         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
22485         (gdk_colormap_get_system): 
22486         (gdk_colormap_new): 
22487         * gdk/gdkwindow.c (gdk_window_init): 
22488         * gtk/gtkstyle.c (gtk_style_new):
22489         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
22490         * gdk/gdkpixmap.c (gdk_pixmap_init): 
22491         * gtk/gtkrc.c (gtk_rc_style_new):
22492         use g_object_new() instead of g_type_create_instance() which
22493         is a private function for fundamental type implementations.
22494
22495 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
22496
22497         * configure.in: Add check for db2html
22498
22499 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
22500
22501         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
22502         hack to set glib_debug_objects based on gtk_debug_flags.
22503
22504 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
22505
22506         * INSTALL.in: Update the Prerequisites section.
22507
22508         * Makefile.am demos/Makefile.am docs/Makefile.am
22509         docs/tutorial/Makefile.am gdk/x11/Makefile.am
22510         gdk/linux-fb/Makefile.am: Dist fixes
22511
22512 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
22513
22514         * NEWS: 10,000 foot view of 1.3.1 changes.
22515
22516 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
22517
22518         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
22519         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
22520         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
22521         gdk/x11/gdkmain-x11.c: 
22522
22523         Patch from George Lebl to add a GdkGrabStatus enumeration to use
22524         as a return value of gdk_*_grab(). Previously, we just
22525         returned the X11 values directly.
22526
22527 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
22528
22529         * gdk/x11/Makefile.am: Patch from George Lebl to 
22530         install all the headers in the right place.
22531
22532 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
22533
22534         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
22535           initial conversion to DocBook.
22536
22537 2000-07-04  Tor Lillqvist  <tml@iki.fi>
22538
22539         * README.win32: Improve a bit.
22540
22541         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
22542         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
22543         Alt+0nnn on the numpad (used to enter characters by numeric code
22544         from current DOS or ANSI codepage) working correctly, as in other
22545         Windows apps.
22546
22547         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
22548         same argument validity tests as in X11 version.
22549         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
22550
22551         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
22552         definitions in case missing from headers.
22553
22554         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
22555         destroy the window-specific cursor.
22556         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
22557         calling GetModuleHandle(NULL).
22558         (gdk_window_set_cursor): Reworked to always copy the passed cursor
22559         with CopyCursor before setting it as the window-specific
22560         cursor. It is OK for the caller to destroy the GdkCursor (and thus
22561         also its Windows cursor) after calling this function. Destroy any
22562         previous window-specific cursor.
22563
22564 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
22565
22566         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
22567         font charset is iso8859-1, not iso-8859-1.
22568
22569 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
22570
22571         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
22572         Use g_get_charset() instead of g_get_codeset().
22573
22574         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
22575         Comment out some strdup'ing functions to keep timj
22576         happy until we finish fighting this out.
22577
22578 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
22579
22580         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
22581         <= width or height.
22582
22583         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
22584         from 1.2 for parent/child states.
22585
22586         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
22587         of typos.
22588
22589         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
22590         event structures, replace with a generic axes field. Replace 
22591         deviceid/sourec with GdkDevice *device.
22592
22593         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
22594         to extract particular axis use value from event. (Also
22595         can be used for normal X/Y.)
22596
22597         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
22598         allow for arbitrary number of axes, namespace everything
22599         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
22600         everywhere.
22601
22602         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
22603         Get rid of the gdk_input_vtable setup if favor of simply
22604         defining the functions in gdkinput-none/gxi/xfree.c in
22605         a similar fashion to the way that the port structure is 
22606         done.
22607
22608         * gtk/gtkdnd.c: Fix fields of synthesized button press event
22609         for new event structures. 
22610
22611         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
22612         new device interfaces.
22613
22614 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
22615
22616         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
22617         set the initial text.
22618
22619         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
22620         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
22621         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
22622         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
22623
22624         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
22625         pango_layout_set_font_description to simplify.
22626
22627 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
22628
22629         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
22630         pango_layout_set_font_description to simplify.
22631
22632 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
22633
22634         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
22635         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
22636         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
22637
22638         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
22639         PANGO_PIXELS() macro.
22640
22641 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
22642
22643         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
22644         that returns a PangoContext owned by the widget and updated to
22645         match future changes in the widget. Also, make 
22646         gtk_widget_create_pango_layout() use this context. If we ever
22647         add a ::changed signal to PangoContext, this will make things
22648         much more convenient. 
22649
22650         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
22651         in the appropriate places instead of destroying the layouts and
22652         creating new ones.
22653
22654         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
22655         in a few strategic places.
22656
22657 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
22658
22659         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
22660         gtk_widget_size_request() on reparented child, if one. Otherwise,
22661         queue_resize() on the child never results in it getting size-requested
22662         at all.
22663
22664         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
22665         in option menus, so that (with luck) people won't copy it into
22666         their apps in the future.
22667
22668         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
22669         to gtk_option_menu_calc_size. This isn't perfect, but should fix
22670         a lot of problems with changing the size of the menu's menu
22671         items after adding it to the option menu.
22672
22673         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
22674
22675         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
22676         the text direction for a widget changes.
22677
22678         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
22679         ::direction_changed to get rid of various hacks.
22680
22681 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
22682
22683         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
22684         name.
22685
22686 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
22687
22688         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
22689         flag to the structure. Do not call XFreePixmap on pixmaps created
22690         by gdk_pixmap_foreign_new().
22691
22692 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
22693
22694         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
22695         value using GdkRGB functionality given GdkColormap and GdkColor.
22696         (name not final, waiting for inspiration.)
22697         
22698         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
22699         set the foreground/background of a GC using the GC's colormap
22700         and GdkRGB. (name not final, waiting for inspiration.)
22701
22702         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
22703         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
22704
22705         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
22706         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
22707         purely a function of the corresponding colormap. Make
22708         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
22709
22710         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
22711         gdk_pixbuf_*create_from_xpm_* in terms of
22712         gdk_pixbuf_new_from_xpm_data(), move into platform independent
22713         code.
22714
22715         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
22716         advantage of the new draw_rgb_32_image_dithalign.
22717
22718         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
22719
22720         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
22721         on each created GC.
22722
22723         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
22724
22725         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
22726         which we initialize from the drawable when the GC is created,
22727         if the drawable has a colormap.
22728
22729         * gdk/x11/gdkgc-x11.c: include string.h for memset.
22730
22731         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
22732
22733         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
22734
22735 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
22736
22737         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
22738         actually returning expose events, make sure to set
22739         the count field properly.
22740
22741         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
22742         accidentally reintroced bug which always cleared
22743         the graphics_exposures value. 
22744
22745 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
22746
22747         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
22748
22749 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
22750
22751         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
22752
22753 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
22754
22755         * docs/faq/gtk-faq.sgml: Start of Section 6.
22756
22757 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
22758
22759         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
22760         
22761         (Fixes problem with drawing childless frames. Pointed out
22762         by and a first patch from Anders)
22763         
22764         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
22765         compute a child_allocation, even if we don't have a child.
22766
22767         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
22768         Always chain to the parent's impl, even if we don't have a child.
22769
22770 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
22771
22772         * gdk/gdkrgb.c: If possible, create only a single shm segment and
22773         use multiple parts of it instead of creating a bunch of separate
22774         segments, since the maximum number of segments per system is not
22775         large. (This might be worth backporting to GTK+-1.2.x if we make a
22776         new release )
22777
22778         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
22779         structure in preparation for per-colormap GdkRGB.
22780
22781         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
22782         to False when we get EINVAL from shmget so that the caller of
22783         gdk_image_new can retry with a smaller segment size.
22784
22785 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
22786
22787         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
22788
22789 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
22790
22791         * configure.in: make the current version number 1.3.1 (binary age 0,
22792         interface age 0).
22793         
22794         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
22795         gtkcompat.h is all we want.
22796
22797         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
22798         GLib primitive types. fixed g_type_register_fundamental() argument
22799         ordering.
22800
22801         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
22802         compiles.
22803
22804         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
22805         object code cleanup, comment trigraph fixes, etc...
22806
22807 2000-06-23  Havoc Pennington  <hp@redhat.com>
22808
22809         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
22810         instead of making up a bogus name for first_para_mark
22811
22812         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
22813         0 as a context ID
22814
22815 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
22816
22817         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
22818
22819 2000-06-21  Havoc Pennington  <hp@pobox.com>
22820
22821         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
22822         we didn't check window->bg_pixmap != GDK_NO_BG.
22823
22824         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
22825         gdk-pixbuf
22826
22827 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
22828
22829         * docs/faq/gtk-faq.sgm: Move file to here.
22830           TODO: Update Makfile.am 
22831
22832 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
22833
22834         * docs/gtk-faq.sgm: Add Section 2
22835
22836 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
22837
22838         * docs/gtk-faq.sgm: New file. Start of DocBook
22839           version of the FAQ.
22840
22841 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
22842
22843         * configure.in (GDK_PIXBUF_MAJOR): Define version
22844         numbers for GDK_PIXBUF_*, as they get substituted
22845         into a header file. Need to consider versioning
22846         for gdk-pixbuf more carefully later.
22847
22848 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
22849
22850         Work with srcdir != builddir.   
22851         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
22852         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
22853         * demos/testpixbuf.c: Likewise.
22854         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
22855         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
22856         <gdk/x11/gdkx.h>.
22857         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
22858         "gdk-pixbuf.h".
22859         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
22860
22861 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
22862
22863         * TODO.xml: Change 1.4 version numbers to 2.0.
22864
22865 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
22866
22867         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
22868         fixups to GTK+ standard.
22869
22870 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
22871
22872         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
22873         gdk-pixbuf.
22874
22875         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
22876         fixups for GObject.
22877
22878         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
22879         gdk-pixbuf with GDK dependencies moved into GDK.
22880         
22881         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
22882         move gdk-pixbuf-loader here until GObject has signals.
22883
22884         * demos/: New directory of demos. Move demos from
22885         gdk-pixbuf here.
22886
22887         * demos/pixbuf-init.c: Small bit of code to check for
22888         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
22889         set GDK_PIXBUF_MODULEDIR appropriately.
22890
22891         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
22892         define which no longer makes sense.
22893
22894 2000-06-21  Havoc Pennington  <hp@redhat.com>
22895
22896         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
22897         gtk_get_default_language
22898
22899         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
22900         new function to get the default language
22901
22902         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
22903         s/gtk_text_view_style_values/gtk_text_style_values/
22904
22905         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
22906         Add a "language" field to tags.
22907
22908         (gtk_text_tag_set_arg): Fix bug in setting
22909         "bg_full_height_set" tag.
22910
22911 2000-06-21  Havoc Pennington  <hp@redhat.com>
22912
22913         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
22914         in the interfaces
22915
22916         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
22917         stuff instead when possible.
22918
22919         * gtk/gtktexttypes.h: Delete some unused constants
22920
22921         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
22922         testtextbuffer.c: use glib instead of custom unicode routines
22923
22924 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
22925
22926         * docs/es/: Removed mistakenly added generated sgml
22927
22928         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
22929         Remove outdated info files.
22930
22931         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
22932         Moved tutorial files into subdir
22933
22934         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
22935         subdir.
22936
22937         * docs/man/gtk_button.pod: Remove. (contents will be
22938         integrated into gtk-reference button page.)
22939
22940         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
22941         docs/faq/Makefile.am: Adjust for new organization
22942
22943 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
22944
22945         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
22946         not $(MKINSTALLDIRS)
22947
22948 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
22949
22950         * gtk/testgtk.c (create_text): Finish the job Elliot started
22951         of removing font setting test for text widget. (Since text widget
22952         and GdkFont are not deprecated, and cause portability problems.)
22953
22954 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
22955
22956         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
22957         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
22958         Remove use of libunicode in favor of new GLib functions.
22959
22960         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
22961         nano-x, framebuffer. The X11 include is just a hack until we get
22962         the necessary functions in gdkcolor.h, so there is no reason to
22963         add other includes of platforms.
22964
22965         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
22966         window bigger than the screen change.
22967
22968         * gtk/testgtk.c: Revert some random changes from Elliot
22969         that had no particular point and were causing testgtkrc
22970         not to function correctly.
22971         
22972         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
22973         because GdkSegment and GdkRegionBox have the same fields,
22974         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
22975         results in clearer code.
22976
22977         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
22978         gdk_input_translate_coordinates): Fix missed GdkObjectification
22979
22980 2000-06-18  Elliot Lee  <sopwith@redhat.com>
22981
22982         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
22983         * gtk/gtk{plug,socket}.h: Missed commits from previous.
22984
22985 2000-06-20  Havoc Pennington  <hp@redhat.com>
22986
22987         * modules/linux-fb/Makefile.am: Make this compile
22988         without framebuffer enabled
22989
22990         * gdk/linux-fb/Makefile.am: Add conditional to not build
22991         framebuffer unless specified in configure
22992
22993         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
22994         the size of the target instead of source if -1 was passed for
22995         width/height
22996
22997         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
22998         width/height confusion.
22999
23000 2000-06-19  Havoc Pennington  <hp@redhat.com>
23001
23002         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
23003         GDK_DRAWABLE_XID. In the future, we probably want to make it
23004         faster with G_DISABLE_CHECKS turned on.
23005
23006 2000-06-14  Havoc Pennington  <hp@redhat.com>
23007
23008         * gdk/Makefile.am: add gdkpixmap.c
23009
23010         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
23011         s/gdk_image_init/_gdk_windowing_image_init
23012
23013         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
23014         ref/unref
23015
23016         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
23017
23018         * gdk/gdkcompat.h: remove GdkWindowType compat, since
23019         GdkWindowType is now non-deprecated; 
23020         change gdk_window_get_type() compat to be
23021         gdk_window_get_window_type().
23022
23023         * gdk/gdkdnd.h: make GdkDragContext a GObject.
23024
23025         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
23026         virtual GObject. Make all functions call into the vtable.
23027         Move gdk_image_put() guts in here. Remove GdkDrawableType
23028         and gdk_drawable_get_type(), these are now GdkWindow-specific.
23029         draw_image, get_depth, get_size, set_colormap, get_colormap,
23030         get_visual added to the vtable.
23031         
23032         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
23033         GObject. Virtualize everything. 
23034         (gdk_gc_new_with_values): remove check for destroyed window,
23035         because now GdkWindow::create_gc will check this.
23036         (gdk_gc_set_values): New function to set GC values, this 
23037         was already implemented but wasn't in the header
23038
23039         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
23040
23041         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
23042         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
23043         remove _gdk_window_class; add _gdk_window_impl_get_type() and
23044         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
23045         _gdk_windowing_window_init, rename gdk_image_init to
23046         _gdk_windowing_image_init.
23047         
23048         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
23049         (gdk_draw_layout): Remove check for destroyed window, 
23050         because all the drawable methods already check it.
23051         
23052         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
23053         Add gdkpixmap.c which contains implementation of GdkDrawable
23054         virtual table (by chaining to a platform-specific implementation
23055         object).
23056         
23057         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
23058         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
23059         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
23060         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
23061         GdkColormapPrivate. 
23062
23063         * gdk/gdktypes.h: #include <glib-object.h>
23064
23065         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
23066         Move most functionality to platform-specific implementation
23067         object. GdkWindow itself now handles the backing store, then
23068         chains to the platform-specific implementation.
23069         (gdk_window_get_window_type): return GdkWindowType of the window.
23070         (gdk_window_peek_children): New routine, returns the children of 
23071         a GdkWindow
23072         (gdk_window_get_children): Was in X11-specific code and did 
23073         XQueryTree. Changed to simply return a copy of window->children; 
23074         so it can go in cross-platform code.
23075         
23076         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
23077
23078         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
23079         GdkColormap; just changed to use the new private data instead
23080         of casting to GdkColormapPrivate.
23081
23082         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
23083         gdk_cursor_new().
23084
23085         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
23086         (private data member in the GObject). 
23087         (xdnd_manager_source_filter): Function had broken 
23088         error handling, fix it (use gdk_error_trap_push).
23089
23090         * gdk/x11/gdkdrawable-x11.c: This file now implements
23091         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
23092         base class is purely for the convenience of the X port,
23093         and not part of the interface to cross-platform GDK.
23094
23095         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
23096         
23097         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
23098         specific to X, and returned by the create_gc virtual method
23099         of GdkDrawableImplX11. 
23100         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
23101         rather than gchar, this was also changed in the GdkGC vtable.
23102         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
23103         mask is 0, return immediately, instead of checking every flag.
23104         This is faster, and keeps us from segfaulting if values is NULL
23105         and the mask contains some nonzero flags.
23106
23107         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
23108         GdkWindow.
23109
23110         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
23111         GdkWindowPrivate is gone.
23112
23113         * gdk/x11/gdkim-x11.c: rename things that got renamed.
23114
23115         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
23116         remove the image_put stuff that got transferred to GdkDrawable.
23117         
23118         * gdk/x11/gdkinput.c: renamings
23119
23120         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
23121
23122         * gdk/x11/gdkpixmap-x11.c: GObject conversion
23123
23124         * gdk/x11/gdkprivate-x11.h: indentation fixes
23125
23126         * gdk/x11/gdkproperty-x11.c: renamings
23127
23128         * gdk/x11/gdkselection-x11.c: renamings
23129
23130         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
23131         implements the platform-specific "impl" object.
23132         Moved gdk_window_get_children to gdk/gdkwindow.c
23133
23134         * gdk/x11/gdkx.h: Remove all the private structs and private datas
23135         that no longer exist. Add declaration of GdkGCX11 object here.
23136         Fix all the macros to still work. 
23137
23138         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
23139         GdkDragContext from the boxed types since they are now GObjects.
23140
23141         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
23142         moved xthickness/ythickness into the instance. GtkStyleClass
23143         functions are now in the standard vtable for GtkStyle, so you have
23144         to create a GObject subclass to write a theme engine.
23145         (gtk_style_copy): fixed a leaked PangoFontDescription
23146         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
23147         can be the standard GObject function.
23148         
23149         * Throughout GTK:
23150         s/style->klass->[xy]thickness/style->[xy]thickness
23151         s/pango_layout_unref/g_object_unref/
23152
23153         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
23154         
23155         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
23156         accessing GDK internals.
23157
23158         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
23159         accessing GDK internals.
23160
23161 2000-06-18  Elliot Lee  <sopwith@redhat.com>
23162
23163         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
23164
23165         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
23166         problem by calculating event position relative to the trough
23167         rather than the slider.
23168         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
23169
23170         * gdk/gdkgc.h: Add GDK_NOR.
23171
23172         * configure.in, Makefile.am: Add modules top level dir
23173         * configure.in: Only use pangox library if building x11 target.
23174         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
23175
23176 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
23177
23178         * gtk/gtkcolorsel.c: Change private class member to be named
23179         private_data throughout the file.
23180
23181         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
23182         private_data to avoid clashing with keyword.
23183
23184 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
23185
23186         * gdk/gdkdnd.h: Add comment to remove warning.
23187
23188 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
23189
23190         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
23191         Byelorussian language; changed the Makefile and file names 
23192         to reflect that.
23193
23194 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
23195
23196         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
23197         rather than gdk_window_hide; this makes things work
23198         correctly if the window is programmatically hidden while
23199         iconified.
23200
23201 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
23202
23203         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
23204         cut and paste typo where wrong pixmap was being
23205         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
23206
23207 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
23208
23209         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
23210         Add helper function to compute format / bytes 
23211         relationship. Use in a couple places to fix up
23212         errors which assume 8 * format.
23213
23214         * gtk/gtkselection.c (gtk_selection_request): Use 32
23215         rather than 8 * sizeof (GdkAtom), to work correctly
23216         on Alpha.
23217
23218 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
23219
23220         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
23221         libgtk.la
23222         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
23223         versions
23224
23225         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
23226         checking macros return NULL since the function has a return value.
23227
23228 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
23229
23230         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
23231         GTK+ from building at all.
23232
23233         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
23234
23235 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
23236
23237         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
23238         gtk/Makefile.am: make it possible to configure gtk for different
23239         targets on the same platform. The library name is now 
23240         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
23241         flag. Only the x11 target compiles right now.
23242         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
23243         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
23244         * gdk/nanox/gdk*generic*: delete generic region code.
23245         * gdk/linux-fb/gdk*generic*: delete generic region code.
23246         * README.nanox: update information.
23247         
23248 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
23249
23250         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
23251         prepend not append. (Pointed out by Brett Hall.)
23252
23253 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
23254
23255         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
23256
23257 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
23258
23259         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
23260         need this later, and this makes sure that the atexit for
23261         glib gets called after that for GDK, so atexits are
23262         properly ordered for object leak checking.
23263
23264         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
23265
23266         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
23267         pango_x_shutdown_display()
23268
23269         * gtk/simple.c (main): Close window on destroy.
23270
23271 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
23272
23273         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
23274         to treat initial creation different from setting with 
23275         regards to the graphics-exposures parameter, so add a parameter
23276         indicating whether this is initial or not.
23277
23278 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
23279
23280         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
23281         to sort of work by adding an extra return_exposes arg
23282         to gdk_event_translate() - it might be better to simply
23283         deprecate the function altogether and force people to rewrite
23284         without it. gdk_window_scroll() handles most of it, and where
23285         gdk_window_scroll() doesn't work, simply redrawing more does.
23286
23287         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
23288         assertion.
23289
23290         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
23291
23292         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
23293         bunch of pretty much useless /* Print debugging info */ comments 
23294         which had drifted away from the code they were commenting.
23295
23296 2000-06-02  Havoc Pennington  <hp@pobox.com>
23297
23298         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
23299         is in working order.
23300         
23301         * gtk/testtext.c: Change to reflect anonymous mark API
23302
23303         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
23304
23305         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
23306         field, which was unused.
23307
23308         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
23309         saves some typing.
23310
23311         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
23312
23313         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
23314         flag on the insertion point and selection bound
23315
23316         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
23317         make mark-manipulation functions take a GtkTextMark* instead of a
23318         mark name.
23319         
23320         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
23321         GtkTextMarkBody; will be used to detect attempts to delete
23322         the permanent marks (insert and selection bound)
23323
23324         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
23325
23326 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
23327
23328         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
23329         flag to on.
23330
23331         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
23332         Honor DOUBLE_BUFFRED_FLAG
23333
23334         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
23335         function to set the DOUBLE_BUFFERED flag.
23336
23337         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
23338         or not exposes done on the widget should be double-buffered.
23339
23340         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
23341         to be what would be expected. (Fixes problem with a
23342         g_return_if_fail() validating a TextDirection enumeration)
23343
23344 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
23345
23346         * gtk/gtkwidget.c: Remove all references to 
23347         offscreen flag which was no longer used.
23348
23349         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
23350
23351         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
23352         for non-null label_widget->parent.
23353
23354         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
23355         which no longer was used.
23356
23357         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
23358
23359         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
23360         for null arguments.
23361
23362         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
23363         check for destroyed windows.
23364
23365 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
23366
23367         * gtk/gtkimmulticontext.c: Add a finalize method and unref
23368         the slave context there.
23369
23370         * gtk/gtkinvisible.[ch]: Make reference counting behavior
23371         identical to GtkWindow.
23372
23373 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
23374
23375         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
23376         pangox to here, so we can write them independent of rendering
23377         system, using GDK primitives.
23378
23379         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
23380         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
23381         since we have a rendering-system independent implementation in
23382         terms of draw_glyphs().
23383         
23384         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
23385         function to render a single line.
23386
23387         * gdk/x11/gdkpango.c: Move the guts of this file mostly
23388         into ../gdkpango.c, which simplifies things, since we
23389         don't have to deal with raw X gc's.
23390
23391 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
23392
23393         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
23394         get the logical attributes for a given GtkTextLine.
23395
23396 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
23397
23398         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
23399         g_locale_get_codeset() to g_get_codeset() change.
23400
23401 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
23402
23403         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
23404         descriptions.
23405
23406         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
23407         the entry.
23408
23409         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
23410         redoing (vastly simplifying) for Pango. Still needs quite
23411         a bit of work. (Size selection is currently poor. List of 
23412         predefined sizes is not a good idea, since all of these
23413         sizes won't necessarily be distinct.)
23414
23415 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
23416
23417         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
23418         CODESET results for LANG=C.
23419
23420 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
23421
23422         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
23423         which takes a stringized pango font description;
23424         ignore the older 'font' and 'fontset' declarations.
23425
23426         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
23427         field with a GdkFont derived via gdk_font_from_description(),
23428         for compatibility. (Should we just remove it entirely?
23429         Probably too much compatibility breakage, but people
23430         should be migrating to the new Pango stuff as quickly
23431         as possible.)
23432
23433 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
23434
23435         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
23436
23437 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
23438
23439         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
23440         redoing; there are some bugs in size allocation right
23441         now, the semi-existant distinction between header / day
23442         fonts was removed, but, with Pango, could actually
23443         be made functional in a nice way.
23444         
23445         * gtk/testcalender: Move calender from examples into this
23446         directory as a test program. (We really need to restrcture
23447         testgtk into a whole directory full of tests for every
23448         widget or functionality group, separated into multiple .c
23449         files.)
23450
23451 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
23452
23453         * gtk/testgtk.c (file_exists): Fix stupid typo that
23454         was keeping RC file from being loaded.
23455
23456         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
23457         RC file font code.
23458
23459 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
23460
23461         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
23462         Add function to load a GdkFont from a PangoFontDescription.
23463
23464 2000-05-29  Tor Lillqvist  <tml@iki.fi>
23465
23466         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
23467         variable should be of type GdkEventPrivate.
23468
23469 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
23470
23471         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
23472         to have any widget for the label, use a GtkLabel widget
23473         to display the text. (Based partially on a patch from
23474         Anders Carlson.)
23475
23476         (Quite a bit of code reorganization - strip 90% of the
23477         guts out of gtkaspectframe and add a single virtual
23478         func to GtkFrameClass - compute_child_allocation.)
23479
23480 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
23481
23482         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
23483         (Removed clist->row_center_offset field because caching
23484         it wasn't saving time or code, added private function
23485         _gtk_clist_create_cell_layout()).
23486
23487 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
23488
23489         * gtk/gtkaccellabel.c: Pangoized.
23490
23491         * gtk/[hv]ruler.c: Pangoized
23492
23493 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
23494
23495         * gtk/gtkfilesel.c (gtk_file_selection_init):
23496         Use gtk_clist_set_column_auto_resize() to remove need
23497         need for manual column width computations.
23498
23499 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
23500
23501         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
23502         ensuring Pango correctness, and considerably simplifying the
23503         code.
23504         
23505         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
23506
23507         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
23508         getting of numbers of lines.
23509
23510         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
23511         to the actual requested width of the lable, not to the wrap
23512         width we set.
23513
23514         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
23515
23516         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
23517           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
23518
23519         * gtk/gtktextview.c: Fix structure inheritance.
23520
23521         * gtk/gtkprogressbar.c: Pangoize.
23522
23523 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
23524
23525         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
23526         in a function.
23527
23528         * gtk/gtktextlayout.c (find_display_line_above): Fixed
23529         bug with computing line tops.
23530
23531         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
23532
23533 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
23534
23535         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
23536         and y_offset coordinates to do what we need now. (The offset between
23537         buffer and layout coordinates has been reintroduced, but is a 
23538         bit different than before.)
23539
23540         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
23541         handle the adjustments ourselves, and scroll as necessary using
23542         the new gdk_window_scroll().
23543         
23544         The advantage of this is that when we are incrementally revalidating,
23545         we are essentially rearranging things around the visible portion
23546         of the screen. With the old setup, the visible portion of the
23547         screen was moved around in the layout, so scrolling and redrawing
23548         to track that caused jumping of the display. Since we now
23549         control the scrolling ourselves, we can suppress this and
23550         only redraw when things actually change.
23551
23552 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
23553
23554         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
23555         the region not just redisplay it after-all, since we store the
23556         cursors in the LineDisplay. (Ugly interactions here between
23557         GtkLayout and GtkTextBTree here.)
23558         
23559         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
23560
23561 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
23562
23563         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
23564         Added function to scroll contents of a window while keeping the
23565         window constant. Works by XCopyArea or guffaw-scrolling depending
23566         on the details of how the window is set up. (guffaw-scrolling
23567         still needs to be filled in.)
23568
23569 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
23570
23571         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
23572         move the debugging that was tied to a global variable
23573         to that.
23574
23575         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
23576
23577         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
23578         validated flag, in line data instead of setting height/width to
23579         -1. This allows us to perform operations with partially invalid
23580         buffer (using the old size for invalid lines) and thus to do
23581         incremental vaidation. Keep height/width aggregates up to date
23582         when deleting text and rebalancing the tree.
23583
23584         * gtk/gtktextbtree.[ch]: Add functions validate a line
23585         (gtk_text_btree_validate_line), and to validate up
23586         to a number of pixels (gtk_text_btree_validate).
23587
23588         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
23589         that indicates that something is changed and a revalidation
23590         pass is needed. Change ::need_repaint to ::changed, and
23591         make it take old and new yranges instead of a rectangle.
23592
23593         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
23594         the line_data_destroy() function from 
23595         gtk_text_btree_add_view() to a virtual function in 
23596         GtkTextLayout
23597
23598         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
23599         since we are handling partial repaints in a different fashion
23600         now.
23601
23602         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
23603         of the selection instead of queueing a repaint on the
23604         entire widget.
23605
23606         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
23607         get_selection_bounds() down to btree, make the function
23608         in buffer a wrapper around the btree function.
23609
23610         * gtk/gtktextlayout.[ch]: Add functions to check if the
23611         layout is valid and to recompute either a range of pixels
23612         aroudn a line or a certain total number of pixels.
23613
23614         * gtk/gtktextlayout.[ch]: Cache a single line display;
23615         now that we only redraw the needed portions, the hit rate
23616         for this cache is quite high.
23617         
23618         * gtk/gtktextview.[ch]: Keep track of the first paragraph
23619         on the screen so that when re-laying-out the buffer, we can
23620         keep the same place. This requires connecting to ::value_changed
23621         on the adjustments
23622
23623         * gtk/gtktextview.[ch]: Add idle functions to revalidate
23624         the buffer after we receive an ::invalidated signal.
23625         
23626 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
23627
23628         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
23629         to max of allocation and layout size, not just to the
23630         layout size.
23631
23632         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
23633         Invalidate window so it gets redrawn properly.
23634
23635         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
23636         to mean the entire window.
23637
23638         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
23639         into public header.
23640
23641 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
23642
23643         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
23644         to get the name of a mark.
23645
23646         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
23647         to find the paragraph from a y position.
23648
23649 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
23650
23651         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
23652         nodes have width/height >= 0, not > 0.
23653
23654 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
23655
23656         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
23657         Add a size_only flag, so when we only need the size, we don't create
23658         useless appearance attributes.
23659
23660         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
23661         duplicate setting of font description.
23662
23663         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
23664
23665 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
23666
23667         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
23668         EXTRA_DIST. It does not work well when the file that
23669         everything depends on is not in the tarball.
23670
23671 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
23672
23673         * gtk/testgtk.c: Some hacks and fixes so that it basically
23674         works when not sitting in the GTK+ build tree.
23675
23676 2000-05-03  Havoc Pennington  <hp@redhat.com>
23677
23678         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
23679         Properly determine the ordering of the tag root and the current
23680         line within the tree. Previous algorithm only worked if the tag
23681         root's immediate parent was the common root of both the current
23682         line and the tag root.
23683
23684 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
23685
23686         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
23687         alignment.
23688
23689         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
23690         the widget text directional dynamically.
23691
23692         * gtk/gtktextview.[ch]: Added functions to get and set default
23693         wrap mode.
23694
23695 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
23696
23697         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
23698         in cursor location computation.
23699
23700 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
23701
23702         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
23703         vadjusment values properly when layout gets smaller.
23704
23705         * gtk/gtktextview.c (need_repaint_handler): Areas being
23706         passed in are far completely inaccurate, and sometimes
23707         too small, so, for now, just queue a redraw on the
23708         whole visible region.
23709
23710 2000-04-25  Havoc Pennington  <hp@redhat.com>
23711
23712         * gtk/gtktextbtree.c (summary_destroy): new function to 
23713         destroy tag summary nodes
23714         (gtk_text_line_next_could_contain_tag): this function was 
23715         totally broken if the line passed in wasn't below the tag
23716         root. Fix it.
23717         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
23718         "wildcard" case, we have to do a linear scan. Blah.
23719         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
23720         we have to do the linear scan
23721         (tag_removed_cb): When a tag is removed from the tag table, 
23722         remove the GtkTextTagInfo node from the btree.
23723         (gtk_text_btree_spew): Implement the spew function, for 
23724         our debugging pleasure.
23725
23726 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
23727
23728         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
23729         a problem with referring to the wrong buffer.
23730
23731         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
23732
23733         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
23734         font description to gtk_style_new() - otherwise things
23735         don't work without a .gtkrc file.
23736
23737         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
23738         tags table if we create it ourself, too.
23739
23740         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
23741         it was conflicting with XKB modifiers.
23742
23743         * gtk/gtktextview.[ch]: Add simple support for 
23744         GtkIMContext.
23745
23746 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
23747
23748         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
23749         with deletion from last commit.
23750
23751 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
23752
23753         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
23754         in the context from the current locale.
23755         
23756         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
23757         context, not hardcoded value.
23758
23759         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
23760         not logical.
23761
23762 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
23763
23764         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
23765         attributes - that doesn't handle partial-glyph selection
23766         properly. Instead use new pango_layout_line_get_x_ranges()
23767         functionality to draw the selection.
23768
23769         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
23770         now properly handles out-of-range coordinates.
23771
23772         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
23773
23774         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
23775         public.
23776
23777         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
23778         for paragraphs opposite to the base direction of the widget.
23779
23780         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
23781
23782         * gtk/gtktextlayout.c: Don't split segments on marks, since that
23783         causes Arabic words to reshape as you cursor through.
23784
23785         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
23786         cursor position when moving vertically with the arrow keys and
23787         scrolling with page-up/page-down. (Arrow keys save only the X,
23788         scrolling saves both X and Y.)
23789
23790         This means you can line-up / line-down or page-up / page-down
23791         without losing your place, and also that moving vertically
23792         with the cursor keys keeps the same X position, not the same
23793         character count:
23794
23795         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
23796         arrow keys move by display lines, not paragraphs.
23797
23798 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
23799
23800         * gtk/gtklayout.c: Make sure that the bin window is at least
23801         as big as the allocation. (Should we also make sure that the
23802         bin window is big enough to completely cover widget->window?)
23803
23804         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
23805         function to get the onscreen rectangle.
23806
23807         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
23808         for offsets in window coordinates.
23809
23810 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
23811
23812         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
23813         confusion.
23814
23815         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
23816         from the widget direction.
23817
23818         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
23819         Add a "direction" attribute.
23820
23821         * gtk/gtktextview.c: global s/tkxt/text_view/.
23822
23823         * gtk/testtext.c: Added long block of text in Arabic, to test out
23824         the direction attributes. (Some problems with the shaping system
23825         for arabic become obvious - like the fact the cursor splits words
23826         into unjoined pieces.)
23827
23828 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
23829
23830         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
23831
23832         * gtk/gtktextlayout.c: Fix up alignment.
23833
23834         * gtk/testtext.c: Add some tests for centering, wrapping.
23835
23836 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
23837
23838         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
23839         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
23840         If we wrote GTK+-specific layout-render function this could just replace
23841         the draw_layout() operation in the vtable.
23842
23843         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
23844         pango_layout_get_cursor_pos() and use that function.
23845
23846         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
23847         is a non-static symbol.
23848
23849         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
23850         with gtk_text_btree_find_line_by_y()
23851
23852         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
23853         renderer that handles GtkTextAppearance attributes.
23854
23855         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
23856
23857           - Move the values in the style that don't affect geometry into a
23858             GtkTextAppearance structure.
23859           - Change underline to take a PangoUnderline and "font" a string
23860             representation of a font description
23861           - Add a "font_desc" attribute which takes a FontDescription structure.
23862
23863         * gtk/gtktextlayout.[ch]:
23864
23865           - Get rid of the display-line list per each line. Instead, we
23866             generate, on demand, a GtkTextLineDisplay structure which]
23867             contains a PangoLayout * and other necesary information
23868             (offsets, cursor locations) for displaying a paragraph.
23869           - Get rid of the code to wrap lines, create display chunks,
23870             etc. Instead, we just go through a paragraph and convert
23871             it into the necessary inputs to a PangoLayout.
23872           - Implement a new attribute type, GtkTextAttrAppearance. This
23873             holds a GtkTextAppearance, and is used to pass colors, 
23874             stipple, etc, through from the layout to the display without
23875             having to use lots and lots of individual attributes.
23876           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
23877             in terms of PangoLayout functions.
23878         
23879         * gtk/gtktextview.c: 
23880          
23881           - Handle passing the necessary PangoContext to the layout
23882           - Some fixups in painting to deal with the automatic backing store
23883             and offsetting of GTK+-1.4
23884           - Add a style_set handler so that the default style reacts
23885             properly to theme changes.
23886         
23887         * gtk/gtktext?*.[ch]: Random code-style fixes.
23888
23889         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
23890
23891 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
23892
23893         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
23894         in original form preparatory to Pango-ization and gdkimcontext-ization.
23895
23896 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
23897
23898         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
23899         so that we can derive from gtkimcontext in language bindings properly.
23900
23901 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
23902
23903         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
23904         Add a compose table including (almost) all the compose combinations
23905         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
23906         data in the XIM implementation.
23907
23908         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
23909         Moved functions to convert keyvalues from and to unicode here from
23910         the win32 port and made them public.
23911
23912 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
23913
23914         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
23915
23916 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
23917
23918         * gtk/gtkimcontext.[ch]: Base class for new input context system
23919
23920         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
23921         the real input context implementation to be loaded from modules
23922         and switched on the fly.
23923
23924         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
23925         context that just does direct keysymbol => unicode translation.
23926
23927         * gtk/gtkentry.[ch]: Start switching editing over to using
23928         GtkInputContext. (No handling of preedit yet.)
23929
23930 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
23931
23932         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
23933         many substitutions. (klass should not be subsituted.)
23934
23935 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
23936
23937         * configure.in: Add checks for Pango
23938
23939         * configure.in docs/Makefile.am: Add test for sgml2html
23940         and allow 'make dist' without building html, but print out
23941         warnings in that case. (For making snapshots)
23942
23943         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
23944         Add Pango libraries and C flags
23945
23946         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
23947         Add function (gdk_draw_layout) to draw a pango layout.
23948
23949         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
23950         for getting Pango contexts for GDK.
23951
23952         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
23953
23954         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
23955         editing.
23956
23957         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
23958         keysym => unicode translations. More languages can be added
23959         here, but real input-method support is needed.
23960
23961         * docs/Changes-1.4.txt: Added note about entry behavior.
23962         
23963         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
23964         to set the reading direction for a widget and the global direction.
23965         Add test which allows toggling the global direction. Two private
23966         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
23967
23968         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
23969           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
23970
23971         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
23972
23973         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
23974         underlining now handled by Pango.
23975
23976         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
23977         to RCStyle and Style. (Having both this and the old font name and GdkFont 
23978         is temporary.)
23979
23980         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
23981         convenience functions for creating contexts and layouts for widgets.
23982
23983         * gtk/testgtk.c: Enhance label tests with multilingual labels.
23984
23985 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
23986
23987         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
23988         titles to be active, even if they aren't visible.
23989         (gtk_clist_column_titles_passive):  Ditto.
23990
23991 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
23992
23993         * gtkmenu.c:
23994         * gtkmenu.h:
23995         * gtktypeutils.h: Spelling/grammar fixes in comments.
23996
23997 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
23998
23999         * gdk/nanox/*.h: add missing header files.
24000
24001 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
24002
24003         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
24004         send_event to TRUE.
24005         (gtk_drawing_area_size): queue a resize.
24006
24007 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
24008
24009         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
24010         the handlers, also invalidate them. bug nailed down by Karl Nelson
24011         <kenelson@ece.ucdavis.edu>.
24012
24013 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
24014
24015         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
24016         "(nil)" foundries, patch from Grigorios Magklis.
24017
24018         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
24019         on non-available fonts, based on a patch by Grigorios Magklis
24020         <maglis@cs.rochester.edu>.
24021
24022 2000-05-18  Elliot Lee  <sopwith@redhat.com>
24023
24024         * gdk/x11/gdkregion-generic.c: If a region does not have any
24025         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
24026         instead of GDK_OVERLAP_RECTANGLE_IN.
24027
24028 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
24029
24030         * gtk/gtklayout.c (gtk_layout_map): Remove references to
24031         OFFSCREEN, as it is no longer necessary.
24032
24033 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
24034
24035         * gtk/gtkcolorsel.c: Patch from David Santiago
24036         <mrcooger@cyberverse.com> to change things so that the 
24037         indicator of the active palette entry is done independently,
24038         not via the focus, since it should always be visible.
24039
24040 2000-05-17  Tor Lillqvist  <tml@iki.fi>
24041
24042         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
24043         refcount leaks as in the X11 backend.
24044
24045         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
24046         cosmetics.
24047
24048         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
24049         backend. Add _gdk_windowing_window_destroy().
24050
24051         * gtk/gtkcolorsel.c: Include correct backend-specific header.
24052         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
24053         either, but these probably do exist on nanox?)
24054         
24055         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
24056         which isn't necessarily defined by <math.h>.
24057
24058         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
24059         ancestry past GtkObject.
24060
24061         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
24062         from DLL on Win32.
24063
24064         * gtk/gtk.def: Update corresponding to recent changes.
24065
24066         * gtk/makefile.{cygwin,msc}: Updates.
24067
24068 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
24069
24070         * docs/Changes-1.4.txt: A bit of editing.
24071
24072         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
24073         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
24074         to clear the update area for the window, and clear it
24075         when hiding a window.
24076
24077         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
24078         if window destroyed.
24079
24080         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
24081
24082         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
24083         gdk_window_destroy() to the generic code, since there was a lot of 
24084         window-system-independent logic it in. Add a function:
24085         
24086          _gdk_window_destroy() 
24087
24088         to the internal API to destroy a window without unreferencing it.
24089         Add a function:
24090
24091          _gdk_windowing_window_destroy()
24092
24093         That does the windowing-system-dependent part of destroying 
24094         the window.
24095
24096 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
24097
24098         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
24099
24100 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
24101
24102         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
24103         Make gtk_widget_shape_combine_mask() keep a reference count on
24104         the pixmap since it keeps it around.
24105
24106 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
24107
24108         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
24109         leak.
24110
24111         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
24112         leak with event filters.
24113
24114 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
24115
24116         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
24117         signal handlers with the right data arguments. (Fixes
24118         some warnings when a widget was repeatedly set as a drag
24119         destination.)
24120
24121         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
24122         window so we can avoid avoid setting the DND properties on the
24123         toplevel window repeatedly.
24124
24125 2000-05-13  Tor Lillqvist  <tml@iki.fi>
24126
24127         * gdk/win32/gdkwin32.h: Define more message types missing from
24128         mingw headers.
24129
24130         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
24131         call gdk_window_destroy_notify(). It was never called. This
24132         probably meant that the GdkWindow was never freed. Thanks Owen for
24133         noticing (!).
24134
24135         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
24136         window as destroyed before calling DestroyWindow(). DestroyWindow()
24137         causes a call to the window procedure (gdk_WindowProc), which
24138         calls gdk_event_translate(), which calls
24139         gdk_window_destroy_notify(), which gets confused unless the window
24140         is set as destroyed.
24141
24142         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
24143         this function to indicate it's win32 only. Put inside #ifdef
24144         G_ENABLE_DEBUG.
24145
24146         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
24147         debugging function. (gdk_event_translate:) Add a default branch
24148         that uses the above function to print debug messages with all
24149         Windows messages symbolically.
24150
24151         * gdk/win32/gdkprivate-win32.h: Declare it, and
24152         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
24153
24154 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
24155
24156         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
24157         public header file.
24158
24159 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
24160
24161         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
24162
24163         * gtk/gtktext.c: made the adjustments no-construct args, simply
24164         provide default adjustments.
24165         (gtk_text_destroy): release adjustments.
24166
24167         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
24168         adjustment argument non-construct.
24169
24170         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
24171         instead of in finalize.
24172         (gtk_progress_get_text_from_value): 
24173         (gtk_progress_get_current_text): 
24174         (gtk_progress_set_value): 
24175         (gtk_progress_get_percentage_from_value): 
24176         (gtk_progress_get_current_percentage): 
24177         (gtk_progress_set_percentage): 
24178         (gtk_progress_configure): ensure an adjustment is present.
24179
24180 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
24181
24182         * gtk/gtkcolorsel.[hc]:
24183         * gtk/gtkcolorseldialog.[hc]:
24184         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
24185         their parent implementation, use bit fields for boolean values, don't
24186         create unused widgets, usage of glib types, braces go on their own
24187         lines, function argument alignment, #include directives etc. etc. etc..
24188
24189         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
24190
24191 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
24192
24193         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
24194
24195         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
24196         of NULL.
24197
24198         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
24199         to freed data.
24200         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
24201
24202         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
24203         to NULL when the toplevel is getting destroyed.
24204         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
24205         (gtk_menu_destroy): 
24206         (gtk_menu_init): store the information of whether we have to
24207         readd the initial child ref_count during destruction in a new
24208         GtkMenu field needs_destruction_ref_count.
24209
24210         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
24211         here, those reading: learn from my mistake! ;)
24212         in order for set_?adjustment to support a default adjustemnt if
24213         invoked with an adjustment pointer of NULL, the code read (pseudo):
24214         if (v->adjustment) unref (v->adjustment);
24215         if (!adjustment) adjustment = adjustment_new ();
24216         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
24217         now imagine the first unref to actually free the old adjustment and
24218         adjustment_new() creating a new adjustment from the very same memory
24219         portion. here, the latter comparision will unintendedly fail, and
24220         all hell breaks loose.
24221         (gtk_viewport_set_hadjustment):
24222         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
24223         after unreferencing it.
24224
24225         * gtk/gtkcontainer.[hc]: removed toplevel registration
24226         functions: gtk_container_register_toplevel(),
24227         gtk_container_unregister_toplevel() and
24228         gtk_container_get_toplevels() which had wrong semantics
24229         anyways: it didn't reference and copy the list.
24230
24231         * gtk/gtkwindow.c: we take over the container toplevel registration
24232         bussiness now. windows are registered across multiple destructions,
24233         untill they are finalized. the initial implicit reference count
24234         users are holding on windows is removed with the first destruction
24235         though.
24236         (gtk_window_init): ref & sink and set has_user_ref_count, got
24237         rid of gtk_container_register_toplevel() call. add window to
24238         toplevel_list.
24239         (gtk_window_destroy): unref the window if has_user_ref_count
24240         is still set, got rid of call to
24241         gtk_container_unregister_toplevel().
24242         (gtk_window_finalize): remove window from toplevel list.
24243         (gtk_window_list_toplevels): new function to return a newly
24244         created list with referenced toplevels.
24245         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
24246
24247         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
24248         adjustment a non-construct arg.
24249         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
24250         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
24251         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
24252
24253         * gtk/gtkrange.c: added some realized checks.
24254         (gtk_range_destroy): get rid of the h/v adjustments in the
24255         destroy handler instead of finalize. remove timer.
24256         (gtk_range_get_adjustment): demand create adjustment.
24257
24258         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
24259         we simply create them on demand now and get rid of them in
24260         the destroy handler.
24261         (gtk_viewport_destroy): get rid of the h/v adjustments in the
24262         destroy handler instead of finalize.
24263         (gtk_viewport_get_hadjustment): 
24264         (gtk_viewport_get_vadjustment): 
24265         (gtk_viewport_size_allocate): demand create h/v adjustment
24266         if required.
24267
24268         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
24269         gtk_widget_real_destroy () functionality.
24270         (gtk_widget_real_destroy): reinitialize with a new style, instead
24271         of setting widget->style to NULL.
24272
24273 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
24274
24275         * gtk/gtkcalendar.c:
24276         * gtk/gtkbutton.c: ported _get_type() implementation over to
24277         GType, either to preserve memchunks allocation facilities,
24278         or because Gtk+ 1.0 GtkTypeInfo was still being used.
24279
24280         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
24281         over. prepare for ::destroy to be emitted multiple times.
24282         removed reference tracer magic. chain into GObjectClass.shutdown()
24283         to emit ::destroy signal.
24284
24285         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
24286         fundamental.
24287
24288         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
24289         cludge.
24290
24291         * gtk/gtksocket.c:
24292         * gtk/gtkplug.c:
24293         * gtk/gtklayout.c:
24294         * gtk/gtklabel.c:
24295         * gtk/gtkargcollector.c:
24296         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
24297         not being a fundamental anymore, and to work with the new
24298         type system (nuked fundamental type varargs clutter).
24299
24300         * gtk/*.c: install finalize handlers in the GObjectClass
24301         part of the class structure.
24302         changed direct GTK_OBJECT()->klass accesses to
24303         GTK_*_GET_CLASS().
24304         changed direct object_class->type accesses to GTK_CLASS_TYPE().
24305
24306         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
24307         GType. made most of the GTK_*() type macros and Gtk* typedefs
24308         simple wrappers around macros and types provided by GType.
24309         most notably, a significant portion of the old API vanished:
24310         GTK_TYPE_MAKE(),
24311         GTK_TYPE_SEQNO(),
24312         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
24313         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
24314         GTK_TYPE_ARGS,
24315         GTK_TYPE_CALLBACK,
24316         GTK_TYPE_C_CALLBACK,
24317         GTK_TYPE_FOREIGN,
24318         GtkTypeQuery,
24319         gtk_type_query(),
24320         gtk_type_set_varargs_type(),
24321         gtk_type_get_varargs_type(),
24322         gtk_type_check_object_cast(),
24323         gtk_type_check_class_cast(),
24324         gtk_type_describe_tree(),
24325         gtk_type_describe_heritage(),
24326         gtk_type_free(),
24327         gtk_type_children_types(),
24328         gtk_type_set_chunk_alloc(),
24329         gtk_type_register_enum(),
24330         gtk_type_register_flags(),
24331         gtk_type_parent_class().
24332         replacements, where available are described in ../docs/Changes-1.4.txt.
24333         implemented compatibility functions for the remaining API.
24334
24335         * configure.in: depend on glib 1.3.1, use gobject module.
24336
24337 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
24338
24339         * TODO.xml: Various updates to current status.
24340
24341 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
24342
24343         * gtk.m4: Print out version when test succeeds.
24344
24345 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
24346
24347         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
24348         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
24349         
24350         (Original triangle color selector from Simon Budig
24351         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
24352         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
24353         Santiago <mrcooger@cyberverse.com>)
24354
24355         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
24356         out into a separate widget.
24357
24358         * gtk/testgtk.c: Add some checkbuttons for toggling palette
24359         and opacity controls.
24360
24361 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
24362
24363         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
24364         snuck in prematurely.
24365
24366 2000-05-07  Tor Lillqvist  <tml@iki.fi>
24367
24368         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
24369         had deleted a ! operator by mistake, which caused
24370         GDK_SELECTION_CLEAR events never to be generated, which caused
24371         only the first copy to the clipboard from an gtkeditable to
24372         actually cause a copy to the Windows clipboard.
24373
24374 2000-05-06  Tor Lillqvist  <tml@iki.fi>
24375
24376         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
24377         compilation, too. Current mingw gcc distributions include the
24378         necessary headers. Also the necessary IIDs are now in mingw
24379         headers/libraries, and own definitions unnecessary.
24380
24381         More hacking on OLE2 DND, still doesn't work though, and thus
24382         ifdeffed out.
24383
24384         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
24385         here, too.
24386
24387 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
24388
24389         * gdk/nanox/*: nano-X port work in progress.
24390         * gdk/simple.c: simple test for Gdk.
24391         * README.nanox: notes about the port: read this first!
24392         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
24393         with nano-X.
24394
24395 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
24396
24397         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
24398         gdk_window_clear() into common code, implement in terms of
24399         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
24400         not redirected to the backing rectangle.
24401
24402 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
24403
24404         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
24405         EXTRA_DIST. It does not work well when the file that
24406         everything depends on is not in the tarball.
24407
24408 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
24409
24410         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
24411         with recursion where process_updates() is called from
24412         an expose handler. (GtkTextView is highly broken in
24413         doing this, but it should work, so it is a nice test
24414         case.)
24415
24416 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
24417
24418         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
24419         handle the case where updates are queued during processing of
24420         updates.
24421
24422 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
24423
24424         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
24425         window is on gdk_display - use that instead of segfaulting.
24426
24427 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
24428
24429         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
24430         broken and require an empty arg, give it to them.
24431
24432 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
24433
24434         * gtk/gtklabel.h: indentation fixes.
24435
24436 2000-05-02  Tor Lillqvist  <tml@iki.fi>
24437
24438         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
24439         draw too narrow or too low arcs, they seem to fail, at least with
24440         some display drivers.
24441
24442         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
24443
24444         Large changes to the Win32 backend, partially made necessary by
24445         the changes to the backend-independent internal
24446         structures. Attempts to implement similar backing store stuff as
24447         on X11. The current (CVS) version of the Win32 backend is *not* as
24448         stable as it was before the no-flicker branch was merged. A
24449         zipfile with that version is available from
24450         http://www.gimp.org/win32/. That should be use by "production"
24451         code until this CVS version is usable. (But note, the Win32
24452         backend has never been claimed to be "production quality".)
24453
24454         * README.win32: Add the above comment about versions.
24455
24456         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
24457
24458         * gdk/gdk.def: Update.
24459
24460         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
24461         presumably be replaced by some more better mechanism as 1.4 gets
24462         closer to release shape.
24463
24464         * gdk/makefile.{cygwin,msc}: Update.
24465
24466         * gdk/win32/*.c: Correct inclusions of the backend-specific and
24467         internal headers. Change code according to changes in these. Use
24468         gdk_drawable_*, not gdk_window_* where necessary.
24469
24470         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
24471         our old DND.
24472
24473         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
24474         to interpret single characters as UTF-8. Thanks to Hans Breuer.
24475         Use correct function name in warning messages.
24476
24477         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
24478         GSourceFuncs gdk_event_prepare and gdk_event_check.
24479         (gdk_event_get_graphics_expose): Do implement, use
24480         PeekMessage. Thanks to Hans Breuer.
24481         (event_mask_string): Debugging function to print an GdkEventMask.
24482         (gdk_pointer_grab): Use it.
24483
24484         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
24485         (old) book I used claimed was Hangul actually is CJK Unified
24486         Ideographs Extension A. Also, Hangul Syllables were missing.
24487         Improve logging.
24488
24489         * gdk/win32/gdkgc-win32.c: Largish changes.
24490
24491         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
24492         g_win32_getlocale() from GLib, and not setlocale() to get current
24493         locale name.
24494
24495         * gdk/win32/gdkprivate-win32.h
24496         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
24497         gdkwin32.h, similarily as in the X11 backend.
24498
24499         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
24500         assignment was used instead of equals in if test. Thanks to Hans
24501         Breuer.
24502
24503         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
24504         the X11 version.
24505
24506         * gdk/win32/makefile.{cygwin,msc}
24507         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
24508         path to the Win32 headers that works also with the mingw compiler.
24509
24510         * gtk/gtkstyle.c: Include <string.h>.
24511
24512 2000-04-26  Havoc Pennington  <hp@redhat.com>
24513
24514         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
24515         replacing the broken gtk_label_get ()
24516
24517 2000-04-15  Havoc Pennington  <hp@pobox.com>
24518
24519         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
24520         this keeps scanner scripts from getting confused.
24521
24522         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
24523         data, rather than void
24524
24525 2000-04-15  Tor Lillqvist  <tml@iki.fi>
24526
24527         * gtk/gtkclist.c (gtk_clist_motion)
24528         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
24529         with is_hint FALSE, get x and y from the event. They used to be
24530         used uninitialised. The Win32 backend never sends motion events
24531         marked as hints. This for instance fixes the annoying file and
24532         font selector behaviour in the Win32 version.
24533
24534 2000-04-14  Tor Lillqvist  <tml@iki.fi>
24535
24536         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
24537         gtk_private_n_signals variables, they are used by some software,
24538         sigh.
24539
24540         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
24541         installation directory from the Registry, where the installer
24542         should have put it.
24543
24544 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
24545
24546         * gdk/x11/Makefile.am: Fix problem with installation directory for
24547         gdkx.h
24548
24549         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
24550         <mrcooger@cyberverse.com> so that when selecting menus with the
24551         mouse, the first item will not be selected, but when selecting
24552         with an accelerator, or navigating left-right on a menubar with
24553         the menus popped up, the first item will be selected.
24554
24555 2000-04-05  Dan Damian  <dand@dnttm.ro>
24556
24557         * configure.in: Added "ro" to ALL_LINGUAS.
24558
24559 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
24560
24561         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
24562         indentation.
24563
24564         * Makefile.am (EXTRA_DIST): Fix typo.
24565
24566         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
24567         to catch gdkconfig.h
24568
24569         * gtk/gtkitemfactory.c: Added FIXME.
24570
24571 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
24572
24573         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
24574         s/return_if_fail/return_val_if_fail/g and add a return value.
24575
24576 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
24577
24578         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
24579         merge slipup.
24580
24581         * gdk/gdkinput.h: Fix missing line from merge.
24582
24583 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
24584
24585         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
24586         instead of gdkprivate.h.
24587
24588 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
24589
24590         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
24591         parent class to correctly be GtkDialogClass.
24592
24593 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
24594
24595         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
24596         toplevel windows and their immediate children by their parents,
24597         since the size of toplevel windows is out of our immediate
24598         control and we don't get any real benefit from trying to track
24599         this size for clipping.
24600
24601         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
24602         for input_only windows.
24603
24604         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
24605         to fix some hacks and make sure that we don't try to set the
24606         background of input only windows.
24607
24608 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
24609
24610         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
24611         the _really_ internal stuff, and leave gdkprivate.h for the fake private
24612         stuff that we've traditionally exposed.
24613
24614         * gdk/**.c: Use gdkinternals.h where appropriate.
24615
24616         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
24617         not include gdkprivate-x11.h, move all stuff of conceivable public
24618         interest into gdkx.h; keep all really private stuff in
24619         uninstalled header gdkprivate-x11.h.
24620
24621         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
24622         image->image_put on windows through a new function _gdk_window_draw_image()
24623         to allow us to do backing store for images. (Sort of ugly)
24624
24625         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
24626         contexts locally so that we can offset them properly when drawing 
24627         onto backing pixmaps.
24628
24629         * gdk/gdkinput.h: Reindented
24630
24631         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
24632         pixmap or color for the window, so we can properly initialize
24633         our double-buffer pixmaps, and also so that we temporarily set
24634         a background of None while scrolling.
24635
24636         * gdk/gdkregion.h: Revise region boolean operators to have an
24637         interface that is actually convenient - switch from creating new
24638         regions on every op, to "methods" that modify existing regions
24639         (A = A OP B). 3 argument forms which allow dest == src, would also
24640         be possible, but the current interfaces seem to map nicely
24641         onto what needs to be done. (There is quite a lot of region
24642         code in GDK now.)
24643
24644         * gdk/gdkregion.h: Add constructor from rectangle and a copy
24645         operator.
24646
24647         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
24648         gdkpoly-generic.h: Copy region code from Xlib, switch it over
24649         to 32 bit coordinates, modify it to be mostly GTK+ style
24650         and to have interfaces that match gdkregion.h.
24651
24652         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
24653         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
24654         create a backing pixmap and redirect all drawing to
24655         that backing pixmap until a matching gdk_window_end_paint().
24656
24657         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
24658         Create a special drawable class for GtkWindow's that 
24659         redirects the drawing to the backing pixmap as necessary
24660         and then calls the real operations in _gdk_windowing_window_class.
24661
24662         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
24663         Store invalid region for each window. Generate expose events for invalid
24664         region in an idle. This replaces both the expose compression
24665         and the redrawing queuing in GTK+. It is both more efficient and
24666         simpler than either one individually and far more so then the
24667         combination.
24668
24669         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
24670         Emulate 32 bit coordinates for windows with 16 bit coordinates
24671         by offsetting drawing, guffaw scrolling techniques and
24672         mapping/unmapping child windows as necessary.
24673
24674         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
24675         where, when invalid regions are processed, the region is stored,
24676         and if expose events come in that are detectably duplicate
24677         the processed exposes (by comparison of event serial numbers),
24678         the stored region is subtracted out of those exposes.
24679
24680         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
24681         regions newly exposed when scrolling or resizing windows.
24682         This, combined with forcing processesing of queued invalidated
24683         regions, gives nice flicker-free scrolling.
24684
24685         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
24686         invalidated regions after every scroll.
24687
24688         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
24689         emulation in GDK. Its, for all practical purposes just a
24690         GtkViewport/GtkFixed hybrid now.
24691
24692         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
24693         (16-bit) structures as necessary instead of just casting.
24694
24695         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
24696         in terms of the structures from gdkregion-generic.c, using appropriate
24697         offsets from GDK to X11 coordinates. Cache clip mask and
24698         origin and ts origin locally and only flush to the server
24699         when drawing, to avoid constantly setting and resetting these
24700         values when offsetting GC's for scrolling and backing pixmaps.
24701
24702         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
24703
24704         * gtk/gtkcontainer.c: Call process_all_updates at end
24705         of resizing to reduce flicker. (Avoids having redraw
24706         lag arbitrarily behind resize under some circumstances)
24707
24708         * gtk/gtkentry.c: Remove old backing store code, and simply take
24709         advantage of the new backing store capabilities of GDK.
24710
24711         * gtk/gtkmain.c: Simple implementation of widget backing
24712         store - simply push a paint while handling each expose.
24713         (Should really be configurable widget for widget.)
24714         
24715         * gtk/gtkwidget.c: Remove all the old complicated redraw
24716         code, and simply invalidate the GDK windows from
24717         gdk_window_queue_clear(), etc. (Sigh, so much carefully
24718         debugged complexity ... gone to the winds.)
24719
24720         Remove all the code for suppressing expose events while
24721         resizes are pending; this isn't needed since the invalid
24722         areas won't be processed until after the resizes are
24723         processed, since they are in a lower priority idle.
24724
24725 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
24726
24727         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
24728         and height of dest rectangle for non-intersecting rectangles.
24729
24730 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
24731
24732         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
24733         for GdkRectangle.
24734
24735 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
24736
24737         * gdk/gdk{events,image,private,types,window}.h
24738          gdk/x11/gdkinputprivate.h: Change all coordinates
24739          from int16 to int. Also, Change width and height from
24740          unsigned to signed to avoid all the stupid C 
24741          signedness bugs.
24742
24743 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
24744
24745         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
24746         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
24747         Add some more detailed checking.
24748
24749         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
24750         New function to retrieve the depth of a drawable.
24751
24752         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
24753         field, reorder fields to save memory. 
24754
24755 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
24756
24757         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
24758         of the background image instead of scaling the background down to
24759         a line.
24760
24761         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
24762         which temporarily set slider to wrong size.
24763
24764         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
24765         queue_clear().
24766
24767 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
24768
24769 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
24770
24771         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
24772
24773 2000-03-17  Tor Lillqvist  <tml@iki.fi>
24774
24775         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
24776         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
24777
24778         * gdk/win32/gdkfont-win32.c
24779         * gdk/win32/gdkproperty-win32.c
24780         * gdk/win32/gdkselection-win32.c
24781         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
24782         now declared such.
24783
24784 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
24785
24786         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
24787
24788 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
24789
24790         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
24791         is called without trapping X errors.
24792
24793 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
24794
24795         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
24796         way into the fontset lists.
24797
24798 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
24799
24800         * gtk/gtkthemes.h: add extern "C" scope.
24801
24802 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
24803
24804         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
24805         to make appends to the list constant. (gtk-guy-990901-0.patch)
24806
24807 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
24808
24809         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
24810         for the typename hash table.
24811
24812 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
24813
24814         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
24815         to make sure we never divide by zero. 
24816         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
24817
24818 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
24819
24820         * gtk/gtkfontsel.c: Apply patch from
24821         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
24822         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
24823
24824         Also, some cleanups in atom handling.
24825
24826 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
24827
24828         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
24829         not GtkWidget.
24830
24831 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
24832
24833         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
24834         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
24835         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
24836         more guint wrap-around bugs before going to bed.
24837
24838 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
24839
24840         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
24841         guint wrap arounds in allocation.width.
24842
24843         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
24844         process untill we fit the allocation given.
24845
24846 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
24847
24848         * gtk/gtkwidget.c:
24849         (gtk_widget_unrealize): guard widget access with ref/unref
24850         around signal emission.
24851         (gtk_widget_hide): same here, but also check its destroyed
24852         state before queueing a resize.
24853
24854 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
24855
24856         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
24857         of gtk_default_insensitive_bg as insensitive base color.
24858
24859         * gtk/gtktext.c (gtk_text_style_set): set the background color according
24860         to the widget's state.
24861         (gtk_text_realize): same here.
24862         (gtk_text_state_changed): same here.
24863         (draw_bg_rect): compare background color against base[] from
24864         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
24865
24866 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
24867
24868         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
24869         grabs are active, unless a delete event is send to the toplevel
24870         of the currently grab holding widget.
24871
24872 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
24873
24874         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
24875         debugging g_print's.
24876
24877 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
24878
24879         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
24880         ever make the scrolled-window requisition ever depend on the 
24881         visibility state of the scrollbars for the AUTOMATIC policy. 
24882         This breaks the GTK+ requisition model, and causes loops.
24883
24884 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
24885
24886         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
24887         the default font to avoid problems with XFree86-4.0 where the
24888         default charset is iso10646-1, not iso8859-1.
24889
24890 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
24891
24892         * acinclude.m4
24893         * config.guess
24894         * config.sub
24895         * ltconfig
24896         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
24897
24898         * gtk/Makefile.am: minor cosmetic consistency tweak
24899
24900 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
24901
24902         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
24903         the activate_time to 0, so that we handle a quick
24904         press/release press/release properly and don't suppress
24905         the second release. (Red Hat bug #7545)
24906
24907 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
24908
24909         * gtk/gtkctree.c (row_delete):
24910         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
24911         bugs with destruction notifier, *always* update internal
24912         structures *before* calling user code.
24913
24914 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
24915
24916         A few more fixes for bug #5487, #2051, #2677.
24917         * gtk/gtkclist.c : 
24918         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
24919         not GDK_BUTTON_PRESS.
24920         (resync_selection): resync only if selection_mode is
24921         GTK_SELECTION_EXTENDED
24922         * gtk/gtkctree.c (resync_selection): same here
24923
24924 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
24925
24926         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
24927         gdk_drag_get_selection() and gtk_menu_detach().
24928
24929         [ From Jeroen Ruigrok/Asmodai ]
24930
24931 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
24932
24933         * gtk/gtknotebook.c (gtk_notebook_size_request): 
24934         page->tab_label can be NULL.
24935
24936 2000-01-25  Havoc Pennington  <hp@pobox.com>
24937         
24938         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
24939         arg is boolean
24940
24941         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
24942
24943         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
24944
24945         * gdk/gdkproperty.c (gdk_property_get): return boolean
24946
24947         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
24948
24949         * gdk/gdkim.c (gdk_im_ready): return boolean
24950
24951         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
24952
24953         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
24954         glib clash, should fix glib)
24955
24956         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
24957         (gdk_get_show_events): return gboolean, and canonicalize 
24958         to TRUE/FALSE
24959
24960         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
24961         colormap is private
24962         (gdk_colors_alloc): gboolean whether to be contiguous
24963         (gdk_color_equal): return gboolean since we are a predicate
24964         and not a qsort() (this looks semi-wrong due to glib breakage,
24965         IMO glib should be fixed)
24966         
24967         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
24968         (gdk_get_use_xshm): return gboolean
24969         (gdk_pointer_is_grabbed): return gboolean
24970
24971         * gdk/gdk.h: Change prototypes to match all the above changes,
24972         and re-run egtk-format-protos as required.
24973
24974 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
24975
24976         * gtk/gtkctree.c (resync_selection): 
24977         * gtk/gtkclist.c (resync_selection):
24978
24979         Return immediately if clist->drag_pos < 0. This is a workaround
24980         for the corrupt state that the clist gets into when a
24981         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
24982
24983         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
24984         
24985         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
24986         variable from recent commit.
24987
24988 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
24989
24990         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
24991
24992 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
24993
24994         * gtk/Makefile.am: prefix all autogenerated source that get build in
24995         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
24996         in builddir. since we subsequently cd into srcdir for autogeneration,
24997         the paths have to be stripped from the target file names, thusly we
24998         use $(@F) as target names now.
24999         put a comment about configure.in's --disable-rebuilds option,
25000         which can be used for non-writable source directories, for development
25001         setups though, srcdir has to be *writable*.
25002
25003 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
25004
25005         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
25006           Finish the job of allowing event to be NULL.
25007           (Fixes bug #4283, reported by Chris Blizzard)
25008
25009         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
25010           things so that the cursor appears on screen, properly
25011           take into account INNER_BORDER.
25012           (Fixes bug #4754, reported by Antonio Campos)
25013
25014 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
25015
25016         * gtk/gtknotebook.c (gtk_notebook_map): Don't
25017           show the tab_label unless it itself is visible.
25018
25019           gtk/gtknotebook.c (gtk_notebook_size_request):
25020           Do a better job of making sure that the visibility
25021           of the tab label corresponds to whether it should
25022           be mapped or not.
25023
25024 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
25025
25026         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
25027           Use the requisition, not the allocation, since the
25028           allocation has not necessarily been computed yet.
25029           (Pointed out by Eugene Osintsev)
25030
25031 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
25032
25033         * gtk/gtkstyle.c (gtk_style_new): Dont' set
25034           style/base[GTK_STATE_INSENSITIVE] both to
25035           gtk_default_insensitive_bg!
25036           (Bug #2187, reported by Jonathan Blandford)
25037
25038         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
25039           Add Alt_L, Alt_R to list of invalid accelerators.
25040           (Bug #3736, reported by Vlad Harchev)
25041
25042 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
25043
25044         * gtk/gtkfilesel.c (open_ref_dir): Fix several
25045         bugs which occured after an attempt to open 
25046         invalid home directory left cmpl_state->reference_dir == NULL.
25047
25048          - completion on files in home directory didn't work
25049          - completion on an empty string caused  segfault
25050
25051          (Bug #3678, reported by Steve Ratcliffe)
25052
25053         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
25054         cut and paste error that was causing scales to
25055         be incorrectly positioned.
25056         (Bug #2956,
25057          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
25058
25059 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
25060
25061         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
25062         when checking for dcgettext, if we've found we needed
25063         it for dgettext.
25064 +
25065 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
25066
25067         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
25068         queue_clear on NO_WINDOW widgets during a reparent,
25069         since at that point the window and widget heirarchies
25070         are out of sync. This stops crashing in some cases
25071         (the scrolled window reparent test, for instance), and
25072         _probably_ won't cause drawing errors.
25073
25074         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
25075         test do what it was supposed to do and be robust against
25076         window closings, etc. (Bug #2443)
25077
25078 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
25079
25080         * gtk/gtkentry.c: Fix return values on mouse events.
25081         (Bug #2686, Sky <seb_sky@yahoo.com>)
25082
25083         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
25084         (pointed out by George Lebl)
25085
25086         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
25087         (From Ettore Perazzoli  <ettore@helixcode.com>)
25088  
25089 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
25090
25091         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
25092         clicks between rows or outside calender area correctly.
25093         (Patch from Damon Chaplin)
25094
25095         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
25096         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
25097           Call destroy function when overwriting existing data. 
25098           (Pointed out by Damon Chaplin)
25099
25100 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
25101
25102         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
25103           which was causing problems on various systems with Xmu.
25104           This hasn't been needed for a very long time.
25105           (Fixes #1185 3167)
25106
25107 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
25108
25109         * gdk/gdki18n.h: Include <ctype.h> when defining
25110           gdk_isw* in terms of is* as a fallback.
25111           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
25112
25113 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
25114
25115         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
25116           realize the widget when it is size allocated!
25117           (old, old bug)
25118
25119         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
25120           Removed unused call to gdk_window_get_size() that
25121           showed up when the above was fixed.
25122
25123 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
25124
25125         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
25126           fix up widget->window when the widget is a
25127           NO_WINDOW container widget.
25128
25129 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
25130
25131         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
25132           to account for the fact that feof() does _not_ 
25133           return TRUE on errors, and thus avoid infinite loops
25134           when trying to use gdk_pixmap_create_from_xpm()
25135           on unreadable values.
25136
25137 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
25138
25139         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
25140
25141 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
25142
25143         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
25144           gdk_gc_set_dashes to take gint8 instead of gchar to
25145           make it clearer that it is _not_ a NULL terminated string.
25146
25147         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
25148           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
25149           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
25150           arguments.
25151
25152 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
25153
25154         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
25155         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
25156         background size relative to our allocation, guard against small
25157         allocations, we may have not yet been size allocated.
25158
25159 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
25160
25161         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
25162         not just version == 3. We implement all 3 + most of 4 - 
25163         (we don't support matching text/plain;charset=iso-8859-1
25164         to a dest that expects text/plain). We'll still advertise
25165         3 to be safe, but any client implementing version >= 3
25166         must interoperate with 3.
25167         
25168 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
25169
25170         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
25171         background and gc members, add a warning in gtk_tooltips_set_color()
25172         indicating that this function is deprecated.
25173
25174 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
25175
25176         * docs/gtkfaq.sgml: FAQ Update:
25177           - Minor cleanups (Emmanuel, me)
25178           - New questions:
25179                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
25180                 How can I retrieve the text from a GtkMenuItem? (timj)
25181                 How do I validate/limit/filter the input to a GtkEntry? (me)
25182                 Memory does not seem to be released when I free the list
25183                         nodes I've allocated (timj)
25184
25185 2000-03-07  Tor Lillqvist  <tml@iki.fi>
25186
25187         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
25188         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
25189         for which it is no use to call GetLastError onWin9x.
25190         (gdk_other_api_failed) New function, for general error
25191         reporting without calling GetLastError.
25192         (gdk_win32_api_failed) OTOH, this function always calls
25193         GetLastError. (gdk_win32_last_error_string) Remove this function,
25194         GLib has the equivalent now.
25195
25196         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
25197         call them with function name, file name and line number in the
25198         arguments.
25199
25200         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
25201         functions.
25202         
25203         * gtk/gtk.def: Add some missing entry points.
25204
25205         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
25206         gtk_paned_set_gutter_size, which don't exist any longer, as void.
25207         
25208         Fixes by Hans Breuer:
25209
25210         * gdk/makefile.msc: Update for debugging.
25211
25212         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
25213         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
25214         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
25215         in the dash_list.
25216
25217         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
25218         the x11 backend.
25219
25220         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
25221
25222         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
25223
25224 2000-03-04  Tor Lillqvist  <tml@iki.fi>
25225
25226         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
25227         just pixel value of background colour.
25228
25229         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
25230         containing code snippet previously duplicated in a couple of
25231         places.
25232         
25233         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
25234         gdk_colormap_color.
25235
25236         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
25237         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
25238         events for autorepeated Shift, Control and Alt keys. Use
25239         gdk_colormap_color.
25240
25241         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
25242         pointer is inside the window the cursor of which we are setting,
25243         call SetCursor immediately.
25244
25245         * gdk/win32/makefile.cygwin
25246         * gtk/makefile.cygwin: If we don't have the build number stamp
25247         file, use zero.
25248
25249         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
25250         gtk_paned_set_gutter_size as empty.
25251
25252         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
25253         
25254 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
25255
25256         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
25257           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
25258           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
25259           docs/gtk_tut.sgml docs/gtk.texi TODO:
25260
25261           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
25262
25263 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
25264
25265         * gtk/gtkcalendar.c: Implement num_marked_dates,
25266           and don't emit mutiple day_selected signals on
25267           month_prev.
25268
25269 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
25270
25271         * docs/make-todo (lineno): let title and logo be configurable so
25272         that GNOME can use this script too.
25273
25274         * TODO.xml: added logourl and a title
25275
25276 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
25277
25278         * TODO.xml: Added some UI items, and an explanatory
25279         comment at the top of the file.
25280
25281 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
25282
25283         * TODO.xml: some updates, added abunch of new entries.
25284         a note for those fiddeling with this file, when done
25285         with it, invoke:
25286         $ ./docs/make-todo TODO.xml >/dev/null
25287         and correct output errors before comitting changes.
25288
25289 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
25290
25291         * TODO.xml: Added XML-structured TODO file.
25292         * docs/make-todo: python script to turn TODO.xml into
25293           pretty XML output. 
25294
25295 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
25296
25297         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
25298         the function to let it draw the seven dots, instead of the old,
25299         much maligned, method.
25300         (draw_dot): New function to draw a dot.
25301
25302         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
25303         to draw the handle inside the border width as opposed to outside.
25304         Use paint function instead of gdk_draw_point.
25305
25306         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
25307         to draw the handle inside the border width as opposed to outside.
25308         Use paint function instead of gdk_draw_point.
25309
25310         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
25311         Change indenting to be more GTK like.
25312
25313 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
25314
25315         * docs/gtk_tut.sgml: New section on GtkCalendar
25316         * examples/calendar: Update example code
25317
25318 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
25319
25320         * docs/gtkfaq.sgml: FAQ Update
25321
25322 2000-02-19  Anders Carlsson  <andersca@gnu.org>
25323
25324         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
25325         to prevent the scroll event to be propagated upwards.
25326
25327 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
25328
25329         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
25330         OwnerGrabButtonMask from button entries for
25331         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
25332
25333         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
25334         to the event mask (which will result in button/press release
25335         being added to the event mask on Unix) so scrolling works
25336         for layouts in scroll windows.
25337
25338         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
25339
25340         Patch from Anders Carlsson  <andersca@gnu.org> to add
25341         a scroll event.
25342
25343         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
25344         scrolling to the "Test Scrolling" part of testgtk.
25345  
25346         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
25347  
25348         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
25349         it against GDK_SCROLL.
25350  
25351         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
25352         way of mouse wheel scrolling.
25353  
25354         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
25355  
25356         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
25357  
25358         * gtk/gtkmain.c: Removed previous mouse wheel hack.
25359  
25360         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
25361         gdk_event_mask_table.
25362  
25363         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
25364         GdkEventScroll handler.
25365  
25366         * gdk/gdkevents.h: Added GdkEventScroll structure.
25367  
25368 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
25369
25370         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
25371         and Anders Carlsson to change the Paned widgets so that they
25372         can be dragged from anywhere along the length. Also change
25373         the way that this is drawn to make this apparent.
25374
25375         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
25376         from George Lebl to check that option_menu->menu is present
25377         before getting history.
25378
25379 2000-02-14  Tor Lillqvist  <tml@iki.fi>
25380
25381         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
25382         before the assertion for non-NULL segment list.
25383
25384         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
25385         Seems that pattern brushes *must* be 8x8 pixels! At least on my
25386         machine, but it might be display driver dependent. Sigh, so make
25387         sure the stipple is that size. Does Windows suck or what?
25388
25389         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
25390         places.
25391
25392 2000-02-13  Havoc Pennington  <hp@pobox.com>
25393
25394         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
25395         refcount to 1
25396         (gdk_cursor_new): init refcount to 1
25397
25398         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
25399
25400 2000-02-13  Tor Lillqvist  <tml@iki.fi>
25401
25402         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
25403         so that we don't have to do unnecessary settings to the HDC.
25404
25405         * gdk/win32/gdkdrawable-win32.c
25406         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
25407         gdk_gc_predraw.
25408
25409         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
25410         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
25411         GDI paths, call WidenPath to get the outline of the stroken path,
25412         and then fill the outline (with the brush that was built from the
25413         stipple).
25414
25415         * gdk/win32/gdkgc-win32.c: Factor out common code from
25416         _gdk_win32_gc_new and gdk_win32_gc_set_values into
25417         gdk_win32_gc_values_to_win32values. Use correct colour for
25418         SetBkColor() (Until now the code actually used a random colour in
25419         the call to SetBkColor()... but that didn't show up as not many
25420         GDI APIs use the background colour. Pattern (opaque stippled)
25421         brushes do.)
25422
25423         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
25424         gdk_win32_api_failed): New functions for error logging.
25425
25426         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
25427         WIN32_API_FAILED to call them, passing function or file name and
25428         line number.
25429
25430         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
25431
25432         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
25433         GdkColor for foreground and background in GdkGCWin32Data.
25434
25435         * gdk/makefile.cygwin: Link in the resource object separately.
25436
25437         * gdk/win32/rc/gdk.rc
25438         * gtk/gtk.rc (New file)
25439         * gdk/win32/makefile.cygwin
25440         * gtk/makefile.cygwin: Update build number in DLLs automatically,
25441         as in GLib.
25442
25443 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
25444
25445         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
25446         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
25447         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
25448         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
25449         parameters given and cursor->ref_count. coding style fixups.
25450
25451         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
25452         not GtkWidget.
25453         
25454         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
25455         fix up widget macros and add _GET_CLASS() variant.
25456         
25457         * gtk/*.c: some GtkType fixups.
25458
25459 2000-02-09  Tor Lillqvist  <tml@iki.fi>
25460
25461         * gdk/win32/gdkproperty-win32.c
25462         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
25463         were reversed.
25464
25465 2000-02-04  Tor Lillqvist  <tml@iki.fi>
25466
25467         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
25468         g_filename_to_utf8 to convert the font names Windows gives us from
25469         whatever is the default codepage to UTF-8.
25470         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
25471         in the other direction.
25472
25473         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
25474         error in debugging output.
25475
25476 2000-02-02  Tor Lillqvist  <tml@iki.fi>
25477
25478         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
25479         and height parameters to gdk_window_clear_area(). Not minus one.
25480
25481 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
25482
25483         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
25484         checks if the widget passed to gtk_drag_get_data() was not the
25485         dest widget.
25486
25487 2000-02-01  Tor Lillqvist  <tml@iki.fi>
25488
25489         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
25490         g_filename_from_utf8 functions (which were added a moment ago to
25491         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
25492         size buffers.
25493
25494         gtk_file_selection_get_filename returns the filename in the C
25495         runtime encoding. It calls g_filename_from_utf8, but copies the
25496         returned string to a static buffer, which is returned. I think
25497         this is better than returning the result from g_filename_from_utf8
25498         directly, which would mean all apps that use it would have to free
25499         the return value. Or should this function care about this issue at
25500         all? Maybe a new function with clearly defined semantics.
25501
25502         * gtk/gtkfilesel.h: Add comment about
25503         gtk_file_selection_get_filename returning the filename in the C
25504         runtime's encoding.
25505
25506         * README.win32
25507         * gdk/gdk.def
25508         * gdk/makefile.{cygwin,msc}
25509         * gtk/gtk.def: Updates.
25510
25511         * gdk/gdkcursor-win32.c: Initialise refcount.
25512
25513 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
25514
25515         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
25516
25517 2000-01-30  Havoc Pennington  <hp@pobox.com>
25518
25519         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
25520         destroy
25521
25522         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
25523
25524         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
25525         implemented in platform-specific code
25526
25527         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
25528
25529         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
25530         underscore in front
25531
25532         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
25533         put an underscore in front
25534
25535         * gdk/gdkcursor.c: new file, implements
25536         gdk_cursor_ref/gdk_cursor_unref
25537
25538         * gdk/gdkcursor.h: Refcount GdkCursor
25539
25540         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
25541
25542 2000-01-29  Tor Lillqvist  <tml@iki.fi>
25543
25544         * gdk/gdkwindow.h
25545         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
25546
25547 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
25548
25549         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
25550         structures to properly inherit from GtkWidget not GtkBin.
25551
25552 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
25553
25554         * gtk+.spec.in: Added lib/gtk+/include/* to %files
25555         (bug #5178 - Peter Wainright)
25556         
25557         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
25558         so that it will be installed.
25559         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
25560
25561 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
25562
25563         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
25564         for the GtkStyleClass vtable const.
25565
25566         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
25567         take a const string argument like GtkTranslateFunc. This will
25568         require changes in use code.
25569
25570 2000-01-19  Tor Lillqvist  <tml@iki.fi>
25571
25572         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
25573         semantics (to mimic the X11 backend, which just calls XClearArea)
25574         is to check for zero width (and height), and in that case use the
25575         window's width minus x (height minus y). This fixes for instance
25576         some redraw problems with gtkclist, which were easily noticeable
25577         in the gtk file selection widget.
25578
25579         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
25580         windows.
25581
25582 2000-01-13  Tor Lillqvist  <tml@iki.fi>
25583
25584         * configure.in
25585         * gdk/Makefile.am
25586         * gdk/x11/Makefile.am
25587         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
25588         (bug #5177).
25589         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
25590         out later.
25591
25592 2000-01-09  Tor Lillqvist  <tml@iki.fi>
25593
25594         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
25595         WM_MOVE for iconified or invisible windows. This fixes various
25596         problems when minimising windows. Thanks to Bernd Herd.
25597
25598 2000-01-05  Tor Lillqvist  <tml@iki.fi>
25599
25600         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
25601         backend's draw_lines method, not draw_points.
25602
25603 2000-01-02  Tor Lillqvist  <tml@iki.fi>
25604
25605         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
25606         before Owen's reorganisation: Don't have queued_events and
25607         queued_tail statics in this file, but use gdk_queued_events and
25608         gdk_queued_tail. This makes exposure event compression work again.
25609
25610         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
25611         seem to be needed?
25612
25613 1999-12-30  Tor Lillqvist  <tml@iki.fi>
25614
25615         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
25616         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
25617         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
25618         doesn't do anything.
25619
25620         * gdk/gdk.def: Add gdk_xid_table_insert.
25621
25622         * gdk/win32/gdkprivate-win32.h
25623         * gdk/win32/gdkevents-win32.c
25624         * gdk/win32/gdkinput-win32.c
25625         
25626         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
25627         extension_events field in the GdkWindowWin32Data struct. Use only
25628         the extension_events field in GdkWindowPrivate. Previously one was
25629         set, and the other one tested, which broke tablet
25630         functionality. Thanks to Keishi Suenaga for pointing this out.
25631
25632 1999-12-18  Tor Lillqvist  <tml@iki.fi>
25633
25634         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
25635         When handling a single character (text length == 1), don't handle
25636         it as if it was UTF-8.
25637
25638 1999-12-11  Tor Lillqvist  <tml@iki.fi>
25639
25640         * Makefile.am: Distribute README.win32.
25641         
25642         * gdk/Makefile.am
25643         * gdk/win32/Makefile.am: Distribute Win32 files.
25644
25645         * gdk/makefile.msc: New file.
25646
25647         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
25648         after label).
25649
25650         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
25651         gdk_error_code as GDKVAR, as they are referred outside GDK.
25652
25653         * gdk/win32/makefile.msc: Update.
25654
25655         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
25656         tweaks. Check only if at least one of those Unicode subrange bits
25657         we care for is set. If no code page bits are set, guess (wildly)
25658         based on the charset.
25659
25660         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
25661
25662         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
25663         non-NULL.
25664
25665         * gtk/gtkdnd.c
25666         * gtk/gtklayout.c
25667         * gtk/gtkplug.c
25668         * gtk/gtkselection.c
25669         * gtk/gtksocket.c
25670         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
25671         appropriate. There must be a cleaner way to handle this?
25672
25673         * gtk/gtkrc.c: Must include windows.h on Win32.
25674
25675         * gtk/testgtk.c: No need to include gdkx.h.
25676
25677         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
25678
25679 1999-12-07  Tor Lillqvist  <tml@iki.fi>
25680
25681         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
25682         the rbearing is set to the same as the width, but this should be
25683         fixed.
25684
25685 1999-12-06  Tor Lillqvist  <tml@iki.fi>
25686
25687         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
25688         function. If Windows doesn't tell us what Unicode subranges a font
25689         covers, guesstimate based on the codepages it covers. This will
25690         hopefully help those Windows versions or fonts that don't give us
25691         any useful Unicode subrange information with GetTextCharsetInfo.
25692         Call this function in gdk_font_load_internal.
25693
25694         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
25695         minor changes.
25696
25697 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
25698
25699         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
25700         New function, long needed.
25701
25702 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
25703
25704         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
25705         only_if_exists argument of gdk_atom_intern to
25706         bool.
25707
25708 1999-11-25  Tor Lillqvist  <tml@iki.fi>
25709
25710         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
25711         Fix two copy&paste errors.
25712
25713         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
25714         win32 has changed.
25715
25716         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
25717         GdkWin32SingleFont struct.
25718
25719         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
25720         subranges of loaded fonts. Clear font signature first, in case
25721         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
25722         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
25723
25724         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
25725         Unoffset clip region.
25726
25727 1999-11-23  Tor Lillqvist  <tml@iki.fi>
25728
25729         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
25730         event->any.window before calling filter functions.
25731
25732 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
25733
25734         * gtk/gtkgamma.h: Adapt cast macros to standard.
25735
25736 [ Merges from 1.2 ]
25737
25738 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
25739
25740         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
25741         If translation does not include a '/', use entire
25742         translation instead of crashing.
25743
25744 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
25745
25746         * docs/gtk_tut.sgml:
25747         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
25748
25749 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
25750
25751         * gtk/gtkselection.c (gtk_target_list_remove): Use
25752         g_list_remove_link, not g_list_remove.
25753
25754         [ From Geert Bevin <gbevin@thunderstorms.org> ]
25755         
25756 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
25757
25758         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
25759         statement upon unselection (how the heck did that slip in?).
25760
25761 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
25762
25763         * gtk/gtktext.c (gtk_text_freeze): 
25764         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
25765         in frozen state (and aparently crashes). patch provided by Anders
25766         Melchiorsen <and@kampsax.dtu.dk>.
25767
25768 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
25769
25770         * fix insensitive default/focus widget activation,
25771         reported by Matt Goodall <mgg@isotek.co.uk>.
25772
25773         * gtk/gtkwindow.c (gtk_window_key_press_event): 
25774         (gtk_window_activate_default):
25775         (gtk_window_activate_focus):
25776         return handled=FALSE for actiavtion of insensitive default
25777         widgets. return handled=TRUE for activation of insensitive
25778         focus widgets. don't activate in either case.
25779
25780 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
25781
25782         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
25783         and $glib_cflags to match library order and in the
25784         theory that an old version of GLib is more likely to
25785         be in the include directory for X then vice-versa.
25786         (Bug #2776)
25787
25788 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
25789
25790         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
25791         to determine the locale for fontsets, not LC_MESSAGES;
25792         the user may want English messages with a handling
25793         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
25794         will still be broken) (Bug #2891)
25795
25796 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
25797
25798         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
25799
25800 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
25801
25802         * gtk/gtkrc.ko: Changed the Korean default fontset.
25803
25804 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
25805
25806         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
25807         where when scrolling to the left or top double exposes
25808         were done, causing major slowdowns.
25809
25810 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
25811
25812         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
25813         names to lowercase and alphanumeric, before looking
25814         them up.
25815
25816         * gtk/Makefile.am: Install codeset variant gtkrc files
25817         with normalized names.
25818
25819 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
25820
25821         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
25822         popup menus when the menu is already visible, but its parent
25823         is still hidden, (happens after tornoff window got hidden).
25824
25825 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
25826
25827         * gtk/Makefile.am (install-data-local): Fix
25828         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
25829         deleted, causing error messages on install.
25830
25831 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
25832
25833         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
25834         the handle as well, since we now sometimes ignore
25835         exposes on the handle while resizing.
25836
25837 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
25838
25839         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
25840         extra g_free introduced in one of the last one or two 
25841         commits.
25842
25843 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
25844
25845         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
25846         consistent, put each style that a gtkrc.* file creates
25847         in a unique namespace, remove old files before installing.
25848
25849 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
25850
25851         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
25852         gtk_rc_init is called multiple times. (Yes, people who
25853         do that have bugs in their code.)
25854
25855 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
25856
25857         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
25858         Remove it since it's generated by the Makefile anyway
25859
25860 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
25861
25862         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
25863         device->info.axes for core pointer.
25864
25865 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
25866
25867         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
25868         idle_id, to deal with obsolete, broken C libraries.
25869
25870 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
25871
25872         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
25873         allocation->x/y twice!
25874
25875         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
25876         consistent with gtk_vscale_pos_trough().
25877
25878 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
25879
25880         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
25881         be queueing a resize on a toplevel container between
25882         the time we show it and when we map it. So, we need
25883         to test GTK_WIDGET_VISIBLE() for toplevels, and only
25884         use GTK_WIDGET_DRAWABLE() for child windows.
25885
25886 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
25887
25888         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
25889         (fixes bug #2144)
25890
25891 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
25892
25893         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
25894         container DRAWABLE (instead of VISIBLE), so we don't queue
25895         resizes on non-toplevel containers.
25896
25897 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
25898
25899         * gtk/gtkselection.[ch]: Make the data argument
25900         const guchar *.
25901
25902 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
25903
25904         * gtk/gtkwindow.c: Try to behave sensibly if 
25905         the focus widget is the window itself. (Should
25906         we allow this at all?)
25907
25908 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
25909
25910         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
25911         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
25912         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
25913         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
25914         in prototypes and implementations consistent (Tomas Ogren).
25915
25916         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
25917         before the widget is unparented (reported by damon).
25918
25919         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
25920         since we provide unsigned data anyways.
25921
25922 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
25923
25924         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
25925         the call to gtk_tooltips_layout_text() until later.
25926
25927         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
25928         Call gtk_widget_ensure_style() before using the style.
25929
25930 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
25931
25932         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
25933         for old widgets that don't propagate draws to all
25934         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
25935
25936 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
25937
25938         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
25939         for a redraw but just the widget that requested the resize.
25940
25941 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
25942
25943         * gtk/gtkcontainer.c: added new widget level method
25944         gtk_container_set_reallocate_redraws() and a GtkContainer flag
25945         reallocate_redraws : 1 to reflect the setting, exported this through
25946         the argument system as a boolean ::reallocate_redraws.
25947
25948         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
25949         on the widget because the allocation changes, do so as well for
25950         widget->parent if the parent has reallocate_redraws set to TRUE.
25951         with that containers requesting reallocation redraws get automatically
25952         redrawn if their children changed allocation (this unfortunately
25953         affects also other children that didn't change allocation, but we
25954         cannot work around that before 1.3).
25955
25956 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
25957
25958         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
25959         _and_ height are >0 (not _or_).
25960
25961         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
25962         instead of gtk_container_queue_resize(), which is a core gtk internal
25963         function (must have been on crack when i queued that).
25964
25965         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
25966         we can check more reliably if we want to discard expose events.
25967         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
25968         flag.
25969         
25970         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
25971         we simply trust these events. for deciding whether to discard exposes,
25972         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
25973         
25974 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
25975
25976         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
25977         queues of areas that are completely off screen.
25978
25979         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
25980         logic for handleboxes.
25981
25982         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
25983         check on width/height.
25984
25985 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
25986
25987         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
25988         we are fine with using $@ the way we do (if we actually encounter
25989         brokeness with $@ in VPATH builds because of additional path prefixes,
25990         we need to use $(@F) actually).
25991
25992 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
25993
25994         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
25995         short lived bugs, that would allow language bindings to do surgeries
25996         to our guts.
25997
25998 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
25999
26000         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
26001         where comparison was being done against an uninitialized
26002         value causing intermittant results depending on
26003         compiler flags. Also make it clearer that we aren't
26004         ever initializing the child as 0x0 (though this will
26005         be caught in gtk_widget_size_allocate())
26006
26007 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
26008
26009         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
26010         gtk_window_unset_transient_for() call after we do checks
26011         involving the old transient parent.
26012         [ From Lance Capser <lmc@cyberhighway.net> ]
26013
26014 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
26015
26016         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
26017         an empty file.
26018
26019 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
26020
26021         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
26022         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
26023
26024 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
26025
26026         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
26027         `$@' is valid only in the build dir, not after we've done 
26028         `cd $srcdir'.  Also use `test -f' instead of less portable
26029         `test -e'.
26030
26031 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
26032
26033         * gtk/gtktext.c (correct_cache_insert): Rewrite
26034          for simplicity, and hopefully correctness.
26035          (Fixes bug #1322, which was a segfault when
26036           on some insertions with the properties around
26037           the insertion set up just wrong.)
26038
26039         * gtk/gtktext.c (gtk_text_adjustment): When we receive
26040          a "changed" signal, clamp the new value to the adjustment
26041          bounds to avoid segfaulting if someone tries to change
26042          the adjustment to a bogus value. (Bug #1795)
26043
26044 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
26045
26046         * gtk/gtkmain.c: Ignore unexpected destroy notifies
26047         for children, for toplevel windows handle them
26048         like delete_event.
26049
26050         * gtk/gtkplug.c: Add an unrealize handler so that
26051         we unref plug->socket_window when we are done
26052         with it.
26053
26054 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
26055
26056         * gtk/gtktext.c (clear_area): Fix stupid signedness
26057          problem that was causing background to sometimes
26058          be misaligned.
26059
26060 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
26061
26062         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
26063         
26064         * gtk/gtkmenu.c (gtk_menu_position): Make
26065          sure we never position menus with negative x, y,
26066          since gtk_widget_set_uposition() can't handle that.
26067
26068         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
26069          Modify the positioning code a bit so that we always
26070          put the top-left corner onscreen. (This is for
26071          UI reasons, gtk_menu_position() now takes care of
26072          gtk_widet_set_uposition() brokeness.)
26073
26074 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
26075
26076         * gtk/Makefile.am: fixed up things for -jx, x > 1.
26077
26078 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
26079
26080         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
26081           RC style that is passed in. The lack of the ref
26082           before was a bug. If people worked around this
26083           bug, this will introduce a slight memory leak
26084           in their code. The code should typically look like:
26085
26086             rc_style = gtk_rc_style_new ();
26087             [...]
26088             gtk_widget_modify_style (widget, rc_style);
26089             gtk_rc_style_unref (rc_style);
26090
26091         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
26092           the style if it was already set.
26093
26094         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
26095           style if it was set before.
26096
26097 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
26098
26099         * gtk/testgtk.c (main): Add a check to see if we
26100           are being run from the correct directory and
26101           to quit nicely if we are not.
26102
26103         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
26104           static.
26105
26106 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
26107
26108         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
26109
26110         * gtk/gtkwindow.c:
26111         queue resizes unconditionally (gtk_widget_queue_resize will figure
26112         what to do if the window is not realized).
26113         (gtk_window_move_resize): only recenter the window
26114         for GTK_WIN_POS_CENTER_ALWAYS.
26115         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
26116         the same way as GTK_WIN_POS_CENTER.
26117
26118 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
26119
26120         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
26121         with (!(info->last_flags & GDK_HINT_POS)) instead of
26122         (!info->last_flags & GDK_HINT_POS).
26123
26124         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
26125         new_height unconditionally, because we use these values even if
26126         !default_size_changed && !hints_changed.
26127         comented the (default_size_changed || hints_changed) case with
26128         respect to resize rejects from the window manager.
26129
26130         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
26131         in the zvt condition hack, since this includes the window hints, set
26132         the hints after the handling_resize case.
26133
26134         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
26135         window is initially shown with to the geometry.
26136
26137 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
26138
26139         * gtk/gtkwindow.c (gtk_window_move_resize):
26140         s/size_changed/default_size_changed/g so i know what's
26141         really going on (frying brain on smaller flame now).
26142
26143 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
26144
26145         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
26146         we have size_changed upon handling_resize. this is a gross
26147         workaround for the broken zvt widget and should be removed in
26148         1.3 again (search for FIXME).
26149         Owen provided an accurate comment for this:
26150
26151         /* We could be here for two reasons
26152          *  1) We coincidentally got a resize while handling
26153          *     another resize.
26154          *  2) Our computation of size_changed was completely
26155          *     screwed up, probably because one of our children
26156          *     is broken. It's probably a zvt widget.
26157          *
26158          * For 1), we could just go ahead and ask for the
26159          * new size right now, but doing that for 2)
26160          * might well be fighting the user (and can even
26161          * trigger a loop). Since we really don't want to
26162          * do that, we requeue a resize in hopes that
26163          * by the time it gets handled, the child has seen
26164          * the light and is willing to go along with the
26165          * new size. (this happens for the zvt widget, since
26166          * the size_allocate() above will have stored the
26167          * requisition corresponding to the new size in the
26168          * zvt widget)
26169          *
26170          * This doesn't buy us anything for 1), but it shouldn't
26171          * hurt us too badly, since it is what would have
26172          * happened if we had gotten the configure event before
26173          * the new size had been set.
26174          */
26175
26176 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
26177
26178         * gtk/gtkrc.c: deal properly with the fact that RC
26179           style lists may include rc styles more than once.
26180
26181         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
26182           unused static function.
26183
26184         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
26185           stack of directories of RC files currently being
26186           parsed and implicitely add them to pixmap path.
26187           
26188           This fixes a bug where the directory would get
26189           appended then overwritten by pixmap_path declarations.
26190
26191           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
26192
26193         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
26194           theme's exit function. (Patch from Peter Wainwright,
26195           bug #1454)
26196
26197         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
26198           Add a destroy() handler to take care of removing
26199           group for menu item. (Fixes bug #1197)
26200
26201         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
26202           in warning message.
26203
26204 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
26205
26206         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
26207         roundtrip to figure window's width and height, since we know that
26208         anyways from widget->allocation.
26209
26210 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
26211
26212         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
26213           the hints after we request the new size.
26214
26215 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
26216
26217         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
26218           GTK_WIDGET_REALIZED() assertion - we can compute the
26219           hints before we are realized.
26220
26221         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
26222           hint changing so that we have a value of hints_changed
26223           when we decide whether to constrain the window size.
26224
26225         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
26226
26227         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
26228         change back to G_MAXINT.
26229
26230 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
26231
26232         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
26233         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
26234         contain uncluttered values.
26235         (gtk_window_compute_hints): simply assert that window is realized
26236         and that geometry_info is valid, since we rely on this anyways.
26237         (gtk_window_constrain_size): major cleanups to the code.
26238         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
26239         for the base size, instead of the minimums. use 32767 as max width
26240         and height (like in gtkwindow.c) instead of G_MAXINT.
26241
26242 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
26243
26244         * cleaned up the GtkContainer.need_resize flag handling mess, we
26245         only need to force resize requests when we were prematurely
26246         realized, or our widget tree was modified when we were temporarily
26247         hidden. handling these cases directly upon showing the window (i.e.
26248         while the GdkWindow is still unmapped) avoids the need to wait for
26249         a configure event response and therefore makes the GUI more snappier
26250         and avoids blank windows during the roundtrip.
26251
26252         * gtk/gtkwidget.c:
26253         (gtk_widget_hide): 
26254         (gtk_widget_show): don't queue resizes on toplevels, they know how
26255         to deal with matters.
26256
26257         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
26258         flag directly for not visible resize containers and spare us unecessary
26259         signal emissions.
26260
26261         * gtk/gtkwindow.c:
26262         (gtk_window_realize): if we need to enforce premature size allocation,
26263         queue a container resize so we are correctly resized later on.
26264         (gtk_window_init):
26265         (gtk_window_size_request):
26266         don't freak around with the ->need_resize flag,
26267         gtk_container_queue_resize() will care about that.
26268         (gtk_window_show):
26269         handle initial resizing issues here, we can handle matters better in
26270         this place, especially since we know that our GdkWindow is still
26271         unmapped.
26272         (gtk_window_move_resize):
26273         don't care about ->need_resize at all.
26274         handle size changes properly that occoured while we waited for a
26275         configure event.
26276
26277 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
26278
26279         * gtk/gtkwidget.c (gtk_widget_set_uposition):
26280         * gtk/gtkwindow.[hc] (gtk_window_reposition):
26281         Move the hint setting code from gtk_widget_set_uposition
26282         to here; set the hints so that we respect any previously
26283         set geometry hints.
26284
26285         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
26286         change the window hints here or move the window here,
26287         let that happen in gtk_window_move_resize().
26288
26289 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
26290
26291         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
26292         to already queued resizes (and therefore redraws) on a widget, check
26293         its anchestry as well.
26294
26295         * gtk/gtkcontainer.c:
26296         (gtk_container_queue_resize): clear resize widgets for resize
26297         containers before aborting prematurely. this is especially important
26298         for toplevels which may need imemdiate processing or their resize
26299         handler to be queued.
26300         (gtk_container_dequeue_resize_handler): added new internal function for
26301         gtkwindow.c.
26302
26303         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
26304         configure event, take possible changes in window position into account
26305         as well.
26306         if we request a new window size, queue up a resize handler that will
26307         last until the configure event response arrives.
26308         combined the ->need_resize case (initial show) with the general size
26309         (hints) changed case and added even more comments.
26310         if !auto_shrink, only revert to the old allocation if the new size
26311         is smaller than the current allocation.
26312
26313 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
26314
26315         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
26316                            gtk_window_set_geometry_hints
26317                            gtk_window_set_default_size):
26318         When hints are set, queue a resize so that the hints will
26319         be eventually reset on the toplevel.
26320
26321         * gtk/gtkwindow.c (gtk_window_show): Use
26322         gtk_window_compute_default_size(). Clear the need_resize flag
26323         on the initail map so that we don't unnecessarily trigger the
26324         resize code.
26325
26326         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
26327         into separate functions. Compare the hints we are setting
26328         with what we set last time so that we can accurately
26329         tell when we need to reset the hints.
26330
26331         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
26332         function to figure out the size from requisition
26333         and default_size.
26334
26335         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
26336         from fvwm to constrain a size to the geometry hints.
26337
26338         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
26339         to compare two sets of geometry hints.
26340
26341         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
26342         from gtk_window_set_hints(), just compute the hints,
26343         don't set them.
26344
26345         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
26346         code from gtk_window_move_resize() to separate function,
26347         rationalize a bit.
26348
26349 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
26350
26351         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
26352         structure into a new private structure.
26353
26354         * gtkrc.c: Split GtkRcStyle into public/private.
26355         In the private part, add a list of pointers to the
26356         RcStyle lists this RcStyle participates in.
26357
26358         * gtkrc.c: When a RcStyle is free, remove all
26359         lists referencing it from the 
26360         realized_style_ht hash, and free those lists.
26361         
26362         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
26363         gtk_rc_init(), since that adds the default styles
26364         to the list of parsed RC files again.
26365
26366         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
26367         
26368 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
26369
26370         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
26371         checks that ensure that a widget's allocation is at least 1 in width
26372         and height. (GNOME note: this doesn't affect old panel code anymore,
26373         because GtkSocket will request width and height of at least 1 since
26374         Fri Jul 23).
26375
26376         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
26377         allocated yet (happens if the user realizes the window prematurely),
26378         size request and allocate it.
26379         (gtk_window_size_allocate): guard against guint underflows.
26380
26381 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
26382
26383         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
26384         in gtk_built_sources, so gtk.defs gets built prior to all other
26385         sources.
26386
26387 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
26388
26389         * gtk/Makefile.am:
26390         invoke indent on gtkmarshal.*. 
26391         rewrote source generation rules, use COPYING as oldest source tag for
26392         a piggyback rule to generate all sources from (don't touch it ;).
26393         major cleanups, strip spaces on build rules for GNU Make.
26394
26395         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
26396         source and target files from commandline arguments. don't invoke indent.
26397
26398 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
26399
26400         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
26401         notebook after switch to avoid drawing problems.
26402         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
26403         
26404         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
26405         show them instead. 
26406         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
26407
26408 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
26409
26410         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
26411         notebook after switch to avoid drawing problems.
26412         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
26413         
26414         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
26415         show them instead. 
26416         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
26417
26418 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
26419
26420         * gtk/gtkwindow.c:
26421         we use window->need_resize from configure_event now, to indicate that
26422         the gtkwindow should keep its allocation (e.g. because the user resized
26423         the window through window manager handles). resize_count is now reliably
26424         used to figure whether we got the allocation we requested from the
26425         window manager.
26426         configure events get queued as resizes now, the real stuff (size
26427         computation and allocation) now only goes on in gtk_window_move_resize().
26428         GtkWindow's requisition now contains its *real* requisition (like all
26429         other widgets), *not* taking usize into account.
26430         geometry_info->last_{width|height} is now updated from set_hints() only
26431         so it always contains the last hints we set for the window manager.
26432         made some event handlers return TRUE instead of FALSE.
26433         the overall code should be much more straight forward now, and the
26434         significant code portions are accompanied by comments now.
26435         (gtk_window_set_hints):
26436         removed requisition argument and made it
26437         fetch the requisition through gtk_widget_get_child_requisition.
26438         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
26439         does that now.
26440         (gtk_window_show):
26441         ensure that the widget is realized before calling 
26442         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
26443         ensure that we got properly size requested and allocated before
26444         realization.
26445         (gtk_window_configure_event):
26446         ignore plain window moves, or reallocate the widget tree through the
26447         resize queue otherwise.
26448         (gtk_window_move_resize):
26449         mostly rewrote this function to figure window manager hints more
26450         reliably, coalesce window moves and resizes to reduce configure events
26451         and do actuall size allocations.
26452
26453 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
26454
26455         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
26456         that have a resize pending, because a redraw is already queued for them.
26457
26458         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
26459         hack to clear resize_widgets.
26460
26461         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
26462         for resize containers prior to size allocation. (this is also a bit
26463         ugly, but avoids side effects for stopped emissions and is thus more
26464         reliable).
26465         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
26466
26467         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
26468         function from gtk_tooltips_expose, as we connect to ::expose_event
26469         *and* ::draw now.
26470
26471 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
26472
26473         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
26474         checks.
26475         (gtk_target_list_unref): Likewise.
26476
26477         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
26478
26479 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
26480
26481         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
26482         guard against division by zero. (Fixes bug #1339)
26483
26484 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
26485
26486         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
26487         Prevent the trivial leak of information of allowing
26488         word motion when the entry is not visible.
26489
26490 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
26491
26492         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
26493         modality to error dialog as well as confirmation dialogs.
26494         (Bug #1803, reported by Rosanna Wing Sze Yuen)
26495
26496 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
26497
26498         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
26499         tree->view_lines.
26500         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
26501
26502         * gtk/Makefile.am (install-data-local): Solaris apparently
26503         has various troubles with ln -f; use rm first instead.
26504         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
26505
26506 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
26507
26508         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
26509         use `cp' followed by `rm' (the `rm' was already there).
26510
26511 July 30, 1999 Elliot Lee <sopwith@redhat.com>
26512         
26513         * configure.in: Fix autoconf warnings about cross compilation by
26514         trying to provide sane defaults for AC_TRY_RUN.
26515         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
26516         put them into $(srcdir) when generated. Also add a dependency of
26517         gtksignal.h on gtkmarshal.h for -j builds. 
26518         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
26519
26520 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
26521
26522         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
26523         GDK_THREADS_{LEAVE,ENTER} pair.
26524         (From Paul Fisher <pnfisher@redhat.com>)
26525
26526 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
26527
26528         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
26529         width and height are always >0 (owen).
26530
26531 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
26532
26533         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
26534         change that assured that a widget's allocated with and height are
26535         always >1, since this breaks *buggy* panel code. unfortunately this
26536         back-breaks the gimp's color selector.
26537
26538         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
26539         allocation is always >0 in width and height, before sending the
26540         configure event; this is a *gross* hack to get the gimp back to work.
26541         
26542         * marked both cases with TODO-1.3
26543
26544 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
26545
26546         * gtk/gtktext.c: Don't display wrap indicators when
26547         text is not editable and word wrap is on.
26548
26549 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
26550
26551         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
26552         option menus here as they are not derived from menu shell, assure that
26553         the option menu has a menu we can add items to.
26554
26555 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
26556
26557         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
26558         width/height to (gint) before calculations and check against < 0 to
26559         avoid guint wraparounds.
26560
26561 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
26562
26563         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
26564         width and height is never zero. sanity check both dimensions against
26565         32767 and issue a warning if the allocation is greater than that.
26566
26567 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
26568
26569         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
26570         to g_main_pending() as well.
26571
26572 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
26573
26574         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
26575         call to g_main_iteration() - since that will regrab
26576         GTK+ lock to process events.
26577
26578 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
26579
26580         * gtk/gtkwindow.c
26581         - Regularize with the rest of GTK+ by making widget->requisition
26582           not reflect the set_usize()
26583         - Always recompute geometry hints, then check if they
26584           changed before sending them to the X server. The
26585           previous checks for changes would fail in a number
26586           of circumstances. 
26587
26588 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
26589
26590         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
26591
26592 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
26593
26594         * gtk/gtkdnd.c:
26595         - Code cleanups
26596         - Instantaneously update on modifier key presses
26597         - Allow cancellation of the drag with Escape.
26598
26599 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
26600
26601         * gtk/testgtk.c (create_handle_box): Set the policy
26602         to auto_shrink - otherwise the appearance is rather
26603         strange when flipping between horizontal and vertical.
26604
26605 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
26606
26607         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
26608         (gtk_window_set_default_size): don't change a value if it's < 0.
26609         queue a resize.
26610
26611 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
26612
26613         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
26614
26615 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
26616
26617         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
26618         add an extra "/" when concating "/" + filename.
26619         (From Matt Grossman <mattg@oz.net>)
26620
26621 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
26622
26623         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
26624         for fg_gc if we set it for drawing pixmap.
26625
26626 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
26627
26628         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
26629         
26630         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
26631         already set, call old engine's destroy function and
26632         unref the old engine.
26633
26634 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
26635
26636         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
26637
26638 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
26639
26640         * gtk/gtkaccelgroup.h: mark certain functions as internal.
26641
26642 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
26643
26644         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
26645         expand behaviour changed.
26646
26647         * gtk/gtklabel.c (gtk_label_set_pattern):
26648         (gtk_label_set_justify):
26649         (gtk_label_set_line_wrap):
26650         don't bother invoking queue_clear, the reallocation does
26651         that for us, always free_words so the upcoming resize will
26652         relayout the label's contents.
26653
26654 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
26655
26656         * applied argument implementation patches from Elena Devdariani
26657         <elena@cogent.ca>.
26658
26659         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
26660         ::space_style, ::relief
26661         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
26662         * gtk/gtkpreview.c: ::expand
26663         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
26664         * gtk/gtknotebook.c: ::homogeneous
26665         * gtk/gtklabel.c: ::wrap
26666         * gtk/gtklist.c: ::selection_mode
26667         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
26668         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
26669         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
26670         * gtk/gtkclist.c: ::sort_type
26671         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
26672         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
26673
26674 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
26675
26676         * gtk/gtkstyle.c: Removed ill-thought-out part of last
26677         comment.
26678
26679 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
26680
26681         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
26682         counting right when we have to attach a new style
26683         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
26684
26685         * gtk/gtkstyle.c: Documented the refcounting
26686         peculularities of gtk_style_attach.
26687
26688 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
26689
26690         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
26691         window types.
26692
26693         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
26694         of GTK_TOPLEVEL for creating the window.
26695
26696 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
26697
26698         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
26699         the last argument (reported by Per Winkvist).
26700         
26701 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
26702
26703         Fixes for invisible XOR lines (Frank Loemker
26704         <floemker@TechFak.Uni-Bielefeld.DE>)
26705         
26706         * gtk/gtkclist.c (gtk_clist_realize): Always use
26707         a non-zero pixel for GDK_XOR.
26708
26709         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
26710         Use GDK_INVERT instead of GDK_XOR.
26711
26712 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
26713
26714         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
26715         signals if h/voffsets differ from adjustment values.
26716         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
26717
26718 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
26719
26720         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
26721         ::selection-done emissions up to the topmost menu shell.
26722
26723 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
26724
26725         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
26726         the user data on the window before destroying it.
26727
26728         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
26729         unrealize handler to take care of destroying 
26730         notebook->panel properly. 
26731         (Bug #1198 - Morten Welinder <terra@diku.dk>)
26732
26733         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
26734         of g_new and g_realloc to stop memory leak. (Actually,
26735         we could just use g_realloc(), but I'm not 100% sure
26736         that is portable).
26737         (Bug #1196 - Morten Welinder <terra@diku.dk>)
26738
26739 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
26740
26741         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
26742
26743         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
26744         for fontsets.
26745
26746         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
26747         with bin/button confusion.
26748
26749 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
26750
26751         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
26752         and show how preselection of radio items is done.
26753
26754 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
26755
26756         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
26757         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
26758         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
26759         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
26760         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
26761         * gtk/gtktable.c (gtk_table_attach): 
26762         * gtk/gtklist.c (gtk_list_insert_items): 
26763         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
26764         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
26765         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
26766         * gtk/gtkbin.c (gtk_bin_add): 
26767         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
26768         * gtk/gtkfixed.c (gtk_fixed_put): 
26769         * gtk/gtklayout.c (gtk_layout_put):
26770         general fixups to container_add logic. always realize child if
26771         child->parent is realized, only map the child and queue a resize
26772         if child and child->parent are both visible.
26773
26774 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
26775
26776         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
26777         instead of gtk_container_foreach to walk and unrealize children, so
26778         composite children get also unrealized.
26779         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
26780         (gtk_widget_map): assert that the widget is visible (basic constrain).
26781         (gtk_widget_real_map): assert that the widget is realized (basic
26782         constrain).
26783
26784 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
26785
26786         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
26787
26788 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
26789
26790         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
26791         file for iso-8859-2 locales.
26792
26793         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
26794
26795 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
26796
26797         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
26798          (Pointed out by andy@rz.uni-karlsruhe.de and others).
26799          Remove some suspicious and useless lines. 
26800
26801 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
26802
26803         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
26804         width,height = 0, 0 to mean - here to edge of window,
26805         instead of -1, -1, since the former is all we support.
26806
26807 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
26808
26809         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
26810         when removing from quit_functions list.
26811
26812 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
26813
26814         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
26815
26816 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
26817
26818         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
26819          When redrawing characters on non-visible entry, use appropriate
26820          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
26821
26822 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
26823
26824         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
26825         from drag coordinates.
26826         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
26827         use drag_dest_cell.
26828
26829         * gtk/gtktree (drag_dest_cell)
26830         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
26831         (Bug #1129)
26832
26833 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
26834
26835         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
26836         translate_* fields.
26837         (gtk_item_factory_finalize): invoke translate_notify independant from
26838         translate_data.
26839         (gtk_item_factory_set_translate_func): likewise.
26840         (gtk_item_factory_destroy): only remove ifactory pointer from those
26841         widgets that belong to us (stupid me).
26842
26843 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
26844
26845         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
26846         rc_style list when lookup succeeeds.
26847
26848 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
26849
26850         * gtk/gtkctree.c (resync_selection): 
26851         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
26852         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
26853         bug.
26854
26855 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
26856
26857         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
26858         Add some missing GDK_THREADS_ENTER()/LEAVE around
26859         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
26860
26861 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
26862
26863         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
26864         rather than emit_by_name.
26865
26866         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
26867         on the widget across multiple signal emissions.
26868         (gtk_editable_delete_text): same here.
26869         (gtk_editable_class_init): set widget_class->activate_signal after
26870         editable_signals[ACTIVATE] has been created.
26871
26872 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
26873
26874         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
26875         position here prematurely -- we might not have the
26876         right ->min_position and ->max_position yet.
26877
26878 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
26879
26880         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
26881         Add error traps so if the other end of the connection
26882         dies, we survive.
26883
26884         * gtk/gtkselection.c (gtk_selection_notify): Clean
26885         up properly when selection property retrieval fails.
26886         
26887         * gtk/gtkselection.c (gtk_selection_request): Correctly
26888         reject SelectionRequest notifies where the handler
26889         returns no data.
26890
26891 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
26892
26893         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
26894         when we've previously highlighted.
26895
26896         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
26897         emit two "drag_leave" signals for Motif drops.
26898
26899         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
26900         back the correct status messages when dropping from
26901         Motif onto a proxy window that is rejecting the
26902         drop.
26903
26904 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
26905
26906         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
26907         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
26908         to compare two argument values. added gtk_arg_to_valueloc() to set a
26909         variable from an arg through its location (pointer).
26910
26911         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
26912         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
26913         as gfloat*, uchars are collected as guchar*, ints are collected as
26914         gint*, etc...
26915
26916 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
26917
26918         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
26919         Include <string.h> instead of <strings.h>.
26920
26921         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
26922         (actually, a lot more duplicate includes occur if
26923          you trace through the sequence of #include's)
26924         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
26925         
26926 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
26927
26928         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
26929         gtk-a-higuti-990322-[0-3]
26930
26931         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
26932         that was causing -DX_LOCALE not to work.
26933
26934         * gtk/gtkrc.c (gtk_rc_init):
26935         X_LOCALE will never have LC_MESSAGES defined
26936
26937 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
26938
26939         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
26940         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
26941
26942         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
26943         left/right as well (gtk-michael-980726-0.patch.gz).
26944
26945         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
26946         for pointer values, use gchar instead of char. fixed uline allocation
26947         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
26948         chunks instead of G_ALLOC_ONLY.
26949         (gtk_label_size_request): always alter requisition as passed and leave
26950         widget->requisition alone.
26951         (gtk_label_set_text): allow NULL strings.
26952         (gtk_label_new): likewise.
26953
26954 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
26955
26956         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
26957
26958 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
26959
26960         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
26961         *and* mapped (i.e. drawable).
26962         (gtk_bin_expose): only send exposes to drawable children.
26963
26964         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
26965         (gtk_box_expose): only send exposes to drawable children.
26966
26967         * gtk/gtkhscale.c (gtk_hscale_draw): 
26968         * gtk/gtkvscale.c (gtk_vscale_draw):
26969         hm, this is an ugly one. we first compute the size of our trough area
26970         here (window relative) and then check intersection with the draw_area
26971         which is parent relative because we're a NO_WINDOW widget, so we need
26972         to offset the trough area by allocation.x and allocation.y before the
26973         check. (this must not be done for the background area though, since
26974         that's already computed parent relative).
26975
26976 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
26977
26978         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
26979         unrealize title buttons.
26980
26981 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
26982
26983         * gtk/gtkclist.c (gtk_clist_column_title_passive)
26984         (gtk_clist_column_title_active): 
26985         only connect/disconnect to GtkWidgetClass::event to block mouse events.
26986
26987         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
26988         zero initialize event, removed superfluous gdk_window_get_pointer call
26989
26990         * gtk/gtklist.c (gtk_list_vertical_timeout)
26991         (gtk_list_horizontal_timeout): removed superfluous
26992         gdk_window_get_pointer call
26993
26994 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
26995
26996         * plugging problems reported by "Bruce Mitchener, Jr."
26997         <bruce@puremagic.com> due to a purify session.
26998
26999         * gtk/gtkstyle.c:
27000         (gtk_style_ref): 
27001         (gtk_style_unref): assert ref_count to be > 0.
27002
27003         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
27004         the requisition.
27005         (gtk_clist_set_shift): likewise.
27006
27007         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
27008         adjustments.
27009
27010         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
27011         event before sending it and set send_event to TRUE (which needs to
27012         be done for *all* synthesized events).
27013         (gtk_list_vertical_timeout): likewise.
27014
27015         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
27016         leaks.
27017
27018         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
27019         to TRUE when synthesizing events.
27020
27021 [ *** end of merges from 1.2 *** ]      
27022         
27023 1999-11-21  Tor Lillqvist  <tml@iki.fi>
27024
27025         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
27026         (or copied from gdkconfig.h.win32 on Win32, sigh).
27027
27028         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
27029
27030         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
27031
27032         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
27033
27034         * gdk/gdkconfig.h.win32: New file.
27035
27036         * gdk/win32/makefile.cygwin: Build just a static archive here.
27037
27038         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
27039         for the DLL from the static archive built above.
27040
27041         * gdk/gdk.def: Moved here from the win32 subdirectory.
27042
27043         * gdk/win32/*: Adapt for the changed private struct organisation.
27044
27045         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
27046
27047 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
27048
27049         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
27050         for wheel mice (buttons 4 and 5).
27051
27052 1999-11-18  Tor Lillqvist  <tml@iki.fi>
27053
27054         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
27055         drawables use just the pixel field in the foreground and
27056         background GdkColor of the GdkGC.
27057
27058         gdk_gc_set_{fore,back}ground() are called in the GIMP with
27059         GdkColors containing uninitialized (red,green,blue) fields, and
27060         just the pixel field filled in, and furthermore in the
27061         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
27062         It thus turns out that we really don't need to have the full
27063         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
27064         it later to have just the pixel values.
27065
27066 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
27067
27068         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
27069
27070 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
27071
27072         * docs/gtkfaq.sgml: threads example from Erik Mouw.
27073         New question on GtkLabel background colors.
27074
27075         * docs/gtk_tut.sgml:
27076           - Correct the example code callback
27077             function definitions.
27078           - Update the gtkdial example code, from Frans van Schaik.
27079           - Update setselection.c to current API.
27080
27081         * examples/Makefile examples/*/*.c: Update to code
27082         listed in tutorial.
27083
27084 1999-11-10  Tor Lillqvist  <tml@iki.fi>
27085
27086         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
27087         subrange table (from the "Developing International Software for
27088         WIndows 95 and Windows NT" book) was missing the Hangul syllable
27089         block... Get the loaded font's charset correctly.
27090
27091         (Note that this, and the other *-win32.c files, still really are
27092         the old ones, the win32 subdirectory is not ready for compilation
27093         yet after the reorg.)
27094
27095 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
27096
27097         * gtk/gtkclist.c: Fix off-by-one bug in parameter
27098         check.
27099
27100 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
27101
27102         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
27103         on results of XQueryDeviceState().
27104
27105 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
27106
27107         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
27108         we need to accesss only ->children. We need an accessor
27109         for the children.
27110
27111         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
27112         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
27113         to get rid of gdkx.h include.
27114         
27115         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
27116         and random references to 'None'.
27117
27118         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
27119         Get rid of unused #include <gdk/gdkx.h>
27120
27121         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
27122         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
27123         gdkconfig.h.
27124
27125 1999-11-08  Tor Lillqvist  <tml@iki.fi>
27126
27127         * gdk/win32/gdkdraw.c
27128         * gdk/win32/gdkfont.c
27129         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
27130         following yesterday's changes. (Unrelated to Owen's reorg.)
27131
27132 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
27133
27134         * gdk/x11/gdkinput-gxi.c: Add missing include,
27135           fix GdkWindowPrivate => GdkDrawablePrivate.
27136
27137         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
27138
27139         * gdk/x11/Makefile.am (xinput_sources): Add missing
27140         backslash to fix building with --with-xinput=none
27141
27142 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
27143
27144         Move all X specific code into the x11/ directory.
27145         Aside from shuffling things around, did the following:
27146
27147        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
27148          gdk_arg_context_* - a simple argument parsing system
27149          in the style of popt.
27150
27151        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
27152          gdk/x11/gdkprivate-x11.h:
27153          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
27154          add ->klass and ->klass_data fields. The klass_data
27155          field points to an auxilliary structure that is
27156          windowing system dependent.
27157
27158        * gdk/gdkfont.c: Make most of the measurement functions
27159          simply wrappers around gdk_text_extents().
27160
27161        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
27162          _gdk_font_strlen() function that hides the weird
27163          behavior in gtk+-1.[02] where a string is interpreted
27164          differently for 8-bit and 16-bit fonts.
27165
27166        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
27167          to store common code for synthesizing double/triple
27168          press events.
27169         
27170        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
27171          Make all the function that modify an existing GC
27172          simply wrappers around gdk_gc_set_values().
27173          
27174        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
27175          for throwing out later.
27176
27177        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
27178          GdkImagePrivate and GdkColormapPrivate to have a
27179          windowing system dependent part (GdkFontPrivateX etc.)
27180          that "derives" from the system-independent part.
27181
27182        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
27183          Got rid of the included-source-files for XInput in
27184          favor of automake conditionals. (Which didn't exist
27185          when XInput support was originally added.)
27186
27187        * gdk/gdkrgb.c: Remove the visual id from the debugging
27188          statements since that is X11 specific; print out
27189          type/depth info instead.
27190          
27191
27192 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
27193
27194         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
27195         loading duplicates of hashed fonts.
27196
27197         * gdk/gdk.c (gdk_keysym_convert_case): rename
27198         gdk_XConvertCase to gdk_keysym_convert_case, allow
27199         results to be NULL in the GTK+ style.
27200
27201         * gdk/gdkcompat.h: Started compatibility header
27202         for renames.
27203
27204 1999-11-07  Tor Lillqvist  <tml@iki.fi>
27205
27206         * gdk/win32/gdkprivate.h: New font private structures, related to
27207         fontsets.
27208
27209         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
27210         gdk_font_list_free(). On X11, will just be wrappers to
27211         XListFonts() and XFreeFontNames(). On Win32, the code previously
27212         in gtkfontsel.c is now here.
27213
27214         New function gdk_font_xlfd_create(). On X11 will get the FONT
27215         property of the font (for GDK_FONT_FONTs), or call
27216         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
27217         builds a XLFD style name from the font information in the LOGFONT
27218         struct(s).
27219
27220         New function gdk_font_xlfd_free(), which correspondingly frees the
27221         string returned by gdk_font_xlfd_create().
27222
27223         Implement fontsets on Win32. Add a function that iterates over a
27224         wide char string and calls a callback function for each substring
27225         of wide chars from the same Unicode subrange (and thus probably
27226         available in the same real font).
27227
27228         Improve the XLFD emulation a bit.
27229
27230         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
27231
27232         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
27233         Beta3, WM_IME_CHAR messages don't seem to contain the composed
27234         multi-byte char as with the Active IMM on Win9x. Oh well, handle
27235         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
27236         ImmGetCompositionStringW() to get the composed Unicode chars.
27237
27238         * gdk/win32/gdkgc.c
27239         * gdk/win32/gdkdraw.c: Changes needed because of the font private
27240         struct changes.
27241
27242         * gdk/win32/gdk.def: Add the new functions.
27243
27244 1999-11-04  Tor Lillqvist  <tml@iki.fi>
27245
27246         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
27247         get the Platform SDK to get <dimm.h>.
27248
27249         * gdk/win32/gdkevents.c: More event handling fixes and
27250         simplification. Never generate motion events with is_hint true. We
27251         used to do that on bogus grounds earlier. Windows sends
27252         WM_MOUSEMOVE messages on button events even if the mouse hasn't
27253         moved, ignore these.
27254
27255         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
27256
27257         * gdk/win32/gdkglobals.c
27258         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
27259         the TrackMouseEvent function, and use it.
27260
27261         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
27262         char before calling WideCharToMultiByte in order to get a string
27263         for the window title.
27264
27265         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
27266
27267         * gdk/win32/gdk.def: Remove obsolete functions.
27268
27269         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
27270         /nodefaultlib and /defaultlib switches.
27271
27272         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
27273
27274 1999-10-31  Tor Lillqvist  <tml@iki.fi>
27275
27276         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
27277         EuroSign).
27278
27279         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
27280         same type as GdkWChar, especially on Win32.
27281
27282         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
27283
27284         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
27285         before passing to Windows GDI for drawing etc. Convert to the
27286         system default codepage before passing to Windows as window
27287         titles.
27288
27289         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
27290         support changing input locale on the fly.
27291
27292         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
27293         on-the-fly changes. Convert incoming characters from the current
27294         codepage to Unicode (and then to a UTF-8 multi-byte string) based
27295         on the current input language. Use keysym<->Unicode mapping tables
27296         and functions borrowed from xterm sources.
27297
27298         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
27299         editions of Win9x, use the ActiveX-based Active IMM (Input Method
27300         Manager) if available. IMEs and the Active IMM are available under
27301         the disguise of Chinese, Korean and Japanese support for IE and
27302         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
27303         support is present in all editions (as long as you install it).
27304
27305         Call DispatchMessage from gdk_events_queue() (and thus
27306         gdk_WindowProc()), instead of duplicating the code in
27307         gdk_WindowProc().
27308
27309         Reworked the grab handling and propagation code, factored out
27310         duplicated code snippets into separate functions. Other cleanups,
27311         too.
27312
27313         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
27314         the <dimm.h> header describing the Active IMM.
27315
27316         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
27317         just do the same as for "single" fonts.
27318
27319         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
27320         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
27321         the new keysyms from gdkkeysyms.h.
27322
27323         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
27324         fontset, so that gtkentry uses wide characters.
27325
27326         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
27327         GTk+'s system directory "gtk+", not "gtk".
27328
27329 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
27330
27331         * docs/gtkfaq.sgml: FAQ update
27332
27333 1999-10-21  Tor Lillqvist  <tml@iki.fi>
27334
27335         * gdk/win32/gdkprivate.h: Add more font private data.
27336
27337         * gdk/win32/gdkfont.c
27338         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
27339         fonts and strings. Now works much better. You still have to
27340         have a correct font selected, though. No fontset emulation yet.
27341
27342 1999-10-19  Tor Lillqvist  <tml@iki.fi>
27343
27344         * gtk/maketypes.awk: Use G_OS_WIN32.
27345
27346         * gtk/gtk.def: Add some missing entry points. Also some non-public
27347         ones, but PyGTK porter claims to need them.
27348
27349         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
27350         built-in type generation.
27351
27352 1999-10-14  Tor Lillqvist  <tml@iki.fi>
27353
27354         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
27355         GDK_FONT_FONT fonts (which is all we have for now, we don't
27356         emulate fontsets). The X11 version uses plain XDrawString in that
27357         case, too. The string passed to gdk_draw_text_wc seems to be in
27358         fact (at least, when used by gtkentry and gtktext) either in a
27359         single-byte charset, or a DBCS. Not Unicode.
27360
27361         This fixes the problem in gtkfontsel, where even if you had
27362         selected a font with a non-Latin1 charset (windows-greek, for
27363         instance), the preview still used Latin-1 glyphs.
27364
27365         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
27366         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
27367         (gdk_font_load): Recognize the demibold etc weights, even if we
27368         don't have the corresponding constants in the headers.
27369         (gdk_font_hash_insert): Use same hash mechanism as in the X11
27370         version. Should save font resources a bit, when we don't have
27371         multiple HFONTs for the same font.
27372
27373         * gdk/win32/gdkprivate.h: Add the names field as in the X11
27374         version.
27375
27376 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
27377
27378         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
27379         X values
27380
27381 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
27382
27383         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
27384         layout support (as mentioned on
27385         http://www.jcinteractive.com/gnome-ui/software/widgets/)
27386
27387 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
27388
27389         * gtk/fnmatch.c
27390         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
27391
27392 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
27393
27394         * configure.in (ALL_LINGUAS): Added Galician (gl)
27395
27396 1999-10-05  Tor Lillqvist  <tml@iki.fi>
27397
27398         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
27399
27400         * gdk/win32/gdkcompat.c: New file, actually provide an
27401         implementation for the deprecated functions. (Just temporarily.)
27402
27403         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
27404
27405         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
27406
27407         * gdk/win32/gdk.def gtk/gtk.def: Updates.
27408
27409 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
27410
27411         * configure.in: Added "uk" to ALL_LINGUAS.
27412         
27413 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
27414
27415         * configure.in: correct checking for BeOS check
27416
27417         * gdk/gdktypes.h
27418         * gtk/fnmatch.c
27419         * gtk/gtkfilesel.c
27420         * gtk/gtkitemfactory.c
27421         * gtk/gtkmain.[ch]
27422         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
27423
27424 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
27425
27426         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
27427         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
27428         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
27429         by Bulgarian). 
27430
27431 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
27432
27433         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
27434         Fix a reference to window_private->destroyed.   
27435
27436         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
27437         (ugly) setting of an internal GdkWindow member to use
27438         a _slightly_ cleaner macro.
27439
27440         * gdk/gdkprivate.h: Split GdkWindowPrivate into
27441         GdkDrawablePrivate and GdkWindowPrivate.
27442         Add extra macros for accessing GDK_DRAWABLE_ components.
27443
27444         * *.[ch]: Massive adjustments for the above, use the
27445         new macros in a lot of places.
27446
27447 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
27448
27449         * gdk/gdktypes.h: Make GdkDrawable the base type,
27450         not GdkWindow.
27451
27452 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
27453
27454         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
27455
27456 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
27457
27458         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
27459
27460 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
27461
27462         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
27463         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
27464
27465         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
27466
27467         * docs/gtk-config.1: Now autogenerated.
27468         * docs/Changes-1.4.txt: started
27469         
27470 1999-10-03  Tor Lillqvist  <tml@iki.fi>
27471
27472         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
27473         to #ifdef also here.
27474
27475         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
27476         Owen did to the X11 backend.
27477
27478         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
27479         ScrollWindowEx when blitting inside a window, it can't be correct
27480         in the general case.
27481
27482         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
27483         WM_GETMINMAXINFO is easier.
27484
27485         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
27486         depth equal to the bitspixel value, not the visual's depth.
27487
27488         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
27489         to 24 even if the bitspixel value is 32.
27490
27491         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
27492         need to check for depth==32 when bpp==32, depth will always be 24.
27493
27494 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
27495
27496         * docs/Changes-1.4.txt: Started
27497         
27498         * gtk/Makefile.am (gdk_headers): Include all the new headers.
27499
27500         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
27501         
27502         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
27503         into C file.
27504         
27505         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
27506         header to gdkinputprivate.h.
27507
27508         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
27509         unused since before 1.2.
27510
27511 1999-09-30  Tor Lillqvist  <tml@iki.fi>
27512
27513         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
27514         expand possible hex escapes in the font family (put there by
27515         logfont_to_xlfd if the font name isn't a legal XLFD font family,
27516         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
27517         On Win32, add hex escapes here, too.
27518
27519 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
27520
27521         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
27522         to #ifdef GDK_WINDOWING_X11.
27523
27524 [ Merges from gtk-1-2 ]
27525
27526 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
27527
27528         * configure.in: fixed "GNU Make" check to pass with new make version
27529         3.77.95.
27530
27531 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
27532
27533         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
27534         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
27535         AM_PATH_GTK() macros don't get confused by the -pre1.
27536
27537 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
27538
27539         * configure.in (REBUILD): Change check for perl5
27540           to check explicitely for v >= 5.002. (5.001
27541           does not work with our scripts.)
27542
27543 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
27544
27545         * configure.in: evaluate $PERL for the perl version check. added
27546         --disable-rebuilds to give the user an option to completely disable
27547         any source autogeneration rules.
27548
27549 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
27550
27551         * configure.in: evaluate $ac_make when checking for GNU Make.
27552
27553 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
27554
27555         * docs/Makefile.am: added generation.txt.
27556
27557         * Makefile.am: require automake 1.4, build README from README.in and
27558         INSTALL from INSTALL.in in dist-hook.
27559         
27560         * README.in:
27561         * INSTALL.in: new files to autogenerate README and INSTALL from.
27562
27563         * configure.in: figure whether we have GNU Make
27564
27565         * docs/generation.txt: minor additions/corrections.
27566
27567 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
27568
27569         * docs/gtkfaq.sgml: FAQ Update
27570
27571 July 30, 1999 Elliot Lee <sopwith@redhat.com>
27572         
27573         * configure.in: Fix autoconf warnings about cross compilation by
27574         trying to provide sane defaults for AC_TRY_RUN.
27575
27576 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
27577
27578         * ltconfig
27579         * ltmain.sh: upgrade to libtool 1.3.3
27580
27581 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
27582
27583         * INSTALL: Indicate that the --with-glib= configure
27584         time flag is unsupported.
27585
27586 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
27587
27588         * docs/generation.txt: Added a file that gives
27589         documenation about the autogeneration process for
27590         various autogenerated files.
27591         
27592 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
27593
27594         * configure.in (LIBS): Look for libgmodule in the
27595         right location.
27596
27597 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
27598
27599         * docs/gtk_tut.sgml: Removed references to
27600         code examples in my directory on gtk.org as
27601         they should all be in the tutorial now.
27602
27603         * docs/gtk_tut.sgml: Added sources for dial-test
27604         and scribble-xinput programs that were previously
27605         missing.
27606
27607 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
27608
27609         * TODO: Added entry about menu keyboard navigation, removed
27610         some finished items.
27611
27612 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
27613
27614         * acinclude.m4: Standardize on func_dgettext
27615         not func_gettext, so that the checks for dgettext
27616         actually are paid attention to.
27617
27618 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
27619
27620         * configure.in (LIBS): Add $INTLLIBS into $LIBS
27621         directly, rather than repeating the checks for
27622         gettext.
27623
27624         * INSTALL: Added information about gettext and
27625         NLS support.
27626
27627         * acinclude.m4 (LIBM): Check for dgettext, not
27628         just gettext. This should hopefully fix things wrt
27629         systems with old versions of GNU gettext installed.
27630
27631 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
27632
27633         * configure.in (LIBS): Look for libgmodule in the
27634         right location.
27635
27636 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
27637
27638         * autogen.sh: add --enable-maintainer-mode
27639
27640         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
27641
27642 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
27643
27644         * docs/gtk-config.1.in:
27645           docs/Makefile.am:
27646           configure.in: gtk-config is now generated.
27647
27648         * docs/gtk-config.1: Removed, now generated.
27649
27650 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
27651
27652         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
27653         handle CreateNotify itself, still put out a debuging message for
27654         --gdk-debug=events. made the ReparentNotify debugging message more
27655         verbose.
27656         wrap xcoords translation for ConfigureEvents into an error trap,
27657         a destroy event may already be pending, and in that case, the
27658         actuall coordinate values are not at all critical.
27659
27660 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
27661
27662         * gdk/gdkcc.c: Stop leaking the color_hash all over
27663         the place. Simplify and improve the logic.
27664
27665 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
27666
27667         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
27668         for prototypes and function implementations consistent (reported
27669         by Tomas Ogren).
27670
27671 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
27672
27673         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
27674         send_event set in debugging output.
27675         (gdk_compress_exposures): default initialize the event so we don't
27676         operate on bogus values (namely send_event).
27677
27678 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
27679
27680         * gdk/gdkwindow.c: When we receive an unexpected
27681         destroy notify on one of our windows, don't just
27682         warn about it, also mark our windows as destroyed.
27683
27684 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
27685
27686         * gdk/gdkfont.c (gdk_font_hash_insert): Add
27687           name => font and name => fontset hashes. The 
27688           name => fontset hash is a _big_ win since we
27689           weren't previously caching fontsets at all and loading
27690           fontsets is expensive. The name => font hash
27691           is less of a win, but it does save us from doing
27692           repeated XQueryFont calls on the same font.
27693
27694         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
27695           list so we can remove font/fontset from hash.
27696
27697 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
27698
27699         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
27700           and slightly confusing test. [ XInternAtom (,,TRUE)
27701           will never return None ].
27702
27703 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
27704
27705         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
27706           gdk/gdkwindow.c (gdk_window_set_hints):
27707
27708         Don't omit setting the properties if flags == 0 -
27709         there may be an existing set of properties there
27710         already. (Very old bug. Would it be better to
27711         delete the property instead?)
27712
27713         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
27714           spelling error in comment.
27715
27716 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
27717
27718         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
27719           to avoid stomping over gdk_error_warnings.
27720
27721         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
27722           as (bits_per_pixel + 7) / 8. This gives the same
27723           result as before for multiples of 8, but actually
27724           a "reasonable" value for 1bit or 4bit displays.
27725
27726 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
27727
27728         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
27729         GNU Make.
27730
27731 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
27732
27733         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
27734         discarding configure events.
27735
27736 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
27737
27738         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
27739         refcount is greater than zero.
27740
27741         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
27742
27743         * gdk/gdkfont.c (gdk_font_unref): Likewise.
27744
27745         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
27746
27747         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
27748
27749 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
27750
27751         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
27752         that format 32 => sizeof(item) == 4. It really is
27753         sizeof(long).
27754
27755 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
27756
27757         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
27758         core dump at all on X IO errors, only core dump
27759         if --enable-debug for X errors.
27760
27761 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
27762
27763         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
27764         unknown window:" message. disabled ConfigureNotify discarding code,
27765         because it led to events being processed out of order.
27766
27767 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
27768
27769         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
27770
27771         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
27772         we export this function, supress error warnings and don't reset the
27773         error code in the first half of this function.
27774
27775         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
27776         code (instead of just -1) so gdk_error_trap_pop() reveals something
27777         actually informative about the error that happened.
27778
27779         * gdk/*.c:
27780         don't rely on gdk_error_code being -1 if an error occoured, but just
27781         gdk_error_code != 0.
27782
27783 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
27784
27785         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
27786         pointer *before* invoking the filter function, so we at least don't
27787         crash if a filter is removed that is currently executed. window filters
27788         *really* need to be made truely reentrant at some point.
27789
27790 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
27791
27792         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
27793         PropertyNotify debug messages.
27794
27795 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
27796         
27797         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
27798         
27799         * gdk/gdkim.c: Fix cut-and-paste errors for 
27800         x/y and PreeditAttributes/StatusAttributes.
27801
27802 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
27803
27804         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
27805         G_MAXINT to 2^16 to alleviate overflow problems in
27806         various window managers.
27807
27808 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
27809
27810         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
27811         for fontsets.
27812
27813 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
27814
27815         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
27816         Initialize size_hints.x and size_hints.y because kwm
27817         brokenly pays attention to them.
27818         (Bug #1181 -  Lars Heete <hel@admin.de>)
27819
27820 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
27821
27822         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
27823         return value of gdk_list_visuals(). 
27824         (Bug #1193 - Morten Welinder <terra@diku.dk>)
27825
27826 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
27827
27828         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
27829         XSetIMValues to (void *) when comparing to NULL, to workaround
27830         the problem of some compilers barfing since older X headers don't
27831         have the prototype for it.
27832
27833 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
27834
27835         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
27836         for pseudocolor where colormap->colors was double
27837         allocated.
27838
27839         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
27840         color value in the hash table with the pixel filled
27841         in so when we do later hash table lookups, the color
27842         value is correct.
27843         
27844 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
27845
27846         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
27847         making the call
27848
27849 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
27850
27851         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
27852         pointed out by Morten Welinder <terra@diku.dk>.
27853
27854 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
27855
27856         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
27857           default filter from the list
27858
27859 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
27860
27861         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
27862           default filter from the list
27863
27864 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
27865
27866         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
27867
27868         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
27869         g_strdup_printf instead of calcing the length separately
27870
27871 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
27872
27873         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
27874         that we don't do in many other places. (Fixing duplicate 
27875         #include of config.h)
27876
27877         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
27878         Otherwise, #ifndef XINPUT_NONE check in the latter
27879         doesn't work. (Bug #546)
27880
27881 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
27882
27883         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
27884         "None" case insensitive.
27885
27886 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
27887
27888         * gdk/gdkselection.c: 
27889         Add error traps so if the other end of the connection
27890         dies, we survive.
27891
27892 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
27893
27894         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
27895         dest_xid field into two fields - one for the window
27896         to send in messages, one to indicate the last looked
27897         up window for caching purposes. This is needed, so
27898         that Leave messages get the correct window.
27899
27900 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
27901
27902         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
27903         Fix warning created by people mucking around
27904         with the gsource API.
27905
27906         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
27907         Change mapping between GIOCondition and GdkInputCondition
27908         to match the way the Linux kernel does it. This should
27909         fix problems where closed pipes were no longer signalling
27910         GDK_INPUT_READ on systems with a native poll().
27911
27912 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
27913
27914         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
27915         explicitly for the string "None" - it is in the XPM
27916         spec and some servers treat unknown colors in odd ways
27917         (like asking the user!)
27918
27919 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
27920
27921         * gdk/gdkevents.c: made "->" into a "." of previous change so
27922         it compiles
27923
27924 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
27925
27926         * gdk/gdkevents.c (gdk_compress_exposures): Set the
27927         window field of the event structure before calling
27928         user filters.
27929
27930 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
27931
27932         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
27933         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
27934
27935 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
27936
27937         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
27938         intermediate text property - prevents major memory
27939         leak when gdk_use_mb.
27940         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
27941
27942 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
27943
27944         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
27945         gtk-a-higuti-990322-[0-3]
27946
27947         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
27948         sizeof(wchar_t) != sizeof (GdkWChar)
27949
27950         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
27951         that was causing -DX_LOCALE not to work.
27952
27953         * gtk/gtkrc.c (gtk_rc_init):
27954         X_LOCALE will never have LC_MESSAGES defined
27955
27956         * gdk/gdk.c (gdk_init_check):
27957         Remove --xim-preedit and --xim-status from argv properly.
27958
27959         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
27960         that the client window is present on the X server
27961         before we pass it to the input method.
27962
27963 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
27964
27965         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
27966         if --display is specified on the command line, than
27967         the drag window will not be created on that display.
27968         
27969 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
27970
27971         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
27972         lookups with only_if_exists == TRUE were inserting
27973         bogus values into the atom cache.
27974
27975 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
27976
27977         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
27978         then reset it to NULL.
27979
27980         * gdk/gdkcolor.c:
27981         (gdk_colors_free): 
27982         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
27983         key for g_hash_table_remove() in both functions, this prevents us
27984         from accessing possibly uninitialized portions of a GdkColor structure
27985         where we are only interested in its pixel value.
27986
27987 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
27988
27989         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
27990         font hash table, if we have a GdkFontPrivate entry for this font
27991         already, simply increment its reference count, provided by Olaf Dietsche
27992         <olaf.dietsche+list.gtk@netcologne.de>.
27993
27994 1999-09-21  Tor Lillqvist  <tml@iki.fi>
27995
27996         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
27997         just to be sure.
27998
27999         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
28000         unused variables, leftovers from the X11 version.
28001
28002         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
28003
28004         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
28005         downcase fields on X11.
28006
28007 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
28008         
28009         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
28010         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
28011
28012 1999-09-17  Tor Lillqvist  <tml@iki.fi>
28013
28014         * gdk/win32/gdk.def: Add gdk_threads_mutex.
28015
28016         * gtk/makefile.msc: Correct path to libintl.
28017
28018         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
28019         use of gint vs. int, and gint vs. gboolean in headers and
28020         definitions. Use GtkType for the *_get_type functions. Note that
28021         these changes preserve binary compatibility.
28022
28023         * gdk/gdk.c
28024         * gdk/win32/gdk.c
28025         * gdk/gdk.h: Fix inconsistencies: gint vs int.
28026
28027         * gtk/gtkmain.c
28028         * gtk/gtkclist.c
28029         * gtk/gtkmenufactory.c
28030         * gtk/gtknotebook.c
28031         * gtk/gtkwidget.c: Fix inconsistencies, also gint
28032         vs. gboolean.
28033
28034         * gtk/gtkcolorsel.[ch]
28035         * gtk/gtkcombo.[ch]
28036         * gtk/gtkdrawingarea.[ch]
28037         * gtk/gtkgamma.[ch]
28038         * gtk/gtkhandlebox.[ch]
28039         * gtk/gtkhpaned.[ch]
28040         * gtk/gtkhruler.[ch]
28041         * gtk/gtkplug.[ch]
28042         * gtk/gtkpreview.[ch]
28043         * gtk/gtkruler.[ch]
28044         * gtk/gtksocket.[ch]
28045         * gtk/gtkstatusbar.[ch]
28046         * gtk/gtktoolbar.[ch]
28047         * gtk/gtkvbbox.[ch]
28048         * gtk/gtkvpaned.[ch]
28049         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
28050         functions.
28051
28052         * gtk/gtkgamma.h: Fix bug, missing () in call of
28053         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
28054
28055 1999-09-14  Tor Lillqvist  <tml@iki.fi>
28056
28057         * gdk/gdkcolor.c (gdk_colormap_new)
28058         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
28059         colormap->colors was allocated twice.
28060
28061         * gdk/win32/gdk.c: Remove some unused stuff.
28062
28063         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
28064         colormap.
28065
28066         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
28067         * gtk/gtklabel.h (gtk_label_get_type)
28068         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
28069         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
28070         in a couple of places, not guint.
28071
28072 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
28073
28074         * configure.in,po/et.po: added Estonian language file
28075
28076 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
28077
28078         * configure.in,po/da.po: added Danish file
28079
28080 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
28081
28082         * docs/gtkfaq.sgml: Minor FAQ Update
28083
28084 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
28085
28086         * docs/gtkfaq.sgml: FAQ update
28087
28088 1999-08-27  Tor Lillqvist  <tml@iki.fi>
28089
28090         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
28091         way to get window contents continually refreshed while resizing. I
28092         didn't like the effects myself, so it's not on by default.
28093
28094         * gdk/win32/gdkprivate.h: New flag variable
28095         gdk_event_func_from_window_proc, FALSE by default.
28096
28097         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
28098         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
28099         are passed --gdk-event-func-from-window-proc.
28100
28101         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
28102         and we have am event_func, call it instead of enqueing the event.
28103
28104 1999-08-23  Tor Lillqvist  <tml@iki.fi>
28105
28106         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
28107         Kelley: Set expose_count in GdkEventExposes correctly.
28108
28109         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
28110         MULTIPLE_WINDOW_CLASSES).
28111
28112         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
28113         for bug in NT, apparently NT *does* draw the end pixel, too, in
28114         LineTo with a one-pixel pen, so we don't have to do it ourselves.
28115
28116 1999-08-21  Tor Lillqvist  <tml@iki.fi>
28117
28118         Improvements by Hans Breuer: 
28119
28120         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
28121
28122         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
28123         CS_?REDRAW flags as they cause lots of (late) redraws when "show
28124         window contents while dragging" is turned on. Allocate at least
28125         one unique class for every GdkWindowType. If support for single
28126         window-specific icons is ever needed (eg. Dialog specific), every
28127         such window should get its own class.
28128
28129 1999-08-19  Tor Lillqvist  <tml@iki.fi>
28130
28131         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
28132         error that caused crashes.
28133
28134 1999-08-17  Tor Lillqvist  <tml@iki.fi>
28135
28136         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
28137         window, use ScrollWindowEx, and call UpdateWindow. This prevents
28138         bugs when for instance part of the window was outside the
28139         display. Thanks to Philippe Colantoni for finding and fixing this.
28140
28141 1999-08-16  Tor Lillqvist  <tml@iki.fi>
28142
28143         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
28144         endpoint calculations which were totally wrong. (A little RTFMing
28145         helps a lot ;-)
28146
28147         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
28148         from a separate directory, not from gettext, because of licensing
28149         issues (we want to use the LGPL version).
28150
28151         * README.win32: Mention the intl from glibc vs from gettext issue.
28152
28153 1999-08-13  Tor Lillqvist  <tml@iki.fi>
28154
28155         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
28156         in the key event handling: Now AltGr chars work again. Also,
28157         now Alt-digits are passed up as well as Control-digits.
28158         Pass keypad plus and minus as normal plus and minus.
28159
28160 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
28161
28162         * docs/gtkfaq.sgml: FAQ Update
28163
28164 1999-07-25  Tor Lillqvist  <tml@iki.fi>
28165
28166         * README.win32
28167         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
28168         the Wintab SDK.
28169
28170         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
28171         OK, but getting closer. Guard against bogus tilt data from Wacom
28172         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
28173         enable easier building without Wintab.
28174
28175         * gdk/win32/gdkinput.h
28176         * gdk/win32/gdkevents.c 
28177         * gdk/win32/gdkwindow.c: Minor changes related related to above.
28178         
28179         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
28180         code. As we have just one visual on Win32, no sense to have it in a
28181         table, and no need for the hash table.
28182
28183         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
28184         better on white background.
28185
28186 1999-07-21  Tor Lillqvist  <tml@iki.fi>
28187
28188         * README.win32: Update gcc build instructions. Mention gettext is
28189         GPL.
28190
28191         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
28192         supported cursor size with GetSystemMetrics.
28193
28194         * gdk/win32/gdkfont.c
28195         * gtk/gtkfontsel.c: Guard against some font weight and charset
28196         symbols being undefined (in mingw32 headers).
28197
28198         * gdk/win32/makefile.cygwin
28199         * gtk/makefile.cygwin
28200         * gtk/gtkthemes.c: No longer need to have differently named
28201         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
28202
28203 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
28204
28205         * docs/gtkfaq.sgml: Long awaited FAQ update.
28206
28207 1999-07-15  Tor Lillqvist  <tml@iki.fi>
28208
28209         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
28210         it. Obscure bit manipulation needed.
28211
28212         * gdk/win32/gdkevents.c: Logging.
28213         
28214         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
28215         style (file name include compiler name) for theme engines.
28216
28217 1999-07-13  Tor Lillqvist  <tml@iki.fi>
28218
28219         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
28220
28221         * gdk/win32/gdkevents.c: Fix long-standing bug in key
28222         events. The key.string wasn't zero-terminated, still we strdup'ed
28223         it in gdk_event_copy(). Synthesize crossing events for button
28224         events before possible propagation.
28225
28226         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
28227
28228         * gdk/win32/makefile.cygwin
28229         * gtk/makefile.cygwin: Use new DLL naming style for the
28230         GCC-compiled ones.
28231
28232         * gdk/win32/makefile.msc
28233         * gtk/makefile.msc: Cosmetics mostly.
28234
28235         * gtk/gtk.def: Add missing entry points.
28236
28237         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
28238
28239 1999-07-09  Tor Lillqvist  <tml@iki.fi>
28240
28241         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
28242         or height is zero. Don't print a warning if Pie or Arc fails, they
28243         always fail (?) for very narrow ellipses.
28244
28245         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
28246         the part or the destination window corresponding to source area
28247         outside of the source drawable's boundary.
28248
28249         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
28250         anything if less than two points.
28251
28252         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
28253         return NULL. Gtk cut-and-paste inside a single program works
28254         better this way. (It always gets the clipboard contents from
28255         Windows, not from its own copy, which is cleared anyway. I can't
28256         say I fully understand what happens... Emulating the X selection
28257         and property stuff is a bit of a mess.)
28258
28259         * gdk/win32/gdkevents.c
28260         * gdk/win32/gdkproperty.c: A bit more verbose logging.
28261
28262         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
28263         that never got deleted). Revamp gdk_region_shrink.
28264
28265         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
28266         after use.
28267
28268         * gtk/gtk.def: Add some missing entry points.
28269
28270         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
28271         component.
28272
28273 1999-07-04  Tor Lillqvist  <tml@iki.fi>
28274
28275         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
28276         Control-digits specially.
28277
28278 1999-07-03  Tor Lillqvist  <tml@iki.fi>
28279
28280         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
28281
28282 1999-06-28  Tor Lillqvist  <tml@iki.fi>
28283
28284         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
28285         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
28286         finding this.)
28287
28288 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
28289
28290         * gtk+.spec.in: Corrected some typos in files section.
28291         
28292 1999-06-15  Tor Lillqvist  <tml@iki.fi>
28293
28294         * README.win32: Mention using GNU gettext.
28295         * config.h.win32: Enable NLS stuff.
28296         * gtk/makefile.msc: Use GNU gettext.
28297         * gdk/win32/gdkdnd.c: Minor header reorg.
28298         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
28299         cosmetics.
28300         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
28301         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
28302
28303 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
28304
28305         * acinclude.m4
28306         * config.guess
28307         * config.status
28308         * ltconfig
28309         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
28310
28311 1999-05-30  Tor Lillqvist  <tml@iki.fi>
28312
28313         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
28314         SafeAdjustWindowRectEx. Don't override all calls to
28315         AdjustWindowRectEx by it, but use it only in two places: When
28316         creating a new top-level window and when moving a top-level
28317         window.
28318
28319         Use screen coordinate rectangle, not client rectangle, in
28320         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
28321         when we try to place a window so that the decoration (mainly,
28322         title bar) isn't visible.
28323
28324         These changes fix the bug that showed up for instance as the
28325         GIMP's saved top-level windows moving right and down (by an amount
28326         equal to the window decoration) for each session. This bug showed
28327         up also in testgtk's "Saved Position".
28328
28329         gdk_window_resize also redone a bit.
28330
28331 1999-05-25  Tor Lillqvist  <tml@iki.fi>
28332
28333         * gtk/testgtkrc: Add (commented out) Windows-style theme
28334         include line.
28335
28336         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
28337
28338 1999-05-18  Tor Lillqvist  <tml@iki.fi>
28339
28340         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
28341         gdkx.h to a gdk subdirectory, so that applications can include
28342         these with <gdk/*.h> without trouble.
28343
28344         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
28345         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
28346         have their bitmap destroyed.
28347
28348         * gdk/win32/gdk.def: Add gdk_root_parent.
28349
28350 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
28351
28352         * configure.in
28353           gtk-config.in
28354           ltconfig
28355           ltmain.sh     
28356           gtk/Makefile.am: changes to compile nicely (with xlib) 
28357           on BeOS
28358
28359 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
28360
28361         * acinclude.m4
28362         * config.guess
28363         * config.sub
28364         * ltconfig
28365         * ltmain.sh: upgrade to libtool 1.3
28366
28367 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
28368
28369         * gtk/gtkclist.c:
28370         * gtk/gtkctree.c: merges from gtk-1-2
28371
28372 1999-04-25  Tor Lillqvist  <tml@iki.fi>
28373
28374         Support added for building using a GNU toolchain on Win32,
28375         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
28376
28377         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
28378         * config.h.win32: Changes for gcc.
28379         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
28380         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
28381         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
28382         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
28383         Protect shl stuff unavaiilable with mingw32 headers.
28384         * gdk/win32/gdkevents.c: Fix typo.
28385         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
28386         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
28387         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
28388         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
28389         the mingw32 headers.
28390         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
28391         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
28392         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
28393         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
28394         Test for NATIVE_WIN32, not _MSC_VER.
28395         * gtk/gtkmain.c: No use warning about developer version on Win32,
28396         there aren't any non-developer versions anyhow.
28397         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
28398         * gtk/makefile.msc: Use pthread from another directory. Minor other
28399         changes. 
28400
28401 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
28402
28403         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
28404           default filter from the list
28405
28406 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
28407
28408         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
28409          when gtk_widget_grab_default() is called for a widget that
28410          is not within a GtkWindow.
28411
28412 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
28413
28414         * docs/gtk_tut.sgml, examples/clist.c: use a
28415           scrolled window in the clist example. Minor
28416           tutorial fixes.
28417
28418 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
28419
28420         * docs/gtk_tut.sgml: Style check from David King
28421           <dking@youvegotmail.net>
28422
28423 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
28424
28425         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
28426         compile with unknown value of GDK_WINDOWING
28427
28428 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
28429
28430         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
28431         after the rule is fired.
28432         (install-exec-local): Install gdkconfig.h only if the contents are
28433         different from the currently installed gdkconfig.h.
28434
28435 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
28436
28437         * gdk/Makefile.am (configexecincludedir): Rename from 
28438         configincludedir so that gdkconfig.h will be installed 
28439         as part of `make install-exec'. 
28440
28441 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
28442
28443         * acinclude.m4
28444         * config.guess
28445         * config.sub
28446         * ltconfig
28447         * ltmain.sh: upgrade to libtool 1.2f
28448
28449         * autogen.sh: libtool is not required to autogen gtk+
28450
28451         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
28452         needed)
28453
28454 1999-03-18  Tor Lillqvist  <tml@iki.fi>
28455
28456         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
28457         declaring gdk variables exported/imported from the DLL. New image
28458         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
28459         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
28460         GDK_DRAG_PROTO_OLE2.
28461
28462         * gdk/gdk.h: Merge in Win32 version: Two new functions,
28463         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
28464         declared only for the Win32 version, but could be in the X11
28465         version as well. (Needed for a Xlib-less gdk_imlib.)
28466         gdk_color_hash should have only one parameter. Declare
28467         gdk_threads_mutex with GDKVAR.
28468         
28469         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
28470         just one parameter.
28471
28472         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
28473         per pixel, not bits.
28474
28475         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
28476         Fetch bpp (which means bits-per-pixel here) from another place on
28477         Win32. Accept also depth==32 (which we might get on Win32) with
28478         bpp==32.
28479
28480         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
28481         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
28482         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
28483         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
28484         in the backend-dependent directory, not in the common gdk
28485         directory.
28486
28487         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
28488         headers.
28489
28490 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
28491
28492         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
28493         want to use the Gtk+ devel version (which is true, and yes - even i am
28494         currently working with the 1.2.x branch). so everyone reading this, you
28495         probably want to issue
28496         cvs checkout -r glib-1-2 glib
28497         and
28498         cvs checkout -r gtk-1-2 gtk+
28499         as your next two comands.
28500
28501 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
28502
28503         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
28504         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
28505
28506         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
28507         file. strongly deprecated the GTK_HAVE_* macros, we provide
28508         GTK_CHECK_VERSION() for people that need to check for certain
28509         Gtk+ versions.
28510
28511         * gtk/gtkcompat.h: removed this from CVS.
28512         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
28513         idea right from the start, it just didn't seem like that back then.
28514
28515 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
28516
28517         * merges from gtk-1-2:
28518
28519 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
28520
28521         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
28522         item factory class has been created.
28523         (gtk_item_factory_parse_rc): likewise.
28524
28525         * gtk/gtkmenu.c:
28526         keep proper references for old_active_menu_item.
28527         (gtk_menu_reparent): unset the usize of the new parent,
28528         so the menu can sanely be size requested and we don't get nasty screen
28529         artefacts upon next reparentation.
28530         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
28531         enter notify. only synthesize enter notifies if the pointer really is
28532         inside the event window.
28533         (gtk_menu_popdown): use gtk_menu_shell_deselect().
28534         (gtk_menu_popup): move the background setting stuff into
28535         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
28536
28537         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
28538         gtk_menu_shell_select_item() to select the new item.
28539         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
28540         do the right thing for deselection as well.
28541
28542 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
28543
28544         * gtk/gtkwidget.[hc]:
28545         (gtk_widget_accelerators_locked): return whether a widget's accelerators
28546         are locked.
28547
28548         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
28549         existing accelerators if the widget's accelerators are locked.
28550
28551 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
28552
28553         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
28554
28555         * gtk/gtkmenu.c: truely forward key press and key release events to
28556         the menu widget from the toplevel or tearoff window. we can't simply
28557         connect to that, we need to stop further processing of the events as
28558         well.
28559
28560 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
28561
28562         * gtk/gtkmenu.c:
28563         (gtk_menu_key_press): pass event->keyval, event->state to
28564         gtk_accelerator_valid, instead of event->keyval twice.
28565         refuse to install single letter accelerators for menus that use
28566         single letter shortcuts.
28567
28568         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
28569         gtk_menu_ensure_uline_accel_group().
28570
28571         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
28572         which will always return an uline accel group, made
28573         gtk_menu_get_uline_accel_group() return NULL if the group isn't
28574         yet created.
28575
28576 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
28577
28578         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
28579
28580         * gtk/gtkclist.c (gtk_clist_column_title_passive):
28581         Leave button sensitive, trap  button_press, button_release,
28582         motion_notify, enter_notify and leave_notify events instead.
28583         (gtk_clist_column_title_active): disconnect event handler.
28584         (gtk_clist_drag_data_get): fixed memory leak. Reported by
28585         Guillaume Laurent <glaurent@worldnet.fr>
28586
28587 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
28588
28589         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
28590         width/height mixups.
28591
28592         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
28593         if needed.
28594
28595 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
28596
28597         * gtk/testgtk.c (create_item_factory): unref the item factory after
28598         window's destruction.
28599
28600         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
28601         count on the menu shell around the menu item's activation, since the
28602         signal emission may cause menu shell destruction.
28603
28604         * gtk/gtkitemfactory.c:
28605         the previous code leaked one accel group per menu. we use
28606         gtk_menu_get_uline_accel_group() now to fix that, and with that
28607         also create the underline accelerator group of the menus only if
28608         required (i.e. an underline accelerator has been specified).
28609         (gtk_item_factory_construct):
28610         (gtk_item_factory_create_item): removed code that would create an
28611         extra accel group for the menu (and leak references).
28612         (gtk_item_factory_create_item): adapted the underline accelerator
28613         installation code to properly feature gtk_menu_get_uline_accel_group().
28614
28615         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
28616         menu->accel_group, this may return NULL if the accelerator group
28617         hasn't been set yet.
28618         added gtk_menu_get_uline_accel_group() to retrive the underline
28619         accelerator group of the menu, this will be created on demand
28620         and proper care is taken about its reference count.
28621
28622         * gtk/gtkitemfactory.h:
28623         * gtk/gtkitemfactory.c:
28624         dumped the approach of keeping a widgets by action list on the
28625         factory since the factory<->widget destroy negotiation didn't work
28626         and would be hard to get going at all. instead we keep a list of
28627         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
28628         persistant throughout a program's life time).
28629         also, i removed the static const gchar *key_* variables, and made
28630         them inline strings (they weren't actually used anyways).
28631         (gtk_item_factory_add_item): update ifactory->items.
28632         (gtk_item_factory_destroy): destroy ifactory->items (and remove
28633         the item factory pointer from the remaining ifactory widgets).
28634         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
28635         list to find the widget.
28636         (gtk_item_factory_get_item): new function that works around
28637         gtk_item_factory_get_widget() limitations, this function will only
28638         return menu items, even for <Branch> entries.
28639
28640 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
28641
28642         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
28643         font hash table, if we have a GdkFontPrivate entry for this font
28644         already, simply increment its reference count, provided by Olaf Dietsche
28645         <olaf.dietsche+list.gtk@netcologne.de>.
28646
28647         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
28648         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
28649
28650 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
28651
28652         * gtk/gtkcontainer.c:
28653         (gtk_container_add_with_args):
28654         (gtk_container_addv):
28655         (gtk_container_add): before adding a child to a conatiner, make sure
28656         it is (default) constructed, this is neccessary because under certain
28657         circumstances the child will get relized and mapped immediatedly, in
28658         which case it has to be constructed already.
28659
28660 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
28661
28662         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
28663         values > 1 as TRUE also.
28664
28665 1999-03-16  Tor Lillqvist  <tml@iki.fi>
28666
28667         * README.win32: New file.
28668                 
28669         * configure.in: Check for lstat.
28670
28671         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
28672         completeness.
28673
28674         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
28675
28676         * gtk/gtk.def: Removed CRs.
28677
28678         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
28679         ..\gdk\win32).
28680
28681         * gdk/win32/makefile.msc: Correct upwards relative paths.
28682         
28683 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
28684
28685         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
28686           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
28687           it was connecting a void function to expose_event and the int
28688           returning function to the draw signal
28689
28690 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
28691
28692         * configure.in:
28693         Use correct path to libgmodule.la when ref'ing uninstalled copy
28694         of glib.  (Already in stable branch, Bug #417)
28695
28696 1999-03-15  Tor Lillqvist  <tml@iki.fi>
28697
28698         Win32 merge and general portability stuff:
28699                 
28700         * acconfig.h,configure.in: Check for <sys/time.h>.
28701
28702         * gdk/win32: New directory (actually, been there for a while).
28703         
28704         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
28705         NATIVE_WIN32, and use these. Always case fold on Win32. No
28706         backslashed escapes on native Win32.
28707
28708         * gtk/{gtk.def,makefile.msc}: New files.
28709
28710         * gtk/Makefile.am: Add above new files.
28711         
28712         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
28713         instead of <strings.h>.
28714
28715         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
28716         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
28717         <unistd.h> appropriately.
28718
28719         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
28720         Use ABS() (from <glib.h>) instead of abs().
28721         
28722         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
28723         of gtk (and thus glib) headers, so that WIN32 will be
28724         defined. With MS C, include <direct.h> for mkdir prototype.
28725
28726         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
28727         some casts, needed by MS C.
28728
28729         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
28730         implemented).
28731
28732         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
28733         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
28734         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
28735
28736         * gtk/gtkmain.h: Mark variables for export/import on Win32.
28737                 
28738         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
28739         the event is not a hint, or its window is not the slider. Needed
28740         on Win32, at least.
28741
28742         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
28743         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
28744         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
28745         a subdirectory of the Windows directory as gtk system
28746         configuration directory.
28747
28748         * gtk/gtkselection.c: No chunks on Win32.
28749
28750         * gtk/gtksocket.c: Not implemented on Win32.
28751
28752         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
28753
28754         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
28755
28756         * gtk/maketypes.awk: Declare variables with a macro that expands to
28757         necessary export/import magic in the case of Win32.
28758                 
28759         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
28760
28761 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
28762
28763         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
28764         since those were meant only for gdki18n.h.  
28765         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
28766         for widechar tests.
28767         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
28768
28769 1999-03-13  Tor Lillqvist  <tml@iki.fi>
28770
28771         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
28772         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
28773
28774         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
28775         installed) to CFLAGS.
28776
28777         * gdk/Makefile.am: Add rules for gdkconfig.h.
28778
28779         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
28780         APIs.
28781
28782         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
28783         gdkx.h anyway when compiling for X11.
28784         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
28785         general): Merge in Win32 version.
28786         
28787         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
28788         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
28789         expansion (if we don't have HAVE_PWD_H), allow for drive
28790         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
28791         included code from Craig Setera's port to Win32 (the one that uses
28792         X11, and the cygwin dll), even if it probably will be abandoned.
28793
28794         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
28795         the user entered one herself.  This way one can complete *.h and
28796         don't get matches on any .help files, for instance.
28797         
28798 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
28799
28800         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
28801         font hash table, if we have a GdkFontPrivate entry for this font
28802         already, simply increment its reference count, provided by Olaf Dietsche
28803         <olaf.dietsche+list.gtk@netcologne.de>.
28804
28805         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
28806         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
28807
28808 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
28809
28810         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
28811         the number of calls to gdk_draw_point() (and thus to X) by
28812         clipping the points by hand.
28813
28814         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
28815         the clip parameter.
28816         (gtk_handle_box_paint): Only paint the handle if the expose area
28817         intersects it.
28818
28819 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
28820
28821         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
28822
28823 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
28824
28825         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
28826         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
28827
28828 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
28829
28830         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
28831          textmode (O_TEXT) for OS/2 version.
28832
28833 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
28834
28835         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
28836         GtkSpinButton, "input" and "output", to make the output more flexible.
28837         The user has to provide a mapping between adjustment->value and the
28838         output string (and vice versa, if the spin button is editable). 
28839         See testgtk for examples.
28840
28841 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
28842
28843         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
28844         new one.
28845         
28846         * configure.in: set gtk+ version to 1.3.0.
28847
28848         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog,