]> Pileus Git - ~andy/gtk/blob - ChangeLog
add gtk_menu_style_set(). fixes #79345
[~andy/gtk] / ChangeLog
1 Thu May 30 07:59:38 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
2
3         * gtk/gtkmenu.c (gtk_menu_style_set): add
4         gtk_menu_style_set(). fixes #79345
5
6 2002-05-29  Dave Camp  <dave@ximian.com>
7
8         * gtk/gtkdnd.c (gtk_drag_end): Disconnect from keypress events.
9
10 2002-05-28  Matthias Clasen  <maclas@gmx.de>
11
12         * gtk/gtkwindow.c (gtk_window_move): Markup fixes
13
14         * gtk/gtkrc.c (gtk_rc_get_module_dir): Markup fixes.
15         
16         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_for_screen): Update docs
17         for Docbook XML.
18
19 2002-05-27  Daniel Elstner  <daniel.elstner@gmx.net>
20
21         [ merge from stable ]
22
23         Fixes for #83190
24
25         * gtk/gtktreedatalist.h (_GtkTreeDataList::data): Add missing
26         fields to anonymous union: glong, gulong, gint64 and guint64.
27         This is an internal header file, so it should not affect ABI
28         or API compatibility.
29
30         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
31         Implement missing support for glong, gulong, gint64 and guint64
32         fundamental types.  Use data.v_uint instead of data.v_int for
33         G_TYPE_FLAGS, as GValue does.
34         (_gtk_tree_data_list_value_to_node): ditto
35         (_gtk_tree_data_list_node_copy): Add case labels for missing
36         fundamental types, and reorder them to match the other functions.
37         (gtk_tree_data_list_compare_func): Implement comparison for
38         glong, gulong, gint64 and guint64.  Use g_value_get_enum()
39         for G_TYPE_ENUM and g_value_get_flags() for G_TYPE_FLAGS, rather
40         than accessing them as gint/guint.  The G_VALUE_HOLDS() check
41         probably won't like this.
42
43 2002-05-24  Dave Camp  <dave@ximian.com>
44
45         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): 
46         Built an iter directly instead of using
47         gtk_tree_model_sort_elt_get_path(), since that returns a path for
48         the child model.
49
50 2002-05-24  Dave Camp  <dave@ximian.com>
51
52         * gtk/gtktreemodelsort.c: Use indices[i] >= level->array->len
53         rather than level->array->len > indices[i] in the bounds check.
54
55 2002-05-23  Tor Lillqvist  <tml@iki.fi>
56
57         * gtk-zip.sh.in: Use correct path to the loaders and immodules
58         directories (GTK_BINARY_VERSION, not GTK_VERSION).
59
60 Wed May 22 16:12:38 2002  Owen Taylor  <otaylor@redhat.com>
61
62         * configure.in: Require autoconf-2.52 explicitely,
63         since otherwise Debian will process it with 2.13 (ugh!).
64
65 Wed May 22 12:29:20 2002  Jonathan Blandford  <jrb@redhat.com>
66
67         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_init): remove
68         GTK_RESIZE_QUEUE setting.
69
70 Tue May 21 16:46:15 2002  Owen Taylor  <otaylor@redhat.com>
71  
72         * gdk/x11/gdkdisplay-x11.c (gdk_internal_connection_watch): 
73         Fix missing dereference. (HideToshi Tajima)
74  
75 Mon May 20 15:02:21 2002  Owen Taylor  <otaylor@redhat.com>
76
77         * gdk/x11/gdkdisplay-x11.c: Patch from HideToshi Tajima
78         to handle Xlib internal connections. (#76681)
79
80 Mon May 20 12:59:14 2002  Owen Taylor  <otaylor@redhat.com>
81
82         * gtk/gtktooltips.c: Set the private LEAVE_PENDING
83         flag to fix problem where with menu items with
84         submenus, tooltips were getting stuck. (Effectively
85         disables tooltips for menu items with submenus.)
86         (Bug #75961, Soeren Sandmann)
87
88         * tests/testgtk.c: Set a tooltip on a menu item
89         with a submenu.
90
91 Mon May 20 11:47:59 2002  Owen Taylor  <otaylor@redhat.com>
92  
93         * gtk/gtkplug.c: Undo an accidental revert of
94         fixes of May 16. (Caught by Padraig O'Briain)
95  
96         * gtk/gtkctree.c (cell_size_request): Fix bug where
97         size request for text cells was being overwritten.
98         (#82264, Graham Swallow.)
99
100 2002-05-18  Matthias Clasen  <maclas@gmx.de>
101
102         * configure.in: Check for endianness. Sorry about REBUILD_PNGS...
103
104 Fri May 17 16:05:34 2002  Owen Taylor  <otaylor@redhat.com>
105
106         * configure.in (REBUILD_PNGS): Re-add REBUILD_PNGS
107         definition that got accidentally removed.
108
109 Fri May 17 14:40:24 2002  Owen Taylor  <otaylor@redhat.com>
110
111         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave): 
112         Protect against reentrancy problems by emitting 
113         ::preedit_changed at the end, fixing input context
114         leak. (Yao Zhang)
115
116         * modules/input/gtkimcontextxim.c (status_window_free): 
117         Patch from Federico Mena Quintero to fix problem where
118         references to IMContextXIM were kept around after
119         module was unloaded. (#77008)
120
121         * gtk/gtkdnd.c (gtk_drag_dest_set): NULL initialize
122         proxy window.
123
124 Fri May 17 13:56:23 2002  Owen Taylor  <otaylor@redhat.com>
125  
126         * gtk/gtkplug.c (gtk_plug_filter_func): Fix a missing
127         unref in the local/passive case. (#82067, Michael
128         Meeks)
129  
130         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Fix
131         reference leak on the plug window.
132  
133         * tests/testsocket.c (add_child): Fix memory leak.
134  
135         * gtk/gtkdnd.c (gtk_drag_dest_site_destroy): Unref
136         the proxy window.
137  
138 Thu May 16 19:49:24 2002  Owen Taylor  <otaylor@redhat.com>
139  
140         * gtk/gtkwindow.c (gtk_window_configure_event): Only 
141         optimize out the full configure handling if we got
142         a gratuitous configure event(configure_request_count == 0)
143         and the size didn't change.
144  
145         * gtk/gtkwindow.c (gtk_window_move_resize): Use 
146         g_message(), not g_print() for debug spew.b
147  
148         * gtk/gtkwindow.c (gtk_window_real_set_focus): Ref
149         the old and new focus widgets for the scope of
150         the function.
151  
152         * gtk/gtksocket.c gtkplug.c: Remove various #if 0'd
153         bits of old code.
154  
155  Thu May 16 18:47:29 2002  Owen Taylor  <otaylor@redhat.com>
156  
157         * gtk/gtkwindow.c (gtk_window_show): Disable the
158         focus-some-widget code for GtkPlug descendants.
159  
160         * gtk/gtkplug.c (gtk_plug_focus_event): Eat 
161         focus-in/out events since they can be generated
162         by keyboard grabs, but are spurious for an embeddded
163         widget. (#79196, Padraig O'Briain)
164  
165         * gtk/gtksocket.c (gtk_socket_size_request): Only
166         pay attention to the minimum size hints, and changes
167         to that ... ignore the default size.
168  
169         * gtk/gtksocket.c (gtk_socket_send_configure_event):
170         Pass in root-window relative coordinates as per
171         the ICCCM.
172  
173         * gtk/gtksocket.c (gtk_socket_size_allocate): Send
174         as many synthetic configures as necessary to make
175         up for ConfigureRequest events we got. (#78799,
176         Dave Camp.)
177
178 Thu May 16 23:59:56 2002  Kristian Rietveld  <kris@gtk.org>
179
180         Merged from gtk-2-0.
181
182         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed): set the prev
183         of the next node correctly, so we don't corrupt the list and cause
184         bad things. (fixes #71374)
185  
186 Thu May 16 17:29:08 2002  Jonathan Blandford  <jrb@redhat.com>
187
188         * gtk/gtkrbtree.c (_gtk_rbtree_remove): include missing #ifdef G_ENABLE_DEBUG
189
190 Thu May 16 15:44:15 2002  Owen Taylor  <otaylor@redhat.com>
191
192         * demos/gtk-demo/editable_cells.c (cell_edited): Fix
193         typo in earlier patch.
194
195 Tue May  7 15:50:51 2002  Owen Taylor  <otaylor@redhat.com>
196
197         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress):
198         Don't filter control-shift+[non-hex]. 
199         (#80252, reported by Nalin Dahyabhai)
200
201 Thu May 16 14:51:14 2002  Owen Taylor  <otaylor@redhat.com>
202
203         Fixes for #78258
204
205         * gtk/gtkrbtree.c demos/gtk-demo/editable-cells.c:
206         Fix some 64-bit warning problems. (Patch from Matthias
207         Clasen.)
208         
209         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew_helper): Surround
210         a bunch of debug code with G_ENABLE_DEBUG.
211
212         * configure.in demos/gtk-demo/main.c: Replace
213         #ifndef G_OS_WIN32 with proper #ifdef HAVE_FLOCKFILE.
214
215 Thu May 16 12:56:38 2002  Owen Taylor  <otaylor@redhat.com>
216
217         * gtk/gtkrange.c (gtk_range_calc_layout): Fix a missed
218         check for division by zero. (#77820, Gareth Pearce)
219
220 Thu May 16 12:50:13 2002  Owen Taylor  <otaylor@redhat.com>
221
222         * gdk/x11/gdkevents-x11.c (gdk_xsettings_notify_cb):
223         gdk_event_put() copies the event and setting name,
224         so we don't have to strdup() it here. (Fix from
225         Michael Meeks, #81953)
226
227 2002-05-16  Ettore Perazzoli  <ettore@ximian.com>
228
229         * gtk/gtkmenu.c (gtk_menu_paint): If the menu is scrolled down or
230         up, and some of the widget area is empty, don't fill it in with
231         GTK_SHADOW_IN rectangles that make it looks strange.  Fixes
232         #72695.
233
234 Wed May 15 18:15:45 2002  Owen Taylor  <otaylor@redhat.com>
235
236         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Don't
237         call gdk_pointer_grab() to change the cursor if we've
238         already ungrabbed on button release / escape.
239         (#80420, Dave Camp)
240
241 Wed May 15 17:12:50 2002  Owen Taylor  <otaylor@redhat.com>
242
243         * gtk/gtktooltips.c: Special case menu items to
244         pop down on motion. (#75961)
245
246         * tests/testgtk.c (create_item_factory): Add tooltips
247         to the File menu.
248
249         * gtk/gtkentry.c (update_im_cursor_location): Fix 
250         cursor locations passed to the IM context.
251         (#80027, Yao Zhang)
252
253 Wed May 15 16:52:57 2002  Owen Taylor  <otaylor@redhat.com>
254
255         * gtk/gtkfontsel.c: Update from contents of size entry
256         on focus out. (#76493, Lauris Kaplinski)
257
258         * gtk/gtkclipboard.c (selection_get_cb): Fix backwads
259         info/time arguments. (#80226)
260
261 Wed May 15 11:13:19 2002  Owen Taylor  <otaylor@redhat.com>
262
263         * configure.in gtk/stock-icons/Makefile.am: If not
264         building libpng, don't rebuild gtkstockpixbufs.h
265         (#81819, Bill Janssen)
266
267 2002-05-15  jacob berkman  <jacob@ximian.com>
268
269         * demos/gtk-demo/Makefile.am (demos.h): just run perl on the
270         geninclude script manually
271
272 Tue May 14 19:53:15 2002  Owen Taylor  <otaylor@redhat.com>
273
274         * demos/gtk-demo/geninclude.pl.in configure.in:
275         Subsitute in @PERL@ instead of hardcoded 
276         /usr/bin/perl. (#78355, Gareth Pearce. Fix based
277         on patch from Matthias Clasen)
278
279         * gdk/Makefile.am: Patch from Daniel Elstner to use glib-mkenums
280         instead of makeenums.pl.
281
282         * gdk/{x11,linux-fb,win32}/Makefile.am: Hack to
283         get gdkenumtypes.h built first.
284
285 Tue May 14 18:41:58 2002  Owen Taylor  <otaylor@redhat.com>
286
287         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): 
288         Remove the result file on error. (#79929, David
289         Highley)
290
291         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu):
292         If the menu is currently active, cancel it before
293         setting the new menu. (#79162, Jonathan Blandford.)
294
295 Tue May 14 18:13:10 2002  Owen Taylor  <otaylor@redhat.com>
296
297         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Fix
298         prepending at the start of the list. (#56349,
299         Thomas Leonard.)
300
301         * gtk/gtksignal.h (gtk_signal_disconnect_by_func): Add
302         explicit casts to GSignalMatchType for C++ compatibility.
303         (#77601)
304
305 Tue May 14 18:02:37 2002  Owen Taylor  <otaylor@redhat.com>
306
307         * gtk/gtkwindow.c (gtk_window_realize): Fix
308         frame_right/frame_top screwup. (Detlef Reichl,
309         #78111)
310
311         * gtk/Makefile.am (install-data-local): Use
312         $(INSTALL_DATA) not $(INSTALL) when installing
313         theme files. (#77094, Ben Liblit)
314
315 Tue May 14 17:30:57 2002  Owen Taylor  <otaylor@redhat.com>
316
317         * gtk/gtkctree.c gtk/gtkclist.c: Fix format of 
318         selection data to be 8 rather than GTK_TYPE_POINTER.
319         (#79751, James Henstridge)
320         
321         * gtk/gtkmenu.c (gtk_menu_key_press): Call 
322         gtk_accelerator_valid() with cleaned up
323         accel_key/accel_mods, not the raw values from
324         the event. (#80513, Havoc Pennington.)
325
326         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Remove
327         some dead code that set the tearoff window not 
328         resizable and removed decorations. (#80235)
329
330 Tue May 14 16:44:09 2002  Owen Taylor  <otaylor@redhat.com>
331
332         * gtk/gtklabel.c (gtk_label_ensure_layout): Set
333         the width of the layout to the actual wrap width 
334         (our requisition) not the width we set when calculating
335         the width. This results in the lines being justified
336         within the correct area. (#79157, Anders Carlsson)
337
338         * gtk/gtkaccelgroup.c gtk/gtkmarshelers.list: Corrected 
339         registered parameter types of "accel_activate" and 
340         "accel_changed" signals. (Patch from Murray Cumming, #78798)
341         
342         * gtk/gtkrc.c (gtk_rc_make_default_dir): Switch
343         binary-version and type to correspond to the 
344         current ordering in _gtk_get_module_path.
345         (#78746, Sergey Kuzminov) 
346
347         * gtk/gtkrc.c (gtk_rc_get_module_dir): Add docs
348         pointing to the GTK_PATH documentation.
349
350         * gtk/Makefile.am (uninstall-local): Delete 
351         key themes as well. (#81286, Kristian Rietveld.)
352
353 Tue May 14 15:40:49 2002  Owen Taylor  <otaylor@redhat.com>
354
355         * gdk/x11/gdkwindow-{linux-fb,win32,x11.c} (gdk_window_set_back_pixmap):
356         Add a sanity g_return_if_fail() check for the depths
357         for the window and pixmap. (#79191, Shivaram Upadhyayula)
358
359 Tue May 14 15:09:33 2002  Owen Taylor  <otaylor@redhat.com>
360
361         * gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
362         for XkbKeySymEntry to make up for OSF broken 
363         XKB extension. (#77819, Gareth Pearce)
364
365         * gtk/gtklayout.c: Clamp the upper values in response
366         to ::size-allocate if necessary. (#81290, Christophe Saout)
367         
368         * gtk/gtkcombo.c (gtk_combo_entry_focus_out): Handle
369         combo being destroyed before idle fires.
370         (#81396, Timo Sirainen)
371
372 Tue May 14 11:21:19 2002  Owen Taylor  <otaylor@redhat.com>
373  
374         * gdk/x11/gdkevents-x11.c (gdk_event_translate): 
375         Discard configure events from SubstructureNotify.
376         (#81760, Rich Burridge)
377  
378         * gtk/gtkfontsel.c (cmp_families): Use g_utf8_strcoll(), not
379         strcmp().
380  
381         * gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): Clamp 
382         width of child allocation to >= 1. (Fixes warnings from
383         #77639, Martin Schulze)
384         
385 2002-05-14  Matthias Clasen  <maclas@gmx.de>
386
387         * gtk/gtkcontainer.c (gtk_container_class_install_child_property): 
388         (gtk_container_class_find_child_property): 
389         (gtk_container_class_list_child_properties): 
390         * gtk/gtkwidget.c (gtk_widget_class_find_style_property): 
391         (gtk_widget_class_list_style_properties): Change parameter names
392         to match the header file and the documentation.
393
394 2002-05-13 Vitaly Tishkov <tvv@sparc.spb.su>
395
396         * gtk/gtkfilesel.c
397         * gtk/gtkplug.c 
398         * gtk/gtkwidget.c
399         * gtk/gtkwindow.c
400         a few typos in docs were fixed
401
402 2002-05-10  Daniel Elstner  <daniel.elstner@gmx.net>
403
404         [ merge from stable ]
405
406         * gtk/gtktreemodel.c: #define INITIALIZE_TREE_ITER(),
407         which zeroes out all GtkTreeIter fields. (#81380)
408         (gtk_tree_model_get_iter): Use it.
409         (gtk_tree_model_iter_children): ditto
410         (gtk_tree_model_iter_nth_child): ditto
411         (gtk_tree_model_iter_parent): ditto
412
413 2002-05-08  Michael Natterer  <mitch@gimp.org>
414
415         * configure.in: fixed yesterdays fix for cross compiling: simply
416         check the variable "cross_compiling" which gets set by autoconf.
417
418 Wed May  8 16:14:49 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
419
420         * gtk/gtktreeview.c 
421         (gtk_tree_view_init): set_redraw_on_allocate (FALSE);
422         (gtk_tree_view_size_allocate): invalidate last column if width
423         changed.
424         (gtk_tree_view_bin_expose): skip over cells that aren't in
425         event->region
426
427 Tue May  7 18:36:03 2002  Owen Taylor  <otaylor@redhat.com>
428  
429         * gdk/x11/xsettings-client.c (xsettings_client_process_event): 
430         Check for selection_atom, not property name atom.
431  
432 2002-05-07  Michael Natterer  <mitch@gimp.org>
433
434         * configure.in: added a new conditional CROSS_COMPILING which
435         indicates ($build != $host). If it is set, look for
436         gdk-pixbuf-csource in PATH. Error out if it was not found.
437
438         * gtk/stock-icons/Makefile.am: use the gdk-pixbuf-csource found at
439         configure time if CROSS_COMPILING is set, use the one which was
440         just built otherwise.
441
442 2002-05-07  Anders Carlsson  <andersca@gnu.org>
443
444         * gdk/x11/xsettings-client.c (xsettings_client_process_event): 
445         Only process manager events with the correct atom.
446
447 2002-05-07  Matthias Clasen  <maclas@gmx.de>
448
449         Fix for #79248:
450         
451         * gdk/x11/gdkwindow-x11.c (gdk_window_new): 
452         (gdk_window_set_events): Always select for property notify for
453         maintaining window state.
454
455         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Only propagate
456         property notifys if they were selected by gdk_window_set_events.
457
458 Mon May  6 23:48:14 2002  Kristian Rietveld  <kris@gtk.org>
459
460         * gtk/gtktreeview.c (gtk_tree_view_map_expanded_rows_helper): call
461         func on current node before the child nodes.
462
463 Mon May  6 23:17:42 2002  Kristian Rietveld  <kris@gtk.org>
464
465         * gtk/gtktreeview.c (gtk_tree_view_motion_draw_column_motion_arrow):
466         unset user_data before destroying the window. (fixes #80065).
467
468 Mon May  6 12:17:14 2002  Owen Taylor  <otaylor@redhat.com>
469
470         * configure.in: Fix versioning to avoid changing the
471         soname!
472
473         [ merge from stable ]
474
475         * Makefile.am (EXTRA_DIST): Add ChangeLog.pre-2-0 (#78641)
476
477         * m4macros/gtk-2.0.m4: save CFLAGS/LIBS properly when
478         compiling "what went wrong" test case. (#79329)
479
480         * m4macros/gtk-2.0.m4: Remove reference to editing
481         pkg-config script. (From Jim Gettys)
482
483 02-05-05  Matthias Clasen  <maclas@gmx.de>
484
485         * configure.in: Bump version to 2.1.0, binary, interface age 0.
486
487         * gtk/gtkcontainer.c (gtk_container_class_list_child_properties): 
488         (gtk_container_class_find_child_property): Document.
489
490         * gtk/gtkwidget.c: 
491         * gtk/gtkwidget.h: New functions gtk_widget_class_list_child_properties
492         and gtk_widget_class_find_child_property.  (#80652)
493         
494 Sun May  5 15:56:50 2002  Owen Taylor  <otaylor@redhat.com>
495
496         * configure.in: Fix problem with == in test argument.
497         (#80732, Hidetoshi Tajima)
498
499 Sun May  5 16:42:32 2002  Kristian Rietveld  <kris@gtk.org>
500
501         The "big treeview focus patch". Fixes several issues and adds some
502         goodies. Related bugs: #73676, #73734, #78660.
503
504         * gtk/gtktreeview.h: add gtk_tree_view_set_cursor_on_cell
505
506         * gtk/gtktreeview.c (gtk_tree_view_button_press): focus on a cell
507         if applicable,
508         (gtk_tree_view_bin_expose): set_cell_data before iterating columns,
509         add support for row-spanning focus rectangles,
510         (gtk_tree_view_has_special_cell): new function,
511         (gtk_tree_view_move_cursor_left_right): add support for multiple
512         focusable cells in one column,
513         (gtk_tree_view_set_cursor): call _set_cursor_on_cell now,
514         (gtk_tree_view_set_cursor_on_cell): copy of _set_cursor, extended
515         with focus_cell parameter,
516         (gtk_tree_view_search_iter): removed unused column variable,
517         (gtk_tree_view_start_editing): add neighbor size code to allow
518         for multiple editable cells in one column.
519
520         * gtk/gtktreeviewcolumn.c (_GtkTreeViewColumnCellInfo): add
521         in_editing_mode field,
522         (gtk_tree_view_column_get_edited_cell): new function, removed
523         _get_editable_cell,
524         (_gtk_tree_view_column_get_cell_at_pos): new function,
525         (gtk_tree_view_column_pack_end): s/g_new/g_new0/ ...,
526         (gtk_tree_view_column_cell_process_action): loads of changes to get
527         it right and to allow for multiple special cells, etc,
528         (gtk_tree_view_column_cell_first): new function,
529         (gtk_tree_view_column_cell_last): ditto,
530         (gtk_tree_view_column_cell_next): ditto,
531         (gtk_tree_view_column_cell_prev): ditto,
532         (gtk_tree_view_column_cell_focus): add left and right parameters,       
533         allow for multiple special cells,
534         (gtk_tree_view_column_cell_is_visible): add assertion,
535         (gtk_tree_view_column_focus_cell): new function,
536         (gtk_tree_view_column_stop_editing): unset in_editing_mode flag,
537         (_gtk_tree_view_column_get_neighbor_sizes): iterate through cells
538         correctly
539
540         * gtk/gtktreeviewcolumn.h: add gtk_tree_view_column_focus_cell
541
542         * gtk/gtktreeprivate.h: s/_get_editable_cell/_get_edited_cell/, add
543         _gtk_tree_view_column_get_cell_at_pos, add new parameters to
544         _gtk_tree_view_column_cell_focus.
545
546         * tests/testtreeedit.c: add some cells in order to test new code.
547
548 Sun May  5 02:22:59 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
549
550         * tests/test-images/*: image files for testing pixbuf loaders
551         * tests/pixbuf-*.c: the old test-loaders.c split into four 
552         different programs
553         * tests/Makefile.am: add new pixbuf tests
554
555 2002-05-03 Erwann Chenede - <erwann.chenede@sun.com>
556
557         * gdk/x11/gdkvisual-x11.c:
558         * gdk/x11/gdkwindow-x11.c:
559         * gdk/x11/gdkdisplay-x11.[hc] (gdk_open_display) :
560         Rationalized the screen initialization process,
561         changed the GdkDisplayX11 screen list to an array.
562         
563         * gdk/x11/gdkscreen-x11.[hc] (_gdk_x11_screen_new) :
564         Moved the xinerama init functions to gdkdisplay-x11.c to
565         this file, create a single function to fully initialize
566         a GdkScreen. #79981
567         
568 2002-05-03 Erwann Chenede - <erwann.chenede@sun.com>
569   
570         * gtk/gtkplug.[hc] (gtk_plug_construct_for_display):
571         changed the order of the arguments. #80278
572
573 2002-05-02  Matthias Clasen  <maclas@gmx.de>
574
575         * gdk/gdkscreen.c (gdk_screen_get_monitor_at_window): Fix doc comment.
576
577         * gdk/x11/gdkdisplay-x11.c (gdk_open_display): 
578         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_default): 
579         * gdk/x11/gdkfont-x11.c (gdk_fontset_load_for_display): 
580         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display): 
581         * gdk/x11/gdkfont-x11.c (gdk_font_load_for_display): 
582         * gdk/x11/gdkscreen-x11.c (gdk_x11_screen_get_xscreen):
583         * gdk/x11/gdkscreen-x11.c (gdk_x11_screen_get_screen_number): 
584         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_xdisplay): 
585         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display): Document.
586
587         * gtk/gtknotebook.c (gtk_notebook_set_show_border): Typo fix.
588
589         * gtk/gtkwidget.c (gtk_widget_class_init): Correct the
590         composite_child blurb.   
591
592         * gtk/gtknotebook.c (gtk_notebook_set_show_border): Clarify docs.  (#73093)
593
594 2002-05-02 Erwann Chenede - <erwann.chenede@sun.com>
595         
596         * gdk/gdkscreen.c (gdk_screen_get_monitor_at_point):
597         * gdk/gdkscreen.h :
598         * gdk/x11/gdkscreen-x11.c :
599         make gdk_screen_get_monitor_at_point cross platform instead
600         of backend dependant. #80480
601         * tests/testxinerama.c (main):
602         changed the warning message.
603         
604 2002-05-02 Erwann Chenede - <erwann.chenede@sun.com>
605
606         * gdk/x11/gdkscreen-x11.c (gdk_screen_x11_get_root_window):
607         removed unneeded ref. #79977
608         * gdk/x11/gdkscreen-x11.[hc] (gdk_screen_use_virtual_screen):
609         * gdk/x11/gdkdisplay-x11.c (check_*_xinerama):
610         removed gdk_screen_use_virtual_screen function and 
611         use_virtual_screen member variable from GdkScreenX11. #79957
612         
613 2002-05-02  Matthias Clasen  <maclas@gmx.de>
614
615         * gtk/gtktable.c (gtk_table_class_init): 
616         * gtk/gtknotebook.c (gtk_notebook_class_init): 
617         * gtk/gtkbox.c (gtk_box_class_init): Add nicks and blurbs for
618         child properties.  (#57143)
619
620 2002-05-01 Erwann Chenede - <erwann.chenede@sun.com>
621         
622         * gdk/gdkpixmap.[hc] (gdk_pixmap_get_screen):
623         * x11/gdkpixmap-x11.c:
624         removed that function as gdk_drawable_get_screen
625         does the job. #79964
626
627 2002-05-01 Erwann Chenede - <erwann.chenede@sun.com>
628
629         * gdk/gdkscreen.[hc] (gdk_screen_x11_get_monitor_at_window):
630         remove virtualization and made it cross platform. #79961
631         * gdk/x11/gdkdisplay-x11.c (check_solaris_xinerama):
632         fixed initialization bugs.
633         * gdk/x11/gdkscreen-x11.[hc] (gdk_screen_get_monitor_geometry):
634         * tests/testxinerama.c:
635         * gtk/gtkwindow.c (gtk_window_compute_configure_request):
636         * gtk/gtkmenu.c (gtk_menu_position):
637         take a GdkRectangle argument instead of returning 
638         a GdkRectangle * and propagated the changes. #79974
639         
640 2002-05-01  Anders Carlsson  <andersca@gnu.org>
641
642         * gdk/x11/gdkevents-x11.c 
643         (gdk_x11_screen_supports_net_wm_hint): Use the same
644         key when setting and getting NetWmSupportedAtoms.
645
646 Tue Apr 30 18:42:25 2002  Owen Taylor  <otaylor@redhat.com>
647
648         * gtk/gtkwindow.c (gtk_window_set_screen): Make it
649         work, even if the window is already realized or
650         mapped.
651
652         * tests/testgtk.c: Erwann's multihead changes, slightly
653         dumbed down. (Removed logic for pulling windows onto
654         the current screen, people can click twice on the demo
655         to destroy and create again.)
656
657         * tests/prop-editor.c: Set the screen on the property
658         editor if the edited object is a widget.
659
660 2002-05-01  Matthias Clasen  <maclas@gmx.de>
661
662         * gtk/gtkcontainer.c (gtk_container_class_install_child_property):
663         Improve a warning.
664
665         * gdk/linux-fb/gdkinput.c (gdk_device_get_axis): Remove a broken
666         and redundant doc comment.
667
668 2002-04-30  Matthias Clasen  <maclas@gmx.de>
669
670         * gtk/gtkprogress.c (gtk_progress_class_init): 
671         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): 
672         * gtk/gtktexttag.c (gtk_text_tag_class_init): 
673         * gtk/gtknotebook.c (gtk_notebook_class_init): Better blurbs,
674         incorporating stuff from the doc templates.
675
676         * gtk/gtkplug.c (gtk_plug_construct): Fix docs.
677
678 Tue Apr 30 15:59:53 2002  Owen Taylor  <otaylor@redhat.com>
679
680         * tests/testmultiscreen.c: Multi-screen test case
681         form multihead branch with a few cleanups. (Get rid
682         of use of g_object_connect())
683
684         * tests/testmultidisplay.c: Multi-display test case
685         from multihead branch with a few improvements.
686         (Allow the other display name to be passed on
687         the command line, use a GtkDialog to get more attractive
688         spacing.)
689
690 Tue Apr 30 14:23:43 2002  Owen Taylor  <otaylor@redhat.com>
691
692         * gdk/x11/gdkdisplay-x11.c (gdk_open_display): fix
693         problem with finalizing non-initialized fully display
694         when failing to open display.
695
696         * tests/testxinerama.c: Xinerama test case from
697         multihead branch, with some cleanups. (Start even
698         if there is only one monitor, for one.)
699
700 Tue Apr 30 14:15:14 2002  Owen Taylor  <otaylor@redhat.com>
701
702         * gtk/gtkfilesel.c gtk/gtkselection.c: Doc fixes.
703
704 2002-04-30  Erwann Chenede - <erwann.chenede@sun.com>
705
706         * gdk/x11/gdkimage-x11.c : rationalized multihead code
707         in _gdk_x11_copy_to_image. fixes #80256 and ungrab problems.
708
709 2002-04-30  Havoc Pennington  <hp@redhat.com>
710
711         * gtk/gtktextlayout.c (gtk_text_layout_real_free_line_data): use
712         gtk_text_layout_invalidate_cache instead of cut-and-paste
713         (gtk_text_layout_real_invalidate): always invalidate cache, even
714         if the line has no stored line data. #78573
715
716         * gtk/gtktextview.c (gtk_text_view_get_iter_location): add call to
717         gtk_text_view_ensure_layout, #77388
718         (gtk_text_view_get_iter_at_location): ditto
719         (gtk_text_view_get_line_yrange): ditto
720         (gtk_text_view_get_line_at_y): ditto
721
722 2002-04-30  Havoc Pennington  <hp@redhat.com>
723
724         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): assign
725         something to "prev" so that removing tag info succeeds.
726         Part of #77301
727
728         * gtk/gtktextbtree.c (_gtk_text_btree_unref): reorder so that it
729         unrefs the tag table first, so that the btree is in a consistent
730         state when we're removing tags from it. 
731
732 Tue Apr 30 12:28:27 2002  Owen Taylor  <otaylor@redhat.com>
733
734         * gdk/gdkdisplay.c gdk/gdkpango.c gdk/gdkpixmap.c
735         gdk/x11/gdkdisplay-x11.c gdk/x11/gdkevents-x11.c
736         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkx.h: Doc fixes.
737
738 Tue Apr 30 11:37:09 2002  Owen Taylor  <otaylor@redhat.com>
739
740         * modules/input/gtkimcontextxim.c: Make multihead-safe;
741         use a different IM context per display.
742
743         * configure.in acconfig.h: Add Xinerama checks from
744         multihead branch, changing HAS_XINERAMA => HAVE_XINERAMA.
745
746         * gdk/x11/gdkdisplay-x11.c: HAS_XINERAMA => HAVE_XINERAMA.
747
748 2002-04-29  Alex Larsson  <alexl@redhat.com>
749
750         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
751         Use tmp also if foreground is set.
752
753 Mon Apr 29 18:28:00 2002  Owen Taylor  <otaylor@redhat.com>
754
755         Integrate Erwann Chenede's multihead changes for the gtk/ directory.
756
757         * gtk/gtkclipboard.[ch]: Add gtk_clipboard_get_for_display(),
758         make internals multihead aware.
759
760         * gtk/gtkcolorsel.[ch]: Add
761         gtk_color_selection_set_change_palette_with_screen_hook () [ugh!]
762         make up for non-multihead safety of
763         gtk_color_selection_set_change_palette_hook()
764
765         * gtk/gtkinvisible.[ch] gtk/gtkmenu.[ch] gtkwindow.[ch]: Add
766         gtk_{invisible,menu,window}_set_screen(); add "screen" properties
767         for GtkWindow and GtkMenu.
768
769         * gtk/gtkplug.[ch]: Add gtk_plug_construct_for_display(),
770         gtk_plug_new_for_display(). Multihead fixes.
771
772         * gtk/gtkselection.[ch]: Add gtk_selection_owner_set_for_display(),
773         make internals multihead aware.
774
775         * gtk/gtksettings.[ch]: Add gtk_settings_get_for_screen(), get
776         rid of now-useless gtk_settings_constructor().
777
778         * gtk/gtkstyle.[ch]: Add gtk_style_get_font_for_display(), fix
779         check/radio button indicators bitmap handling to be multihead
780         safe.
781
782         * gtk/gtkwidget.[ch]: Add gtk_widget_get_screen(), gtk_widget_has_screen(),
783         gtk_widget_get_display(), gtk_widget_get_clipboard(),
784         gtk_widget_get_root_window().
785         
786         * gtk/gtkbindings.c gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkcombo.c
787         gtk/gtkctree.c gtk/gtkdnd.c gtk/gtkfilesel.c gtk/gtkgamma.c
788         gtk/gtkhandlebox.c gtk/gtkhsv.c gtk/gtkimcontext.c gtk/gtklabel.c
789         gtk/gtklist.c gtk/gtkmain.c gtk/gtkmenuitem.c gtk/gtkmenushell.c
790         gtk/gtknotebook.c gtk/gtkoldeditable.c gtk/gtkoptionmenu.c
791         gtk/gtkpaned.c gtk/gtkpreview.c gtk/gtksocket.c gtk/gtktext.c
792         gtk/gtktextbuffer.c gtk/gtktextview.c gtk/gtktipsquery.c
793         gtk/gtktooltips.c gtk/gtktreeview.c gtk/gtktreeviewcolumn.c:
794         misc mechanical multihead-safety fixes.
795         
796         * gtk/gtkclipboard.c: Use a GtkImage rather than a pixmap for
797         the dropper, look up the color palette only at realization time,
798         other multihead fixes.
799
800         * gtk/gtkcombo.c (gtk_combo_unrealize): Popdown the list when 
801         unrealizing.
802
803         * gtk/gtkentry.c: Only claim ownership of the primary selection 
804         when realized, misc multihead fixes.
805
806         * gtk/gtkfontsel.c: Only fill in fonts when attached to a screen,
807         fix gtk_font_selection_get_font() for multihead.
808
809         * gtk/gtkgc.c: make the depth => drawable hash per-screen.
810
811         * gtk/gtkinvisible.c: Add a constructor that realizes the
812         widget, so we get a realized widget with g_object_new() as
813         well gtk_invisible_new() as before.
814
815         * gtk/gtkmain.c: Get rid of unused gtk_visual/gtk_colormap
816         variables.
817
818         * gtk/gtktextdisplay.c: Add warnings if stipple bitmaps
819         are used on the wrong screen.
820
821         * gtk/gtktoolbar.c: Make handling of GtkSettings-based layout
822         read properties and connect to settings when the screen is changed,
823         rather than on init/finalize.
824
825         * gtk/gtkwindow.c: Fix icon handing to be multihead safe ...
826         default icon pixmaps/mask are only shared between windows on the 
827         same screen. Misc multihead fixes.
828
829 Sat Apr 27 13:49:53 2002  Owen Taylor  <otaylor@redhat.com>
830
831         * gtk/gtkclipboard.c (gtk_clipboard_get_for_display):
832         Update docs to reference GDK_SELECTION_CLIPBOARD rather GDK_NONE.
833
834 2002-04-29  Alex Larsson  <alexl@redhat.com>
835
836         * gdk/linux-fb/gdkproperty-fb.c (gdk_property_get):
837         Fix silly bug, noticed by Sven Neumann.
838
839 Sun Apr 28 22:43:55 2002  Jonathan Blandford  <jrb@gnome.org>
840
841         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): Fix
842         so that you can set a new sort func.
843
844 2002-04-27  Anders Carlsson  <andersca@gnu.org>
845
846         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new_for_display): 
847         Use GDK_DISPLAY_XDISPLAY instead of GDK_SCREEN_XDISPLAY since
848         we pass in a GdkDisplay * in the macro.
849
850 2002-04-26  Anders Carlsson  <andersca@gnu.org>
851
852         * gdk/gdkdisplay.c: (gdk_set_default_display):
853         Call _gdk_windowing_set_default_display.
854         
855         * gdk/gdkinternals.h:
856         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_set_default_display):
857         New function that sets gdk_display to the default display.
858         Fixes #79965
859         
860 Fri Apr 26 21:58:16 2002  Kristian Rietveld  <kris@gtk.org>
861
862         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): if the
863         deleted node was "below" this path, then do not unref all nodes
864         between the deleted parent and the node this rowref is pointing too
865         (see added comment in gtk_tree_row_ref_deleted_callback),
866         (fixes #77977)
867
868 2002-04-26  Sven Neumann  <sven@gimp.org>
869  
870         * tests/testtreecolumns.c
871         * tests/testtreeview.c: quit the main loop when the window is
872         destroyed. Removed compiler warnings about wrong format in printf().
873  
874 Fri Apr 26 21:46:42 2002  Kristian Rietveld  <kris@gtk.org>
875
876         This commit fixes binary compatibility, which I broke with my
877         recent cell renderer commits :/.
878
879         * gtk/gtkcellrenderer.h: move cell_background out of _GtkCellRenderer
880
881         * gtk/gtkcellrenderer.c: create GtkCellRendererInfo, with the
882         cell_background field and use this as object data. This way we keep
883         the field private and dont break ABI.
884
885         * gtk/gtkcellrendererpixbuf.h: remove stock_id, stock_size and
886         stock_detail from _GtkCellRendererPixbuf
887
888         * gtk/gtkcellrendererpixbuf.c: create a GtkCellRendererPixbufInfo
889         with above mentioned fields. And update everything.
890
891 Fri Apr 26 21:42:02 2002  Kristian Rietveld  <kris@gtk.org>
892
893         * gdk/x11/gdkdrawable-x11.h: include X11/Xlib.h, fixes the build
894
895 Fri Apr 26 10:34:15 2002  Owen Taylor  <otaylor@redhat.com>
896
897         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): Add
898         missing gdkscreen/display-x11.h files.
899
900 Thu Apr 25 16:51:40 2002  Owen Taylor  <otaylor@redhat.com>
901
902         Start of integration of Erwann Chenede's multihead work
903         from the gtk-multihead branch.
904
905         * gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch]
906         gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkscreen-x11.[ch]
907         New classes representing a set of screens with attached
908         input devices and a single contiguous area, respectively.
909
910         * gdk/gdk.[ch] gdk/gdkinternals.h gdk/x11/gdkmain-x11.c:
911         gdk/x11/gdkprivate-x11.h: Make the initialization interface
912         simple _gdk_windowing_init() and do the rest in
913         gdk_open_display() calls.
914
915         * gdk/gdk.[ch]: Add gdk_parse_args() which can be used
916         to do the display-independent part of initialization
917         instead of gdk_init_[check].
918
919         * gdk/gdkcursor.h gdk/gdkfont.h gdk/gdkkeys.h gdk/gdkpixmap.h
920         gdk/gdkproperty.h gdk/gdkselection.h gdk/gdkwindow.h:
921         Add multihead variants (_for_display(), for_screen()) of functions
922         getting information specific to a particular screen screen or
923         display.
924
925         * gdk/gdkscreen.[ch]: Add gdk_screen__* variants of functions
926         like gdk_rgb_get_colormap() that used to get/list global
927         objects.
928
929         * gdk/x11/gdkx.h: Add functions for converting GdkScreen
930         and GdkDisplay into the X equivalents.
931
932         * gdk/x11/gdkwindow-x11.c: Removed gdk_window_xid_at_coords() 
933         not in the headers and unused.
934
935         * configure.in gdk/x11/{gxid.c,gxid_lib.[ch],gdkinput-gxi.c}:
936         Remove gxid support ... has not been tested for a long time...
937         "xfree" support is more portable to non XFree86.
938
939         * gdk/**.h: Add a GDK_MULTIHEAD_SAFE define that can be
940         used to turn off functions that are inherently non-multihead
941         safe.
942
943         * gdk/**.c: add GDK_NOTE(multihead, ...) calls when functions
944         are used in non-multihead-safe ways.
945
946         * gdk/*.c gdk/x11/*.c: Changes to make the internals of GDK
947         multihead safe.
948
949 Thu Apr 25 23:49:01 2002  Kristian Rietveld  <kris@gtk.org>
950
951         Fixes #74206.
952
953         * gtk/gtktreeprivate.h: add _gtk_tree_view_column_count_special_cells
954
955         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_has_editable_cell),
956         (_gtk_tree_view_column_get_editable_cell): remove a space which made
957         the code look ugly
958         (_gtk_tree_view_column_count_special_cells): new function,
959         (gtk_tree_view_column_cell_process_action): if there's only one
960         activatable cell, the whole column will activate that renderer.
961
962 Thu Apr 25 23:36:55 2002  Kristian Rietveld  <kris@gtk.org>
963
964         * gtk/gtktreeview.c (gtk_tree_view_search_iter): make the search
965         dialog not scroll horizontally (prolly fixes #74806).
966
967 2002-04-25  Matthias Clasen  <maclas@gmx.de>
968
969         * gtk/gtkrange.c (gtk_range_calc_layout): Avoid a possible
970         division by zero.  (#77820)
971
972 Thu Apr 25 20:24:37 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
973
974         * gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): use the child's
975         requisition.height, not allocation.height, as width of submenu
976         indicator. (#75948)
977
978 Thu Apr 25 00:26:34 2002  Kristian Rietveld  <kris@gtk.org>
979
980         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_reset_default_sort_func):
981         resort if we're already in 'unsorted' state, and update the docs
982
983 2002-04-24  Matthias Clasen  <maclas@gmx.de>
984
985         * gtk/gtktreeview.c (gtk_tree_view_stop_editing): Remove doc
986         comment markers on freeform comments.
987
988 Wed Apr 24 17:34:16 2002  Kristian Rietveld  <kris@gtk.org>
989
990         * gtk/gtktreeview.c (gtk_tree_view_stop_editing): temporarily set
991         ->priv->edited_column to NULL. Pleas read the comment in this
992         function for an explanation (fixes #79632).
993
994 2002-04-23  Matthias Clasen  <maclas@gmx.de>
995
996         * gtk/gtktextview.c (gtk_text_view_buffer_to_window_coords): 
997         (gtk_text_view_window_to_buffer_coords): Improve docs.  (#62359)
998
999 Tue Apr 23 18:35:34 2002  Kristian Rietveld  <kris@gtk.org>
1000
1001         This commit adds a cell_background property for cell renderers. With
1002         this property you can make your TreeView look incredibly ugly.
1003
1004         * gtk/gtkcellrenderer.c: add cell_background, cell_background_gdk and
1005         cell_background_set properties,
1006         (set_cell_bg_color): new function,
1007         (gtk_cell_renderer_get_property), (gtk_cell_renderer_set_property):
1008         support for new properties,
1009         (gtk_cell_renderer_render): render a background when set.
1010
1011         * gtk/gtkcellrenderer.h: add cell_background_set and cell_background
1012         fields.
1013
1014         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
1015         when rendering, pass in just the background_area of the cell and not
1016         the background_area of the entire column.
1017
1018 2002-04-22  Anders Carlsson  <andersca@gnu.org>
1019
1020         * gtk/gtkentry.c (gtk_entry_drag_data_get): Use 
1021         gtk_entry_get_public_chars. 
1022         Fixes #79532 (Reported by Ovidiu Gheorghioiu).
1023
1024 Mon Apr 22 19:24:29 2002  Kristian Rietveld  <kris@gtk.org>
1025
1026         This commit adds stock icon functionality to GtkCellRendererPixbuf
1027         which is totally cool.
1028
1029         * gtk/gtkcellrendererpixbuf.h: add some fields
1030
1031         * gtk/gtkcellrendererpixbuf.c: add finalize method, add some
1032         properties, add some stock icon rendering code.
1033
1034         * demos/gtk-demo/stock_browser.c: modified to use the stock
1035         icon stuff in the cellrendererpixbuf instead of its own stock icon
1036         rendering code.
1037
1038 2002-04-21  Alexander Larsson  <alla@lysator.liu.se>
1039
1040         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
1041         Save x and y in window_private.
1042
1043         * gtk/gtkplug.c (_gtk_plug_add_to_socket):
1044         Move plug window outside the visible area to avoid flashing until
1045         the first size_allocate.
1046
1047 2002-04-21  Matthias Clasen  <maclas@gmx.de>
1048
1049         * gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
1050         description of match_start and match_end return values.  (#57929)
1051
1052         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
1053         * gtk/gtktreeview.c (_gtk_tree_view_column_autosize): Remove doc
1054         comment markers on freeform comments.
1055
1056         * gtk/gtktreemodelsort.c
1057         (gtk_tree_model_sort_convert_path_to_child_path): Doc fixes. (#68404)
1058
1059 Sat Apr 20 21:15:11 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1060
1061         * gtk/gtkmenuitem.c: add "selected_shadow_type" style property
1062
1063 Sat Apr 20 12:07:14 2002  Owen Taylor  <otaylor@redhat.com>
1064
1065         * gtk/gtkwidget.c (gtk_widget_modify_color_component): Accept
1066         NULL for color to mean "unmodify"
1067
1068         * gtk/gtkwidget.c (gtk_widget_modify_font): Accept NULL for
1069         font_desc to mean "unmodify".
1070
1071 Sat Apr 20 16:49:26 2002  Kristian Rietveld  <kris@gtk.org>
1072
1073         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_new): replace GDK_IS_WINDOW
1074         with GDK_IS_DRAWABLE in the assert, only check GDK_WINDOW_DESTROYED
1075         if window is a GdkWindow,
1076         (gdk_bitmap_create_from_data): ditto,
1077         (gdk_pixmap_create_from_data): ditto
1078
1079 Fri Apr 19 23:38:16 2002  Kristian Rietveld  <kris@gtk.org>
1080
1081         Fixes #50310.
1082
1083         * gtk/gtktreeprivate.h: add _gtk_tree_view_column_autosize
1084
1085         * gtk/gtktreeview.c: privately export _gtk_tree_view_column_autosize,
1086         and add a small note about that function,
1087         (gtk_tree_view_button_press): check for double click and
1088         "not having an autosize" column before autosizing the column,
1089         
1090         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_min_width):
1091         call _gtk_tree_view_column_autosize to update autosized column width
1092         (gtk_tree_view_column_set_max_width): ditto
1093
1094 2002-04-20  Matthias Clasen  <maclas@gmx.de>
1095
1096         * TODO, TODO.xml, README.nanox, docs/Changes-1.2.txt,
1097         docs/Changes-2.0.txt, docs/gtk-config.txt, docs/debugging.txt,
1098         gdk/TODO: Remove some files whose content is either obsolete or
1099         has been moved elsewhere.
1100
1101         * Makefile.am, gtk+.spec.in, docs/Makefile.am: Remove references
1102         to these files.
1103         
1104 Fri Apr 19 21:31:04 2002  Kristian Rietveld  <kris@gtk.org>
1105
1106         * gtk/gtktreeview.c (gtk_tree_view_row_changed): cancel editing
1107         if tree_view->priv->edited_column != NULL (fixes #76066)
1108
1109 Fri Apr 19 21:06:39 2002  Kristian Rietveld  <kris@gtk.org>
1110
1111         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): subtract
1112         TREE_VIEW_HEADER_HEIGHT from allocation->height to get the real
1113         size for the tree (fixes #72729),
1114         (gtk_tree_view_real_start_editing): correct cell_area->y for
1115         scrolling due to gtk_tree_view_real_set_cursor (fixes #75687)
1116
1117 Fri Apr 19 16:30:09 2002  Kristian Rietveld  <kris@gtk.org>
1118
1119         * gtk/gtktreeprivate.h, gtk/gtktreeview.c: rename
1120         last_single_clicked{,_2} to last_button_press{,_2}, as the latter
1121         is a more sane name.
1122
1123         * gtk/gtktreeview.c (gtk_tree_view_button_press): use ->priv->anchor
1124         instead of ->priv->cursor, check for the anchor at another place, as
1125         you can go in edit mode without having an anchor.
1126
1127 2002-04-18  Matthias Clasen  <maclas@gmx.de>
1128
1129         * gtk/gtkitemfactory.c:
1130         * gtk/gtkiconfactory.c:
1131         * gtk/gtkwidget.c:
1132         * gtk/gtkstyle.c:
1133         * gtk/gtkrc.c:
1134         * gtk/gtktreeviewcolumn.c:
1135         * gtk/gtkdialog.c:
1136         * gtk/gtktreemodel.c: s/<!>/<!-- -->/g throughout the
1137         documentation to bring the produced Docbook closer to XML.
1138
1139 2002-04-18  Tor Lillqvist  <tml@iki.fi>
1140
1141         * gdk-pixbuf/Makefile.am (uninstall-libtool-import-lib)
1142         * gdk/Makefile.am (uninstall-libtool-import-lib): Fix typo,
1143         thanks to David Sterba for noticing.
1144
1145         * gtk/gtkmain.h
1146         * gtk/gtkmain.c (gtk_init_abi_check, gtk_init_check_abi_check): In
1147         GTK+ 2.0 the GtkWindow struct actually is the same size in gcc on
1148         Win32 whether compiled with -fnative-struct or not. Unfortunately
1149         this wan't noticed until now. So, from now on, check some other
1150         struct, too, for which the use of -fnative-struct still
1151         matters. GtkBox is one such.
1152
1153 Thu Apr 18 00:23:31 2002  Kristian Rietveld  <kris@gtk.org>
1154
1155         * gtk/gtktreemodelsort.c
1156         (gtk_tree_model_sort_convert_path_to_child_path): so this function
1157         was completely broken. Fix it and improve readability.
1158
1159 2002-04-17  Anders Carlsson  <andersca@gnu.org>
1160
1161         * tests/testtreeedit.c (button_press_event): Add a small
1162         test case.
1163
1164 Wed Apr 17 00:21:36 2002  Kristian Rietveld  <kris@gtk.org>
1165
1166         * gtk/gtktreestore.c (gtk_tree_store_insert_before): fix docs
1167
1168 Tue Apr 16 17:28:21 2002  Kristian Rietveld  <kris@gtk.org>
1169
1170         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): check
1171         ->priv->cursor and ->priv->anchor rowrefs before removing
1172         node->children from the rbtree. Also check the
1173         ->priv->last_single_clicked and ->priv->last_single_clicked_2 rowrefs
1174         (I think I really need to rename those two someday).
1175
1176 Tue Apr 16 07:53:49 2002  Tim Janik  <timj@gtk.org>
1177
1178         * gtk/gtkmenu.c (gtk_menu_key_press): don't install/change accelerators
1179         from locked accel groups.
1180
1181         * gtk/gtkwidget.c (_gtk_widget_get_accel_path): export whether the
1182         accel path is from a locked accel group.
1183
1184 Mon Apr 15 15:41:56 2002  Jonathan Blandford  <jrb@redhat.com>
1185
1186         * gtk/gtkcontainer.c (gtk_container_focus): include internal
1187         children when doing focus.
1188         (gtk_container_get_all_children): new static function to include
1189         internal children when making a list of them.
1190
1191 Sun Apr 14 16:56:59 2002  Kristian Rietveld  <kris@gtk.org>
1192
1193         * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_editable_cell and
1194         _gtk_tree_view_column_get_neighbor_sizes
1195
1196         * gtk/gtktreeviewcolumn.c (struct _GtkTreeViewColumnCellInfo): add
1197         real_width field,
1198         (_gtk_tree_view_column_get_editable_cell): implement,
1199         (gtk_tree_view_column_cell_process_action): fill info->real_width
1200         (_gtk_tree_view_column_get_neighbor_sizes): implement
1201
1202         * gtk/gtktreeview.c (gtk_tree_view_button_press): make the "editable
1203         widget" show up with the same size as the actual cell, so it doesnt
1204         cover the complete column if there are any other cells in that column.
1205
1206 2002-04-14  Abigail Brady  <morwen@evilmagic.org>
1207
1208         * gtk/gtkfilesel.c: Fix typo in message.
1209
1210 2002-04-13  Havoc Pennington  <hp@pobox.com>
1211
1212         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): create
1213         the target pixbuf AFTER filling in width/height, so that 
1214         passing in -1 for width/height will work.
1215         
1216 Sat Apr 13 22:49:45 2002  Kristian Rietveld  <kris@gtk.org>
1217
1218         Fixes #75510
1219
1220         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected): make this
1221         function work correctly and more sane
1222
1223         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): remove
1224         node->children from rbtree before emitting GtkTreeSelection::changed
1225
1226 Sat Apr 13 17:15:12 2002  Kristian Rietveld  <kris@gtk.org>
1227
1228         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_init): dont set
1229         the mode to GTK_CELL_RENDERER_MODE_EDITABLE by default,
1230         (gtk_cell_renderer_text_class_init): for some reason our default for
1231         editable was TRUE, of course this is FALSE.
1232         (gtk_cell_renderer_text_set_property): update mode when editable
1233         has been changed.
1234
1235 2002-04-12  jacob berkman  <jacob@ximian.com>
1236
1237         * gdk/x11/xsettings-client.c (fetch_card8): fix cut-n-paste bug
1238         which breaks big-endian machines (fixes #73585)
1239
1240 2002-04-12  Havoc Pennington  <hp@redhat.com>
1241
1242         * gtk/gtknotebook.c (gtk_notebook_real_remove): relocate the
1243         remove_weak_pointer to just before we free the page, to be sure 
1244         it doesn't get re-added. #75282
1245
1246 Fri Apr 12 18:32:46 2002  Kristian Rietveld  <kris@gtk.org>
1247
1248         * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): add
1249         clamp_node argument
1250         (toplevel): update usages of gtk_tree_view_real_set_cursor,
1251         (gtk_tree_view_focus_to_cursor): don't let
1252         gtk_tree_view_real_set_cursor clamp the node, so you won't get
1253         unexpected scrolling
1254
1255 2002-04-11  Michael Meeks  <michael@ximian.com>
1256
1257         * gtk/gtklabel.c
1258         (gtk_label_parse_uline, gtk_label_set_text),
1259         (gtk_label_set_text_with_mnemonic): add freeze / thaws
1260         to stop deluge of 'notify' signals.
1261
1262 Sat Apr  6 06:57:00 2002  Owen Taylor  <otaylor@redhat.com>
1263
1264         * gtk/gtkmenushell.[ch] gtk/gtkmenuitem.c: Export
1265         private _gtk_menu_shell_activate() to encapsulate
1266         cut-and-paste code.
1267
1268         * gtk/gtkmenubar.c: Select the first item on the menu bar
1269         for F10 rather than acting as if the user pressed <Alt>F
1270         to select the file manager.
1271
1272 Tue Apr  9 19:01:28 2002  Owen Taylor  <otaylor@redhat.com>
1273
1274         Fix problems with HandleBox and focusing - #78232
1275
1276         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Handle
1277         GtkHandleBox / GnomeDock style window heirarchy / widget
1278         heirarchy disconnects. :-(. 
1279
1280         * gtk/gtkcontainer.c: Handle failures from
1281         gtk_widget_translate_coordinates (Focusing is not right, but at
1282         least it doesn't go into infinite loops.)
1283
1284 Tue Apr  9 18:34:58 2002  Owen Taylor  <otaylor@redhat.com>
1285
1286         * gtk/gtkcontainer.c (_gtk_container_queue_resize): Always
1287         set the ALLOC_NEEDED and REQUEST_NEEDED flags up the hierarchy,
1288         even if we aren't currently in a resize container... we need
1289         this to properly handle size changes to widgets that are
1290         being moved from one heirarchy to another. (#78226)
1291
1292 Tue Apr  9 21:41:24 2002  Kristian Rietveld  <kris@gtk.org>
1293
1294         Fixes #78110
1295
1296         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
1297         add override_browse_mode argument and implement,
1298         (gtk_tree_selection_unselect_path): always unselect the path,
1299         (toplevel): update uses of _gtk_tree_selection_internal_select_node
1300
1301         * gtk/gtktreeview.c: update uses of
1302         _gtk_tree_selection_internal_select_node
1303
1304         * gtk/gtktreeprivate.h (_gtk_tree_selection_internal_select_node):
1305         update prototype
1306
1307 Tue Apr  9 21:39:44 2002  Kristian Rietveld  <kris@gtk.org>
1308
1309         Fixes #77862
1310
1311         * gtk/gtktreeprivate.h: add _gtk_tree_view_column_has_editable_cell
1312
1313         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_has_editable_cell):
1314         new function
1315
1316         * gtk/gtktreeview.c (gtk_tree_view_button_press): send cell event
1317         on first click when cell isn't editable
1318
1319 Tue Apr  9 21:37:31 2002  Kristian Rietveld  <kris@gtk.org>
1320
1321         * gtk/gtktreedatalist.c (_gtk_tree_data_list_check_type): add some
1322         types which were missing and useful to use (fixes #77870)
1323
1324 2002-04-09  Anders Carlsson  <andersca@gnu.org>
1325
1326         * gtk/gtkfilesel.c (open_new_dir): Initialize error to NULL.
1327
1328 2002-04-08  Manish Singh  <yosh@gimp.org>
1329
1330         * tests/testgtk.c: really revert testgtk.c
1331
1332 Mon Apr  8 20:28:54 2002  Kristian Rietveld  <kris@gtk.org>
1333
1334         * gtk/gtktreeselection.c (gtk_tree_selection_select_path),
1335         (gtk_tree_selection_unselect_path),
1336         (gtk_tree_selection_path_is_selected): check the return value of
1337         _gtk_tree_view_find_node and return if it's TRUE. This makes those
1338         functions work somewhat saner on non-expanded trees.
1339
1340 Fri Apr  5 18:28:56 2002  Kristian Rietveld  <kris@gtk.org>
1341
1342         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): free
1343         anchor row reference after unselecting the selection (fixes #76272)
1344
1345 Fri Apr  5 18:27:48 2002  Kristian Rietveld  <kris@gtk.org>
1346
1347         * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): only return
1348         when we don't have to open all children (fixes #75736)
1349
1350 Fri Apr  5 18:24:24 2002  Kristian Rietveld  <kris@gtk.org>
1351
1352         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear): unref
1353         cellrenderer after clearing the attributes of the renderer (fixes
1354         #75592)
1355
1356 Fri Apr  5 05:55:14 2002  Jonathan Blandford  <jrb@gnome.org>
1357
1358         * gtk/gtktreeview.c (gtk_tree_view_grab_focus): implement.
1359           (gtk_tree_view_move_cursor_up_down): check for focus
1360           (gtk_tree_view_move_cursor_page_up_down): ditto
1361           (gtk_tree_view_move_cursor_left_right): ditto
1362           (gtk_tree_view_move_cursor_start_end): ditto
1363           (gtk_tree_view_real_select_all): ditto
1364           (gtk_tree_view_real_unselect_all): ditto
1365           (gtk_tree_view_real_select_cursor_row): ditto 
1366           (gtk_tree_view_real_toggle_cursor_row): ditto
1367           (gtk_tree_view_real_expand_collapse_cursor_row): ditto
1368           (gtk_tree_view_real_select_cursor_parent): ditto
1369           (gtk_tree_view_real_start_interactive_search): ditto
1370
1371         * gtk/gtktreeviewcolumn.c: grab focus
1372
1373 2002-04-05  Alex Larsson  <alexl@redhat.com>
1374
1375         * gdk/linux-fb/gdkkeyboard-fb.c (write_string):
1376         Fix undefined variable typo.
1377         Patch from Simon Floery <simon.floery@gmx.at>
1378
1379 Fri Apr  5 01:06:15 2002  Tim Janik  <timj@gtk.org>
1380
1381         * gdk/x11/gdkwindow-x11.c (set_text_property): fix segfault
1382         upon NULL return from gdk_utf8_to_string_target().
1383
1384         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_string_target): fix
1385         return value comment to mention NULL returns upon EMFILE.
1386
1387 Thu Apr  4 22:35:42 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1388
1389         * tests/testgtk.c (menu_items): revert accidentally commited
1390         change to testgtk.c
1391
1392 Thu Apr  4 22:28:08 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1393
1394         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem with menu
1395         titles being clipped (#75948)
1396         
1397 2002-04-04  Tor Lillqvist  <tml@iki.fi>
1398
1399         * gdk/gdkrgb.c: Fix some bugs, and introduce a minor feature.
1400
1401         (gdk_rgb_convert_4_pack): New function, for 16-color (4 bits per
1402         pixel) static visuals (fixes #858).
1403
1404         (gdk_rgb_convert_gray4_pack, gdk_rgb_convert_gray4_d_pack): Fix
1405         same bugs in both functions: Odd start coordinate (partial byte)
1406         was not handled correctly. Also a partial final byte was not
1407         handled correctly.
1408
1409         (gdk_rgb_do_colormaps): Use G_N_ELEMENTS.
1410         (gdk_rgb_create_info): For pseudocolor visuals, use the 2x2x2
1411         colorcube only for depths 3 and 4. For static color, use it for
1412         depths 3..7 like before. (Depth 5..7 pseudocolor probably never
1413         occurs on X11. It doesn't normally occur on Win32 either, but
1414         there is experimental code in gdkvisual-win32.c to let the user
1415         restrict the size of palette used.)
1416         (gdk_rgb_init): Set gdk_rgb_verbose if the GDK_DEBUG_GDKRGB flag
1417         is set.
1418         (gdk_rgb_select_conv): Use gdk_rgb_convert_8 also for depths 5, 6
1419         and 7 (see above). Use gdk_rgb_convert_4_pack for 4 bits per pixel
1420         static color.
1421
1422 Tue Apr  2 11:10:13 2002  Jonathan Blandford  <jrb@redhat.com>
1423
1424         * gtk/gtkliststore.c (gtk_list_store_set_sort_func): set the
1425         sort_func correctly, 77030
1426
1427 Tue Apr  2 13:44:27 2002  Tim Janik  <timj@gtk.org>
1428
1429         * configure.in: update version to 2.0.2, binary age 2, interface
1430         age 2.
1431
1432         * NEWS: updates for 2.0.2.
1433
1434 Mon Apr  1 22:20:24 2002  Kristian Rietveld  <kris@gtk.org>
1435
1436         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): add
1437         check for y > tree_view->priv->height (fixes #76974)
1438
1439 Mon Apr  1 22:19:39 2002  Kristian Rietveld  <kris@gtk.org>
1440
1441         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): get
1442         the stamp changes right this time
1443
1444 Mon Apr  1 22:13:24 2002  Kristian Rietveld  <kris@gtk.org>
1445
1446         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): only
1447         disconnect the ref callbacks when model == proxy (Thanks go to
1448         Manuel Clos Crespo for the remote debugging)
1449
1450 Sat Mar 30 15:19:24 2002  Kristian Rietveld  <kris@gtk.org>
1451
1452         * gtk/gtktreemodelsort.c: revert the latest stamp increment changes,
1453         as it broke stuff for trees
1454
1455 Fri Mar 29 18:15:12 2002  Owen Taylor  <otaylor@redhat.com>
1456
1457         * ===== Released 2.0.1 ======
1458
1459 Fri Mar 29 18:09:18 2002  Owen Taylor  <otaylor@redhat.com>
1460
1461         * gtk/gtkaccelgroup.c (gtk_accel_group_query): Call 
1462         gdk_keyval_to_lower() on the key passed in, since we
1463         lowercase all other key vals passed in, so querying
1464         keyvals will otherwise fail if the caller used
1465         an uppercase accelerators (#76899, Vitaly Tishkov)
1466
1467 Fri Mar 29 17:41:21 2002  Owen Taylor  <otaylor@redhat.com>
1468
1469         * gtk/gtkmain.c (load_modules): Fix screwup in handling
1470         of module path that was resulting in freed memory being
1471         accessed when both GTK_MODULES and a theme were set.
1472         (#76902, Johan Dahlin)
1473
1474 Fri Mar 29 17:57:36 2002  Owen Taylor  <otaylor@redhat.com>
1475
1476         * gtk/gtkiconfactory.c (get_default_icons): Fix wrong
1477         stock id's for ADD/REMOVE. (#76915, Vitaly Tishkov)
1478
1479 2002-03-29  Hans Breuer  <hans@breuer.org>
1480
1481         * gtk/gtkmain.h : fix typo in gtk_init_check macro, which
1482         caused crashes if argc != 0
1483
1484         * gtk/stock-icons/makefile.msc : added new icons
1485
1486 Fri Mar 29 20:17:35 2002  Kristian Rietveld  <kris@gtk.org>
1487
1488         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
1489         remove call to gtk_tree_model_sort_increment_stamp
1490         (gtk_tree_model_sort_sort_level): always increment the stamp
1491
1492 Fri Mar 29 00:19:41 2002  Owen Taylor  <otaylor@redhat.com>
1493
1494         * NEWS: Updates
1495
1496         * configure.in: Version 2.0.1, binary, interface age 1.
1497
1498         * configure.in (GDK_PIXBUF_VERSION): Up required versions
1499         of dependencies.
1500
1501         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:
1502         Add stock_add/remove_16.
1503
1504 Thu Mar 28 18:38:30 2002  Owen Taylor  <otaylor@redhat.com>
1505
1506         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): 
1507         Don't show the window unless the widget is mapped.
1508         (#76742, Dennis Björklund, Soeren Sandmann)
1509
1510 2002-03-29  Hans Breuer  <hans@breuer.org>
1511
1512         Fixed dashed line issues (#74441) to an IMO reasonable extend. 
1513         That is: use PS_USERSTYLE on WinNT (the next GDI limit appears
1514         to be with lines width > 50); Render horizontal and vertical
1515         dashed lines on Win9x 'by hand'. Dotted selection rectangles 
1516         and Dia look nice ...
1517
1518         * gdk/win32/gdkprivate-win32.h : add pen_dashes pointer and
1519         num_pen_dashes to _GdkGCWin32
1520         * gdk/win32/gdkgc-win32.c : initialize pen_dashes and remove
1521         the guesses from dashes to windoze line styles.
1522         (predraw_set_forground) : always ExtCreatePen (PS_SOLID) on
1523         Win9x, which does not support PS_USERSTYLE.
1524         * gdk/win32/gdkdrawable-win32.c : new functions render_line_
1525         <horizontal|vertical>. Use them if not running on NT in
1526         gdk_win32_draw_<rectangle|segments|lines> ()
1527
1528         * gdk/win32/gdkkeys-win32.c (gdk_keyval_name) : return NULL
1529         for keyval == 0 to avoid to have zeros in all menu entries 
1530         without accelerator.
1531
1532 2002-03-29  Jakub Steiner <jimmac@ximian.com>
1533
1534         * gtk/stock-icons/stock_add_24.png:
1535         * gtk/stock-icons/stock_add_16.png:
1536         * gtk/stock-icons/stock_remove_24.png:
1537         * gtk/stock-icons/stock_remove_16.png: use a simple '+' and '-',
1538           works better. the old box was too clumsy
1539
1540 Thu Mar 28 21:11:04 2002  Tim Janik  <timj@gtk.org>
1541
1542         * gtk/gtkfilesel.c (open_new_dir): when encountering non-UTF-8 file
1543         names, alert the user with g_message() instead of g_warning() and
1544         put out the actual conversion error.
1545
1546 2002-03-28  Dave Camp  <dave@ximian.com>
1547
1548         * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install
1549         the handler if the widget isn't realized.
1550
1551 2002-03-28  Jakub Steiner <jimmac@ximian.com>
1552
1553         * gtk/stock-icons/stock_font*:
1554         * gtk/stock-icons/stock_align*:
1555         * gtk/stock-icons/stock_text*: better solution to the dark theme
1556           problem. Also looks more pretty IMHO
1557
1558 2002-03-27  Matthias Clasen  <maclas@gmx.de>
1559
1560         * configure.in: Try to find libpng via pkg-config first,
1561         since libpng-1.2.2 will come with a .pc file.
1562
1563 Wed Mar 27 11:10:39 2002  Owen Taylor  <otaylor@redhat.com>
1564
1565         * gtk/gtknotebook.c (gtk_notebook_real_remove): Set
1566         page->last_focus_child to NULL as well as removing the
1567         weak reference, to deal with reentrancy in set_focus_child().
1568         (#76634, Dennis Björklund)
1569
1570 2002-03-27  Murray Cumming  <murrayc@usa.net>
1571  
1572         * gtk/gtktreeview.c: Corrected registered return type of
1573         "move-cursor" signal. Had to add a marshaller to 
1574         gtk/gtkmarshalers.list.
1575         
1576 Tue Mar 26 14:46:50 2002  Owen Taylor  <otaylor@redhat.com>
1577
1578         * gtk/gtkmenu.c (gtk_menu_popup): Shuffle the ordering around
1579         some more (position before realizing) fixing problems with 
1580         arrows popping up at the wrong time (#73386), hopefully not
1581         introducing other problems. (Reported by Ettore Perrazoli, others)
1582
1583 2002-03-26  Dave Camp  <dave@ximian.com>
1584
1585         * gtk/gtktreeview.c (gtk_tree_view_button_press): Free the path
1586         after calling gtk_tree_view_row_activated() rather than before.
1587
1588 2002-03-25  Sven Neumann  <sven@gimp.org>
1589
1590         * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's
1591         font_description before assigning a new one.
1592         (gtk_rc_parse_stock): always unref the created icon_set. #76289
1593         
1594 2002-03-25  Mark McLoughlin  <mark@skynet.ie>
1595
1596         * gtk/gtkbindings.c: (gtk_binding_entry_add_signal),
1597         kill code duplicated in gtk_binding_entry_add_signall.
1598
1599 Sun Mar 24 10:32:38 2002  Jonathan Blandford  <jrb@redhat.com>
1600
1601         * gtk/gtktreemodel.c (gtk_tree_path_copy): Make path arg const, #75653
1602
1603         * gtk/gtkfontsel.c (gtk_font_selection_show_available_styles): fix
1604         a warning
1605
1606         * gtk/gtktreeview.c (gtk_tree_view_button_press): remove the grab
1607         when we emit row_activated so that listeners of this signal can
1608         grab the mouse, #75629
1609
1610 2002-03-23  Havoc Pennington  <hp@pobox.com>
1611
1612         * gtk/gtktextlayout.c (gtk_text_layout_real_invalidate):
1613         invalidate the line containing start, even if the [start,end)
1614         range is empty (just invalidate [start,end], essentially).
1615         Partially fixes #72374
1616
1617 2002-03-23  Havoc Pennington  <hp@pobox.com>
1618
1619         * gtk/gtktextview.c (gtk_text_view_do_popup): end any selection in
1620         progress, patch from db@zigo.dhs.org, #74620
1621
1622 2002-03-23  Havoc Pennington  <hp@pobox.com>
1623
1624         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): extend
1625         selection for pageup/pagedown and ctrl+pageup/pagedown if 
1626         shift is held. more of #53934
1627
1628 2002-03-23  Havoc Pennington  <hp@pobox.com>
1629
1630         * gtk/gtktextview.c (gtk_text_view_destroy_layout): disconnect 
1631         layout handlers earlier in the function, to avoid possible
1632         reentrancy screwups
1633         (gtk_text_view_invalidate): Don't install idle handlers if 
1634         layout == NULL, otherwise we get problems during finalization 
1635         since clearing the buffer invalidates and puts the idle handlers
1636         back after we destroy the layout. #74660
1637         (gtk_text_view_ensure_layout): Install the validation handlers
1638         right after creating the layout.
1639
1640         * gtk/gtktexttagtable.c (foreach_unref): call
1641         _gtk_text_buffer_notify_will_remove_tag(), #75126
1642
1643 2002-03-22  Havoc Pennington  <hp@pobox.com>
1644
1645         * gdk/x11/gdkfont-x11.c (gdk_fontset_load): add more explanatory
1646         text to the error message about missing charsets, and use
1647         g_printerr() not g_warning() since this is typically not a
1648         programming error (we do not export any API to ask whether 
1649         a font set will have missing charsets so apps realistically can't 
1650         do anything other than try the gdk_fontset_load())
1651
1652         * gtk/gtktextview.c (gtk_text_view_key_press_event): return FALSE
1653         if the text view isn't editable and the user presses Return, 
1654         so default buttons and such can be activated, #74937
1655
1656         * gtk/gtktextbuffer.c (paste_from_buffer): don't insert 
1657         if the insertion point is not editable and the paste 
1658         is interactive, #74125
1659
1660         * gtk/gtkwindow.c (gtk_window_move_resize): enhance the #if 0
1661         debug spew
1662
1663         * gtk/gtktextbuffer.c (cut_or_copy): only remove the previous 
1664         cut/copied data right before replacing it, when we know we are
1665         going to replace it. Fixes #74049
1666
1667 2002-03-22  Richard Hult  <rhult@codefactory.se>
1668
1669         * gdk/gdkevents.c (gdk_event_get_root_coords): Fix typo, where x
1670         value was assigned to both x and y.
1671
1672 Fri Mar 22 11:29:11 2002  Owen Taylor  <otaylor@redhat.com>
1673
1674         Partial fix for problem where keypad keys acted
1675         as shift-arrows in an entry rather than arrows (#74327)
1676
1677         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Sort lookup
1678         results by number of modifiers in the entry. Fixes
1679         problem where if a key matched both modified and unmodified
1680         key bindings ... e.g., the distinguishing key binding
1681         was consumed, then it was random which was used. 
1682
1683         * gtk/gtkbindings.c (gtk_binding_entries_sort_patterns): 
1684         Catch the case where there are multiple entries from the
1685         same bindingset (with different modifiers), and use only
1686         the first entry, which, with the change in _gtk_key_hash_lookup()
1687         will be the preferred value.
1688
1689 Fri Mar 22 10:56:19 2002  Owen Taylor  <otaylor@redhat.com>
1690
1691         * gtk/gtkaccelmap.c (gtk_accel_map_save_fd): Fix memory
1692         leak. (#74400, Morten Welinder.)
1693
1694         * gtk/gtkaccelmap.c: Properly handle short returns from
1695         write() calls. (Handling EINTR isn't enough... that only
1696         handles the case where you were interrupted before you
1697         wrote a single byte.)
1698         
1699         * gdk/linux-fb/gdkmouse-fb.c gdk/linux-fb/gdkkeyboard-fb.c:
1700         Robustify against short returns from write() calls.
1701
1702 Fri Mar 22 10:12:10 2002  Owen Taylor  <otaylor@redhat.com>
1703
1704         * gtk/gtktextview.c (gtk_text_view_paint): Change
1705         G_BREAKPOINT() to g_assert_not_reached ().
1706         (#75865, Ashok Venkiteswaran)
1707         
1708 2002-03-22  Tor Lillqvist  <tml@iki.fi>
1709
1710         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Don't clear
1711         all of the pen_style, just the PS_STYLE_MASK. Seems to fix #74441,
1712         but that is just the special case of one-pixel wide one-pixel
1713         on-off dotted lines. To fully implement generic X11 style dashed
1714         lines a major rewrite would be needed.
1715
1716 2002-03-21  Matthias Clasen  <maclas@gmx.de>
1717
1718         * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Trivial typo
1719         fix. (Vitaly Tishkov, #75726)
1720
1721 Thu Mar 21 10:04:05 2002  Owen Taylor  <otaylor@redhat.com>
1722
1723         * gdk/gdkwindow.c (gdk_window_real_get_depth): Remove
1724         some left over debugging code with a G_BREAKPOINT()
1725         in it.
1726
1727 Wed Mar 20 19:33:31 2002  Owen Taylor  <otaylor@redhat.com>
1728
1729         * gtk/gtkcalendar.c (gtk_calendar_main_button): When
1730         changing months when the user clicks on a prev-month
1731         or next-month day, focus and select the new day.
1732         Ignore double clicks on prev-month, next-month days.
1733         (Based on suggestions from Andras Salamon, #74173)
1734
1735         * gtk/gtkcalendar.c: Implement the focused/unfocused
1736         selected color change.
1737
1738 2002-03-20  Alex Larsson  <alexl@redhat.com>
1739
1740         Patches from Carlo E. Prelz <fluido@fluido.as>
1741         Now gtkfb at least compiles and mostly works. The keyboard
1742         stuff needs more loving.
1743         
1744         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_get_for_keyval,
1745         xlate_get_for_keycode, raw_get_for_keyval, raw_get_for_keycode):
1746         At least set the out parameters for these calls.
1747
1748         * gdk/linux-fb/gdkmain-fb.c:
1749         (gdk_pointer_grab_info_libgtk_only, gdk_keyboard_grab_info_libgtk_only):
1750         Implement new functions.
1751         
1752 Wed Mar 20 19:00:03 2002  Owen Taylor  <otaylor@redhat.com>
1753
1754         * gtk/gtkentry.c (gtk_entry_set_text): Short-circuit
1755         the text to the exact same thing, so we don't 
1756         unexpectedly change the selection or cursor position.
1757         (#74290, John Ellis.)
1758
1759 Thu Mar 21 00:05:14 2002  Kristian Rietveld  <kris@gtk.org>
1760
1761         * gtk/gtktreeview.c (gtk_tree_view_get_background_area),
1762         (gtk_tree_view_get_cell_area): fix logic (fixes #74235, #73593)
1763
1764 Wed Mar 20 17:11:51 2002  Owen Taylor  <otaylor@redhat.com>
1765
1766         * gtk/gtkrc.c: Patch from Richard Hestilow to fix
1767         gtk-font-name changes for widgets that get the actual
1768         default style. (#73709)
1769
1770 Wed Mar 20 22:59:23 2002  Kristian Rietveld  <kris@gtk.org>
1771
1772         * gtk/gtkrbtree.[ch]: add _gtk_rbtree_set_fixed_height()
1773
1774         * gtk/gtktreeprivate.h: add fixed_height_check field
1775
1776         * gtk/gtktreeview.c (gtk_tree_view_init): initialize
1777         scroll_sync_timer and fixed_height_check
1778         (do_validate_rows): add fixed_height_check. If all validated rows
1779         in the first cycle have the same height, then we set that height for
1780         the entire tree. This is some sort of 'fake' optimization, but helps
1781         a lot for the common case. We keep validating the entire tree in
1782         the background though.
1783         (gtk_tree_view_set_model): reset fixed_height_check
1784
1785 Wed Mar 20 16:36:08 2002  Owen Taylor  <otaylor@redhat.com>
1786
1787         * gtk/*.c: Patch from Erwann Chenede, #73900 fixing
1788         a lot of warnings with Forte CC, mostly implicit
1789         casts between void * and function pointers.
1790         
1791         * gdk/gdkevents.c (gdk_event_get_state): GdkEventVisibility's
1792         state field is not a GdkModifierType. (Also #73900)
1793
1794 Wed Mar 20 12:35:22 2002  Owen Taylor  <otaylor@redhat.com>
1795
1796         * gtk/gtkwidget.c (gtk_widget_grab_default): Remove
1797         leftover notification of has-default. (#75508, Jacob
1798         Berkman.)
1799
1800 Wed Mar 20 12:27:07 2002  Owen Taylor  <otaylor@redhat.com>
1801
1802         * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Allow
1803         arrow keys as accelerators, as long as some modifier
1804         is pressed. (#75495)
1805
1806         * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Fix
1807         incorrect example in the docs.
1808
1809 Wed Mar 20 12:06:30 2002  Owen Taylor  <otaylor@redhat.com>
1810
1811         * gtk/gtkwidget.c (gtk_widget_set_child_visible):
1812         Fix segfault when widget->parent is NULL. 
1813         (#75615, Alexey A. Malyshev) 
1814
1815 Wed Mar 20 11:32:07 2002  Owen Taylor  <otaylor@redhat.com>
1816
1817         * gtk/gtkentry.c: Improve test to prevent infinite
1818         loop. (#74952, Thomas Leonard)
1819
1820         * gtk/gtkmenushell.c (gtk_real_menu_shell_cycle_focus):
1821         Fix warning when toplevel menu shell isn't a menu
1822         bar. (Thomas Leonard, #75602)
1823
1824 Wed Mar 20 11:00:59 2002  Owen Taylor  <otaylor@redhat.com>
1825
1826         * configure.in: Use $PKG_CONFIG, not pkg-config.
1827         (LEE Sau Dan, #75572)
1828
1829 Wed Mar 20 10:55:56 2002  Owen Taylor  <otaylor@redhat.com>
1830
1831         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix assignment
1832         of time in scroll events. (Sven Neumann, #75574)
1833
1834 2002-03-20  Tor Lillqvist  <tml@iki.fi>
1835
1836         * gdk/win32/gdkdnd-win32.c (gdk_drag_find_window): Use
1837         gdk_window_get_toplevel(), as it is the top-level windows that are
1838         registered for DND.
1839
1840         * gdk/win32/gdkwin32.h: Don't include gdkinternals.h.
1841
1842 2002-03-19  jacob berkman  <jacob@ximian.com>
1843
1844         * gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
1845         gtk_combo_func() returns NULL (bug #75464)
1846
1847 2002-03-18  jacob berkman  <jacob@ximian.com>
1848
1849         * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the
1850         correct min/max values for the ratio property (fixes #75331)
1851
1852 Mon Mar 18 11:55:03 2002  Owen Taylor  <otaylor@redhat.com>
1853
1854         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave):
1855         Patch from Yao Zhang fixing reference count leak.
1856
1857         * gtk/gtkentry.c (gtk_entry_key_release): if (entry->editable),
1858         not if (!entry->editable).
1859
1860 Mon Mar 18 11:09:17 2002  Owen Taylor  <otaylor@redhat.com>
1861
1862         * gdk/x11/gdkwindow-x11.c (gdk_window_set_override_redirect): 
1863         Fix backwards conditional. (#75019, Dan Winship.)
1864
1865 Sun Mar 17 01:11:16 2002  Kristian Rietveld  <kris@gtk.org>
1866
1867         * gtk/gtktreeview.c (gtk_tree_view_size_request): use
1868         do_validate_rows instead of validate_rows_handler (fix by
1869         Mike Pieper, #74126)
1870
1871 Sat Mar 16 23:54:56 2002  Kristian Rietveld  <kris@gtk.org>
1872
1873         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_bit_gravity): just
1874         return when we have an input_only window (fix by Owen Taylor)
1875
1876         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add
1877         scroll_sync_timer
1878
1879         * gtk/gtktreeview.c (install_scroll_sync_handler): new function,
1880         (scroll_sync_handler): ditto,
1881         (gtk_tree_view_unrealize): take scroll_sync_timer into account
1882         (gtk_tree_view_row_deleted): install scroll_sync_timer instead of
1883         calling top_row_to_dy/dy_to_top_row directly
1884         -- this greatly speeds up clearing the model (#73199)
1885
1886         * gtk/gtktreemodelsort.c
1887         (gtk_tree_model_sort_convert_path_to_child_path): fix up this function,
1888         for some reason I really screwed it up (fixes #74663)
1889
1890 2002-03-16  Sven Neumann  <sven@gimp.org>
1891
1892         * configure.in (GDK_PIXBUF_DEP_CFLAGS) (GDK_PIXBUF_XLIB_DEP_CFLAGS) 
1893         (GDK_DEP_CFLAGS) (GTK_DEP_CFLAGS): include CFLAGS from gthread-2.0
1894         so that the libs work correctly in a threaded environment.
1895
1896 Fri Mar 15 12:51:42 2002  Jonathan Blandford  <jrb@redhat.com>
1897
1898         * gtk/gtktreeviewcolumn.c
1899         (gtk_tree_view_column_new_with_attributes): add example to docs,
1900         as people are seeming to have trouble with this function.
1901
1902 2002-03-15  Tor Lillqvist  <tml@iki.fi>
1903
1904         * configure.in: Set MATH_LIB to empty also on Win32.
1905
1906 Fri Mar 15 15:37:01 2002  Owen Taylor  <otaylor@redhat.com>
1907
1908         * gdk/x11/gdkdrawable-x11.c (convert_to_format): 
1909         Fix byte shift arithmetic for big-endian. (Tracked
1910         down with help from Tuomas Kuosmanen)
1911
1912 Fri Mar 15 11:28:41 2002  Jonathan Blandford  <jrb@redhat.com>
1913
1914         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
1915         make args const, 74159
1916         (gtk_tree_view_insert_column_with_attributes): ditto
1917
1918         * gtk/gtktreeviewcolumn.c
1919         (gtk_tree_view_column_cell_process_action): remov unused variables.
1920
1921 Fri Mar 15 13:31:51 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1922
1923         * gtk/gtkmenu.c (gtk_menu_leave_notify): Fix test for "active
1924         submenu".
1925
1926 2002-03-15 Padraig O'Briain <padraig.obriain@sun.com>
1927
1928         * gdk/x11/gdkkeys-x11.c (update_keymaps): Fudge keymap to have lower
1929         upper case variants if there is only a single keysym per keycode and
1930         the key symbol has upper and lower case variants (#74512)
1931
1932 Thu Mar 14 17:09:52 2002  Owen Taylor  <otaylor@redhat.com>
1933
1934         * gdk/gdkwindow.c (gdk_window_process_all_updates): Fix rather
1935         improbable reentrancy problem if a window is destroyed
1936         while updates are being processed on another window. (Noticed
1937         by Michael Meeks, #74708)
1938
1939 2002-03-14 Vitaly Tishkov <tvv@sparc.spb.su>
1940
1941         * gtk/gtktreemodelsort.c
1942         typo in docs for gtk_tree_model_sort_convert_iter_to_child_iter() fixed
1943
1944
1945 Thu Mar 14 11:17:18 2002  Owen Taylor  <otaylor@redhat.com>
1946
1947         * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): When
1948         removing keys from the key hash, reinsert the right list
1949         back into the hash. (Dave Camp, #74571)
1950
1951 Wed Mar 13 17:17:40 2002  Owen Taylor  <otaylor@redhat.com>
1952
1953         * gtk/gtkobject.h: Remove left-over GTK_OBJECT_CONNECTED
1954         macro that was defined in terms of the now-gone GTK_CONNECTED
1955         flag. (Seth Burgess, #74028)
1956
1957 Wed Mar 13 17:11:10 2002  Owen Taylor  <otaylor@redhat.com>
1958
1959         * gtk/gtkaccelgroup.c (accel_group_weak_ref_detach): Unset 
1960         the acceleratable_groups qdata because qdata isn't removed
1961         on ->dispose but rather on ->finalize. (#74569, found
1962         by Matt Wilson.)
1963
1964 Tue Mar 12 23:14:23 2002  Jonathan Blandford  <jrb@redhat.com>
1965
1966         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
1967         cut-n-paste bug.
1968
1969 Sat Mar  9 18:23:25 2002  Richard Hestilow  <hestilow@ximian.com>
1970
1971         * gtk/gtkimage.c (gtk_image_set_from_filename): Allow NULL
1972         filenames.
1973         
1974 Tue Mar 12 10:50:09 2002  Owen Taylor  <otaylor@redhat.com>
1975
1976         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress):
1977         Fix incorrect return value, filter out returns of 0x7f for
1978         the delete key. (#74179, Kang Jeong-He)
1979
1980 Mon Mar 11 23:42:11 2002  Jonathan Blandford  <jrb@redhat.com>
1981
1982         * gtk/gtktreemodel.c (gtk_tree_model_foreach): fix totally broken
1983         foreach function.
1984
1985 2002-03-11  Matthias Clasen  <maclas@gmx.de>
1986
1987         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document
1988         gtk_{menu_item,widget}_set_accel_path() as the recommended API.  
1989         (#69244)
1990
1991 2002-03-11  James Henstridge  <james@daa.com.au>
1992
1993         * configure.in: set CCAS and CCASFLAGS to get automake 1.6
1994         compatibility without breaking things for people using 1.4.
1995
1996 Sun Mar 10 21:04:30 2002  Jonathan Blandford  <jrb@redhat.com>
1997
1998         * gtk/gtktreeview.c (gtk_tree_view_button_press): finally get the
1999         right behavior.
2000
2001 Mon Mar 11 01:25:14 2002  Kristian Rietveld  <kris@gtk.org>
2002
2003         * gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with
2004         cursor path and not with the selected iter in the 'decide to edit'
2005         check
2006