]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-6
Make sure the RTL variants are used for media icons update following the
[~andy/gtk] / ChangeLog.pre-2-6
1 2004-11-04  Bastien Nocera  <hadess@hadess.net>
2
3         * gtk/gtkiconfactory.c: (get_default_icons): Make sure the RTL
4         variants are used for media icons
5         * gtk/stock-icons/Makefile.am: update following the addition of
6         the 2 Play icon RTL variants
7         * gtk/stock-icons/stock_media_play_rtl_16.png: added
8         * gtk/stock-icons/stock_media_play_rtl_24.png: added
9
10 2004-11-03  Matthias Clasen  <mclasen@redhat.com>
11
12         * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): 
13         Don't leak the path.  (#157301, Carlos Garnacho Parro)
14
15         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): Handle the 
16         case that the protocol version in the context is not 
17         set yet.  (#157123, James Henstridge)
18
19         * gtk/gtktreeview.c (gtk_tree_view_search_activate): Don't
20         try to activate a node if the cursor is not valid.  
21
22 2004-11-03  James M. Cape  <jcape@ignore-your.tv>
23
24         * gtk/gtkfilechooserbutton.c (update_dialog), (dialog_response_cb):
25         Don't mysteriously go to the parent dir when hitting "Cancel" in
26         folder mode (fixes #156971).
27
28 2004-11-03  Matthias Clasen  <mclasen@redhat.com>
29
30         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): Don't
31         access label->layout directly.  (#157080, Adam Hooper)
32
33         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Allow
34         unsetting a pattern by passing NULL.  (#156720, Tristan Van Berkom)
35
36         * gtk/gtkcombobox.c (gtk_combo_box_get_active): Don't crash 
37         if the active_row reference has become invalid.  (#157156,
38         Christophe Fergeau)
39         
40 2004-11-02  Matthias Clasen  <mclasen@redhat.com>
41
42         * gtk/gtkwindow.c (gtk_window_activate_key_after): As
43         a last stage in GtkWindow key press handing, try adding
44         window->mnemonic_modifier to event->state and see if it
45         matches a mnemonic. (#53709, based on a patch by
46         Pasupathi Duraisamy, patch by Owen Taylor)
47
48         * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init): 
49         Doc additions.
50
51         * gtk/gtkfilechooserbutton.h: Fix trigraphs in private markers.
52
53         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_class_init): 
54         Fix a doc comment.
55
56 2004-11-01  Matthias Clasen  <mclasen@redhat.com>
57
58         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
59         Remove a debug printf().  (#157087, Christian Persch)
60
61         * gtk/gtkicontheme.c: Actually commit the "stat less" patch
62         which appeared in the ChangeLog a few days ago.
63
64         * gtk/gtkfilechooserbutton.c: Move some docs inline.
65
66         * gtk/gtkaboutdialog.c (gtk_show_about_dialog): Doc update.
67
68         * gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Revalidate the
69         iter.  (#156924, Murray Cumming)
70
71         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't crash on
72         broken ClientMessage events.  (#157056, Owen Taylor)
73
74         * gtk/gtkactiongroup.c (gtk_action_group_get_visible): Fix a typo in
75         the docs.  (#157044, Masao Mutoh)
76
77 2004-10-31  Matthias Clasen  <mclasen@redhat.com>
78
79         * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Update the
80         state of the cell view when the state of the button changes (to 
81         get prelighted drawing right).  (#138650, Frances Keenan, 
82         Christian Persch)
83
84         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
85         Don't force the height of the action area, we don't scroll 
86         it anyway, and the current way of calculating the height can lead
87         to broken display.  (#156573, Christian Persch)
88
89         * tests/testentrycompletion.c (animation_timer): Don't try to
90         remove stuff from an empty model.  (#156575, Christian Persch)
91
92         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
93         * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init): 
94         Update doc comments.
95
96 2004-10-31  Tor Lillqvist  <tml@iki.fi>
97
98         * gdk/win32/gdkprivate-win32.h
99         * gdk/win32/gdkglobals-win32.c
100         * gdk/win32/gdkmain-win32.c: Remove _windows_version and the
101         IS_WIN_NT() macro.
102
103         * gdk/win32/*.c: Use G_WIN32_IS_NT_BASED() from GLib instead.
104
105 2004-10-31  Matthias Clasen  <mclasen@redhat.com>
106
107         Add api for image transfer via copy-and-paste (#156408)
108         
109         * gtk/gtkclipboard.c (gtk_clipboard_set_image) 
110         (gtk_clipboard_request_image, gtk_clipboard_wait_for_image) 
111         (gtk_clipboard_wait_is_image_available): New functions for image
112         transfer.
113
114         * gtk/gtkselection.h:
115         * gtk/gtkselection.c (gtk_selection_data_targets_include_image): 
116         New function, similar to gtk_selection_data_targets_include_text().
117
118         * gtk/gtkprogressbar.[hc]: Add an ellipsize property with 
119         getter and setter.  (#156845, Morten Welinder)
120
121 2004-10-29  Robert Ă–gren  <gtk@roboros.com>
122
123         * gdk/win32/gdkwindow-win32.c (gdk_window_begin_resize_drag),
124         (gdk_window_begin_move_drag): Implement these on win32, currently
125         only for button 1. Fixes the resize grip of GtkStatusbar on 
126         win32. (#143285)
127
128 2004-10-30  Matthias Clasen  <mclasen@redhat.com>
129
130         * gtk/gtktextbtree.c (_gtk_text_btree_select_range): Redisplay
131         the new selection.
132
133         * gtk/gtktextview.c (gtk_text_view_select_all): Use 
134         gtk_text_buffer_select_range().
135
136         * tests/testtext.c: Add a "Select All" menuitem.  (#156792,
137         Paolo Borelli)
138
139         * gtk/gtkicontheme.c (insert_theme): Sort the dir_mtimes 
140         list in the same way as the search path.
141         (theme_subdir_load): Avoid stat()ing subdirs if the theme 
142         directory doesn't exist.  (#156866)
143
144 2004-10-29  Matthias Clasen  <mclasen@redhat.com>
145
146         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize): 
147         Drop the reference to the pixbuf, regardless whether it is
148         a stock pixbuf.  (#156863, Philip Langdale)
149
150 2004-10-29  Hans Breuer  <hans@breuer.org>
151
152         * gdk/makefile.msc gtk/makefile.msc.in : updated
153
154         * gdk/win32/gdkdisplay-win32.c : dummy implementations for
155         gdk_display_supports_clipboard_persistence, gdk_display_store_clipboard
156
157         * gtk/gtkmodules.c : #include "gtkprivate.h" for GTK_LIBDIR
158
159 2004-10-29  Matthias Clasen  <mclasen@redhat.com>
160
161         * gtk/gtkclipboard.c (gtk_clipboard_set_text): Don't hardwire
162         the supported text targets here, use 
163         gtk_target_list_add_text_targets().  (#156404)
164
165         * gtk/gtkliststore.c (gtk_list_store_reorder): Don't
166         loop over the sentinel node.  (#156298, Torsten Schoenfeld)
167
168 2004-10-28  Matthias Clasen  <mclasen@redhat.com>
169
170         * gtk/gtkcombobox.c (gtk_combo_box_start_editing): Use
171         g_signal_connect_object() to prevent premature finalization
172         of the cell_editable while the key_press_event signal is
173         handled.  (#156325, Olivier Andrieu)
174
175         * *: Clean up many sparse warnings.  (#156698, Kjartan Maraas)
176         
177         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Disconnect
178         from the remove-widget signal after removing the signal.
179
180         * gtk/gtkaboutdialog.c (gtk_show_about_dialog): Destroy
181         the dialog with the parent.  (#156557, Paolo Borelli)
182
183 2004-10-27  Matthias Clasen  <mclasen@redhat.com>
184
185         * Bump version
186
187         * === Released 2.5.4 ===
188
189         * Makefile.am (EXTRA_DIST): Remove po/makefile.mingw
190
191 2004-10-28  Anders Carlsson  <andersca@gnome.org>
192
193         * gtk/gtkclipboard.c: (gtk_clipboard_set_can_store):
194         * gtk/gtkclipboard.h:
195         Make targets const.
196
197 2004-10-27  Matthias Clasen  <mclasen@redhat.com>
198
199         * gtk/Makefile.am (gtkalias.h): 
200         * gdk/Makefile.am (gdkalias.h): Fix srcdir != builddir build.
201         (#156547, Thomas Fitzsimmons)
202         
203         * NEWS: Updates.
204
205         * gtk/gtkclipboard.c (gtk_clipboard_set_can_store): Silently
206         ignore non-CLIPBOARD clipboards.  (#156610, Christian Persch)
207
208         * gtk/gtksettings.c: Make it build on windows. (#156618,
209         Kazuki IWAMOTO)
210
211 2004-10-26  Matthias Clasen  <mclasen@redhat.com>
212
213         * gtk/gtkimcontextsimple.c (check_hex): Stop preediting if strtoul 
214         couldn't parse the complete preedit string.  (#156434)
215
216         * gtk/gtkmessagedialog.c: 
217         * gtk/gtkfilechooserbutton.c: Add missing includes.  (#156503, 
218         Kazuki IWAMOTO)
219
220         * gtk/gtkimage.h: 
221         * gtk/gtkimage.c (gtk_image_get_icon_name): Make the icon_name 
222         parameter G_CONST_RETURN.
223         
224         * gtk/gtkimage.c: It is enough to listen for screen changes and 
225         style-set to catch all icon theme changes.
226         (gtk_image_set_property): Reset the image size if the pixel size 
227         property is changed.
228
229         * gtk/gtk.symbols: Add new symbols.
230
231         * gdk/x11/gdkdisplay-x11.c (gdk_display_store_clipboard): Fix the 
232         doc comment.
233
234 2004-10-26  Anders Carlsson  <andersca@imendio.com>
235
236         * gtk/gtktextbuffer.c: (gtk_text_buffer_finalize),
237         (create_clipboard_contents_buffer), (clipboard_get_contents_cb),
238         (clipboard_clear_contents_cb), (cut_or_copy):
239         Rewrite clipboard handling so that the clipboard contents 
240         won't be freed when the text buffer is finalized. Also add 
241         clipboard manager support. Fixes #95496.
242
243 2004-10-25  Anders Carlsson  <andersca@gnome.org>
244
245         * gtk/gtkentry.c: (gtk_entry_completion_timeout):
246         * gtk/gtkentrycompletion.c: (gtk_entry_completion_set_model),
247         (gtk_entry_completion_get_model), (gtk_entry_completion_complete):
248         Really handle a NULL model, fixes #137211 for real.
249
250         * gtk/gtkfilechooserentry.c:
251         (gtk_file_chooser_entry_maybe_update_directory):
252         Remove _clear, #137211 is fixed.
253
254         * tests/testentrycompletion.c: (main):
255         Add completion with an empty model.
256         
257 2004-10-25  Carlos Garnacho Parro  <carlosg@gnome.org>
258
259         Fix for #118764, David Bordoley:
260         
261         * gtk/gtkmessagedialog.[ch]
262         (gtk_message_dialog_format_secondary_text),
263         (gtk_message_dialog_format_secondary_format): API additions to
264         create HIG-like dialogs
265
266         * demos/gtk-demo/dialog.c: Use the new API in the example
267
268         * docs/reference/gtk/gtk-sections.txt:
269         * docs/reference/gtk/tmpl/gtkmessagedialog.sgml: documented API
270         additions
271
272 2004-10-25  James M. Cape  <jcape@ignore-your.tv>
273
274         Rework of GtkFileChooserButton, some cleanups. Fixes #154388,
275         #154390, #154390, #156272.
276
277         * docs/reference/gtk/gtk-docs.sgml: Moved GtkFileChooserButton
278         below GtkFileChooser.
279         * docs/reference/gtk/gtk-sections.txt: Added
280         gtk_file_chooser_button_get_width_chars(),
281         gtk_file_chooser_button_set_width_chars(),
282         gtk_label_set_width_chars(), gtk_label_get_width_chars().
283         * docs/reference/gtk/gtk.types: Added
284         gtk_cell_renderer_combo_get_type,
285         gtk_cell_view_get_type,
286         gtk_text_iter_get_type.
287         * docs/reference/gtk/tmpl/gtkaboutdialog.sgml: Add
288         "logo-icon-name" property.
289         * docs/reference/gtk/tmpl/gtkcellview.sgml: Updates for properties
290         (b/c of get_type() inclusion above).
291         * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml:
292         * docs/reference/gtk/tmpl/gtklabel.sgml: Add "width-chars" property,
293         getters/setters.
294         * docs/reference/gtk/tmpl/gtkcellrenderercombo.sgml: Added.
295         * gtk/gtkentrycompletion.c:
296         (_gtk_entry_completion_popdown): Don't show if the entry isn't
297         mapped.
298         * gtk/gtkfilechooserbutton.[c,h]: (*): About 45%
299         rewritten, adds "width-chars" property, icons, working save modes,
300         volume/Home/Desktop friendly-naming support.
301         * gtk/gtklabel.[c,h]:
302         (gtk_label_class_init), (gtk_label_init),
303         (gtk_label_get_property), (gtk_label_set_property),
304         (gtk_label_get_width_chars), (gtk_label_set_width_chars),
305         (gtk_label_size_request): Add "width-chars" property.
306         * tests/testfilechooserbutton.c: Update, use 4 different buttons for
307         the different ACTIONs.
308         * gtk/.cvsignore: Ignore gtk-update-icon-cache.
309         * tests/.cvsignore: Ignore testimage.
310
311 2004-10-25  Matthias Clasen  <mclasen@redhat.com>
312
313         * gtk/gtkcellrenderercombo.c (find_text): Don't leak text. (#156325,
314         Olivier Andrieu)
315
316 2004-10-25  Anders Carlsson  <andersca@imendio.com>
317
318         * gdk/gdk.symbols: 
319         * gdk/gdkdisplay.h:
320         * gdk/x11/gdkdisplay-x11.c:
321         (gdk_display_supports_clipboard_persistence), 
322         (gdk_display_store_clipboard):
323         New API to handle the clipboard manager.
324
325         * gtk/gtk.symbols:
326         * gtk/gtkclipboard.c: (gtk_clipboard_class_init),
327         (gtk_clipboard_finalize), (selection_clear_event_cb),
328         (clipboard_unset), (gtk_clipboard_set_text),
329         (gtk_clipboard_request_targets), (gtk_clipboard_wait_for_targets),
330         (clipboard_peek), (gtk_clipboard_owner_change),
331         (gtk_clipboard_wait_is_target_available),
332         (gtk_clipboard_store_timeout), (gtk_clipboard_set_can_store),
333         (gtk_clipboard_selection_notify), (gtk_clipboard_store),
334         (_gtk_clipboard_store_all):
335         * gtk/gtkclipboard.h:
336         Add API for clipboard persistence and implement it, also add
337         gtk_clipboard_wait_is_target_available.
338         
339         * gtk/gtkmain.c: (gtk_main):
340         Call _gtk_clipboard_store_all before exiting.
341         
342 2004-10-25  Matthias Clasen  <mclasen@redhat.com>
343
344         * gtk/gtkaboutdialog.h: 
345         * gtk/gtkaboutdialog.c (gtk_about_dialog_set_logo_icon_name)
346         (gtk_about_dialog_get_logo_icon_name): Support named icons as 
347         logos.  (#156378, James Henstridge)
348
349         * gtk/gtkdialog.c (gtk_dialog_set_alternative_button_order): Fix the 
350         doc formatting.
351
352         * gtk/gtkcellview.[hc]: Make function parameter names consistent.
353
354         * tests/Makefile.am (noinst_PROGRAMS): Add testimage.
355
356         * tests/testicontheme.c (main): Use gtk_image_new_from_icon_name().
357
358 2004-10-25  Matthias Clasen  <mclasen@redhat.com>
359
360         Add a public setting for button ordering (#74669, Owen Taylor)
361         
362         * gtk/gtksettings.c (gtk_settings_class_init): Add a 
363         gtk-alternative-button-order setting.
364
365         * gtk/gtkdialog.h: 
366         * gtk/gtkdialog.c (gtk_alternative_dialog_button_order): A 
367         getter for the alternative button order setting.
368         * gtk/gtkdialog.c (gtk_dialog_set_alternative_button_order): 
369         New function to install an alternative button order for a 
370         dialog.
371
372         * gtk/gtkfilesel.c (gtk_file_selection_init): 
373         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): 
374         * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): 
375         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
376         * gtk/gtkfilechooserdefault.c (location_popup_handler): 
377         Set up an alternative button order.
378         
379 2004-10-25  Matthias Clasen  <mclasen@redhat.com>
380
381         * gtk/gtkimage.h: 
382         * gtk/gtkimage.c (gtk_image_new_from_icon_name)
383         (gtk_image_set_from_icon_name, gtk_image_get_icon_name)
384         (gtk_image_set_pixel_size, gtk_image_get_pixel_size):  Add a
385         new type GTK_IMAGE_ICON_NAME for named icons, update the size
386         and content of stock, icon set and named icon images upon style
387         changes, and allow to set a fixed pixel size for named icon
388         images.  (#155688, James Henstridge)
389
390         * tests/testimage.c: Test application for theming behaviour of
391         different image types and for image dnd.
392
393 2004-10-24  Matthias Clasen  <mclasen@redhat.com>
394
395         * gtk/gtkcellrenderercombo.c: Use G_DEFINE_TYPE, initialize the
396         has_entry property, ref the model and add a finalizer.  (#156325,
397         Olivier Andrieu)
398         
399 Sun Oct 24 02:56:43 2004  Jonathan Blandford  <jrb@redhat.com>
400
401         * docs/tools/widgets.c: Update GtkFileChooserButton doc shot.
402
403 2004-10-24  Matthias Clasen  <mclasen@redhat.com>
404
405         * gtk/gtkicontheme.c: Use the new g_key_file api in GLib.
406
407         * gtk/Makefile.am (gtk_c_sources): Remove gtkiconthemeparser.[hc]
408
409         * gtk/gtkiconthemeparser.[hc]: Removed.
410
411         * gtk/gtkfilechooserdefault.c (location_popup_handler): If the
412         location dialog is brought up by typing '/', insert the slash
413         in the entry.  (#155370, Warren Togami)
414
415 2004-10-23  Matthias Clasen  <mclasen@redhat.com>
416
417         * gtk/gtkfilechooserdefault.c (tree_view_keybinding_cb) 
418         (trap_activate_cb): Accept shift-/ for bringing up the location
419         popup, since German and French keyboards generate such 
420         events.  (#154163, Frederic Crozat)
421
422         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Invalidate 
423         the window if the tree is empty, to avoid resizing artifacts
424         from the focus rectangle.  (#155881, Vincent Noel, patch by
425         Billy Biggs)    
426
427 Sat Oct 23 16:14:37 2004  Søren Sandmann  <sandmann@redhat.com>
428
429         * gtk/gtksequence.c (_gtk_sequence_node_insert_sorted): Remove
430         assertion that can get triggered by broken sort functions.
431
432 Sat Oct 23 16:07:46 2004  Søren Sandmann  <sandmann@redhat.com>
433
434         * gtk/gtksequence.c (_gtk_sequence_swap): Replace broken, overly
435         clever implementation with one that works.
436         
437         * gtk/gtkliststore.c (gtk_list_store_swap): emit "rows_reordered"
438         instead of "changed" twice.
439
440         Bug 153479
441
442 Sat Oct 23 15:17:55 2004  Søren Sandmann  <sandmann@redhat.com>
443
444         * gtk/gtkmenutoolbutton.c (button_state_changed_cb): Remove check
445         for previous state being ACTIVE. Bug 153876.
446
447 2004-10-22  Matthias Clasen  <mclasen@redhat.com>
448
449         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_drag_data_received) 
450         (gtk_file_chooser_button_init): Use the new file DND api.
451
452         * gtk/gtkdnd.h:
453         * gtk/gtkdnd.c (gtk_drag_dest_add_uri_targets) 
454         (gtk_drag_source_add_uri_targets): 
455
456         * gtk/gtkselection.h:
457         * gtk/gtkselection.c (gtk_target_list_add_uri_targets):
458         (gtk_selection_data_set_uris):  
459         (gtk_selection_data_get_uris): New functions to allow
460         handling file DND "without knowing jack shit".
461
462         * configure.in: Bump glib requirement to 2.5.4.
463
464         * gtk/gtkfilechooserdefault.c (shortcuts_drop_uris): Use
465         g_uri_list_extract_uris().
466
467 Fri Oct 22 13:25:25 2004  Owen Taylor  <otaylor@redhat.com>
468
469         * gtk/gtktextbuffer.c (gtk_text_buffer_backspace): Fix 
470         backspacing on the empty last line of a buffer 
471         (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=136840,
472         Dan Williams)
473
474 2004-10-22  Matthias Clasen  <mclasen@redhat.com>
475
476         * gtk/gtkdnd.c: Document how to use info with text/image 
477         targets.
478
479         * gtk/gtkselection.h: 
480         * gtk/gtkselection.c (gtk_target_list_add_text_targets): 
481         (gtk_target_list_add_image_targets): Add info argument.
482         
483         * gtk/gtkcalendar.c (gtk_calendar_motion_notify): 
484         * gtk/gtkentry.c (gtk_entry_init): 
485         * gtk/gtktextview.c (gtk_text_view_init): Adjust all callers.
486
487 2004-10-22  Anders Carlsson  <andersca@gnome.org>
488
489         * gtk/gtktexttag.c: (gtk_text_tag_get_property):
490         GdkBitmap is a GObject, not a boxed type.
491         
492 Thu Oct 21 15:01:09 2004  Owen Taylor  <otaylor@redhat.com>
493
494         #155952
495
496         * gtk/gtkentry.c: Fix checking the wrong position for
497         the backspace_deletes_character PangoLogAttr.
498
499         * gtk/gtktextbuffer.[ch] gtk/gtk.symbols (gtk_text_buffer_backspace): 
500         Move backspace logic from GtkTextView to here, check 
501         backspace_deletes_char. 
502
503         * gtk/gtktextview.c: Use gtk_text_buffer_backspace().
504
505 2004-10-21  Matthias Clasen  <mclasen@redhat.com>
506
507         * gtk/gtkiconcache.c: Include io.h on windows.  (#156075,
508         Kazuki IWAMOTO)
509         (_gtk_icon_cache_new_for_path): Don't use MAP_FAILED if we don't
510         have mmap.
511
512         * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Implement for
513         cached themes.
514
515         * gtk/gtkiconcache.h: 
516         * gtk/gtkiconcache.c (_gtk_icon_cache_has_icon): New function.
517
518         * gtk/updateiconcache.c (scan_directory): Don't skip .icon 
519         files which are listed before their images.
520         (foreach_remove_func): Instead filter lonely .icon files out
521         here.
522
523         * gtk/gtkicontheme.c (theme_dir_get_icon_suffix): Filter out
524         the HAS_ICON_FILE flag.
525
526 2004-10-21  Matthias Clasen  <mclasen@redhat.com>
527
528         * gtk/gtkiconcache.c: Make it compile without mmap() and
529         add some more checks.  (#155973, Morten Welinder)
530
531         Add convenience api for image dnd (#150165):
532         
533         * gtk/gtkselection.h: 
534         * gtk/gtkselection.c (gtk_target_list_add_image_targets) 
535         (gtk_selection_data_set_pixbuf, gtk_selection_data_get_pixbuf): 
536         New functions to handle the image formats readable/writable 
537         by gdk-pixbuf. 
538         
539         * gtk/gtkdnd.h: 
540         * gtk/gtkdnd.c (gtk_drag_dest_add_image_targets) 
541         (gtk_drag_source_add_text_targets): New functions to handle
542         the image formats readable/writable by gdk-pixbuf. 
543
544 2004-10-20  Matthias Clasen  <mclasen@redhat.com>
545
546         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_new): Make
547         the code clearer.  (#155239, Murray Cumming)
548
549         * gtk/gtkicontheme.c: Small fixes.
550
551         * gtk/gtkrc.c: Include gtkmodules.h.  (#155885, Kazuki IWAMOTO)
552
553         * gtk/gtktoolbar.h: Add _gtk_toolbar_rebuild_menu(). (#155885)
554
555         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
556         Fix a wrong blurb.  (#155838, Morten Welinder)
557
558 2004-10-19  Matthias Clasen  <mclasen@redhat.com>
559
560         Implement icon theme caching.  (#154034, Martijn Vernooij,
561         caching schema proposed by Owen Taylor, initial implementation
562         by Anders Carlsson)
563         
564         * gtk/gtkdebug.h: 
565         * gtk/gtkmain.c: Add a "icontheme" debug flag.
566
567         * gtk/Makefile.am (gtk_c_sources): Add gtkiconcache.c
568         (gtk_private_h_sources): Add gtkiconcache.h
569         (bin_PROGRAMS): Add gtk-update-icon-cache
570
571         * gtk/gtkicontheme.c: Use icon caches if they are available.
572         Currently, GTK+ uses the cache to get information about the
573         available sizes, image file formats and .icon files. The
574         actual image data, and the .icon file contents are not 
575         cached yet.
576
577         * gtk/updateiconcache.c: A cmdline utility for generating
578         icon cache files.
579
580         * gtk/gtkiconcache.h: 
581         * gtk/gtkiconcache.c: The glue code to mmap an icon cache
582         file and manage the information it contains.
583
584         * tests/testicontheme.c: Add a "display" option.
585
586 2004-10-19  Matthias Clasen  <mclasen@redhat.com>
587
588         * tests/testicontheme.c: Set the locale, tidy up output.
589
590 2004-10-18  Matthias Clasen  <mclasen@redhat.com>
591
592         Fix #155658, Sebastien Bacher:
593         
594         * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Add a new 
595         is_leader flag.
596
597         * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set wm hints on
598         leader windows even if they are withdrawn.
599         (gdk_window_set_group): Mark the new leader window as such. We 
600         never remove the flag again, but that should a) be vanishingly
601         rare and b) not a problem, since the flag just turns off an
602         optimization.
603
604         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Mark the default
605         leader window as such.
606
607 2004-10-17  Matthias Clasen  <mclasen@redhat.com>
608
609         * gtk/gtkaboutdialog.c (gtk_about_dialog_new): Destroy secondary
610         dialogs if the main dialog is hidden. (#155084, Paolo Borelli)
611
612 2004-10-16  Matthias Clasen  <mclasen@redhat.com>
613
614         * gtk/gtkaboutdialog.c (gtk_about_dialog_destroy): Don't leak
615         the secondary dialogs.  (#155084, Paolo Borelli)
616
617         * gtk/gtkhsv.c (gtk_hsv_expose): Fix redraw issues with the
618         focus on the ring. 
619
620 2004-10-15  Matthias Clasen  <mclasen@redhat.com>
621
622         * gdk/makegdkalias.pl: Include linux-fb/gdkfb.h when building
623         the framebuffer backend.  (#155486, Olexiy Avramchenko)
624
625 2004-10-15  Matthias Clasen  <mclasen@redhat.com>
626
627         * gtk/gtksizegroup.c (do_size_request): Unset GTK_REQUEST_NEEDED
628         before emitting ::size-request, following this weeks discussion
629         on gtk-devel-list@gnome.org.
630
631         * gtk/gtkcellview.c (gtk_cell_view_get_size_of_row): Restore 
632         the size info for the current row after measuring another 
633         row.  (#154945, William Jon McCann)
634
635 2004-10-14  Matthias Clasen  <mclasen@redhat.com>
636
637         * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): Don't
638         get text unnecessarily.  (#155384, Morten Welinder)
639         (gtk_file_chooser_default_finalize): Don't forget to
640         unref the tooltips.  (#155412, Morten Welinder)
641         (shortcuts_add_current_folder): Don't leak volume. (#155400,
642         Morten Welinder)
643
644 2004-10-12  Matthias Clasen  <mclasen@redhat.com>
645
646         * gtk/gtkcontainer.c (_gtk_container_queue_resize): Acknowledge 
647         the fact that invariants are broken and loop all the way up to 
648         the resize container.
649
650 Tue Oct 12 17:11:02 2004    <timj@birnet.org>
651
652         * gtk/gtkwidget.c (gtk_widget_set_usize_internal): don't queue the
653         widget for resize or emit change notification if the usize didn't
654         change. this works around a buggy signal connection in #155139.
655
656 2004-10-11  Matthias Clasen  <matthias@localhost.localdomain>
657
658         * docs/tools/widgets.c: Create scrolledwindow, statusbar, 
659         scale and image images. 
660
661 2004-10-10  Matthias Clasen  <matthias@localhost.localdomain>
662
663         * docs/tools/widgets.c: Create a toolbar, menubar, progressbar,
664         notebook and messagedialog images.
665
666         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_all): 
667         Avoid a warning.
668
669 Sun Oct 10 11:24:56 2004  Jonathan Blandford  <jrb@redhat.com>
670
671         * gtk/gtkcontainer.h (struct _GtkContainer): add /*< private >*/
672         markings.
673
674 2004-10-09  Matthias Clasen  <mclasen@redhat.com>
675
676         * docs/tools/widgets.c: Shrink panes and separators images to MEDIUM.
677
678         * gtk/gtkcellview.c: Add docs.
679
680         * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_get_menu): Fix
681         doc comment.
682
683         * gtk/gtkactiongroup.h: 
684         * gtk/gtkactiongroup.c: Reinstate the accidentally lost addition 
685         of gtk_action_group_translate_string().
686
687         * gtk/gtkaccelgroup.h: Declare gtk_accelerator_get_label.
688
689 2004-10-08  Matthias Clasen  <mclasen@redhat.com>
690
691         * gdk/x11/gdkx.h: Declare gdk_x11_window_set_user_time here.
692
693         * gtk/gtktreeview.c (gtk_tree_view_grab_notify): Don't start a 
694         drag if we loose the grab.
695
696         * gtk/gtkfilechooserdefault.c (renderer_edited_cb): Set the cell 
697         renderer to inert mode to avoid bug #154921.  This fixes a crash
698         which would otherwise occur if the editing is stopped for the second
699         time.  (#154767, Manuel Baena GarcĂ­a)
700
701         * gtk/gtkdebug.h: 
702         * gtk/gtkwidget.c (gtk_widget_size_allocate): Add a new debug
703         flag, geometry, to debug size allocation.
704
705         * gtk/gtktreeview.c (gtk_tree_view_button_press): Set cell data
706         unconditionally.  (#152562, Federico Mena Quintero)
707
708 2004-10-08  Matthias Clasen  <mclasen@redhat.com>
709
710         * gtk/gtkuimanager.c (update_node): Also update smart separators 
711         if the visibility of a  menuitem with a submenu changes.  (#153791,
712         Christian Persch)
713
714 2004-10-08  Matthias Clasen  <mclasen@redhat.com>
715
716         * gtk/gtkentry.h:
717         * gtk/gtkentry.c: 
718         * gtk/gtkentrycompletion.c: 
719         * gtk/gtkspinbutton.c: Share the three copies of get_borders()
720         under the name _gtk_entry_get_borders().  (#116368, Owen Taylor)
721
722 2004-10-07  Matthias Clasen  <mclasen@redhat.com>
723
724         * gtk/gtkfilechooserdefault.c (check_is_folder): Don't free 
725         info too early.  (#154703, Morten Welinder)
726
727         * gtk/gtkfilechooserdefault.c: Include gtkeventbox.h.
728         (#154798, Morten Welinder)
729
730 2004-10-06  Matthias Clasen  <mclasen@redhat.com>
731
732         * gtk/gtkpaned.c (gtk_paned_compute_position): Reduce rounding 
733         error.  (#154658, John Cupitt)
734
735         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Clear
736         the iter instead of returning it unmodified. (#154186, Jonathan Blandford)
737
738         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up
739         the completions again after tab.  (#147700, Jens Bech Madsen)
740
741         * gtk/gtktreeview.c (gtk_tree_view_search_iter): Set the cursor
742         before changing the selection to make the file chooser preview
743         update work better.  (#143826, Tommi Komulainen)
744
745 2004-10-06  Matthias Clasen  <mclasen@redhat.com>
746
747         * gtk/gtkrange.c (gtk_range_real_change_value): Replace a really
748         gross way of rounding to a specified number of digits.  (#145232,
749         Peter Zelezny, patch by Soeren Sandmann)
750
751 Wed Oct  6 00:45:04 2004    <timj@birnet.org>
752
753         * gdk/gdkwindow.c (gdk_window_is_viewable): check the iteration window
754         variable, not just the window passed in. fixes #145270.
755
756 Tue Oct  5 21:00:54 2004  Tim Janik  <timj@gtk.org>
757
758         * gtk/gtkwidget.c (gtk_widget_size_allocate): reverted my last change 
759         and applied owen's leaner conditional flag update which should be good
760         enough to preserve resizing flag invariants.
761
762 2004-10-05  Matthias Clasen  <mclasen@redhat.com>
763
764         * NEWS: Updates
765
766 Tue Oct  5 19:29:06 2004  Tim Janik  <timj@gtk.org>
767
768         * gtk/gtkentry.h: removed redundant gtk_entry_get_layout() decl.
769
770 2004-10-05  Matthias Clasen  <mclasen@redhat.com>
771
772         * gtk/gtkicontheme.c (icon_info_ensure_scale_and_pixbuf): Go back to
773         not scaling up at all. Less magic.
774
775 Tue Oct  5 17:06:26 2004  Tim Janik  <timj@gtk.org>
776
777         * gtk/gtkwidget.c (gtk_widget_size_allocate): if REQUEST_NEEDED is still
778         set on ::size-allocate, another size-request has been queued since
779         ::size-request and needs to be requeued.
780
781 2004-10-05  Paolo Borelli  <pborelli@katamail.com>
782
783         * gtk/gtkmenutoolbutton.c: rename the activate-menu signal to
784         show-menu as discussed in bug #153873.
785
786 2004-10-05  Matthias Clasen  <mclasen@redhat.com>
787
788         * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Set 
789         action_name.  (#154526, John Finlay)
790
791         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new_for_display): 
792         Return a new reference to an existing GdkWindow if one already
793         exists.  (#151378, Gustavo Carneiro)
794
795 2004-10-05  Matthias Clasen  <mclasen@redhat.com>
796
797         Provide access to the string representation of accelerators used
798         in GtkAccelLabel.  (#154068, John Spray)
799
800         * gtk/gtkaccelgroup.h:
801         * gtk/gtkaccelgroup.c (gtk_accelerator_get_label): New function
802         to return the accelerator label used in GtkAccelLabel. 
803         (gtk_accelerator_name): Update docs to point to 
804         gtk_accelerator_get_label().
805         * gtk/gtkaccellabel.h:
806         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
807         New auxiliary function which creates the string representing the
808         accelerator.
809         
810 2004-10-05  Matthias Clasen  <mclasen@redhat.com>
811
812         * gtk/gtkcombobox.c (gtk_combo_box_set_model): Resize the
813         popup if a new model is set.  (#154129, Bernd Demian)
814
815 2004-10-04  Matthias Clasen  <mclasen@redhat.com>
816
817         * gtk/gtkicontheme.c (icon_info_ensure_scale_and_pixbuf): 
818         Make the code work as intended for unthemed icons; don't scale
819         them up too much. Allow to scale them down, and do so 
820         exactly.  (#154142, Ross Burton)
821         (gtk_icon_info_load_icon): Amend docs.
822
823         * gtk/gtkcelllayout.c (gtk_cell_layout_clear): Improve 
824         docs.  (#154504, Dave Cook)
825
826         * gtk/gtkwindow.c (gtk_window_set_icon_list): 
827         (gtk_window_set_default_icon_list): Ref the new icons
828         before unreffing the old ones.  (#154468, Morten Welinder)
829         (gtk_window_realize_icon): Only set using_themed_icon if
830         we actually got an icon list from the theme.  (#154472, Morten
831         Welinder)
832
833 2004-10-03  Matthias Clasen  <mclasen@redhat.com>
834
835         * gtk/gtkiconview.c (gtk_icon_view_set_model): Reset pointers
836         pointing to the old model.  (#154350)
837
838         * gtk/gtkwindow.c (icon_list_from_theme): Don't leak the
839         sizes array.  (#154310, Christian Persch)
840
841         * gtk/gtktreeviewcolumn.c 
842         (gtk_tree_view_column_setup_sort_column_id_callback): 
843         Set sort_indicator to FALSE when appropriate.  (#153714, 
844         Reinout van Schouwen)
845
846         * gtk/gtktreeview.c (gtk_tree_view_search_position_func): 
847         Fix positioning near the monitor boundaries.  (#154341,
848         Ken Harris)
849
850 2004-10-01  Paolo Borelli  <pborelli@katamail.com>
851
852         * gtk/gtkmenutoolbutton.c: deactivate the menu before setting it
853         to something else. Bug #153887.
854
855 2004-10-01  Matthias Clasen  <mclasen@redhat.com>
856
857         Fix bug #150790:
858         
859         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): Fix the
860         calculation of x_offset when ellipsized and in RTL mode.
861         (gtk_cell_renderer_text_render): Fix the calculation of the layout
862         width when ellipsized.  
863
864 2004-10-01  Tor Lillqvist  <tml@iki.fi>
865
866         * gdk/win32/gdkglobals-win32.c: Set _gdk_input_ignore_wintab to
867         FALSE, thus enabling tablet input by default.
868
869         * gdk/win32/gdkmain-win32.c (_gdk_windowing_args): Accept the
870         --use-wintab option again (but without effect, as this is now the
871         default, see above). (#153788)
872
873         * modules/input/gtkimcontextime.c: Numerous changes.
874
875         Remove the ifdef UNICODE conditionals. Always use the
876         wide-character Imm* API. It is present also in Windows 98 and
877         Me. (Not Windows 95, but I think we don't care about that.) Using
878         the multibyte API wouldn't work anyway on systems where the system
879         codepage doesn't support the language the user uses an IME for, so
880         for instance I wouldn't be able to test this module on my English
881         Windows 2000 although I do have C, J and K IMEs available.
882
883         Guard against IMM not being active, always check ImmGetContext()
884         returning NULL. Work to some extent even without any IME. Fixes
885         #153800 at least partially.
886
887         * modules/input/imime.c (ime_info): Rename to "ime" to match the
888         naming pattern of other input modules. Make it default for
889         ja:ko:zh only.
890
891 2004-10-01  Matthias Clasen  <mclasen@redhat.com>
892
893         * gtk/gtkcombobox.c (gtk_combo_box_set_model): Add a comment regarding
894         cell renderers to the docs.
895
896         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
897         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_clear_attributes): 
898         Silently ignore info being NULL. This is unavoidable with the 
899         current design where we have every implementation of layout_clear
900         call layout_clear_attributes, and also delegate calls to dependent
901         cell layouts.  (#154191, Martyn Russell)
902
903 2004-10-01  Matthias Clasen  <mclasen@redhat.com>
904
905         * modules/input/iminuktitut.c: Fix the spelling of Inuktitut
906         in several places.  (#154176, John Austin)
907
908 2004-09-30  Paolo Borelli  <pborelli@katamail.com>
909
910         * tests/testellipsize.c: exit on close.
911
912 2004-09-29  Matthias Clasen  <mclasen@redhat.com>
913
914         * gtk/gtkmain.c: Make --g-fatal-warnings a G_OPTION_ARG_NONE,
915         since it doesn't take an argument.
916
917 2004-09-29  Christopher Blizzard  <blizzard@redhat.com>
918
919         * gtk/gtkmenutoolbutton.h: Remove trailing semicolon on
920         G_END_DECLS
921
922 2004-09-29  Paolo Borelli  <pborelli@katamail.com>
923
924         * tests/testtoolbar.c: add a GtkMenuToolButton.
925
926 2004-09-29  Matthias Clasen  <mclasen@redhat.com>
927
928         * gtk/gtkiconview.c (gtk_icon_view_move_cursor_left_right) 
929         (gtk_icon_view_move_cursor_start_end) 
930         (gtk_icon_view_move_cursor_page_up_down) 
931         (gtk_icon_view_move_cursor_up_down): Handle an empty icon
932         view gracefully.  (#152486)
933
934         Allow keynav to selectable labels (#138085, David Hawthorne):
935         
936         * gtk/gtkdialog.c (gtk_dialog_map): Skip selectable labels when
937         looking for the initial focus widget.
938
939         * gtk/gtklabel.c (gtk_label_focus): Remove to put selectable labels 
940         in the regular focus chain again.
941
942 2004-09-28  Matthias Clasen  <mclasen@redhat.com>
943
944         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Don't
945         reuse insensitive pixbufs across multiple rows.  (#153984, Milosz
946         Derezynski)
947
948         * gtk/gtkmain.c (gtk_parse_args): Use gtk_get_option_group() 
949         to obtain an option group with correctly set pre- and post-
950         parse hooks, instead of manually calling the hooks. This fixes
951         a problem with setting the program class in the gdk preparse
952         hook.  (#153788, Robert Ă–gren)
953
954 2004-09-27  Matthias Clasen  <mclasen@redhat.com>
955
956         Fix #153082:
957         
958         * gtk/gtkmain.c (do_pre_parse_initialization): Don't call gdk_parse_args()
959         here, we don't want to parse args twice.
960         (gtk_init_with_args): Add the ugid check here as well.
961         (gtk_parse_args): Add the gdk options to the main option group as well.
962
963 2004-09-27  Paolo Borelli  <pborelli@katamail.com>
964
965         * gtk/Makefile.am:
966         * gtk/gtk.h:
967         * gtk/gtkmenutoolbutton.[ch]: add the GtkMenuToolButton widget
968         discussed in bug #151441.
969
970         * docs/reference/gtk/gtk-docs.sgml:
971         * docs/reference/gtk/gtk-sections.txt:
972         * docs/reference/gtk/gtk.types:
973         * docs/reference/gtk/tmpl/gtkmenutoolbutton.sgml: docs for the
974         new widget.
975
976 2004-09-27  Matthias Clasen  <mclasen@redhat.com>
977
978         * gtk/gtkfilesystemunix.c (gtk_file_folder_unix_list_children): 
979         Emit ::finished-loading.
980
981 2004-09-27  Roozbeh Pournader  <roozbeh@farsiweb.info>
982  
983         * configure.in: Added Iranian Azerbaijani (az_IR) to ALL_LINUGAS.
984
985 2004-09-27  Matthias Clasen  <mclasen@redhat.com>
986
987         * gtk/gtktreeview.c (gtk_tree_view_append_column): Fix typo in
988         docs.  (#153811, Billy Biggs)
989
990         * gtk/gtkpathbar.h (struct _GtkPathBar): Only need a bit for
991         need_timer.
992
993 2004-09-26  Matthias Clasen  <mclasen@redhat.com>
994
995         * gtk/gtknotebook.c (gtk_notebook_class_init): Add a missing _
996         to the name of the has_secondary_backward_stepper property.
997         Noticed by Michèle Garoche.
998
999 Sun Sep 26 02:06:43 2004  Jonathan Blandford  <jrb@gnome.org>
1000
1001         * gtk/gtkpathbar.h (struct _GtkPathBar): add missing structures.
1002
1003 2004-09-26  Matthias Clasen  <mclasen@redhat.com>
1004
1005         * gtk/gtkpathbar.c (gtk_path_bar_check_parent_path): Scroll
1006         to make the current folder visible.  (#152921)
1007
1008         * gtk/gtkbutton.c: Revert the button state to !button_down,
1009         if we're missing the release event due to grab shadowing
1010         or insensitivation.
1011
1012         * gtk/gtkpathbar.c: Make the slider buttons scroll.
1013
1014         * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): Remove 
1015         debug spew.
1016         (bookmarks_check_remove_sensitivity): Don't free an uninitialized
1017         pointer.
1018
1019         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): 
1020         cursor_pos is in characters, not bytes.  (#153332, Owen Taylor)
1021
1022 2004-09-25  Robert Ă–gren  <gtk@roboros.com>
1023
1024         * gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Set
1025         lcSysOrgX and lcSysOrgY from device instead of hardcoding to 0,
1026         a further fix for bug #145467.
1027
1028 2004-09-25  Matthias Clasen  <mclasen@redhat.com>
1029
1030         * gtk/gtktextiter.c (inside_word_func): Don't access 
1031         attr[-1].  (#153628, Padraig O'Briain)
1032
1033 2004-09-23  Matthias Clasen  <mclasen@redhat.com>
1034
1035         * gtk/gtkfilechooserdefault.c: Add some tooltips.
1036
1037 2004-09-22  Matthias Clasen  <mclasen@redhat.com>
1038
1039         * gtk/gtkrange.c (gtk_range_map, gtk_range_unmap): 
1040         * gtk/gtkbutton.c (gtk_button_map, gtk_button_unmap): Remove
1041         unnecessary g_return_if_fail()s from virtual functions.  (#153469,
1042         (Tristan Van Berkom) 
1043
1044         * gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't leak
1045         cursors.  (#153468, Christian Persch)
1046
1047         * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't leak old_text.
1048         (#153467, Christian Persch)
1049
1050         * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb): Don't use
1051         bitops on booleans.
1052         (gtk_file_chooser_default_should_respond): Make it easier to 
1053         select folders in SELECT_FOLDER mode.
1054
1055 Wed Sep 22 00:54:34 2004  Matthias Clasen  <mclasen@redhat.com>
1056
1057         * demos/gtk-demo/pixbufs.c (do_pixbufs): Don't leak the frame
1058         pixbuf.
1059
1060 Tue Sep 21 16:55:38 2004  Manish Singh  <yosh@gimp.org>
1061
1062         * tests/testtreemodel.c: #include <config.h> for HAVE_MALLINFO define,
1063         other minor cleanups.
1064
1065 Tue Sep 21 16:27:19 2004  Manish Singh  <yosh@gimp.org>
1066
1067         * gdk/gdk.c: remove now unused arg variables.
1068
1069         * gdk/gdkinternals.h: declare _gdk_windowing_init ().
1070
1071         * gtk/gtkmain.c (do_pre_parse_initialization): call gdk_parse_args ()
1072         here instead of gdk_pre_parse_libgtk_only (). Should fix #153082.
1073
1074 2004-09-21  Matthias Clasen  <mclasen@redhat.com>
1075
1076         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond): 
1077         Don't assert that current_focus != NULL, just return FALSE.
1078
1079         * gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
1080         bar arrows some more space.
1081
1082         * configure.in: Check for mallinfo.
1083
1084         * tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO
1085         is defined.  (#153168, Darren Creutz)
1086
1087         * gtk/gtkactiongroup.c: Fix typos in signal docs.  (#153224,
1088         John Finlay)
1089
1090 Mon Sep 20 19:44:58 2004  Matthias Clasen  <mclasen@redhat.com>
1091
1092         * gtk/gtkfilechooserdefault.c (shortcuts_activate_iter): Don't
1093         return FALSE from a void function.  (#153185, Joel Fredrikson)
1094
1095 2004-09-20  Matthias Clasen  <mclasen@redhat.com>
1096
1097         * gtk/gtkbutton.c (gtk_button_class_init): Add a boolean ::displace-focus
1098         style property and apply child displacement to the focus rectangle 
1099         if it is TRUE.  (#141170, Soeren Sandmann)
1100
1101 Sun Sep 19 23:56:18 2004  Søren Sandmann  <sandmann@redhat.com>
1102
1103         * gtk/gtkmenu.c (MENU_SCROLL_TIMEOUT2): Change from 50 to 20 to
1104         make the menus scroll faster.
1105
1106 2004-09-19  Matthias Clasen  <mclasen@redhat.com>
1107
1108         * configure.in: Bump version
1109
1110         * === Released 2.5.3 ===
1111
1112 2004-09-18  Matthias Clasen  <mclasen@redhat.com>
1113
1114         Make GtkFileChooserButton activatable via mnemonics.
1115         (#152925, Dennis Cranston, patch by James M. Cape)
1116
1117         * gtk/gtkfilechooserbutton.c: Add a ::mnemonic-activate signal
1118         and a suitable default handler.
1119
1120         * tests/testfilechooserbutton.c: Add a mnemonic.
1121
1122 2004-09-18  Matthias Clasen  <mclasen@redhat.com>
1123
1124         Fix win32 build errors.  (#153032, #153028, Robert Ă–gren)
1125
1126         * gdk/win32/gdkmain-win32.c: Make it compile.  
1127
1128         * gtk/gtkmain.c: Include glib.h.  
1129
1130 2004-09-18  Federico Mena Quintero  <federico@ximian.com>
1131
1132         Merged from 2.4:
1133
1134         * gtk/gtkfilesystem.h: Removed the GTK_FILE_PATH() and
1135         GTK_IS_FILE_PATH() macros.  They are not supposed to exist, as
1136         GtkFilePath is not an object.  And they never worked, anyway.
1137
1138 2004-09-18  Marco Pesenti Gritti  <marco@gnome.org>
1139
1140         * gtk/gtkentry.c: (gtk_entry_completion_key_press):
1141
1142         Make numeric pad enter activate the selected completion
1143         entry. Fix bug 143486 reported by Edd Dumbill.
1144
1145 2004-09-17  Matthias Clasen  <mclasen@redhat.com>
1146
1147         * NEWS: Updates
1148
1149         * gtk/gtkfilechooserdefault.c (select_func): Scroll to the selected
1150         row.  (#143868, Christian Persch)
1151
1152 2004-09-17  Matthias Clasen  <mclasen@redhat.com>
1153
1154         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): Remove
1155         leftover debug code.
1156
1157         Improve the behaviour of the file chooser in save mode. Fixes bugs
1158         #151031, #151608, #151994 reported by Owen Taylor and Alexander 
1159         Larsson.
1160         
1161         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_property): 
1162         (location_entry_create): Propagate the action to the file 
1163         chooser entries.
1164         (gtk_file_chooser_default_should_respond): Switch folders if 
1165         the user enters a directory name in the entry and clear the entry
1166         after switching folders.
1167         (gtk_file_chooser_default_should_respond, shortcuts_row_activated_cb): 
1168         Move focus to the file list when activating a shortcut.
1169         (gtk_file_chooser_default_should_respond): Handle the case where the
1170         user clicks on "Save" after selecting a folder in the file list.
1171
1172         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property): 
1173         Propagate the action to the file chooser entries.
1174         
1175         * gtk/gtkfilechooserentry.h: 
1176         * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action): 
1177         (_gtk_file_chooser_entry_get_action): New functions to propagate
1178         the GtkFileChooserAction of the file chooser to the file chooser 
1179         entry.
1180         (check_completion_callback): If we are in save mode, only do 
1181         inline completion for directories. 
1182
1183 Fri Sep 17 11:20:03 2004  Jonathan Blandford  <jrb@gnome.org>
1184
1185         * gtk/gtklabel.c (gtk_label_set_markup): Add an example to the
1186         docs.
1187
1188 Thu Sep 16 23:20:05 2004  Matthias Clasen  <maclas@gmx.de>
1189
1190         * gtk/gtkselection.c (selection_get_text_plain): 
1191         * gdk/x11/gdkselection-x11.c (make_list): Warn if a UTF8_STRING
1192         or text/plain;charset=utf-8 roperty contains invalid 
1193         UTF-8.  (#152845, Owen Taylor)
1194
1195 2004-09-16  Matthias Clasen  <mclasen@redhat.com>
1196
1197         Fix #152760, Christian Persch:
1198         
1199         * gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't free
1200         private data.
1201         (gtk_about_dialog_set_translator_credits): Recommend the msg
1202         id translator-credits.
1203         (display_credits_dialog): Show translator credits if they're
1204         translated, not if they're untranslated.
1205
1206 Thu Sep 16 02:07:56 2004  Jonathan Blandford  <jrb@gnome.org>
1207
1208         * docs/tools/widgets.c (create_icon_view): load images at normal
1209         size.
1210
1211         * docs/reference/gtk/images/*png: Update shots.
1212
1213 Thu Sep 16 00:33:11 2004  Jonathan Blandford  <jrb@gnome.org>
1214
1215         * docs/tools/widgets.c (new_widget_info): Add constrained sizing
1216         to the widgets.  This gives us all images running the same size,
1217         which will make the table layout look better.
1218
1219 2004-09-15  Tor Lillqvist  <tml@iki.fi>
1220
1221         * gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents):
1222         Remove bogus code that tried to do what the X11 backend does in
1223         its version of this function. There are no "frame windows" (for
1224         toplevel window decoration) on Windows. The desktop ("root")
1225         window is not the parent of a toplevel window. (#152481)
1226
1227 2004-09-15  Matthias Clasen  <mclasen@redhat.com>
1228
1229         * NEWS: Update.
1230
1231 Wed Sep 15 00:57:37 2004  Matthias Clasen  <maclas@gmx.de>
1232
1233         * docs/tools/widgets.c: Add accel label, file button
1234         and icon view.
1235
1236 Tue Sep 14 22:01:49 2004  Matthias Clasen  <maclas@gmx.de>
1237
1238         * configure.in: New option --disable-visibility to disable
1239         the use of ELF visibility attributes for PLT reduction.
1240
1241         * gtk/makegtkalias.pl: 
1242         * gdk/makegdkalias.pl: Respect the DISABLE_VISIBILITY
1243         define.
1244
1245 Tue Sep 14 23:20:56 2004  Søren Sandmann  <sandmann@redhat.com>
1246
1247         * gtk/gtkaction.c (connect_proxy): Call
1248         gtk_tool_item_rebuild_menu().
1249
1250         * gtk/gtktoolitem.c (gtk_tool_item_class_init): Update
1251         documentation for GtkToolItem::create_menu_proxy.
1252
1253         * gtk/gtktoolitem.c (gtk_tool_item_rebuild_menu): New
1254         API to make the toolbar update itself when the proxy menu item
1255         for a tool item changes.
1256
1257         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Call
1258         gtk_tool_item_rebuild_menu here()
1259
1260         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents):
1261         Remove redundant check for need_label.
1262
1263 2004-09-14  Matthias Clasen  <mclasen@redhat.com>
1264
1265         * gtk/gtkmain.c (do_post_parse_initialization): Remove an unused 
1266         variable, spotted by Morten Welinder.
1267
1268         * gtk/queryimmodules.c (escape_string): Copy code from queryloaders.c
1269         which turns backslashes in slashes on win32.  (#152608, Kazuki IWAMOTO)
1270
1271         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Set the cursor
1272         to the first selected row instead of always to the first row if there
1273         is no cursor.  (#143270, Jean BrĂ©fort)
1274
1275         * tests/testfilechooser.c (main): Fix a few typos.
1276
1277 2004-09-13  Matthias Clasen  <mclasen@redhat.com>
1278
1279         * gtk/gtkexpander.c: 
1280         * gtk/gtktreeview.c: Change the default expander size to 12 to compensate 
1281         for the recent change to gtk_default_draw_expander().
1282
1283         * gtk/gtkstyle.c (gtk_default_draw_expander): Use a linewidth of one
1284         for expander sizes up to 16
1285
1286         * gtk/gtkentrycompletion.c (gtk_entry_completion_get_model): Resize the
1287         popup if the model is replaced.  (#152333)
1288
1289 Mon Sep 13 09:11:53 2004  Manish Singh  <yosh@gimp.org>
1290
1291         * gtk/gtkrange.c: fix gtk_range_real_change_value args. Addresses part
1292         of #152518.
1293
1294 2004-09-13  Matthias Clasen  <mclasen@redhat.com>
1295
1296         Fix some problems reported by Morten Welinder:
1297         
1298         * gtk/gtkfilesystem.c: Include gtkmodules.h, not gtkmain.h, since
1299         the modules stuff moved.
1300
1301         * gtk/gtkmain.c (gtk_arg_no_debug_cb): Add a missing return
1302
1303         * gtk/gtksettings.c: Add missing include. 
1304         (settings_update_modules): Remove an unused variable.
1305
1306 2004-09-13  Matthias Clasen  <mclasen@redhat.com>
1307
1308         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
1309         Improve positioning of entry completion popup.
1310
1311 2004-09-09  Matthias Clasen  <mclasen@redhat.com>
1312
1313         * gtk/makegtkalias.pl: 
1314         * gdk/makegdkalias.pl: Use the short prefix "IA__" for 
1315         aliases instead of the long suffix "__internal_alias". 
1316
1317         * tests/testfilechooser.c (main): Update sensitivity of the "Select all"
1318         button.
1319
1320 Wed Sep  8 18:38:08 2004  Soeren Sandmann  <sandmann@redhat.com>
1321
1322         Make dropping of expandable items look nicer.
1323         
1324         * gtk/gtktoolbar.c (gtk_toolbar_set_drop_highlight_item): Make
1325         placeholder expand if highlight item is expanding.
1326
1327         * gtk/gtktoolbar.c (toolbar_content_set_expand): New function.
1328
1329         * gtk/gtktoolbar.c (toolbar_content_get_expand): Return TRUE only
1330         if the item is not disappering.
1331
1332 2004-09-07  Matthias Clasen  <mclasen@redhat.com>
1333
1334         * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Use the proper node type
1335         for placeholders in toolbars.  (#151963, Olivier Andrieu)
1336
1337         * gtk/gtkstyle.c (gtk_default_draw_expander): Draw expanders a bit 
1338         better.
1339
1340 Sun Sep  5 17:14:16 2004  Matthias Clasen  <maclas@gmx.de>
1341
1342         * gtk/gtkmain.c: 
1343         * gdk/gdk.c: 
1344         * gdk/x11/gdkmain-x11.c: 
1345         * gdk/win32/gdkmain-win32.c: Add descriptions for the 
1346         commandline arguments. The actual descriptions are mostly 
1347         taken from libbonoboui, so translators should be able to 
1348         copy existing translations from there.
1349
1350 2004-09-05  Anders Carlsson  <andersca@gnome.org>
1351
1352         * gdk/gdk.symbols:
1353         * gtk/gtk.symbols:
1354         Add new functions
1355
1356 2004-09-05  Anders Carlsson  <andersca@gnome.org>
1357
1358         * gdk/gdk.c: (gdk_arg_class_cb), (gdk_arg_name_cb),
1359         (gdk_add_option_entries_libgtk_only), (gdk_pre_parse_libgtk_only),
1360         (gdk_parse_args):
1361         * gdk/gdk.h:
1362         * gdk/gdkinternals.h:
1363         * gdk/linux-fb/gdkmain-fb.c: (_gdk_windowing_init):
1364         * gdk/win32/gdkmain-win32.c: (_gdk_windowing_init):
1365         * gdk/x11/gdkdisplay-x11.c: (gdk_display_open):
1366         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init):
1367         * gtk/gtkmain.c: (gtk_arg_debug_cb), (gtk_arg_no_debug_cb),
1368         (gtk_arg_module_cb), (gtk_arg_warnings_cb),
1369         (do_pre_parse_initialization), (do_post_parse_initialization),
1370         (pre_parse_hook), (post_parse_hook), (gtk_get_option_group),
1371         (gtk_init_with_args), (gtk_parse_args):
1372         * gtk/gtkmain.h:
1373         Make gtk argument parsing use goption. Add gtk_get_option_group and
1374         gtk_init_with_args. 
1375         
1376         * tests/testtreemodel.c: (main):
1377         Use gtk_init_with_args.
1378         
1379 Sun Sep  5 01:04:01 2004  Matthias Clasen  <maclas@gmx.de>
1380
1381         Allow sorting of tree models to be turned off 
1382         again.  (#151139, Torsten Schoenfeld)
1383         
1384         * gtk/gtktreesortable.h: 
1385         Add GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID.
1386
1387         * gtk/gtktreestore.c (gtk_tree_store_sort): 
1388         * gtk/gtkliststore.c (gtk_list_store_sort): Don't sort if
1389         the list store is not sorted.
1390
1391 Sat Sep  4 23:37:56 2004  Matthias Clasen  <maclas@gmx.de>
1392
1393         * configure.in: Fix the Solaris Xinerama checks.  (#151754)
1394
1395 Sat Sep  4 22:45:49 2004  Matthias Clasen  <maclas@gmx.de>
1396
1397         * gtk/gtkentry.c (gtk_entry_backspace): Don't refuse to delete
1398         text in passwords.  (#151723, Owen Taylor)
1399
1400 Sat Sep  4 16:51:00 2004  Søren Sandmann  <sandmann@redhat.com>
1401
1402         * gdk/x11/gdkevents-x11.c (gdk_event_prepare): Revert accidental
1403         change from Aug 02 that removed a flush of the X connection from
1404         gdk_event_prepare() causing applications to get stuck. (#151732,
1405         Richard Hoelscher).
1406
1407 Fri Sep  3 22:45:03 2004  Matthias Clasen  <maclas@gmx.de>
1408
1409         * gtk/gtkuimanager.c (print_node): Don't print out attributes
1410         for the <ui> root node.  (#151752, Lorenzo Gil SĂ¡nchez)
1411
1412 Sat Sep  4 02:38:57 2004  Søren Sandmann  <sandmann@redhat.com>
1413
1414         * gtk/gtktoolbar.c (position): Accelerate the animation when it
1415         has been running for a while. (#143647).
1416
1417 2004-09-03  Tor Lillqvist  <tml@iki.fi>
1418
1419         * gtk-zip.sh.in: List the three theme gtkrc files separately, zip
1420         doesn't do anything if one of the files on its command line
1421         doesn't exist.
1422
1423         Handle changes of screen resolution on Win32. (#151581, reported by
1424         Arjohn Kampman)
1425         
1426         * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_init,
1427         _gdk_root_window_size_init): Factor out setting the root window's
1428         size (as the size of the union of all monitors) to a new function.
1429
1430         * gdk/win32/gdkdisplay-win32.c (gdk_display_open,
1431         _gdk_monitor_init): Factor out the monitor query to a new
1432         function.
1433
1434         * gdk/win32/gdkprivate-win32.h: Declare above new functions.
1435
1436         * gdk/win32/gdkevents-win32.c (gdk_event_translate,
1437         handle_display_change): Handle WM_DISPLAYCHANGE by calling the
1438         above two functions, and emitting the "size_changed" signal on our
1439         (only) GdkScreen.
1440
1441 2004-09-01  Matthias Clasen  <mclasen@redhat.com>
1442
1443         * gtk/gtkcombobox.c (gtk_combo_box_get_popup_accessible): 
1444         Document the return value.
1445
1446 2004-09-01  Matthias Clasen  <mclasen@redhat.com>
1447
1448         Make it possible to specify additional modules to load
1449         via a setting.  (#117236, Alex Graveley)
1450         
1451         * gtk/gtkmodules.h: 
1452         * gtk/gtkmodules.c: New files which contain the module
1453         handling code which was previously in gtkmain.[hc]. 
1454         Additionally, the code now looks for the gtk-modules 
1455         setting, which can specify additional modules to load.
1456
1457         * gtk/gtkmain.c: 
1458         * gtk/gtkmain.h: Remove all the module handling code.
1459
1460         * gtk/gtkdebug.h: Add a debug flag for modules.
1461
1462         * gtk/gtk.h: Include gtkmodules.h
1463
1464         * gtk/Makefile.am (gtk_public_h_sources): Add gtkmodules.h
1465         (gtk_c_sources): Add gtkmodules.c
1466
1467         * gtk/gtksettings.c: Add the gtk-modules setting.
1468
1469         * gdk/x11/gdkevents-x11.c: Add the Gtk/Modules XSetting.
1470
1471 Wed Sep  1 19:11:44 2004  Søren Sandmann  <sandmann@redhat.com>
1472
1473         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
1474         children of the toolbar are given positive dimensions. (149540,
1475         Felipe Heidrich).
1476
1477 2004-09-01  Matthias Clasen  <mclasen@redhat.com>
1478
1479         * gtk/gtkfilesystemunix.c: 
1480         * gtk/gtkfilechooserbutton.c: Protect the unistd.h include
1481         by HAVE_UNISTD_H.
1482
1483 Wed Sep  1 02:38:48 2004  Matthias Clasen  <maclas@gmx.de>
1484
1485         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): Make
1486         accel labels ellipsize correctly.  (#151559, Christian Persch)
1487
1488 Wed Sep  1 00:55:56 2004  Matthias Clasen  <maclas@gmx.de>
1489
1490         * gtk/gtkimage.c (gtk_image_clear): Don't leak the iter
1491         of a running animation.  (#151542)
1492
1493 Tue Aug 31 23:40:29 2004  Matthias Clasen  <maclas@gmx.de>
1494
1495         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Make
1496         "ms-windows" the default theme on Win32.  
1497
1498 Tue Aug 31 23:24:49 2004  Matthias Clasen  <maclas@gmx.de>
1499
1500         * gtk/gtkcalendar.c (gtk_calendar_main_button): Only start  
1501         a drag if the left button is pressed.  (#151490, Frederic Croszat)
1502
1503 Tue Aug 31 23:20:58 2004  Matthias Clasen  <maclas@gmx.de>
1504
1505         * gdk/x11/gdkdnd-x11.c (gdk_drop_finish): Remove debug spew.
1506
1507 Tue Aug 31 17:07:41 2004  Jonathan Blandford  <jrb@redhat.com>
1508
1509         * gtk/gtktreeviewcolumn.c
1510         (gtk_tree_view_column_cell_process_action): constrain cell area to
1511         passed in cell_area, #147867
1512
1513         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): if
1514         ellipsizing, get_size is only 3 chars wide.
1515
1516         * docs/tree-column-sizing.png: Add Matthias's excellent image.
1517
1518 2004-08-28  Robert Ă–gren  <gtk@roboros.com>
1519
1520         On Win32, do not produce tablet motion or button events while a
1521         window is being moved or resized. (#151090, reported by Shaneyfelt)
1522
1523         * gdk/win32/gdkprivate-win32.h
1524         * gdk/win32/gdkglobals-win32.c
1525         * gdk/win32/gdkevents-win32.c: Rename the variable resizing to
1526         _sizemove_in_progress and make it extern.
1527
1528         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Ignore
1529         motion and button events if _sizemove_in_progress is true.
1530
1531 2004-08-30  Tor Lillqvist  <tml@iki.fi>
1532
1533         Make the ms-windows theme engine build with mingw.
1534
1535         * configure.in: Expand also modules/engines/ms-windows/Theme/
1536         Makefile and .../Theme/gtk-2.0/Makefile.
1537
1538         * modules/engines/ms-windows/Makefile.am: Adapt for building
1539         inside the GTK sources.
1540
1541         * modules/engines/ms-windows/*.c: Use "foo.h" style includes for
1542         GTK and GDK headers. Use correct path for gdkwin32.h header.
1543
1544         * modules/engines/ms-windows/msw_style.c: Don't use deprecated GDK
1545         API.
1546
1547         * modules/engines/ms-windows/xp_theme_defs.h
1548         * modules/engines/ms-windows/xp_theme.c: Move definitions of TMT_*
1549         to xp_theme.c, as they are neither in mingw's nor Platform
1550         SDK's tmschema.h.
1551
1552         * modules/engines/ms-windows/xp_theme.c: Define _WIN32_WINNT as
1553         0x0501 to get the necesssary stuff from mingw's uxtheme.h.
1554
1555 2004-08-30  Matthias Clasen  <mclasen@redhat.com>
1556
1557         Integrate the ms-windows theme engine (better known as Wimp)
1558         into the autotools build. Wimp (http://gtk-wimp.sourceforge.net/) 
1559         was written by Raymond Penners and Dom Lachowicz. The Wimp 0.6.2
1560         sources have been added to the GTK+ source tree in 
1561         modules/engines/ms-windows, and there is a ChangeLog detailing 
1562         the history of Wimp. (#109615, Havoc Pennington)
1563         
1564         * configure.in: Generate modules/engines/Makefile and 
1565         modules/engines/ms-windows/Makefile.
1566
1567         * modules/Makefile.am (SUBDIRS): Add engines.
1568
1569         * modules/engines/Makefile.am: Compile ms-windows for win32.
1570
1571 2004-08-30  Matthias Clasen  <mclasen@redhat.com>
1572
1573         * gtk/gtktextview.c (gtk_text_view_delete_surrounding_handler):
1574         Make it compile.
1575
1576 2004-08-27  Matthias Clasen  <mclasen@redhat.com>
1577
1578         Fix #151112, Olexiy Avramchenko:
1579         
1580         * gtk/gtktreeview.c (gtk_tree_view_search_entry_flush_timeout): 
1581         * gtk/gtkiconview.c (scroll_timeout, layout_callback) 
1582         (gtk_icon_view_item_accessible_idle_do_action): 
1583         * gtk/gtkcombobox.c (list_popup_resize_idle, popdown_idle) 
1584         (popup_idle): Protect idle callbacks and timeouts with 
1585         GDK_THREADS_ENTER/_LEAVE.
1586
1587         * gtk/gtkfilechooserbutton.c (update_dialog_idle): New function to
1588         call update_dialog() from an idle with the necessary protection.
1589
1590 Mon Aug 30 01:34:42 2004  Matthias Clasen  <maclas@gmx.de>
1591
1592         Changes to make sure input methods respect the editability
1593         of entries and text views. #114173, Noah Levitt.
1594         
1595         * gtk/gtkentry.c (popup_targets_received): Make the Input 
1596         Methods menuitem insensitive if we're not editable.
1597
1598         * gtk/gtkentry.c (gtk_entry_delete_surrounding_cb): 
1599         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): 
1600         * gtk/gtkentry.c (gtk_entry_commit_cb): Don't change anything 
1601         if we're not editable.
1602
1603         * gtk/gtkentry.c (gtk_entry_focus_out): 
1604         * gtk/gtkentry.c (gtk_entry_focus_in): Only send focus_in and
1605         focus_out to the im context if we're editable.
1606
1607         * gtk/gtkentry.c (gtk_entry_set_property): Reset the im context
1608         if the entry just became non-editable.
1609
1610         * gtk/gtktextview.c (gtk_text_view_delete_surrounding_handler): 
1611         Use gtk_text_buffer_delete_interactive() to not delete
1612         non-editable portions of text.
1613
1614 2004-08-30  Tor Lillqvist  <tml@iki.fi>
1615
1616         * modules/input/Makefile.am (im_ime_la_LIBADD): Link with -limm32.
1617
1618         * modules/input/gtkimcontextime.c: Use quotes in #includes, to
1619         find headers when building inside GTK+ sources.
1620
1621 2004-08-27  Tor Lillqvist  <tml@iki.fi>
1622
1623         * gdk/win32/gdkdnd-win32.c (GdkDragContextPrivateWin32): Add
1624         drop_failed, like in the X11 backend. Nothing sets it, though.
1625         (gdk_drag_drop_succeeded): Copy from X11 backend.
1626
1627 Thu Aug 26 23:58:11 2004  Matthias Clasen  <maclas@gmx.de>
1628
1629         * gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't crash
1630         if model is not set. Noted by Mariano Suarez-Alvarez.
1631
1632 Thu Aug 26 22:44:12 2004  Matthias Clasen  <maclas@gmx.de>
1633
1634         Provide information about how an adjustment change in a range 
1635         widget happened. Add a "change-value" signal which reports how 
1636         a user is interacting with the range, whether they are clicking 
1637         on a stepper or the trough, or dragging the slider.  (#133263,
1638         Thomas Fitzsimmons)
1639
1640         * gtk/gtkmarshalers.list: Add signal type BOOLEAN:ENUM,DOUBLE.
1641         * gtk/gtkrange.c (gtk_range_class_init): Add "change-value"
1642         signal.
1643         (gtk_range_internal_set_value): Rename to
1644         gtk_range_real_change_value.  Add GtkScrollType parameter.  Emit
1645         the change-value signal when the range's value changes.
1646         (update_slider_position, gtk_range_scroll_event, step_back,
1647         step_forward, page_back, page_forward, scroll_begin,
1648         scroll_end): Change gtk_range_internal_set_value to
1649         gtk_range_real_change_value.
1650         * gtk/gtkrange.h (struct _GtkRangeClass): Declare change_value
1651         function.
1652
1653 2004-08-26  Matthias Clasen  <mclasen@redhat.com>
1654
1655         * modules/input/Makefile.am: Build imime.la on Windows.
1656
1657         * modules/input/gtkimcontextime.h: 
1658         * modules/input/gtkimcontextime.c: 
1659         * modules/input/imime.c: 
1660         * modules/input/imm-extra.h: Add the IME input method for Win32
1661         written by Takuro Ashie and Kazuki IWAMOTO. The code was previously
1662         hosted at http://sourceforge.jp/projects/imime.  (#135195)
1663
1664 2004-08-26  Bill Haneman <billh@gnome.org>
1665
1666         * gtk/gtktreeview:
1667         (gtk_tree_view_move_cursor_up_down):
1668         If a multi-selection list contains only one item,
1669         select it on cursor_up or cursor_down.
1670         Fixes bug #131226.
1671         [patch from Padraig O'Briain]
1672
1673 2004-08-26  Matthias Clasen  <mclasen@redhat.com>
1674
1675         Make gdk_window_process_[all]_updates() respect 
1676         update_freeze_counter  (#144272, Soeren Sandmann)
1677         
1678         * gdk/gdkwindow.c (gdk_window_schedule_update): New function to
1679         install an idle for gdk_window_update_idle() if one isn't there
1680         already.
1681         (gdk_window_process_all_updates): 
1682         (gdk_window_process_updates): Only process the updates if the
1683         window isn't frozen.
1684         (gdk_window_invalidate_maybe_recurse): Schedule an update when
1685         necessary.
1686         (gdk_window_thaw_updates): Use gdk_window_schedule_update() instead
1687         of directly installing the idle.
1688
1689 2004-08-22  Robert Ă–gren  <gtk@roboros.com>
1690
1691         On Win32, make graphical tablets work on multi-monitor systems.
1692         (#145467, reported by buttknock1@ya...)
1693
1694         * gdk/win32/gdkinput-win32.c (gdk_input_translate_coordinates):
1695         Use dimensions of _gdk_parent_root as screen size.
1696         (gdk_input_get_root_relative_geometry): Get coordinates relative
1697         to GDK root window instead of Win32 coordinates.
1698         (_gdk_input_other_event): Updated accordingly.
1699
1700 Wed Aug 25 17:24:17 2004  Manish Singh  <yosh@gimp.org>
1701
1702         * gdk/x11/gdkfont-x11.c: remove unused gdk_font_charset_for_locale()
1703         function.
1704
1705         * gdk/x11/gdkinput-x11.c (_gdk_input_common_init): remove unused
1706         variables num_extensions and extensions.
1707
1708         * gtk/gtkhsv.c: remove unused gtk_hsv_get_focus_gc() function.
1709
1710 Wed Aug 25 17:14:58 2004  Manish Singh  <yosh@gimp.org>
1711
1712         * gtk/gtktreeview.c (gtk_tree_view_search_activate): initialize
1713         path so we don't potentially use an undefined pointer.
1714
1715         * gtk/gtkfilechooserdefault.c (shortcuts_list_create): add G_CALLBACK
1716         cast for tree_view_keybinding_cb.
1717
1718         * gtk/gtkfilechooserdefault.c (location_entry_create): cast to
1719         GTK_FILE_CHOOSER_ENTRY for _gtk_file_chooser_entry_set_file_part()
1720         calls.
1721
1722         * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_start_editing):
1723         cast to GTK_COMBO_BOX for gtk_combo_box_set_active_iter() call.
1724
1725         * gtk/gtkselection.c (selection_get_text_plain): make len a gsize,
1726         since that's what g_convert_with_fallback() expects.
1727
1728 Wed Aug 25 16:14:34 2004  Jonathan Blandford  <jrb@redhat.com>
1729
1730         * gtk/gtktreeview.c (gtk_tree_view_search_activate): activate the
1731         typeahead entry on enter.
1732
1733 2004-08-25  Matthias Clasen  <mclasen@redhat.com>
1734
1735         * gtk/gtkmenu.c (gtk_menu_attach_to_widget): Steal ATTACHED_MENUS
1736         list so its tail isn't freed when we re-set it, noticed
1737         by Hans Petter Jansson.
1738
1739         * gtk/gtksizegroup.c (gtk_size_group_add_widget): Fix
1740         a typo, noticed by Tim Janik.
1741
1742 Wed Aug 25 15:15:56 2004  Jonathan Blandford  <jrb@redhat.com>
1743
1744         * gtk/gtkpathbar.c (gtk_path_bar_size_allocate): Change the Down
1745         button to be end-justified, so that clicking on it is a stable
1746         operation.
1747
1748 Tue Aug 24 02:06:37 2004  Jonathan Blandford  <jrb@gnome.org>
1749
1750         * gtk/gtktreeview.c
1751         (gtk_tree_view_real_expand_collapse_cursor_row): Don't handle the
1752         event if we have no children.
1753
1754         * gtk/gtkfilechooserdefault.c (trap_activate_cb):
1755         (tree_view_keybinding_cb):Since GtkTreeView has a keybinding
1756          attached to '/', we need to catch keypresses before the TreeView
1757          gets them.
1758         (gtk_file_chooser_default_class_init): add '/' to be a keybinding
1759         to the C-l dialog.
1760         (location_entry_create): Clear the text to "" when loading a file.
1761         This has a much better feel than putting the currently selected
1762         in.
1763         * #include <errno.h>
1764
1765 2004-08-25  Matthias Clasen  <mclasen@redhat.com>
1766
1767         * gtk/gtkfilechooserdefault.c (check_is_folder): Use get_file_info() rather 
1768         than trying get_folder() and checking for an error directly because older 
1769         versions of the gnome-vfs backend don't return an error 
1770         immediately.  (#150852, Zack Cerza )
1771
1772 2004-08-25  Matthias Clasen  <mclasen@redhat.com>
1773
1774         * configure.in: Post-release version bump.
1775
1776         * === Released 2.5.2 ===
1777
1778         * gdk/abicheck.sh:
1779         * gtk/abicheck.sh: Make work during make distcheck.
1780         
1781         * docs/RELEASE-HOWTO: Add hint about doing make check 
1782         before make distcheck.
1783         
1784         * gtk/gtk.symbols: Add some missing symbols.
1785
1786         * gtk/gtkiconview.c: Add some missing statics.
1787
1788 2004-08-24  Matthias Clasen  <mclasen@redhat.com>
1789
1790         * NEWS: Updates for 2.5.2
1791
1792 Wed Aug 25 00:22:48 2004  Søren Sandmann  <sandmann@redhat.com>
1793
1794         * gtk/gtksequence.c: Remove debug spew
1795
1796 Wed Aug 25 00:09:07 2004  Søren Sandmann  <sandmann@redhat.com>
1797
1798         * gtk/gtkliststore.c (gtk_list_store_move_after): Fix logical
1799         errors in gtk_list_store_move_before/after(). (#150983, patch by
1800         Robert Ă–gren).
1801
1802 Tue Aug 24 21:46:42 2004  Søren Sandmann  <sandmann@redhat.com>
1803
1804         * gtk/gtksequence.c (_gtk_sequence_move): Just return if the
1805         parameters are identical. (#150159, Robert Ă–gren)
1806
1807 2004-08-24  Matthias Clasen  <mclasen@redhat.com>
1808
1809         * gtk/gtkaction.c (connect_proxy, disconnect_proxy): Handle 
1810         action_group being NULL.  (#150869,  Tommi Komulainen)
1811
1812 2004-08-24  Matthias Clasen  <mclasen@redhat.com>
1813
1814         * gdk/gdkimage.c (allocate_scratch_images): Use the correct 
1815         index variable.  (#150941, Tommi Komulainen)
1816
1817 2004-08-24  Matthias Clasen  <mclasen@redhat.com>
1818
1819         * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Take header
1820         height and adjustment into account.  (#136496, Pawek Salek)
1821
1822 Mon Aug 23 17:19:19 2004  Jonathan Blandford  <jrb@redhat.com>
1823
1824         * configure.in:
1825         * docs/tools/Makefile.am (clean-local): add the doc shooter to the
1826         docs dir as an uninstalled helper tool.
1827
1828 2004-08-23  Matthias Clasen  <mclasen@redhat.com>
1829
1830         * gdk/x11/gdkwindow-x11.c (show_window_internal): Make it compile.
1831
1832         * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Add a 
1833         user_time field.
1834
1835         * gdk/x11/gdkwindow-x11.c (gdk_x11_window_set_user_time): Update
1836         toplevel->user_time.
1837         (show_window_internal): Update the user time when re-mapping a
1838         toplevel window.  (#150502, Elijah Newren)
1839
1840 2004-08-23  Matthias Clasen  <mclasen@redhat.com>
1841
1842         Fix #150822, reported by Christian Persch
1843         
1844         * gtk/gtklabel.c (gtk_label_ensure_layout): Set the layout width
1845         appropriately when ellipsized.
1846         (gtk_label_size_allocate): Only set the layout width if there
1847         is a layout.
1848
1849 2004-08-23  Matthias Clasen  <mclasen@redhat.com>
1850
1851         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Support the latest
1852         EWMH additions to the _NET_ACTIVE_WINDOW client message 
1853         format.  (#150668, Elijah Newren)
1854
1855 Mon Aug 23 01:17:59 2004  Matthias Clasen  <maclas@gmx.de>
1856
1857         * gdk/gdkrgb.c (gdk_rgb_xpixel_from_rgb_internal): Set unused
1858         bits in pixel to 1s in case they are used as alpha; copying
1859         code from gdk_colormap_alloc_colors().  (#150466, Rich Wareham)
1860
1861 2004-08-22  Philip Langdale  <plangdale@vmware.com>
1862
1863         * gtk/gtkaction.c (gtk_action_disconnect_proxy): Two signals
1864         (gtk_action_sync_property and gtk_action_sync_sensitive) were
1865         not being correctly disconnected, leading to actions continuing
1866         to affect disconnected proxies. (#150607)
1867
1868 2004-08-22  Tor Lillqvist  <tml@iki.fi>
1869
1870         * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal,
1871         gdk_window_new, gdk_window_set_skip_taskbar_hint): Don't show TEMP
1872         windows in the Task Manager. Implement by calling
1873         gdk_window_set_skip_taskbar_hint(TRUE) on them. (#145481, Tim
1874         Evans)
1875
1876         * gdk/win32/gdkdisplay-win32.c (enum_monitor, gdk_display_open):
1877         Report whole of (primary) monitor, including any taskbars.
1878         Excluding the taskbar area from the "root window" reported to GDK
1879         doesn't seem to be that useful although gdk/win32 had been doing it
1880         for a very long time. (#149013, see also #145467 and #148526)
1881
1882 Sun Aug 22 16:55:15 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1883
1884         * gtk/gtkexpander.c
1885         * gtk/gtkalignment.c: 
1886         * gtk/gtktexttag.c
1887         Make enums match property names. Found by a script by Tommi
1888         Komulainen.
1889
1890         * gtk/gtkpaned.c (gtk_paned_class_init): fix min/max mixup.
1891
1892 Sun Aug 22 16:09:49 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1893
1894         * gtk/gtkliststore.h (struct _GtkListStore): 
1895         * gtk/gtkliststore.c (gtk_list_store_init): 
1896         * gtk/gtkliststore.c (gtk_list_store_insert): 
1897         * gtk/gtkliststore.c (gtk_list_store_remove): 
1898         Restore length field; PyGTK and maybe others use it directly.
1899
1900 Sun Aug 22 15:46:56 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1901
1902         * gtk/gtkpaned.c (gtk_paned_class_init):
1903         s/CYCLE_HANDLE_FOCUS/CYCLE_CHILD_FOCUS/
1904
1905         * gtk/gtkfontbutton.c (gtk_font_button_class_init):
1906         s/PROP_SHOW_SIZE/PROP_SHOW_STYLE/
1907
1908         Both pointed out by Tommi Komulainen.
1909
1910 Sun Aug 22 13:44:53 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1911
1912         * gtk/gtkpaned.c (gtk_paned_class_init): Use PROP_MAX_POSITION,
1913         not PROP_MIN_POSITION for the max_position property. Fix pointed
1914         out by Tommi Komulainen.
1915
1916 Sun Aug 22 13:32:33 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1917
1918         * gtk/gtkliststore.c (gtk_list_store_insert): Normalize the
1919         position so we don't create paths with off-list
1920         indices. (#150320).
1921
1922 Sun Aug 22 12:04:59 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1923
1924         * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Use the
1925         correct tree path (#150289, Morten Welinder).
1926
1927 Sun Aug 22 00:08:44 2004  Matthias Clasen  <maclas@gmx.de>
1928
1929         Fix #150406, reported by Fernando San MartĂ­n Woerner, patch
1930         by Gustavo Carneiro.
1931         
1932         * gtk/gtkentrycompletion.c 
1933         (gtk_entry_completion_default_completion_func): Check that 
1934         column is of type G_TYPE_STRING before proceeding.
1935
1936 Sat Aug 21 23:52:13 2004  Matthias Clasen  <maclas@gmx.de>
1937
1938         * gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an 
1939         uninitialized tree iter.  (#150414, Torsten Schoenfeld)
1940
1941 Sat Aug 21 23:29:54 2004  Matthias Clasen  <maclas@gmx.de>
1942
1943         Fix #150738, Tomislav Jonjic.
1944         
1945         * gtk/gtktoolitem.h (GTK_IS_TOOL_ITEM_CLASS): 
1946         * gtk/gtktoolbutton.h (GTK_IS_TOOL_BUTTON_CLASS): 
1947         * gtk/gtktoggleaction.h (GTK_IS_TOGGLE_ACTION_CLASS): 
1948         * gtk/gtkseparatortoolitem.h (GTK_IS_SEPARATOR_TOOL_ITEM_CLASS): 
1949         * gtk/gtkradiotoolbutton.h (GTK_IS_RADIO_TOOL_BUTTON_CLASS): 
1950         * gtk/gtkradioaction.h (GTK_IS_RADIO_ACTION_CLASS): 
1951         * gtk/gtkuimanager.h (GTK_IS_UI_MANAGER_CLASS): 
1952         * gtk/gtkaction.h (GTK_IS_ACTION_CLASS): Fix macro definitions.
1953
1954 Wed Aug 18 17:25:26 2004  Manish Singh  <yosh@gimp.org>
1955
1956         * demos/testpixbuf-save.c
1957         * demos/gtk-demo/hypertext.c: Get rid of some unnecessary casts.
1958
1959         * demos/gtk-demo/appwindow.c: Make activate_email and activate_url
1960         match the arguments for GtkAboutDialogActivateLinkFunc.
1961
1962 Wed Aug 18 16:18:00 2004  Manish Singh  <yosh@gimp.org>
1963
1964         * gtk/gtktreeview.c (gtk_tree_view_row_inserted): Initialize height
1965         from fixed_height before we do anything, so it always has a valid
1966         value.
1967
1968         * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Fix call
1969         to gtk_tree_model_get (missing "," in param list).
1970
1971 2004-08-18  Federico Mena Quintero  <federico@ximian.com>
1972
1973         Merged from 2.4:
1974
1975         Fixes #149251:
1976
1977         * gtk/gtkfilechooserdefault.c: Renamed SHORTCUTS_COL_PATH to
1978         SHORTCUTS_COL_DATA.  Add SHORTCUTS_COL_IS_VOLUME, to determine
1979         easily whether the SHORTCUTS_COL_DATA points to a GtkFilePath or a
1980         GtkFileSystemVolume.
1981         (shortcuts_model_create): Create a boolean column for
1982         SHORTCUTS_COL_IS_VOLUME.
1983         (shortcuts_reload_icons): Simplify with the use of the
1984         SHORTCUTS_COL_IS_VOLUME column.  Don't leak the pixbuf.
1985         (shortcuts_insert_path): Add the SHORTCUTS_COL_IS_VOLUME data.
1986         (shortcuts_free_row_data): New helper function; frees the data
1987         columns for an iter.
1988         (shortcuts_remove_rows): Don't take a callback for freeing the
1989         data; free everything here instead.  Use
1990         shortcuts_free_row_data().
1991         (volume_remove_cb): Removed.
1992         (remove_bookmark_cb): Removed.
1993         (remove_row_cb): Make this a single generic function to delete
1994         rows.
1995         (shortcuts_add_volumes): Use remove_row_cb().
1996         (shortcuts_add_bookmarks): Likewise.
1997         (struct _GtkFileChooserDefault): Removed the
1998         shortcuts_current_folder_is_volume field.
1999         (shortcuts_add_current_folder): Oops, don't free the volume.
2000         (remove_current_folder_cb): Removed.
2001         (shortcut_find_position): Simplify through the use of the
2002         SHORTCUTS_COL_IS_VOLUME column.
2003         (remove_selected_bookmarks): Assert that we don't get a volume.
2004         (shortcuts_reorder): Likewise; also, plug a leak.
2005         (gtk_file_chooser_default_remove_shortcut_folder): Simplify
2006         through the use of shortcuts_remove_rows().
2007         (gtk_file_chooser_default_list_shortcut_folders): Assert that we
2008         don't get a volume.
2009         (shortcuts_activate_iter): Simplify.
2010         (home_folder_handler): Simplify by using
2011         shortcuts_activate_iter().
2012         (shortcuts_free): New function; frees all the data columns.
2013         (gtk_file_chooser_default_finalize): Unref the
2014         shortcuts_filter_model and the shortcuts model data first.
2015
2016 Wed Aug 18 08:31:17 2004  Manish Singh  <yosh@gimp.org>
2017
2018         * gtk/gtkiconview.c: Applied patch from Olivier Andrieu to fix
2019         bug #150440.
2020
2021         * gtk/gtkicontheme.c (gtk_icon_theme_init): xdg_data_dirs should
2022         match constness attributes of g_get_system_data_dirs ().
2023
2024 2004-08-17  Matthias Clasen  <mclasen@redhat.com>
2025
2026         * gtk/gtkicontheme.c (gtk_icon_theme_init): Look up icon themes in the 
2027         directories specified in the icon theme spec: $HOME/.icons, 
2028         $XDG_DATA_DIRS/icons, /usr/share/pixmaps. Note that GTK+ used to also look 
2029         in $GTK_DATA_DIR/icons, $GTK_DATA_DIR/pixmaps and /usr/share/icons.  (#148694)
2030         
2031
2032         * gtk/gtkframe.c (gtk_frame_paint): Take widget->state into account when
2033         painting the shadows.  (#150351, Tim Janik)
2034
2035 2004-08-17  Matthias Clasen  <mclasen@redhat.com>
2036
2037         * gtk/abicheck.sh: No need for INCLUDE_INTERNAL_SYMBOLS anymore.
2038
2039         * gdk/gdk.symbols: Don't use #if defined().
2040
2041         * gdk/Makefile.am (gdkalias.h): 
2042         * gtk/Makefile.am (gtkalias.h): Don't use cpp to filter gtk.symbols.
2043
2044         * gdk/makegdkalias.pl: 
2045         * gtk/makegtkalias.pl: Move the #ifdef processing into the perl script, and
2046         keep the #ifdefs which differentiate between platforms.
2047
2048         * gtk/Makefile.am (gtk_private_h_sources): Remove gtkinternals.h, it is no 
2049         longer needed.
2050
2051 2004-08-17  Matthias Clasen  <mclasen@redhat.com>
2052
2053         * tests/testfilechooserbutton.c: Use g_message() throughout, add RTL envar for
2054         rtl testing.
2055
2056         * gtk/gtkfilechooserbutton.c: Get rid of HAVE_CONFIG_H.
2057         (gtk_file_chooser_button_init): Use gtk_drag_dest_add_text_targets().
2058         (gtk_file_chooser_button_drag_data_received): Use gtk_selection_data_get_text().
2059         (gtk_file_chooser_button_set_dialog): _gtk_file_chooser_entry_set_base_folder()
2060         seems to expect a path, not an uri.
2061         (update_dialog): Handle g_filename_from_uri() returning NULL, don't free
2062         info if it is NULL. 
2063
2064         * gtk/gtkfilechooserbutton.h: Minor stylistic changes.
2065
2066 2004-08-17  Matthias Clasen  <mclasen@redhat.com>
2067
2068         * gtk/gtkfilechooserbutton.[hc]: New widget to go along with 
2069         GtkFontButton and GtkColorButton for use in preference dialogs.
2070         Replaces GnomeFileEntry.  (#148108, James M. Cape)
2071
2072         * gtk/gtk.h: Include gtkfilechooserbutton.h
2073
2074         * gtk/Makefile.am (gtk_public_h_sources): Add gtkfilechooserbutton.h
2075         (gtk_c_sources): Add gtkfilechooserbutton.c
2076
2077         * gtk/gtk.symbols: Add the GtkFileChooserButton symbols.
2078
2079         * gtk/gtkfilechooserutils.[hc]: Make the delegate quark available. 
2080
2081         * gtk/gtkfilechooserentry.[hc] (_gtk_file_chooser_entry_new): Allow
2082         to suppress tab-eating using the new eat_tabs argument. Adjust all
2083         callers.
2084
2085         * tests/testfilechooserbutton.c: Test for GtkFileChooserButton.
2086
2087         * tests/Makefile.am (noinst_PROGRAMS): Add testfilechooserbutton
2088
2089 2004-08-16  Matthias Clasen  <mclasen@redhat.com>
2090
2091         * gtk/gtkwidget.c (gtk_widget_render_icon): Doc update.
2092
2093         * gtk/gtkiconfactory.c (render_icon_name_pixbuf): When the size is -1,
2094         use the available size closest to 48.  (#150147)
2095
2096         * gtk/gtkicontheme.c (gtk_icon_theme_get_icon_sizes): Actually return
2097         a pointer to the beginning of the sizes array, not the end.
2098
2099 2004-08-16  Morten Welinder  <terra@gnome.org>
2100
2101         * tests/testtreemodel.c (test_run): Comment out mallinfo stuff.
2102         Fix g_print %-strings.
2103
2104         * gtk/gtksequence.c (_gtk_sequence_set): Fix C99ism.
2105
2106 2004-08-16  Christian Rose  <menthos@menthos.com>
2107
2108         * configure.in: Added "bs" to ALL_LINGUAS.
2109
2110 Mon Aug 16 01:35:25 2004  Matthias Clasen  <maclas@gmx.de>
2111
2112         
2113         * gtk/gtkcombobox.[hc]: Add a ::focus-on-click property and
2114         change the default behaviour to focus on click.
2115
2116         * gtk/gtkbutton.c (gtk_button_set_focus_on_click): Typo fix.
2117
2118 Mon Aug 16 01:03:08 2004  Matthias Clasen  <maclas@gmx.de>
2119
2120         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset): 
2121         (gtk_text_iter_set_visible_line_index): Count from the 
2122         beginning of the line, not from the current position.  (#150101,
2123         Torsten Schoenfeld)
2124
2125 2004-08-15  Tor Lillqvist  <tml@iki.fi>
2126
2127         * gtk-zip.sh.in: Fix typo. The gtk.immodules file had never been
2128         included in my zipfiles...!
2129
2130         * gtk/gtkfilesystemwin32.c (extract_icon): Improve handling of
2131         icon alpha channel (on Windows XP) and mask (older Windows
2132         versions). (#148641, Tim Evans)
2133
2134 Sun Aug 15 02:31:55 2004  Matthias Clasen  <maclas@gmx.de>
2135
2136         * gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make 
2137         the use of S_ISFIFO and S_ISSOCK conditional.  (#150146,
2138         Gustavo Carneiro)
2139
2140 2004-08-14  Tor Lillqvist  <tml@iki.fi>
2141
2142         * gtk/gtkfilechooserdefault.c (shortcuts_append_home,
2143         shortcuts_append_desktop, set_local_only)
2144         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_render_icon)
2145         * gtk/gtkpathbar.c (find_button_type, _gtk_path_bar_set_file_system): 
2146         Guard against g_get_home_dir() returning NULL. (#150007)
2147
2148 Sat Aug 14 17:56:33 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2149
2150         * gtk/gtkentry.c (gtk_entry_get_pixel_ranges): New function. 
2151
2152         * gtk/gtkentry.c (in_selection): New function using
2153         gtk_entry_get_pixel_ranges() to determine whether a click is in
2154         the selection. Improve entry behavior wrt. dragging and
2155         selecting. Bug #143249.
2156
2157 Sat Aug 14 17:53:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2158
2159         * configure.in: Require glib 2.5.2
2160         
2161         * gtk/gtksequence.[ch]: New internal data structure.
2162
2163         * gtk/gtkliststore.[hc]: Reimplement in terms of new data
2164         structure
2165         
2166         * tests/Makefile.am (testtreemodel_SOURCES):
2167         * tests/testtreemodel.c: New test program written by Matthias.
2168
2169 2004-08-13  Matthias Clasen  <mclasen@redhat.com>
2170
2171         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_style_set): 
2172         Don't install the settings_notify_cb from here, since it
2173         may be called before the first screen_changed signal, 
2174         confusing the logic in gtk_file_chooser_screen_changed().
2175         (#148803, Abel Daniel)
2176
2177         * gtk/gtkcombobox.c: Make re-sensitivation work
2178         in menu mode.
2179
2180         * gtk/gtkaction.c (gtk_action_new): Fix the docs.
2181
2182 Fri Aug 13 01:06:56 2004  Matthias Clasen  <maclas@gmx.de>
2183
2184         * gtk/gtktreeview.c (gtk_tree_view_row_inserted): 
2185         Make fixed height mode handle insertions.  (#135955, 
2186         Michael Vogt, testcase by Tim-Philipp MĂ¼ller, fix by
2187         Pawel Salek)
2188
2189 Fri Aug 13 00:40:18 2004  Matthias Clasen  <maclas@gmx.de>
2190
2191         * gtk/gtkhandlebox.c: Add missing include.
2192
2193 Thu Aug 12 23:52:12 2004  Matthias Clasen  <maclas@gmx.de>
2194
2195         Fix #149547, Markus Lausser:
2196         
2197         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): 
2198         * gtk/gtkcombobox.c (gtk_combo_box_size_request): Don't 
2199         crash if size_request or size_allocate are called early.
2200
2201         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Protect
2202         against being allocated too small.
2203
2204 Thu Aug 12 21:02:57 2004  Matthias Clasen  <maclas@gmx.de>
2205
2206         * demos/gtk-demo/appwindow.c (about_cb): Adjust to GtkAboutDialog 
2207         API changes.
2208
2209         * gtk/gtkaboutdialog.h: 
2210         * gtk/gtkaboutdialog.c (gtk_about_dialog_set_email_hook): 
2211         (gtk_about_dialog_set_url_hook): Add callback data and destroy notify 
2212         for language bindings.  (#149999, Olivier Andrieu)
2213
2214 2004-08-12  Matthias Clasen  <mclasen@redhat.com>
2215
2216         * gtk/gtkfilesystem.c: Underscore-prefix gtk_file_system_module_get_type().
2217         * gtk/gtkfilechooserdefault.c: Underscore-prefix shortcuts_model_filter_get_type().
2218
2219         * gtk/gtkimmodule.c: Make gtk_im_module_get_type() static.
2220         * gtk/gtk.symbols:
2221         * gtk/gtkinternals.h: Remove the no longer exported get_type functions.
2222
2223 Thu Aug 12 01:35:46 2004  Matthias Clasen  <maclas@gmx.de>
2224
2225         * gtk/gtkiconview.c: Make the icon view accessible by
2226         implementing the necessary ATK interfaces.  (#149728,
2227         Padraig O'Briain)
2228
2229 Thu Aug 12 00:02:29 2004  Matthias Clasen  <maclas@gmx.de
2230
2231         * gtk/gtkaction.c (gtk_action_new): Link to information about
2232         allowed action names.  (#149620, David Malcolm)
2233
2234 Wed Aug 11 23:14:25 2004  Matthias Clasen  <maclas@gmx.de>
2235
2236         * gtk/gtk.symbols: 
2237         * gtk/gtkaction.h:
2238         * gtk/gtkaction.c (gtk_action_set_sensitive): 
2239         (gtk_action_set_visible): Add setters for the ::sensitive
2240         and ::visible properties of GtkAction.  (#149622, David Malcolm)
2241
2242 2004-08-11  Federico Mena Quintero  <federico@ximian.com>
2243
2244         Fix #149422, #143457:
2245
2246         * gtk/gtkfilechooserdefault.c
2247         (gtk_file_chooser_default_should_respond): Rewrite to take the
2248         current focus into account, the contents of the save entry, and
2249         the last focus for the shortcuts list.
2250         (switch_to_selected_folder): We don't need an assertion on the
2251         action here.
2252
2253 Wed Aug 11 20:56:00 2004  Matthias Clasen  <maclas@gmx.de>
2254
2255         * gtk/gtkinternals.h: 
2256         * gtk/gtk.symbols: Add shortcuts_model_filter_get_type.
2257
2258         * gtk/abicheck.sh: Check all symbols.
2259
2260 Wed Aug 11 19:20:34 2004  Matthias Clasen  <maclas@gmx.de>
2261
2262         * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row): 
2263         Don't start a drag if the treeview is only a 
2264         drag destination.  (#149836, Pawel Salek)
2265
2266 2004-08-11  Matthias Clasen  <mclasen@redhat.com>
2267
2268         * gtk/gtktreedatalist.[hc]: 
2269         * gtk/gtkliststore.c:
2270         * gtk/gtktreestore.c: Underscore-prefix 
2271         gtk_tree_data_list_compare_func. 
2272
2273         * gtk/gtk.symbols: Remove gtk_tree_data_list_compare_func.
2274
2275         * gtk/makegtkalias.pl: No need to include gtktreedatalist.h 
2276         any more.
2277
2278 2004-08-10  Matthias Clasen  <mclasen@redhat.com>
2279
2280         * gdk/Makefile.am: 
2281         * gtk/Makefile.am: Define TESTS, not TEST, so that make check
2282         actually triggers abicheck.sh.
2283
2284         * gdk/makegdkalias.pl: 
2285         * gtk/makegtkalias.pl: Include glib.h before using glib symbols. D'oh.
2286
2287         * gdk/makegdkalias.pl: 
2288         * gtk/makegtkalias.pl: Protect gtkalias.h by G_HAVE_GNUC_VISIBILITY.
2289         
2290         * gtk/Makefile.am: Include gtkalias.h in the generated
2291         sources gtkmarhalers.c and gtkmarshal.c.
2292
2293         * gtk/makegtkalias.pl: Cosmetic fix.
2294
2295         * gdk/Makefile.am: Remove the . which was accidentally added
2296         to SUBDIRS. Include gdkalias.h in the generated sources 
2297         gdkenumtypes.c and gdkmarshalers.c.
2298
2299         * gdk/makegdkalias.pl: Cosmetic fix.
2300
2301         * gdk/Makefile.am: Add gdkalias.h to BUILT_SOURCES.
2302
2303 2004-08-09  Hans Breuer  <hans@breuer.org>
2304
2305         * gtk/makefile.msc.in : autogenerate gtk.def, cleanup
2306
2307         * gdk/win32/gdkwindow-win32.c gdk/win32/gdkevents-win32.c : 
2308         removed long time unused ifdef/ed code (WITHOUT_WM_CREATE), 
2309         removed duplicated call to gdk_window_set_cursor()
2310
2311 Mon Aug  9 15:41:17 2004  Matthias Clasen  <maclas@gmx.de>
2312
2313         Add hidden aliases for exported symbols which are
2314         used internally in order to get rid of many PLT 
2315         entries.  (#145519, Arjan van de Ven)
2316         
2317         * gdk/Makefile.am: Add rules to generate gdk.def and 
2318         gdkalias.h from gdk.symbols, and make make check check 
2319         the abi with abicheck.sh.
2320
2321         * gdk/gdk.symbols: New file. Definition of the GDK ABI.
2322         The file can be processed by cpp to filter out certain 
2323         subsets of symbols.
2324
2325         * gdk/abicheck.sh: New file. Script to check the actually 
2326         symbols exported from libgdk-x11.2.0.so against the symbols
2327         found in gdk.symbols.
2328
2329         * gdk/makegdkalias.pl: New file. Perl script to generate the 
2330         header containing the alias definitions for internally used 
2331         exported symbols from a list of symbols.
2332
2333         * gdk/*.c, gdk/x11/*.c: Include gdkalias.h
2334         
2335 2004-08-09  Morten Welinder  <terra@gnome.org>
2336
2337         * gdk/x11/gdkdnd-x11.c (gdk_drag_drop_succeeded): Fix C99ism.
2338
2339 Mon Aug  9 15:27:01 2004  Matthias Clasen  <maclas@gmx.de>
2340
2341         * gtk/makegtkalias.pl: Also revert 
2342         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API to its old status.
2343
2344 Mon Aug  9 15:19:34 2004  Matthias Clasen  <maclas@gmx.de>
2345
2346         * gdk/gdk.h: 
2347         * gdk/gdkrgb.h: Add the exported functions 
2348         gdk_rgb_colormap_ditherable(), gdk_pointer_grab_info_libgtk_only(),
2349         gdk_keyboard_grab_info_libgtk_only() to the appropriate
2350         headers.
2351
2352 Mon Aug  9 14:24:46 2004  Matthias Clasen  <maclas@gmx.de>
2353
2354         * gdk/x11/gdkevents-x11.c (gdk_event_send_client_message_to_all_recurse): 
2355         Make static.
2356
2357 Mon Aug  9 12:48:04 2004  Matthias Clasen  <maclas@gmx.de>
2358
2359         Add hidden aliases for exported symbols which are
2360         used internally in order to get rid of many PLT 
2361         entries.  (#145519, Arjan van de Ven)
2362         
2363         * gtk/Makefile.am: Add rules to generate gtk.def and 
2364         gtkalias.h from gtk.symbols, and make make check check 
2365         the abi with abicheck.sh.
2366         (gtk_private_h_sources): Add gtkinternals.h
2367         (gtk_built_private_headers): Add gtkalias.h
2368         (gtk_extra_sources): Add gtk.symbols
2369         (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh
2370
2371         * gtk/gtk.symbols: New file. Definition of the GTK+ ABI.
2372         The file can be processed by cpp to filter out certain 
2373         subsets of symbols.
2374
2375         * gtk/abicheck.sh: New file. Script to check the actually 
2376         symbols exported from libgtk-x11.2.0.so against the symbols
2377         found in gtk.symbols.
2378
2379         * gtk/makegtkalias.pl: New file. Perl script to generate the 
2380         header containing the alias definitions for internally used 
2381         exported symbols from a list of symbols.
2382
2383         * gtk/gtkinternals.h: New file. An uninstalled header listing
2384         symbols which must be exported for some reason and do not appear
2385         in any other header.
2386
2387         * gtk/*.c: Include gtkalias.h
2388         
2389 Mon Aug  9 11:49:46 2004  Matthias Clasen  <maclas@gmx.de>
2390
2391         * gtk/gtkmain.c: Only undef gtk_init_check and gtk_init on win32.
2392
2393 Mon Aug  9 10:50:05 2004  Matthias Clasen  <maclas@gmx.de>
2394
2395         * gtk/gtkentry.h: Add gtk_entry_layout_index_to_text_index() 
2396         and its inverse. The have always been exported and are meant
2397         to be public.
2398         
2399 Mon Aug  9 00:28:34 2004  Matthias Clasen  <maclas@gmx.de>
2400
2401         * gtk/gtkicontheme.c (load_svg_at_size): Don't leak the 
2402         file contents.
2403
2404 Mon Aug  9 00:13:03 2004  Matthias Clasen  <maclas@gmx.de>
2405
2406         * gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't
2407         leak the icon source.
2408
2409 Sun Aug  8 23:46:20 2004  Matthias Clasen  <maclas@gmx.de>
2410
2411         * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't
2412         leak a reference to the pixbufs.
2413
2414 Sun Aug  8 23:36:55 2004  Matthias Clasen  <maclas@gmx.de>
2415
2416         * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Ref
2417         and sink the column.
2418         (gtk_combo_box_menu_destroy): Unref the column.
2419
2420 Sun Aug  8 23:35:00 2004  Matthias Clasen  <maclas@gmx.de>
2421
2422         * gtk/gtkdnd.c (gtk_drag_source_add_text_targets): 
2423         (gtk_drag_dest_add_text_targets): Don't leak a reference 
2424         to the target list.
2425
2426 Sun Aug  8 22:52:26 2004  Matthias Clasen  <maclas@gmx.de>
2427
2428         * gtk/gtkcombobox.c (find_menu_by_path): Don't stumble over
2429         separators which are not backed by model rows.
2430
2431 Sun Aug  8 11:01:23 2004  Matthias Clasen  <maclas@gmx.de>
2432
2433         * gtk/gtkcombobox.c (gtk_combo_box_set_active): Don't leak
2434         the path.
2435
2436 2004-08-08  Hans Breuer  <hans@breuer.org>
2437
2438         * gtk/gtkdnd.c (gtk_drag_dest_set) : take targets into
2439         account again to allow dnd of other things than text
2440
2441         * gdk/win32/gdkselection-win32.c : offer windows bitmap to
2442         be pasted from clipboard (makes The GIMP 2.1's 
2443         "File/Acquire/Paste as New" work, only using gtk+ API) 
2444
2445 Sun Aug  8 01:32:36 2004  Matthias Clasen  <maclas@gmx.de>
2446
2447         * gtk/gtk.def: Add gtk_cell_renderer_progress_get_type.
2448
2449 Sun Aug  8 01:29:08 2004  Matthias Clasen  <maclas@gmx.de>
2450
2451         * gtk/gtk.def: Replace duplicate gtk_tree_view_get_hover_expand
2452         by gtk_tree_view_set_hover_expand.
2453
2454 Sun Aug  8 01:23:08 2004  Matthias Clasen  <maclas@gmx.de>
2455
2456         * gtk/gtk.def: Remove the static function gtk_menu_get_private.
2457
2458 2004-08-07  Tor Lillqvist  <tml@iki.fi>
2459
2460         * gdk/win32/gdkkeys-win32.c (update_keymap): Don't hardcode
2461         mapping of VK_DECIMAL to GDK_KP_Decimal. Instead, let ToAsciiEx()
2462         map it to what's printed on the keypad decimal key for the current
2463         input locale (keyboard layout). (#149404)
2464
2465 Sat Aug  7 18:19:03 2004  Matthias Clasen  <maclas@gmx.de>
2466
2467         * gtk/gtkfilechooserdefault.c (save_folder_combo_create): 
2468         (shortcuts_list_create): Use GtkTreeViewRowSeparatorFunc 
2469         instead of GtkCellRendererSepText.  (#147864)
2470
2471         * gtk/gtkcellrendererseptext.[hc]: Removed.
2472
2473         * gtk/Makefile.am: Remove gtkcellrendererseptext.[hc]
2474         
2475 Sat Aug  7 18:15:15 2004  Matthias Clasen  <maclas@gmx.de>
2476
2477         * gtk/gtkcombobox.c (gtk_combo_box_menu_row_deleted): 
2478         (gtk_combo_box_menu_row_inserted): 
2479         (gtk_combo_box_menu_row_changed): Correctly handle
2480         insertion and deletion of separators in menu mode.
2481
2482 2004-08-07  Tor Lillqvist  <tml@iki.fi>
2483
2484         * gdk/win32/gdkevents-win32.c (handle_configure_event,
2485         gdk_event_translate:WM_WINDOWPOSCHANGED): Add _gdk_offset_{x,y} to
2486         top-level window coordinates, not just in generated
2487         events. (#148526, Robert Ă–gren)
2488
2489 Sat Aug  7 01:26:08 2004  Matthias Clasen  <maclas@gmx.de>
2490
2491         Make the column drag code a bit more robust (still scary, 
2492         though).  (#106992, Christian Biere)
2493         
2494         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): Assert
2495         that cur_reorder is NULL here.
2496
2497         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column): 
2498         Reset cur_reorder to NULL, and only hide drag_highlight_window 
2499         if it exists.  
2500
2501 2004-08-06  Federico Mena Quintero  <federico@ximian.com>
2502
2503         Fix #144232:
2504
2505         * gtk/gtkfilechooserdefault.c (save_widgets_create): Use a
2506         GtkFileChooserEntry for the file name, rather than a GtkEntry.
2507         (update_chooser_entry): Set the contents of the file chooser entry
2508         rather than the plain entry's.
2509         (gtk_file_chooser_default_set_current_folder): Set the new folder
2510         on the save entry.
2511         (gtk_file_chooser_default_set_current_name): Set the name on the
2512         file chooser entry.
2513         (check_save_entry): Use the file chooser entry rather than the
2514         plain entry.
2515
2516         * gtk/gtkfilechooserentry.c
2517         (_gtk_file_chooser_entry_set_base_folder): Call
2518         gtk_file_chooser_entry_changed() so that we recompute the current
2519         folder based on the new base folder.
2520
2521 2004-08-06  Hans Breuer  <hans@breuer.org>
2522
2523         * gdk/win32/gdkwindow-win32.c : make it compile and more
2524         similar to the X11 implementation [backward compatibility
2525         for GDK_WINDOW_TEMP, GDK_INPUT_ONLY (fixes bug #148702), 
2526         use the *screen* function variants, dont reparent already 
2527         destroyed]
2528         (get_visible_region) : take the win32 part into account
2529         (_gdk_windowing_window_destroy) : remove from handle table
2530
2531         * gdk/win32/gdkdisplay-win32.c : added 
2532         gdk_display_(request|supports)_selection_notification ()
2533         with a currently mostly pointless implementation ;-)
2534
2535         * gtk/gtkfilesystemwin32.c (*_to_path) : same changes as on *NIX,
2536         plugs memory leak
2537         (gtk_file_system_win32_render_icon) : use new GTK_STOCK_DIRECTORY
2538
2539         * gtk/makefile.msc.in demos/gtk-demo/makefile.msc.in 
2540           gtk/stock-icons/makefile.msc tests/makefile.msc : updated
2541
2542         * gdk/gdk.def gtk/gtk.def : updated externals
2543
2544         * tests/testiconview.c : remove unneeded dirent.h inclusion
2545
2546 2004-08-06  Matthias Clasen  <mclasen@redhat.com>
2547
2548         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): Fix
2549         an off-by-one error.  (#141809, Markku Vire)
2550
2551         * gtk/gtkdnd.c (gtk_drag_dest_set, gtk_drag_source_set): Really
2552         fix the initialization of the target list.
2553
2554         Support XDND v5. (#10220, Owen Taylor)
2555         
2556         * gdk/x11/gdkdnd-x11.c: Record the XDND version and whether the
2557         drop was successful in the GdkDragContextPrivateX11 struct.
2558         (xdnd_finished_filter): Store the success status of the drop
2559         for an XDND version 5 interaction. For other versions, always
2560         assume the drop was successful.
2561         (xdnd_check_dest): Return the protocol version.
2562         (_gdk_drag_get_protocol_for_display): Return the protocol version.
2563         (gdk_drag_find_window_for_screen): Store the used protocol version
2564         in the GdkDragContext.
2565         (xdnd_send_enter): Send the used protocol version from the context,
2566         instead of hardwiring 3.
2567         (xdnd_enter_filter): Accept protocol versions >= 3 and store the
2568         used protocol version in the context.
2569
2570         * gdk/gdkdnd.h: 
2571         * gdk/x11/gdkdnd-x11.c (gdk_drag_drop_succeeded): New function
2572         to find out whether a drop was successful.
2573
2574 2004-07-28  Robert Ă–gren  <gtk@roboros.com>
2575
2576         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Set x_root
2577         and y_root in button and motion events from the tablet. (#148715)
2578
2579 Thu Aug  5 19:58:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2580
2581         * gtk/gtkplug.c (gtk_plug_realize): Call
2582         gdk_window_enable_synchronized_configure()
2583
2584         * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Make
2585         noop if gdk_window_enable_synchronized_configure() has not been
2586         called.
2587
2588 2004-08-04  Matthias Clasen  <mclasen@redhat.com>
2589
2590         * gtk/gtkfilechooser.[hc]: Add setter and getter for the 
2591         ::show-hidden property.  (#145610, Jeff Franks)
2592
2593         * tests/testiconview.c: Add buttons to select and unselect all
2594         nodes, make the popup menu actually work.
2595
2596         * gtk/gtkiconview.c: Make GTK_SELECTION_BROWSE work as intended,
2597         let button 3 presses through to the app, to make popup menus
2598         work.
2599
2600         * tests/Makefile.am: Add testiconview.
2601         * tests/testiconview.c: A test for GtkIconView
2602         * tests/gnome-textfile.png: ...which uses this image.
2603
2604 Wed Aug  4 01:37:57 2004  Matthias Clasen  <maclas@gmx.de>
2605
2606         * gtk/gtktreeview.c: 
2607         * gtk/gtktreestore.c: 
2608         * gtk/gtktreemodelfilter.c: 
2609         * gtk/gtknotebook.c: s/childs/children/g.
2610
2611 Wed Aug  4 01:04:48 2004  Matthias Clasen  <maclas@gmx.de>
2612
2613         Fix #133446, noticed by Christian Persch:
2614         
2615         * gtk/gtkaction.c (gtk_action_class_init): Add a new boolean 
2616         property ::visible-overflown. 
2617         * gtk/gtkaction.c (gtk_action_create_menu_proxy): Don't create 
2618         a menu proxy if visible_overflown is FALSE.  
2619
2620 Tue Aug  3 20:16:26 2004  Matthias Clasen  <maclas@gmx.de>
2621
2622         * gtk/gtkactiongroup.[hc]: Make the the GtkAction{Toggle,Radio,}Entry*
2623         arguments to the gtk_action_group_add_..._actions() functions const, 
2624         since the most common use case is to use a static array.  (142334, 
2625         Mariano Suarez-Alvarez)
2626
2627 Tue Aug  3 20:03:33 2004  Matthias Clasen  <maclas@gmx.de>
2628
2629         * gtk/gtkuimanager.c (get_node): Make gtk_ui_manager_add_ui()
2630         accept paths with a leading "/ui".  (#149077, David Malcolm)
2631
2632 Tue Aug  3 19:59:29 2004  Matthias Clasen  <maclas@gmx.de>
2633
2634         * gtk/gtkiconview.c: Fix some warnings.
2635
2636 Tue Aug  3 18:38:40 2004  Matthias Clasen  <maclas@gmx.de>
2637
2638         * gtk/gtktreemodelfilter.c: Correct the return type
2639         of gtk_tree_model_filter_get_flags().  (#149195, Morten Welinder)
2640
2641 Tue Aug  3 18:16:55 2004  Matthias Clasen  <maclas@gmx.de>
2642
2643         Fix #149191, reported by Morten Welinder:
2644         
2645         * gtk/gtkmain.c: Include gtkclipboard.h,
2646         * gtk/gtkwidget.h: Declare _gtk_widget_grab_notify, not
2647         _gtk_widget_emit_grab_notify.  
2648
2649 Tue Aug  3 14:50:14 2004  Matthias Clasen  <maclas@gmx.de>
2650
2651         * gtk/gtkicontheme.c (add_size): Add missing parens.
2652         (#149190, Morten Welinder)
2653
2654 Tue Aug  3 14:29:49 2004  Matthias Clasen  <maclas@gmx.de>
2655
2656         * gtk/gtkcombobox.c (gtk_combo_box_menu_fill): Remove 
2657         accidentally committed debug code.
2658
2659 Tue Aug  3 01:19:12 2004  Matthias Clasen  <maclas@gmx.de>
2660
2661         * gtk/gtkcombobox.c (gtk_combo_box_relayout_item): Optimize 
2662         for the case that row_column and col_column are unset.  
2663         (#148868, Lorenzo Gil SĂ¡nchez)
2664
2665 Mon Aug  2 21:52:45 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2666
2667         * gdk/x11/gdkwindow-x11.c (ensure_sync_counter): New
2668         function. Make sure the sync counter is recreated when a window is
2669         reparented to become a toplevel. (#148358)
2670
2671 2004-08-02  Matthias Clasen  <mclasen@redhat.com>
2672
2673         * tests/testcombo.c: Some trees in combo boxes.
2674
2675         * gtk/gtkcombobox.c: Rework the combo box to handle 
2676         tree models.  (#139582, Matt Walton)
2677         
2678         * gtk/gtktreeview.h: 
2679         * gtk/gtktreeview.c: 
2680         * gtk/gtktreeprivate.h: Add a new boolean property 
2681         ::hover-expand and make the treeview expand/collapse rows
2682         on mouseover if it is set.
2683
2684         * gtk/gtkiconview.h: Remove some erroneous declarations.
2685
2686         * gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Don't
2687         crash if the displayed row is gone.
2688
2689 2004-08-02  Morten Welinder  <terra@gnome.org>
2690
2691         * gtk/gtkentry.c (gtk_entry_motion_notify): C99ism.
2692
2693 Mon Aug  2 01:30:03 2004  Matthias Clasen  <maclas@gmx.de>
2694
2695         * gtk/gtktextview.[hc]: 
2696         * gtk/gtkentry.[hc]: Add a new binding signal ::backspace,
2697         bind it to the backspace key, and make it pay attention 
2698         to the Pango backspace_deletes_character 
2699         attribute.  (#119891, Noah Levitt, patch by Theppitak 
2700         Karoonboonyanan)
2701
2702 Mon Aug  2 01:02:57 2004  Matthias Clasen  <maclas@gmx.de>
2703
2704         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): 
2705         (gdk_check_wm_desktop_changed): Add missing error 
2706         traps.  (#149011, Thomas Leonard)
2707
2708 Mon Aug  2 00:21:26 2004  Matthias Clasen  <maclas@gmx.de>
2709
2710         * gtk/gtktextview.c (blink_cb): Add the same warning
2711         that the blink_cb() in GtkEntry already has.  (#148733)
2712
2713 Mon Aug  2 00:12:16 2004  Matthias Clasen  <maclas@gmx.de>
2714
2715         * gtk/gtkentry.c (gtk_entry_class_init):
2716         (gtk_entry_get_alignment): 
2717         (gtk_entry_set_alignment): Document the xalign property
2718         and its getter and setter as 2.4 additions.  (#148978,
2719         Axel Simon)
2720
2721 Mon Aug  2 00:11:31 2004  Matthias Clasen  <maclas@gmx.de>
2722
2723         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): 
2724         * gtk/gtkactiongroup.c (gtk_action_group_class_init): Use
2725         canonical signal names in doc comments, since gtk-doc won't
2726         pick up signal docs with underscores.  
2727
2728 2004-08-01  Matthias Clasen  <mclasen@redhat.com>
2729         
2730         * configure.in: Post-release version bump
2731
2732         * === Released 2.5.1 ===
2733  
2734 Thu Jul 29 16:36:42 2004  Jonathan Blandford  <jrb@redhat.com>
2735
2736         * gtk/gtktreeprivate.h: New arguments
2737
2738         * gtk/gtktreeview.c:
2739         (gtk_tree_view_class_init): Add key_release callback
2740         (gtk_tree_view_init): Initialize timeout handler
2741         (gtk_tree_view_unrealize): clear timeout if needed
2742         (gtk_tree_view_key_press): Typeahead support
2743         (gtk_tree_view_key_release): Not used yet -- will be needed for
2744         typeahead.
2745         (gtk_tree_view_search_entry_flush_timeout): Remove typeahead entry
2746         in a timeout.
2747         (gtk_tree_view_ensure_interactive_directory):
2748         (gtk_tree_view_real_start_interactive_search):
2749         (gtk_tree_view_search_init):
2750         (gtk_tree_view_start_interactive_search): Typeahead support added.
2751         (gtk_tree_view_search_dialog_hide): Clear timeout and text when we
2752         hide.
2753
2754 Sat Jul 31 23:17:44 2004  Matthias Clasen  <maclas@gmx.de>
2755
2756         * NEWS: Updates
2757
2758 Sat Jul 31 01:13:01 2004  Matthias Clasen  <maclas@gmx.de>
2759
2760         * gtk/gtkwindow.c: 
2761         * gtk/gtkentry.c: 
2762         * gtk/gtkaction.c: Use the canonical form of signal names 
2763         after "notify::". Otherwise, no notification arrives. 
2764         GObject should have a warning for that, really.  (#148879, 
2765         Lorenzo Gil SĂ¡nchez)
2766
2767 Sat Jul 31 00:42:08 2004  Matthias Clasen  <maclas@gmx.de>
2768
2769         * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): 
2770         * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_above): Don't
2771         set both states at once.  (#148789, Matthew Garrett)
2772
2773 2004-07-30  Matthias Clasen  <mclasen@redhat.com>
2774
2775         * gtk/gtkcombobox.c: Don't forget to destroy the row separator
2776         function user data when the combo box is destroyed.
2777
2778 2004-07-30  Matthias Clasen  <mclasen@redhat.com>
2779
2780         * gtk/gtkcombobox.h: 
2781         * gtk/gtkcombobox.c: Change the api for separators to use a 
2782         separator function instead of a boolean column.
2783
2784         * tests/testcombo.c: Update to match the api change.
2785
2786 Fri Jul 30 02:21:41 2004  Matthias Clasen  <maclas@gmx.de>
2787
2788         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
2789         Fix the positioning of the popup. 
2790
2791 Fri Jul 30 00:56:31 2004  Matthias Clasen  <maclas@gmx.de>
2792
2793         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_active_changed): 
2794         Implement this in terms of gtk_combo_box_get_active_iter(),
2795         instead of gtk_combo_box_get_active().
2796
2797 2004-07-29  Federico Mena Quintero  <federico@ximian.com>
2798
2799         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): Add
2800         a field for an "add to shortcuts" menu item.
2801         (popup_menu_detach_cb): Clear out the field.
2802         (file_list_build_popup_menu): Only build the menu here.
2803         (file_list_update_popup_menu): Build the menu, then update the
2804         sensitivity of its items.
2805         (file_list_popup_menu): Use file_list_update_popup_menu().
2806         (bookmarks_check_add_sensitivity): Also set the sensitivity of the
2807         popup menu item.  Correctly handle the case for a *single* file.
2808         Simplify a bit.
2809         (bookmarks_add_selected_folder): New helper function; code moved
2810         over from add_bookmark_button_clicked_cb().
2811         (add_bookmark_button_clicked_cb): Use the function above.
2812         (selection_check): Rather than returning a boolean value for
2813         emptiness, actually return the number of selected rows.  Also,
2814         simplify a bit.
2815         (get_selected_path): New helper function.
2816
2817 2004-07-29  Anders Carlsson  <andersca@gnome.org>
2818
2819         * demos/gtk-demo/Makefile.am:
2820         * demos/gtk-demo/clipboard.c: (copy_button_clicked),
2821         (paste_received), (paste_button_clicked), (do_clipboard):
2822         Add clipboard demo.
2823         
2824 2004-07-28  Federico Mena Quintero  <federico@ximian.com>
2825
2826         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
2827         Store signal IDs in gulongs, not guints!
2828         (gtk_file_chooser_default_hierarchy_changed): We now monitor the
2829         focus widget on our toplevel to know which widget was last focused
2830         at the time our "should_respond" method gets called.
2831         (shortcuts_activate_selected): New helper function.
2832         (shortcuts_get_selected): New helper function.
2833         (remove_selected_bookmarks): Use shortcuts_get_selected().
2834         (bookmarks_check_remove_sensitivity): Likewise.
2835         (shortcuts_reorder): Likewise.
2836         (shortcuts_activate_iter): Renamed from shortcuts_activate_item().
2837         Activate by iter, not by item number.
2838         (save_folder_combo_changed_cb): Use shortcuts_activate_iter().
2839         (shortcuts_row_activated_cb): Likewise.
2840         (gtk_file_chooser_default_should_respond): If the last focused
2841         widget on the toplevel was the shortcuts list, activate the
2842         selected shortcut.
2843
2844 2004-07-28  Matthias Clasen  <mclasen@redhat.com>
2845
2846         * gdk/linux-fb/gdkprivate-fb.h: Make the fb backend compile against
2847         current freetype.  (#148558, Nicolas Deves)
2848
2849         * gtk/gtktreeview.c: Replace the EXPANDER_MAX macro by 
2850         ROW_HEIGHT.  (#145528)
2851
2852         * gtk/gtkuimanager.c: Warning fixes.
2853
2854         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Fix
2855         prototype mismatch.  (#148589, Nicolas Deves)
2856
2857 2004-07-28  Anders Carlsson  <andersca@gnome.org>
2858
2859         * gdk/x11/gdkdrawable-x11.c (gdk_draw_rectangle_alpha_libgtk_only): 
2860         Cast to 32-bit integers when premultiplying, suggested by Keith Packard.
2861
2862 2004-07-27  Anders Carlsson  <andersca@gnome.org>
2863
2864         * demos/gtk-demo/iconview.c: (do_iconview):
2865         Change selection mode to multiple.
2866         
2867         * gdk/gdkdrawable.h:
2868         * gdk/linux-fb/gdkdrawable-fb2.c:
2869         (gdk_draw_rectangle_alpha_libgtk_only):
2870         * gdk/win32/gdkdrawable-win32.c:
2871         (gdk_draw_rectangle_alpha_libgtk_only):
2872         * gdk/x11/gdkdrawable-x11.c: (gdk_x11_draw_image),
2873         (get_impl_drawable), (gdk_x11_draw_pixbuf),
2874         (gdk_draw_rectangle_alpha_libgtk_only):
2875         Add gdk_draw_rectangle_alpha_libgtk_only which uses 
2876         XRenderFillRectangle on X11. It's stubbed out on the 
2877         Win32 and fb backends.
2878         
2879         * gtk/gtkiconview.c: 
2880         (gtk_icon_view_paint_rubberband):
2881         Use gdk_draw_rectangle_alpha_libgtk_only here.
2882
2883 2004-07-27  Anders Carlsson  <andersca@gnome.org>
2884
2885         * gtk/gtkaboutdialog.c: (gtk_about_dialog_init),
2886         (text_view_style_set), (add_credits_page),
2887         (display_credits_dialog), (display_license_dialog):
2888         Remove dialog separators, fix text view background setting,
2889         use Close buttons instead of OK buttons.
2890         
2891 2004-07-27  Matthias Clasen  <mclasen@redhat.com>
2892
2893         * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory): 
2894         Add a frame around the C-f popup to stop it from merging visually
2895         in whatever is underneath.
2896
2897         * gtk/gtkcombobox.h: 
2898         * gtk/gtkcombobox.c (gtk_combo_box_get_popup_accessible): New 
2899         function necessary to make GtkComboBox accessible.  (#132847, 
2900         Padraig O'Briain)
2901
2902 Tue Jul 27 02:34:06 2004  Matthias Clasen  <maclas@gmx.de>
2903
2904         * gtk/gtkwidget.c (gtk_widget_dispose): Hide parentless
2905         windows when disposing them.  (#133231, Michael Natterer)
2906
2907 2004-07-26  Matthias Clasen  <mclasen@redhat.com>
2908
2909         * gtk/gtklabel.c (gtk_label_class_init): Expand the documentation
2910         for GtkLabel::ellipsize.
2911
2912 Mon Jul 26 00:38:27 2004  Matthias Clasen  <maclas@gmx.de>
2913
2914         Make the GtkComboBox in list mode scroll if the list is too
2915         large to fit in the popup.  (#135543)
2916
2917         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add a 
2918 o       scrolled window to the popup in list mode.
2919         (gtk_combo_box_list_position): Calculate the height of the
2920         popup so that it fits on the screen, set the scrollbar policy
2921         of the scrolled window appropriately.
2922         (gtk_combo_box_popup): Use the height calculated by 
2923         gtk_combo_box_list_position().
2924         (gtk_combo_box_remeasure): Don't add unnecessary padding.
2925         (gtk_combo_box_size_request): But add the focus with here.
2926         (gtk_combo_box_list_setup): Connect to enter notify on the 
2927         popup window to activate auto scrolling.
2928         (gtk_combo_box_list_enter_notify): Activate auto scrolling.
2929         (gtk_combo_box_list_button_pressed): Setup a timeout for
2930         auto scrolling. 
2931         (gtk_combo_box_list_scroll_timeout): Timeout function for
2932         auto scrolling.
2933         (gtk_combo_box_list_auto_scroll): Scroll the list when the 
2934         pointer leaves the window.
2935         
2936 Sun Jul 25 19:51:17 2004  Matthias Clasen  <maclas@gmx.de>
2937
2938         * gtk/gtknotebook.c (gtk_notebook_scroll): Ignore scroll
2939         events from the content of the page.  (#148409, Gabriel 
2940         de Perthuis)
2941
2942 Sat Jul 24 21:38:12 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2943
2944         * gtk/gtktoolbar.c (internal_insert_element): Warn if you try to
2945         add a tool item to a toolbar using the deprecated API.
2946
2947 Fri Jul 23 13:04:10 2004  Matthias Clasen  <maclas@gmx.de>
2948
2949         * gtk/gtkdnd.c (gtk_drag_dest_set): Revert the change to
2950         initialize target_list to an empty list instead of NULL,
2951         since it broke tree dnd.  (#148215, Ernst Persson)
2952
2953         * gtk/gtkdnd.c (gtk_drag_dest_add_text_targets): 
2954         * gtk/gtkdnd.c (gtk_drag_source_add_text_targets): Instead 
2955         handle target list being NULL here.
2956
2957 2004-07-23  Dafydd Harries  <daf@muse.19inch.net>
2958
2959         * gtk/gtkradioaction.c:
2960         * gtk/gtkradiobutton.c:
2961         * gtk/gtkentry.c:
2962         * gtk/gtkmisc.c:
2963         Improve various translatable messages. (#137616)
2964
2965 Fri Jul 23 11:11:10 2004  Matthias Clasen  <maclas@gmx.de>
2966
2967         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): 
2968         Align the entry in the same way as the cell.  (#136749)
2969
2970 Fri Jul 23 11:01:00 2004  Matthias Clasen  <maclas@gmx.de>
2971
2972         * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): 
2973         Don't iterate too far up. (#147965, Olivier Sessink)
2974
2975 Fri Jul 23 10:28:43 2004  Matthias Clasen  <maclas@gmx.de>
2976
2977         * gtk/gtktreeview.c (gtk_tree_view_finalize): 
2978         * gtk/gtkradioaction.c (gtk_radio_action_finalize): 
2979         * gtk/gtkfontsel.c (gtk_font_selection_finalize): 
2980         * gtk/gtkcellview.c (gtk_cell_view_finalize): 
2981         * gtk/gtkcalendar.c (gtk_calendar_finalize): 
2982         * gtk/gtkactiongroup.c (gtk_action_group_finalize): Remove
2983         unnecessary checks.  (#148175, Morten Welinder)
2984
2985 Thu Jul 22 01:42:16 2004  Matthias Clasen  <maclas@gmx.de>
2986
2987         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
2988         Add a new :ellipsize property which controls ellipsization of the 
2989         rendered text.  (#144835, Vincent Untz, patch by Jonathan Blandford
2990         and Anders Carlsson)
2991         
2992         * gtk/gtkfilechooserdefault.c (create_file_list): Use ellipsization
2993         for the name column.
2994
2995 Thu Jul 22 01:21:28 2004  Matthias Clasen  <maclas@gmx.de>
2996
2997         * gtk/gtkfontsel.c (gtk_font_selection_init): Add additional
2998         accessability relations.  (#141804,  Padraig O'Briain)
2999
3000 Thu Jul 22 01:16:23 2004  Matthias Clasen  <maclas@gmx.de>
3001
3002         * gtk/gtkcombobox.c: Avoid some warnings.
3003
3004 Thu Jul 22 01:05:16 2004  Matthias Clasen  <maclas@gmx.de>
3005
3006         * configure.in: Require Pango 1.5.1 (for ellipsisation).
3007
3008         * gtk/gtklabel.h: 
3009         * gtk/gtklabel.c (gtk_label_class_init): Add a new :ellipsize
3010         property which controls ellipsization of the label.  (#125250, 
3011         Tim Van Wassenhove, patch by James M. Cape)
3012
3013         * tests/testellipsise.c: Simple test for ellipsizsation.
3014
3015 Wed Jul 21 22:46:27 2004  Matthias Clasen  <maclas@gmx.de>
3016
3017         * gtk/gtkcombobox.c (gtk_combo_box_new_text): Don't leak the
3018         list store.  (#148134, Crispin Flowerday)
3019
3020 Wed Jul 21 22:35:47 2004  Matthias Clasen  <maclas@gmx.de>
3021
3022         * gtk/gtkcombobox.c (gtk_combo_box_destroy): Don't leak the
3023         menu.  (#148110, Tommi Komulainen)
3024
3025 Wed Jul 21 22:24:10 2004  Matthias Clasen  <maclas@gmx.de>
3026
3027         * gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak
3028         tree model and tree row reference.  (#148125, Crispin Flowerday)
3029
3030 Wed Jul 21 22:17:06 2004  Matthias Clasen  <maclas@gmx.de>
3031
3032         * tests/testcombo.c (main): Don't leak models.  (#148128,
3033         Tommi Komulainen)
3034
3035 Wed Jul 21 21:26:08 2004  Matthias Clasen  <maclas@gmx.de>
3036
3037         * gtk/gtkviewport.c (viewport_set_adjustment): Don't leak
3038         the adjustments.  (#148089, Tommi Komulainen)
3039
3040 Wed Jul 21 21:20:21 2004  Matthias Clasen  <maclas@gmx.de>
3041
3042         * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't leak
3043         the adjustments.  (#148073, Tommi Komulainen)
3044
3045 Wed Jul 21 21:04:50 2004  Matthias Clasen  <maclas@gmx.de>
3046
3047         * gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the 
3048         arrow.  (#148064, Tommi Komulainen)
3049
3050 2004-07-21  Matthias Clasen  <mclasen@redhat.com>
3051
3052         * gtk/gtkcalendar.c: Use the new text target functionality
3053         in GtkTargetList instead of hardcoding a subset of text targets.
3054
3055 Tue Jul 20 23:11:23 2004  Matthias Clasen  <maclas@gmx.de>
3056
3057         * gdk/x11/gdkevents-x11.c: Hook up gtk-menu-bar-accel to
3058         an XSetting, Gtk/MenuBarAccel.  (#120859, Scott James Remnant)
3059
3060 Tue Jul 20 22:26:29 2004  Matthias Clasen  <maclas@gmx.de>
3061
3062         * gtk/gtkfilechooserutils.h: 
3063         * gtk/gtktoolbutton.c: 
3064         * gtk/gtktoolbar.c: 
3065         * gtk/gtkicontheme.c: 
3066         * gtk/gtkcalendar.c: 
3067         * demos/gtk-demo/ui_manager.c: 
3068         * demos/gtk-demo/appwindow.c: Remove trailing commas
3069         from enumerations.  (#148035)
3070
3071 2004-07-20  Federico Mena Quintero  <federico@ximian.com>
3072
3073         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Fix the
3074         documentation comment for the editing-started signal.
3075
3076         * gtk/gtkmarshalers.list: Added VOID:OBJECT,STRING for
3077         GtkCellRenderer::editing-started.
3078
3079 2004-07-20  Matthias Clasen  <mclasen@redhat.com>
3080
3081         * tests/testactions.c (main): 
3082         * tests/testmerge.c (main): Add some refcount debugging.
3083
3084         * gtk/gtkuimanager.c (update_node, free_node): Ref an sink
3085         all proxies, so that we can properly clean up floating proxies
3086         which the app didn't adopt.  (#147926, Tommi Komulainen)
3087
3088 2004-07-20  Matthias Clasen  <mclasen@redhat.com>
3089
3090         Allow custom initialization of cell editables.  (#147221)
3091         
3092         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): 
3093         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Add a 
3094         ::editing-started signal as a hook for setting up the 
3095         GtkCellEditable.
3096         (gtk_cell_renderer_start_editing): ...and emit it here.
3097
3098 Mon Jul 19 23:51:50 2004  Matthias Clasen  <maclas@gmx.de>
3099
3100         * gtk/gtktreeview.c (gtk_tree_view_button_press): Set drag_pos
3101         before grabbing the focus, since we may reenter into 
3102         gtk_tree_view_motion_resize_column() which requires drag_pos
3103         to be set.  (#147913, Guilherme Salgado, patch by John Finlay) 
3104
3105 Mon Jul 19 23:51:50 2004  Matthias Clasen  <maclas@gmx.de>
3106
3107         * gtk/gtktreeview.c (gtk_tree_view_enter_notify): Don't
3108         use uninitialized node pointer.  (#147911, Peter Zelezny)
3109
3110 Tue Jul 20 04:34:56 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3111
3112         * configure.in: Bump version number
3113
3114 Sun Jul 18 17:21:10 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3115
3116         * === Released 2.5.0 ===
3117
3118         * NEWS: updates
3119
3120         * tests/testcombo.c: Fix compilation
3121
3122 2004-07-19  Matthias Clasen  <mclasen@redhat.com>
3123
3124         * gtk/gtkentrycompletion.c (gtk_entry_completion_set_popup_completion):
3125         Fix doc comment.
3126         
3127 2004-07-19  Matthias Clasen  <mclasen@redhat.com>
3128
3129         Make GtkCellView public, since people seem to have uses for it, 
3130         it is clean API and we were just conservative in not making it 
3131         public initially. At the same time, get rid of GtkCellViewMenuItem,
3132         which doesn't have any function which can't be served by a
3133         GtkMenuItem with a GtkCellView child.  (#136637, Padraig O'Briain)
3134
3135         * gtk/gtk.h: Include gtkcellview.h
3136
3137         * gtk/Makefile.am (gtk_public_h_sources): 
3138
3139         * gtk/Makefile.am (gtk_private_h_sources): 
3140         (gtk_c_sources): Remove gtkcellviewmenuitem.[hc]
3141         * gtk/gtkcombobox.c: Replace all uses of GtkCellViewMenuItem by
3142         GtkMenuItem with a GtkCellView child.
3143
3144         * gtk/gtkcellviewmenuitem.[hc]: Removed.
3145
3146 2004-07-19  Matthias Clasen  <mclasen@redhat.com>
3147
3148         Support inline autocompletion in entries  (#135953)
3149         
3150         * gtk/gtkentryprivate.h: 
3151         * gtk/gtkentrycompletion.h: 
3152         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
3153         Add a new signal ::insert-prefix which can be used to override 
3154         the default inline-completion behaviour. Add two new boolean
3155         properties, :popup_completion and :inline_completion which
3156         determine how the possible completions should be presented.
3157         (gtk_entry_completion_insert_prefix): New function to request
3158         a prefix insertion. 
3159
3160         * gtk/gtkentry.c: Add the necessary glue for inline completion. 
3161
3162 Sun Jul 18 15:28:24 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3163
3164         * gtk/gtkdnd.c (gtk_drag_source_set, gtk_drag_dest_set): Create an
3165         empty target list if targets is NULL.
3166
3167         * configure.in: Add check for X11/extensions/sync.h. (#147416,
3168         Morten Welinder)
3169
3170 Sun Jul 18 01:24:31 2004  Matthias Clasen  <maclas@gmx.de>
3171
3172         * NEWS: Updates for 2.5.0
3173
3174 Sat Jul 17 23:11:04 2004  Matthias Clasen  <maclas@gmx.de>
3175
3176         * gtk/gtkiconview.h:
3177         * gtk/gtkiconview.c (gtk_icon_view_class_init): 
3178         * gtk/gtkiconview.c (gtk_icon_view_set_orientation): 
3179         * gtk/gtkiconview.c (gtk_icon_view_get_orientation): 
3180         * gtk/gtkiconview.c (gtk_icon_view_calculate_item_size): 
3181         * gtk/gtkiconview.c (gtk_icon_view_layout_single_row): 
3182         Add a new :orientation property to determine whether text
3183         is positioned below or beside icons.  (#147463)
3184
3185 Sat Jul 17 23:03:30 2004  Matthias Clasen  <maclas@gmx.de>
3186
3187         * gtk/gtkiconview.c (gtk_icon_view_paint_item): 
3188         * gtk/gtkiconview.c (gtk_icon_view_calculate_item_size): 
3189         * gtk/gtkiconview.c (gtk_icon_view_layout_single_row): Draw 
3190         focus indicator outside the selection, respect focus 
3191         line width.  (#147460) 
3192
3193 Sat Jul 17 01:17:33 2004  Matthias Clasen  <maclas@gmx.de>
3194
3195         * gdk/x11/gdkdnd-x11.c (xdnd_check_dest): Fix a warning
3196         message.
3197
3198 Sat Jul 17 00:48:27 2004  Matthias Clasen  <maclas@gmx.de>
3199
3200         Support text/plain selection target  (#55117, Owen Taylor)
3201         
3202         * gtk/gtkselection.h: 
3203         * gtk/gtkdnd.h: 
3204         * gtk/gtkselection.c (gtk_target_list_add_text_targets): 
3205         * gtk/gtkdnd.c (gtk_drag_dest_add_text_targets): 
3206         * gtk/gtkdnd.c (gtk_drag_source_add_text_targets): New
3207         functions to facilitate handling of text targets.
3208
3209         * gtk/gtkentry.c: 
3210         * gtk/gtktextview.c: Use the new text target handling 
3211         functions instead of hardwiring the list of supported
3212         text targets everywhere.
3213
3214         * gtk/gtkselection.c (gtk_selection_data_get_text): 
3215         (gtk_selection_data_set_text): 
3216         Support the targets text/plain, text/plain?charset=utf-8
3217         and text/plain?charset=<LOCALE-CHARSET> as outlined in
3218         #55117: 
3219         For text/plain send only ASCII, but accept 8-bit text 
3220         and treat it as ISO-8859-1 as specified by the Xdnd spec.
3221         Always send CRLF terminators. Accept either and convert
3222         into the native terminator for the platform.
3223         
3224 Fri Jul 16 23:20:34 2004  Matthias Clasen  <maclas@gmx.de>
3225
3226         Support themed window icons.  (#92346, Calum Benson)
3227         
3228         * gtk/gtkicontheme.c (gtk_icon_theme_get_icon_sizes): New 
3229         function to obtain information about the sizes in which an
3230         icon is available.  
3231
3232         * gtk/gtkwindow.h: 
3233         * gtk/gtkwindow.c (gtk_window_class_init): 
3234         (gtk_window_set_icon_name): 
3235         (gtk_window_get_icon_name): Add an "icon_name" property
3236         (gtk_window_set_default_icon_name): ...and a default icon name. 
3237         (icon_list_from_theme): 
3238         (update_themed_icon): New auxiliary functions to create a 
3239         list of all available sizes of a themed icon and update the
3240         window icon list from it.
3241
3242 2004-07-16  Matthias Clasen  <mclasen@redhat.com>
3243
3244         * gtk/gtkcombobox.c (gtk_combo_box_scroll_event): Make 
3245         scrolling work if no item is selected.
3246         (gtk_cell_editable_key_press): Don't eat space.
3247
3248         Add a combo box cell renderer (#139347, Lorenzo Gil Sanchez)
3249         
3250         * gtk/gtkcellrenderercombo.[hc]: New Files.
3251
3252         * gtk/gtk.h: 
3253         * gtk/Makefile.am (gtk_public_h_sources, gtk_c_sources): 
3254         Add the new files.
3255
3256         * gtk/gtkcombobox.[hc]: Implement GtkCellEditable, add a 
3257         :has-frame property for suppressing the frame around 
3258         the child and redo the size allocation logic to take 
3259         focus width into account.
3260
3261         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): 
3262         Acknowledge the GtkComboBox:has-frame property and make
3263         the entry fill its allocation vertically.
3264
3265         * gtk/gtkmarshalers.list: Add BOOLEAN:STRING.
3266                 
3267         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Queue
3268         a draw here to keep non-widget windows from leaving 
3269         shadows behind.
3270
3271 2004-07-16  Matthias Clasen  <mclasen@redhat.com>
3272
3273         * gtk/gtkcombobox.c (gtk_combo_box_forall): Don't iterate
3274         multiple times over some of the children. 
3275
3276 Thu Jul 15 22:19:40 2004  Matthias Clasen  <maclas@gmx.de>
3277
3278         Fix #60128, #58307, #144706:
3279         
3280         * gtk/gtkstyle.c (gtk_style_real_copy): Handle references
3281         to bg_pixmaps properly.
3282         (gtk_style_real_unrealize): Don't keep dangling references
3283         to the bg_pixmaps.  
3284         (gtk_style_attach): Split the loop into two loops, first 
3285         looking for a matching style, then for an empty one.
3286         (gtk_style_finalize): 
3287         (gtk_style_duplicate): Add comments explaining the handling
3288         of style->styles.
3289
3290 Thu Jul 15 20:31:28 2004  Matthias Clasen  <maclas@gmx.de>
3291
3292         * gtk/gtkspinbutton.c (start_spinning): Install the timeout
3293         before changing the value, so that a ::value_changed handler
3294         has a chance to remove it.  (#122427, Elke Meier)
3295
3296 Thu Jul 15 19:20:05 2004  Matthias Clasen  <maclas@gmx.de>
3297
3298         * gdk/x11/gdkgtk+/im-x11.c (_gdk_x11_initialize_locale): 
3299         * gtk/gtkcalendar.c (gtk_calendar_class_init): Use 'cannot'
3300         instead of 'can not' in messages.  (#144226, Morten Welinder)
3301
3302 2004-07-15  Matthias Clasen  <mclasen@redhat.com>
3303
3304         * gtk/gtktreeview.c (gtk_tree_view_class_init): 
3305         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 
3306         Correct the declared default values of several properties
3307         to be in sync with the actual initial values.
3308
3309         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): 
3310         Make spacing a property, correct the declared default values 
3311         of several properties to be in sync with the actual initial 
3312         values.  (#147654, Matthias Clasen)
3313
3314         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Don't reparent
3315         back to menu->toplevel if it is already gone because we're
3316         shutting down.  (#147656, John Cupitt)
3317
3318 2004-07-14  Federico Mena Quintero  <federico@ximian.com>
3319
3320         Fix #126295:
3321
3322         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw a focus
3323         indicator along the edge of the bin_window when the tree is empty.
3324         (grab_focus_and_unset_draw_keyfocus): New helper function.
3325         (gtk_tree_view_button_press): Remove a bit of superfluous code.
3326         Use the helper function to save on duplicated code.
3327         (gtk_tree_view_button_press): Grab the focus if the tree is empty.
3328         (gtk_tree_view_focus): Allow focusing into an empty tree.
3329
3330 2004-07-14  Matthias Clasen  <mclasen@redhat.com>
3331
3332         * gtk/gtkaboutdialog.c (add_credits_page): Don't use
3333         gcc extensions for the ternary ?: operator.  (#147590,
3334         Damien Carbery)
3335
3336 2004-07-14  Federico Mena Quintero  <federico@ximian.com>
3337
3338         Fix #144405, patch by Padraig O'Briain <padraig.obriain@sun.com>:
3339
3340         * gtk/gtkfilechooserdefault.c (shortcuts_list_create): Set the
3341         accessible object name for the tree view.
3342         (create_file_list): Likewise.
3343
3344 Tue Jul 13 21:53:08 2004  Matthias Clasen  <maclas@gmx.de>
3345
3346         * gtk/gtkicontheme.c (free_unthemed_icon): Don't leak
3347         no_svg_filename.  (#147399, Kjartan Maraas)
3348
3349 2004-07-13  Matthias Clasen  <mclasen@redhat.com>
3350
3351         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_get_neighbor_sizes): 
3352         Make this work in RTL context.
3353
3354 2004-07-13  Federico Mena Quintero  <federico@ximian.com>
3355
3356         * gtk/gtkfilechooserdefault.c (shortcuts_activate_volume): Set a
3357         busy cursor while mounting the volume.  Also, ref the chooser
3358         while mounting, as we may re-enter.  Fixes #139376.
3359
3360 2004-07-13  Matthias Clasen  <mclasen@redhat.com>
3361
3362         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): 
3363         Prepare to handle composite implementations of
3364         GtkCellEditable, but recursively poking at
3365         allocation->y (hack stolen from GtkCList).
3366         (check_expander_max): Tweak the warning.
3367
3368         * gtk/gtkmain.h: Add gtk_parse_args(), its a public 
3369         function.  (#147476, Owen Taylor)
3370
3371         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't
3372         crash if unrealized.
3373
3374 Tue Jul 13 01:50:06 2004  Matthias Clasen  <maclas@gmx.de>
3375
3376         * gtk/gtkaboutdialog.c (display_credits_dialog): Don't
3377         display untranslated translator credits. 
3378
3379 Tue Jul 13 01:15:05 2004  Matthias Clasen  <maclas@gmx.de>
3380
3381         * gtk/gtkiconview.c: Some documentation updates.
3382
3383 Tue Jul 13 00:40:29 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3384
3385         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Do an
3386         empty begin_paint_region()/end_paint() for windows without
3387         EXPOSURE_MASK.
3388
3389         * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_unset_bg,
3390         _gdk_x11_window_tmp_reset_bg): Remove checks for EXPOSURE_MASK.
3391
3392 2004-07-12  Matthias Clasen  <mclasen@redhat.com>
3393
3394         * demos/gtk-demo/appwindow.c: Use a GtkAboutDialog.
3395
3396         * gtk/gtkaboutdialog.h: 
3397         * gtk/gtkaboutdialog.c: New widget: GtkAboutDialog.
3398
3399         * gtk/Makefile.am (gtk_public_h_sources, gtk_c_sources): 
3400         * gtk/gtk.h: Add GtkAboutDialog. (#109435, Paolo Borelli,
3401         patch by Matthias Clasen)
3402
3403         * gtk/gtkrc.c (_gtk_rc_init): Apply the gtk-default-menu-item-style 
3404         to cell view menu items as well.  (#147405, John Cupitt)
3405
3406         * gtk/gtkentrycompletion.c: Warning fixes.  (#147420,
3407         Morten Welinder)
3408
3409         * gtk/gtkcombobox.c (gtk_combo_box_destroy): Pop down 
3410         first. (#147399, John Cupitt)
3411
3412 Mon Jul 12 01:56:26 2004  Matthias Clasen  <maclas@gmx.de>
3413
3414         * gdk/x11/gdkwindow-x11.c (gdk_toplevel_x11_free_contents): 
3415         Include the update_counter check in the HAVE_XSYNC condition,
3416         since update_counter isn't present in the !HAVE_XSYNC case.
3417
3418 Mon Jul 12 00:52:04 2004  Matthias Clasen  <maclas@gmx.de>
3419
3420         * gtk/stock-icons/Makefile.am: 
3421         * gtk/stock-icons/stock_about_{16,24}.png: 
3422         * gtk/stock-icons/stock_connect_{16,24}.png: 
3423         * gtk/stock-icons/stock_disconnect_{16,24}.png: 
3424         * gtk/stock-icons/stock_edit_{16,24}.png: 
3425         * gtk/stock-icons/stock_media_forward_{16,24}.png: 
3426         * gtk/stock-icons/stock_media_next_{16,24}.png: 
3427         * gtk/stock-icons/stock_media_pause_{16,24}.png: 
3428         * gtk/stock-icons/stock_media_play_{16,24}.png: 
3429         * gtk/stock-icons/stock_media_previous_{16,24}.png: 
3430         * gtk/stock-icons/stock_media_record_{16,24}.png: 
3431         * gtk/stock-icons/stock_media_rewind_{16,24}.png: 
3432         * gtk/stock-icons/stock_media_stop_{16,24}.png: 
3433         * gtk/gtkstock.h (GTK_STOCK_ABOUT): 
3434         * gtk/gtkstock.h (GTK_STOCK_CONNECT): 
3435         * gtk/gtkstock.h (GTK_STOCK_DISCONNECT): 
3436         * gtk/gtkstock.h (GTK_STOCK_EDIT): 
3437         * gtk/gtkstock.h (GTK_STOCK_MEDIA_FORWARD): 
3438         * gtk/gtkstock.h (GTK_STOCK_MEDIA_NEXT): 
3439         * gtk/gtkstock.h (GTK_STOCK_MEDIA_PAUSE): 
3440         * gtk/gtkstock.h (GTK_STOCK_MEDIA_PLAY): 
3441         * gtk/gtkstock.h (GTK_STOCK_MEDIA_PREVIOUS): 
3442         * gtk/gtkstock.h (GTK_STOCK_MEDIA_RECORD): 
3443         * gtk/gtkstock.h (GTK_STOCK_MEDIA_REWIND): 
3444         * gtk/gtkstock.h (GTK_STOCK_MEDIA_STOP): 
3445         * gtk/gtkiconfactory.c (get_default_icons): 
3446         * gtk/gtkstock.c (builtin_items): Add a number of new stock 
3447         items.  (#102530, #68015, #109811, Jordi Mallach, Benjamin Otte,
3448         Michael Opdenacker)
3449
3450 Sun Jul 11 15:24:03 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3451
3452         Bug 143330, support update counter spec.
3453         
3454         * configure.in: Add check for the Sync extension
3455
3456         * gdk/gdkwindow.h: gdk_window_enable_synchronized_configure() and
3457         gdk_window_configure_finished()
3458
3459         * gtk/gtkwindow.c (gtk_window_move_resize): Call gdk_window_finish_configure().
3460         * gtk/gtkwindow.c (gtk_window_realize): Automatically enable
3461         synchronized configures.
3462
3463         * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store current
3464         and pending counter values. 
3465
3466         * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): New function.
3467         * gdk/x11/gdkwindow-x11.c
3468         (gdk_window_enable_synchronized_configure): New function.
3469         * gdk/x11/gdkwindow-x11.c (gdk_toplevel_x11_free_contents):
3470         Delete update counter.
3471         * gdk/x11/gdkwindow-x11.c (set_wm_protocols): Advertise
3472         _NET_WM_SYNC_REQUEST when Sync is available
3473
3474         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Handle
3475         _NET_WM_SYNC_REQUEST messages
3476         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Save counter
3477         value for use by gdk_window_configure_finished() when receiving
3478         ConfigureNotifies.
3479
3480         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add use_sync flag
3481         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Check if the XSync
3482         extension is available
3483         * gdk/x11/gdkdisplay-x11.c: Add _NET_WM_SYNC_REQUEST and
3484         _NET_WM_SYNC_REQUEST_COUNTER to list of supported atoms.
3485
3486         * gdk/linux-fb/gdkwindow-fb.c, gdk/win32/gdkwindow-win32.c: Add
3487         stubs for enable_synchronized_configure() and configure_finished()
3488
3489 Sat Jul 10 23:35:13 2004  Matthias Clasen  <maclas@gmx.de>
3490
3491         * gtk/gtkentry.c (paste_received): Make middle-button pasting
3492         work as expected inside the entry.  (#116789, Scott Bronson)
3493
3494 Sat Jul 10 22:13:53 2004  Matthias Clasen  <maclas@gmx.de>
3495
3496         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): Update 
3497         clipboards.  (#142805, Mikael Hallendal)
3498
3499 Sun Jul 11 01:38:48 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3500
3501         * gtk/gtkpaned.c (gtk_paned_expose): Remove clip-region computing
3502         code. Just use &paned->handle_pos.
3503
3504 Sun Jul 11 01:12:50 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3505
3506         Bug 144271
3507         
3508         * gtk/gtknotebook.c (gtk_notebook_size_allocate): Remove an
3509         unnecessary redraw..
3510
3511         * gtk/gtknotebook.c (gtk_notebook_page_allocate): Remove some
3512         incorrect redraws.
3513
3514 Sat Jul 10 01:33:25 2004  Matthias Clasen  <maclas@gmx.de>
3515
3516         * docs/RELEASE-HOWTO: Updates.
3517
3518 Sat Jul 10 01:55:29 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3519
3520         * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_{re|un}set_bg):
3521         Insert checks for root window. The root window is never mapped.
3522
3523 Sat Jul 10 01:06:05 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3524
3525         * gdk/x11/gdkwindow-x11.c (post_unmap): Fix a warning
3526         * gdk/x11/gdkwindow-x11.c (show_window_internal): Actually unset
3527         bg.
3528
3529 Sat Jul 10 00:37:45 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3530
3531         Bug 113310.
3532         
3533         * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_{un|re}set_bg):
3534         New functions that can do a recursive unset/reset bg.
3535
3536         * gdk/x11/gdkgeometry-x11.c: Remove
3537         gdk_window_tmp_{un|re}set_bg().
3538
3539         * gdk/x11/gdkwindow-x11.c (pre_unmap, post_unmap): New functions
3540         called before and after unmapping a window. They unset the
3541         background of all other windows to prevent flicker from the X
3542         server repainting the background. post_unmap() also invalidates
3543         the parent of the unmapped window to draw it without roundtrips.
3544
3545         * gdk/x11/gdkwindow-x11.c (show_window_internal): Unset
3546         background of newly mapped windows and all desendants to prevent
3547         flicker.
3548         
3549 Fri Jul  9 15:33:55 2004  Manish Singh  <yosh@gimp.org>
3550
3551         * gdk/gdkevents.c: have a dummy case GDK_OWNER_CHANGE in switch
3552         statements to avoid gcc warnings about not all enum values handled.
3553
3554         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): ignore should live in 
3555         #ifdef HAVE_XFIXES.
3556
3557 Fri Jul  9 23:26:09 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3558
3559         (Bug 113340)
3560
3561         * gdk/x11/gdkwindow-x11.h (struct _GdkWindowImplX11): Add an
3562         "override_redirect" bit.
3563
3564         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set it here.
3565         
3566         * gdk/x11/gdkwindow-x11.c (gdk_window_move, gdk_window_resize,
3567         gdk_window_move_resize): 
3568         Update the local size/position cache
3569         immediately for override redirect windows.
3570
3571         * gdk/x11/gdkwindow-x11.c (show_window_internal): Invalidate
3572         newly mapped child and override redirect windows.
3573
3574 2004-07-09  Federico Mena Quintero  <federico@ximian.com>
3575
3576         Fixes #137031:
3577
3578         * gtk/gtkfilesystemunix.c (get_fallback_icon): New helper
3579         function, fetches a stock icon as a fallback.
3580         (gtk_file_system_unix_volume_render_icon): Fall back to a stock
3581         icon.
3582         (gtk_file_system_unix_render_icon): Fall back to a stock icon.
3583         Use helper functions rather than being a mega-function.
3584         (get_icon_name_for_directory): Renamed from
3585         get_icon_for_directory().
3586         (get_icon_type_from_path): New helper function; code pulled out
3587         from gtk_file_system_unix_render_icon().
3588         (get_special_icon): Likewise.
3589         (get_icon_for_mime_type): Likewise.
3590
3591 2004-07-09  Federico Mena Quintero  <federico@ximian.com>
3592
3593         * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
3594         temp_event.
3595
3596 2004-07-09  Matthias Clasen  <mclasen@redhat.com>
3597
3598         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the 
3599         requisition of the widget instead of relying on the style
3600         drawing function to supply the size of the drawable.  (#146531) 
3601
3602 2004-07-09  Matthias Clasen  <mclasen@redhat.com>
3603
3604         Make GtkEntry work harder to protect passwords:  (#143955,
3605         Morten Welinder)
3606         
3607         * gtk/gtkentry.c (gtk_entry_destroy): Add a destroy handler
3608         to clear the password even if the widget is leaked.
3609
3610         * gtk/gtkentry.c (gtk_entry_real_delete_text): 
3611         * gtk/gtkentry.c (gtk_entry_finalize): Zero out the memory
3612         before freeing it.
3613         
3614         * gtk/gtkentry.c (gtk_entry_real_insert_text): Zero and free
3615         the old memory instead of just reallocating it.
3616
3617         * gtk/gtkentry.c (gtk_entry_create_layout): Don't leak text
3618         direction information for passwords.
3619
3620 2004-07-09  Matthias Clasen  <mclasen@redhat.com>
3621
3622         * gtk/gtkstyle.c: Fix some cases where style functions were 
3623         not handling widget == NULL properly.  (#146282)
3624
3625 Thu Jul  8 22:38:58 2004  Matthias Clasen  <maclas@gmx.de>
3626
3627         * gtk/gtktreeview.c: Improve the EXPANDER_MAX warning.
3628
3629 2004-07-08  Federico Mena Quintero  <federico@ximian.com>
3630
3631         Fix #139290:
3632
3633         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Add a
3634         GError argument.  Do check for errors when getting the
3635         GtkFileFolder:  get the folder and read the children before
3636         actually creating the model.  Removed obsolete code that handled
3637         roots-changed on the file system.
3638         (file_model_node_get_info): Assert that we don't reach the old
3639         case to display file system roots.
3640         (roots_changed_callback): Removed.
3641
3642         * gtk/gtkfilechooserdefault.c (set_list_model): Add a GError
3643         argument, and a boolean return value.  Return an error if we
3644         cannot create the file system model.  On error, set a NULL model
3645         on the tree.
3646         (gtk_file_chooser_default_set_current_folder): Use the error value
3647         from set_list_model().
3648         (gtk_file_chooser_default_set_property): Set the show_hidden
3649         property only if the browse_files_model exists.
3650         (gtk_file_chooser_default_unselect_path): Only operate if the
3651         browse_files_model exists.
3652         (check_preview_change): Check whether we have the sort_model.
3653         (change_folder_and_display_error): Copy the path we get passed
3654         before using it.  There's a comment in there that explains why we
3655         need to copy it; basically, if the passed path belongs to the
3656         model, the model may go away in the middle of this function and
3657         we'll be left with a dangling pointer.
3658         (install_list_model_filter): Assert that the model is not NULL.
3659         (set_current_filter): Check whether the model exists.
3660
3661         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Don't
3662         g_return_if_fail if the model is NULL.
3663         (gtk_tree_selection_get_selected_rows): Likewise.
3664         (gtk_tree_selection_count_selected_rows): Likewise.
3665         (gtk_tree_selection_selected_foreach): Likewise.
3666         (gtk_tree_selection_path_is_selected): Likewise; rather just
3667         return FALSE.
3668         (gtk_tree_selection_select_all): Likewise.
3669         (gtk_tree_selection_unselect_all): Likewise.
3670         (gtk_tree_selection_select_range): Do g_return_if_fail() if the
3671         model is NULL.
3672         (gtk_tree_selection_unselect_range): Likewise.
3673
3674         * gtk/gtkfilesystemunix.c (fill_in_names): Return immediately if
3675         g_dir_open() fails:  there is no need to set the error ourselves,
3676         as g_dir_open() already does it.
3677
3678 2004-07-08  Matthias Clasen  <mclasen@redhat.com>
3679
3680         * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Allow
3681         to restore the default search function.  (#145365, John Finlay) 
3682
3683         * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Don't leak 
3684         references to the drag context.  (#144324, Alex Larsson)
3685
3686 Thu Jul  8 00:31:34 2004  Matthias Clasen  <maclas@gmx.de>
3687
3688         * gtk/gtktreeview.c (gtk_tree_view_set_model): Stop editing
3689         when a new model is set.  (#145566, Dmitry M. Shatrov)
3690
3691 Wed Jul  7 23:44:32 2004  Matthias Clasen  <maclas@gmx.de>
3692
3693         * gtk/gtkimage.c (gtk_image_expose): Make sure that subpixbufs
3694         are properly aligned for gdk_pixbuf_saturate_and_pixelate(),
3695         in order to avoid rendering artifacts from misaligned 
3696         pixelation patterns.  (#145585, Felipe Heidrich, Billy Biggs)
3697
3698 2004-07-07  Matthias Clasen  <mclasen@redhat.com>
3699
3700         * gtk/gtktreeview.c: 
3701         * gtk/gtktreeview.h: Small documentation fixes.
3702
3703 2004-07-07  Matthias Clasen  <mclasen@redhat.com>
3704
3705         Support separators in combo boxes and more generally in tree 
3706         views  (#135873):
3707         
3708         * gtk/gtkcombobox.h: 
3709         * gtk/gtkcombobox.c (gtk_combo_box_get_row_separator_column):
3710         * gtk/gtkcombobox.c (gtk_combo_box_set_row_separator_column):
3711         Add a ::row-separator-column property with getter and setter, 
3712         which can indicate a boolean model column to determine which
3713         rows are separators. 
3714
3715         * gtk/gtkcombobox.c: Display separator rows as separator menu 
3716         items in menu mode, and by using the new treeview separator 
3717         functionality in list mode.
3718
3719         * gtk/gtktreeview.h: 
3720         * gtk/gtktreeprivate.h:
3721         * gtk/gtktreeview.c (gtk_tree_view_get_row_separator_func): 
3722         * gtk/gtktreeview.c (gtk_tree_view_set_row_separator_func): 
3723         Add a callback to determine whether a row is a separator.
3724         
3725         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): 
3726         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): 
3727         * gtk/gtktreeview.c (validate_row): Use the new callback
3728         to determine whether a row is a separator, and draw it
3729         as a separator then. Since separators should take up less
3730         vertical space than regular rows, this requires removing
3731         the redundant MAX(...,expander_size) calls which appear in
3732         many places. Instead, the MAX() is now only done in 
3733         validate_row(), and only if the row is not a separator.
3734         To catch possible side effects of this intrusive change,
3735         I have left EXPANDER_MAX() calls in place of the MAX() calls
3736         which will emit a warning if something breaks. They should
3737         be removed before 2.6.
3738
3739         * gtk/gtktreeselection.c (row_is_selectable): Don't let 
3740         separator rows be selected.
3741         
3742         * tests/testcombo.c (create_blaat): Add a separator column.
3743
3744 Tue Jul  6 22:58:00 2004  Matthias Clasen  <maclas@gmx.de>
3745
3746         * gdk/x11/gdkwindow-x11.c (gdk_x11_window_set_user_time): Fix
3747         a 64bit alignment issue.  (#144302, Sunil)
3748
3749 2004-07-07  Tor Lillqvist  <tml@iki.fi>
3750
3751         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text)
3752         * gdk/win32/gdkfont-win32.c (gdk_text_extents)
3753         * gdk/win32/gdkproperty-win32.c (find_common_locale,
3754         gdk_property_change)
3755         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Use
3756         g_utf8_to_utf16() instead of the removed _gdk_utf8_to_ucs2() (see
3757         below).
3758
3759         * gdk/win32/gdkglobals-win32.c
3760         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init)
3761         * gdk/win3/gdkprivate-win32.h: Add a variable for the TARGETS
3762         atom. Initialize it. Declare it. Drop the variable for the
3763         COMPOUND_TEXT atom.
3764
3765         * gdk/win32/gdkim-win32.c (gdk_wcstombs): Don't return UTF-8. This
3766         function is supposed to return the string in the locale's charset
3767         and encoding. Use g_convert().
3768
3769         (gdk_mbstowcs): Similarily, don't take an UTF-8 string, but a
3770         string in the locale's charset. Use g_convert().
3771
3772         (_gdk_ucs2_to_utf8, _gdk_utf8_to_wcs, _gdk_utf8_to_ucs2):
3773         Delete. The UCS-2 functions didn't handle surrogates anyway. Use
3774         GLib's UTF-16 functions instead. Windows uses UTF-16.
3775
3776         * gdk/win32/gdkprivate-win32.h: Remove declarations of the deleted
3777         functions mentioned above.
3778
3779         * gdk/win32/gdkproperty-win32.c (gdk_property_change): Use CF_TEXT
3780         also if the string is of type STRING, i.e. ISO-8859-1, and the
3781         current codepage is 1252, and contains no C1 chars. Accept
3782         also UTF8_STRING.
3783
3784         * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
3785         Mark as static. When storing STRING data, convert to
3786         Latin-1. (#140537)
3787         (gdk_selection_owner_set_for_display): Now that STRING is always
3788         ISO-8859-1, use UTF8_STRING when sending the selection request
3789         to ourselves.
3790
3791         (gdk_selection_convert): Handle also UTF8_STRING. (#140537, John
3792         Ehresman)
3793
3794         (gdk_text_property_to_text_list_for_display): Make work more like
3795         X11 version. Do obey the encoding parameter.
3796
3797         (gdk_string_to_compound_text_for_display,
3798         gdk_utf8_to_compound_text_for_display): Don't even pretend
3799         supporting COMPOUND_TEXT.
3800
3801         (gdk_utf8_to_string_target): Convert to ISO-8859-1, like on X11.
3802
3803         (sanitize_utf8): Zero-terminate string.
3804
3805 2004-07-06  Matthias Clasen  <mclasen@redhat.com>
3806
3807         * gtk/stock-icons/Makefile.am: Add stock_file_16.png, 
3808         stock_file_24.png, stock_directory_16.png and stock_directory_24.png.
3809
3810         * gtk/gtkstock.h (GTK_STOCK_FILE, GTK_STOCK_DIRECTORY): 
3811         * gtk/gtkiconfactory.c (get_default_icons): New stock icons as 
3812         fallbacks for gtkfilechooser. Currently these are the same images
3813         as the "new" and "open" items...
3814
3815 Tue Jul  6 10:00:22 2004  Jonathan Blandford  <jrb@redhat.com>
3816
3817         Fix for #136496, Pawel Salek:
3818         
3819         * gtk/gtktreeview.c (gtk_tree_view_row_changed): Queue a redraw on
3820         a node when it changes in fixed_height mode.
3821
3822         (gtk_tree_view_node_queue_redraw): new function to queue a redraw
3823         on a node.
3824
3825 2004-07-06  Matthias Clasen  <mclasen@redhat.com>
3826
3827         * gtk/gtkmenu.c (gtk_menu_position): Make sure 
3828         private->monitor_num is a valid monitor number before 
3829         using it.  (#139187, Michael Natterer)
3830
3831 Tue Jul  6 02:00:28 2004  Matthias Clasen  <maclas@gmx.de>
3832
3833         * gtk/gtkfilechooserdefault.c (popup_position_func): 
3834         * gtk/gtkentry.c (popup_position_func): 
3835         * gtk/gtktextview.c (popup_position_func): Improve positioning
3836         of keyboard-activated menus with Xinerama.
3837
3838 Tue Jul  6 00:29:03 2004  Matthias Clasen  <maclas@gmx.de>
3839
3840         * gtk/gtkuimanager.c (do_updates): 
3841         (do_updates_idle): Only call GDK_THREADS_ENTER() / _LEAVE() 
3842         when called from an idle handler.  (#145429, Jan-Marek Glogowski)
3843
3844 Mon Jul  5 23:47:38 2004  Matthias Clasen  <maclas@gmx.de>
3845
3846         * gtk/gtkfilechooserutils.c (delegate_notify): Use
3847         the less efficient g_object_interface_find_property () instead
3848         of the param_id range check, since the GParamSpecs we're 
3849         dealing with are the overridden onces on the interface, whose
3850         param_id is always zero.  (#145312, Alex Roitman, fix proposed
3851         by Owen Taylor)
3852
3853 2004-07-05  Lorenzo Gil Sanchez  <lgs@sicem.biz>
3854
3855         * gtk/gtklayout.c (gtk_layout_add): added a default method for the add
3856         virtual method of GtkContainer.
3857         (gtk_layout_class_init): assign gtk_layout_add to the 'add' virtual
3858         method slot of the container class.
3859
3860 2004-07-05  Anders Carlsson  <andersca@gnome.org>
3861
3862         * gtk/gtkiconview.c: (gtk_icon_view_set_markup_column):
3863         * gtk/gtkiconview.h:
3864         Use gint, not int in gtk_icon_view_set_markup_column,
3865         (Paolo Maggi)
3866         
3867 2004-07-05  Anders Carlsson  <andersca@gnome.org>
3868
3869         * gtk/gtkiconview.c: (gtk_icon_view_class_init),
3870         (gtk_icon_view_real_select_cursor_item),
3871         (gtk_icon_view_real_activate_cursor_item):
3872         * gtk/gtkiconview.h:
3873         Add an "activate_cursor_item" action signal
3874         and bind it to the return key.
3875         
3876 2004-07-04  Anders Carlsson  <andersca@gnome.org>
3877
3878         * demos/gtk-demo/Makefile.am:
3879         * demos/gtk-demo/gnome-fs-directory.png:
3880         * demos/gtk-demo/gnome-fs-regular.png:
3881         * demos/gtk-demo/iconview.c: (load_pixbufs), (fill_store),
3882         (sort_func), (create_store), (item_activated), (up_clicked),
3883         (home_clicked), (do_iconview):
3884         Add a simple file browser based on the icon view.
3885         
3886         * gtk/gtk.h:
3887         Add gtk/gtkiconview.h
3888         
3889         * gtk/gtkiconview.c: (gtk_icon_view_layout),
3890         (gtk_icon_view_item_new), (gtk_icon_view_item_activated):
3891         Fix a few bugs discovered while writing the demo.
3892         
3893 2004-07-04  Anders Carlsson  <andersca@gnome.org>
3894
3895         * gtk/Makefile.am:
3896         * gtk/gtkiconview.c
3897         * gtk/gtkiconview.h:
3898         Add GtkIconView to the build, remove debugging output.
3899         
3900 Sun Jul  4 01:29:35 2004  Matthias Clasen  <maclas@gmx.de>
3901
3902         * gtk/gtkcalendar.c (gtk_calendar_drag_data_get): 
3903         (gtk_calendar_drag_data_received): Fix off-by-one error.  
3904         GDate month is one-based and GtkCalendar month is zero-based.  
3905         (#145134, William Jon McCann)
3906
3907 Sun Jul  4 01:11:07 2004  Matthias Clasen  <maclas@gmx.de>
3908
3909         * gtk/gtktreestore.c (gtk_tree_store_move): Don't crash if
3910         somebody tries to move a node after itself in a list of 
3911         length 1.  (#145291, Sampo Nurmentaus)
3912
3913 Sat Jul  3 23:43:23 2004  Matthias Clasen  <maclas@gmx.de>
3914
3915         * docs/faq/gtk-faq.sgml: 
3916         * gtk/gtkwindow.c: Fix links to www.freedesktop.org.  (#145210,
3917         Billy Biggs)
3918
3919 Sat Jul  3 02:09:51 2004  Matthias Clasen  <maclas@gmx.de>
3920
3921         * gtk/gtksocket.c (gtk_socket_end_embedding): Reset current_width
3922         and current_height to 0 when ending the embedding.  (#143675,
3923         Nickolay V. Shmyrev)
3924
3925 Sat Jul  3 01:48:19 2004  Matthias Clasen  <maclas@gmx.de>
3926
3927         * gtk/gtkentry.c (gtk_entry_move_visually): Let the cursor move
3928         to the right end of the entry text, even if it ends in combining
3929         marks.  (#141728, Theppitak Karoonboonyanan)
3930
3931 Fri Jul  2 23:34:33 2004  Matthias Clasen  <maclas@gmx.de>
3932
3933         * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Unset the displayed
3934         row when unsetting the model.  (#138560, Christian Persch)
3935
3936 Fri Jul  2 23:01:07 2004  Matthias Clasen  <maclas@gmx.de>
3937
3938         * gtk/gtkcombobox.c (update_menu_sensitivity): Don't crash if there
3939         are no items.
3940
3941 Fri Jul  2 22:41:27 2004  Matthias Clasen  <maclas@gmx.de>
3942
3943         * gtk/gtkimage.c (gtk_image_expose): Properly align mask and
3944         pixbuf if a subarea is exposed.  (#135423, fix by John Ehresman)
3945
3946 Fri Jul  2 21:40:21 2004  Matthias Clasen  <maclas@gmx.de>
3947
3948         * gtk/gtknotebook.c (gtk_notebook_realize): Add scroll events
3949         to the event mask, set a scroll_event handler.
3950         * gtk/gtknotebook.c (gtk_notebook_scroll): Handle scroll events
3951         by switching tabs.  (#145244, Gabriel de Perthuis)
3952
3953 2004-07-02  Anders Carlsson  <andersca@gnome.org>
3954
3955         * gtk/gtktreeview.c (gtk_tree_view_set_model): 
3956         Make sure we check for a NULL model first.
3957
3958 2004-07-01  J. Ali Harlow  <ali@juiblex.co.uk>
3959
3960         * gdk/win32/gdkinput-win32.c (_gdk_input_ungrab_pointer): Fix
3961         win32 build problem w/o wintab.  Fixed #145242
3962
3963 2004-06-30  Anders Carlsson  <andersca@gnome.org>
3964
3965         * gtk/gtktreeview.c (gtk_tree_view_set_model): Use
3966         g_return_if_fail to make sure that the model is a GtkTreeModel.
3967
3968 Sat Jun 26 17:41:10 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3969
3970         * gtk/gtk[hv]separator.c (gtk_[hv]separator_expose): Draw line with the
3971         current state, not GTK_STATE_NORMAL
3972
3973         * gtk/gtkframe.c (gtk_frame_paint): Fix a rounding error
3974
3975 Sat Jun 26 15:07:25 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3976
3977         * gtk/gtkstyle.c, gtk/gtkrc.c: small color tweak. (#141173)
3978
3979 Sat Jun 26 01:15:40 2004  Matthias Clasen  <maclas@gmx.de>
3980
3981         * gdk/x11/gdkwindow-x11.c (set_initial_hints): Handle
3982         _NET_WM_STATE_ABOVE and _NET_WM_STATE_BELOW.  (#144851, 
3983         Billy Biggs)
3984
3985 Sat Jun 26 01:04:31 2004  Matthias Clasen  <maclas@gmx.de>
3986
3987         * gtk/gtkiconfactory.c (clear_cache): Prevent unwanted 
3988         recursion by resetting icon_set->cache before freeing
3989         the cache.  (#144947, Tim Janik)
3990
3991 Sat Jun 26 00:40:02 2004  Matthias Clasen  <maclas@gmx.de>
3992
3993         * gtk/gtkiconfactory.c (render_icon_name_pixbuf): 
3994         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): 
3995         * gtk/gtkstyle.c (gtk_default_render_icon): Accept a NULL 
3996         style.
3997
3998 Sat Jun 26 00:04:36 2004  Matthias Clasen  <maclas@gmx.de>
3999
4000         * gtk/gtkentrycompletion.c (gtk_entry_completion_set_model): 
4001         * gtk/gtkcombobox.c (gtk_combo_box_set_model): Reflect the 
4002         last change in the docs.
4003
4004 Fri Jun 25 23:35:42 2004  Matthias Clasen  <maclas@gmx.de>
4005
4006         * gtk/gtkentrycompletion.c (gtk_entry_completion_set_model):
4007         * gtk/gtkcombobox.c (gtk_combo_box_set_model): Allow passing
4008         NULL to unset the model.  (#137211, patch by  Mariano SuĂ¡rez-Alvarez)
4009
4010 Fri Jun 25 23:33:05 2004  Matthias Clasen  <maclas@gmx.de>
4011
4012         * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Fix the
4013         placement policy for GtkComboBoxEntry to be: if it fits below, 
4014         place below, if it fits above place above, else place in the 
4015         larger space and scroll so that the scroll arrow appear at the
4016         far end.  (#144362, David A. Knight)
4017
4018 Fri Jun 25 22:49:58 2004  Matthias Clasen  <maclas@gmx.de>
4019
4020         * gtk/gtktreestore.c (gtk_tree_store_move): Avoid uninitialized
4021         use of &parent_iter. (#145007, John Finlay)
4022
4023 2004-06-25  Bastien Nocera  <hadess@hadess.net>
4024
4025         reviewed by: Matthias Clasen  <maclas@gmx.de>
4026
4027         * gdk/x11/gdkkeys-x11.c: (get_symbol), (update_keymaps),
4028         (gdk_keymap_lookup_key), (translate_keysym): fix keys parsing when
4029         the number of keysyms per keycode is odd. Fixes #144808.
4030
4031 2004-06-25  Matthias Clasen  <mclasen@redhat.com>
4032
4033         * gtk/gtkfontbutton.c (gtk_font_button_update_font_info): Avoid
4034         a crash if the font doesn't exist.  (#144967, Yevgen Muntyan) 
4035
4036 Fri Jun 25 00:32:15 2004  Matthias Clasen  <maclas@gmx.de>
4037
4038         * gtk/gtktreestore.c (gtk_tree_store_swap): Commit the change
4039         which was mentioned below.
4040
4041 Thu Jun 24 23:35:09 2004  Matthias Clasen  <maclas@gmx.de>
4042
4043         * gtk/gtknotebook.c (gtk_notebook_class_init): Fix a typo,
4044         string change.  (#139503, Baris Cicek)
4045
4046 2004-06-22  Federico Mena Quintero  <federico@ximian.com>
4047
4048         * gtk/gtkfilechooserdefault.c (location_popup_handler): Use a Save
4049         or an Open stock button for the C-l dialog depending on the action
4050         in which the file chooser operates.  Fixes #141753.
4051
4052 2004-06-22  Federico Mena Quintero  <federico@ximian.com>
4053
4054         Fixes the GTK+ part of #142308:
4055
4056         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_filename_to_path):
4057         Use filename_to_path().
4058         (gtk_file_system_unix_uri_to_path): Likewise.
4059         (filename_to_path): Use remove_trailing_slash().
4060
4061 2004-06-22  Matthias Clasen  <mclasen@redhat.com>
4062
4063         * gtk/gtktextview.c (gtk_text_view_class_init): Improve docs
4064         for the ::move_cursor signal.
4065
4066         * gtk/gtkaccelmap.c (_gtk_accel_path_is_valid): Accept
4067         "<WINDOWTYPE>" as a valid accel path.  (#144427, Philip 
4068         Kendall)        
4069
4070         * gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure 
4071         this gets defined for all backends, so linux-fb has a 
4072         chance of compiling.
4073
4074         * gdk/x11/gdkgc-x11.c: 
4075         * gdk/gdkgc.c: Move function docs inline, add hints about 
4076         obtaining rgb colors from gcs.  (#144688, Steve Chaplin)
4077
4078         * gtk/gtktreestore.c (gtk_tree_store_swap): Make this work
4079         for children of the root.  (#139785, Jean-François Wauthy,
4080         patch by John Finlay)
4081
4082         * gtk/gtkicontheme.h (GTK_ICON_THEME_GET_CLASS): Typo
4083         fix.  (#144750, Jeff Franks) 
4084
4085 2004-06-21  Michael Natterer  <mitch@gimp.org>
4086         Merge from stable:
4087
4088         * gdk/x11/gdkdrawable-x11.[ch]: made convert_format() utility
4089         function public as _gdk_x11_convert_to_format().
4090
4091         * gdk/x11/gdkcursor-x11.c (create_cursor_image): premultiply
4092         the pixels from the GdkPixbuf when putting them in the
4093         Xcursor image. Fixes bug #144350.
4094
4095 2004-06-16  Federico Mena Quintero  <federico@ximian.com>
4096
4097         * gtk/gtkfilesystemmodel.c (do_files_added): When inserting a
4098         visible node, free the old path before creating the new one.
4099         Fixes #144356.
4100
4101 Tue Jun 15 01:10:32 2004  Matthias Clasen  <maclas@gmx.de>
4102
4103         * gtk/gtkcombobox.c: Make GtkComboBox work without model.  
4104         (#144198, Mariano SuĂ¡rez-Alvarez)
4105         
4106 Fri Jun 11 22:05:56 2004  Matthias Clasen  <maclas@gmx.de>
4107
4108         * gtk/gtkfilechooserdefault.c: Don't use
4109         contractions like "don't" or "isn't" in error messages.
4110         It isn't nice to use them in log entries either...
4111         (#137774, Morten Welinder, patch by Alexander Winston)
4112
4113 2004-06-11  Federico Mena Quintero  <federico@ximian.com>
4114
4115         Fixes #143578:
4116
4117         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_add_editable):
4118         Don't ref the editable node.
4119         (_gtk_file_system_model_remove_editable): Don't unref the editable node.
4120         (_gtk_file_system_model_remove_editable): Ahem, free the node.
4121
4122         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
4123         Added fields for edited_idle and edited_new_text.
4124         (renderer_edited_cb): Queue the
4125         creation of the folder in an idle handler.
4126         (renderer_editing_canceled_cb): Likewise for the cancellation.
4127         (gtk_file_chooser_default_finalize): Free the impl->edited_new_text.
4128
4129 Thu Jun 10 22:12:26 2004  Matthias Clasen  <maclas@gmx.de>
4130
4131         * gtk/gtkmain.c (gtk_parse_args): Typo fix.
4132
4133 2004-06-10  Federico Mena Quintero  <federico@ximian.com>
4134
4135         Fixes #144110, patch by Bastien Nocera <hadess@hadess.net>.
4136
4137         * gtk/gtkfilechooser.c (gtk_file_chooser_list_shortcut_folders):
4138         Refer to gtk_file_chooser_add_shortcut_folder().
4139         (gtk_file_chooser_list_shortcut_folder_uris): Refer to
4140         gtk_file_chooser_add_shortcut_folder_uri().
4141
4142 Thu Jun 10 00:36:15 2004  Matthias Clasen  <maclas@gmx.de>
4143
4144         * gtk/gtkcalendar.c (gtk_calendar_main_button): Start 
4145         the drag before focusing the selected.day.
4146         * gtk/gtkcalendar.c (gtk_calendar_state_changed): Stop
4147         a beginning drag if the widget becomes insensitive.
4148
4149 Thu Jun 10 00:09:06 2004  Matthias Clasen  <maclas@gmx.de>
4150
4151         * gtk/gtkcalendar.c (gtk_calendar_button_press): Start 
4152         spinning before calling arrow_action(), so that a signal
4153         handler triggered from arrow_action() has a chance to 
4154         stop the spinning.  (#143966, Davyd Madeley)
4155
4156 Wed Jun  9 23:11:23 2004  Matthias Clasen  <maclas@gmx.de>
4157
4158         * gtk/gtkstyle.c (_gtk_style_init_for_settings): Fix a 
4159         typo.  (#144070, Kent Sandvik)
4160
4161 Thu Jun 10 00:22:51 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4162
4163         * gtk/gtkmenu.c: Revert the "drag select" part of
4164         #141169. (#144011).
4165
4166 Mon Jun  7 23:07:40 2004  Matthias Clasen  <maclas@gmx.de>
4167
4168         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): Handle
4169         priv->model being NULL.  (#143856, Mariano SuĂ¡rez-Alvarez)
4170
4171 2004-06-07  Federico Mena Quintero  <federico@ximian.com>
4172
4173         * gtk/gtktreeview.c (gtk_tree_view_button_press): Revert the patch
4174         from 2003/Sep/12.  This kept DnD in tree views within modal
4175         dialogs from working, which is especially bad for the file
4176         chooser.  Fixes #135168.
4177
4178 Sun Jun  6 23:57:21 2004  Matthias Clasen  <maclas@gmx.de>
4179
4180         Make the entry context menu work in editable text cells. The changes
4181         are based on a patch by Kristian Rietveld, which implemented an 
4182         approach outlined by Owen Taylor.  (#50075)
4183         
4184         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event): 
4185         Ignore focus out if the entry menu is posted.
4186         (gtk_cell_renderer_text_populate_popup): Mark the entry menu as 
4187         posted, and set up a signal handler to clear the flag if the menu 
4188         is unmapped.
4189         (gtk_cell_renderer_text_popup_unmap): Clear the in_entry_menu flag, 
4190         set up a timeout to stop editing if the focus is lost.
4191         (popdown_timeout): Stop editing if the entry doesn't have focus anymore.
4192         (gtk_cell_renderer_text_start_editing): Connect to the populate_popup 
4193         signal on the entry and keep a pointer to the entry.
4194         (gtk_cell_renderer_text_editing_done): Disconnect from popuplate_popup, 
4195         clear the pointer to the entry.
4196
4197 Sun Jun  6 23:24:43 2004  Matthias Clasen  <maclas@gmx.de>
4198
4199         * gtk/gtktexttag.c (gtk_text_tag_class_init): Improve the description
4200         of the ::language property.  (#143802, Owen Taylor)
4201
4202 Sat Jun  5 23:07:30 2004  Matthias Clasen  <maclas@gmx.de>
4203
4204         * gtk/gtkentrycompletion.c: (gtk_entry_completion_init),
4205         (gtk_entry_completion_list_enter_notify),
4206         (gtk_entry_completion_list_motion_notify),
4207         (_gtk_entry_completion_popup), (_gtk_entry_completion_popdown):
4208         * gtk/gtkentryprivate.h: Add an ignore_enter flag and
4209         use it as in the menu code to avoid the initial selection if
4210         the window pops up under the pointer.  (Anders Carlsson)
4211
4212 Sat Jun  5 20:05:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4213
4214         * tests/testmerge.c: Add a checkbox to queue an
4215         merge/unmerge. Patch from Matthias Clasen.
4216
4217         * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Add a new flag
4218         "need_rebuild"
4219         (rebuild_menu): New function that rebuilds the overflow menu and
4220         makes sure it doesn't start or end with a separator.
4221         (toolbar_content_new_tool_item)
4222         (toolbar_content_remove)
4223         (toolbar_content_new_compatibility): Set the rebuild_needed flag
4224         (gtk_toolbar_size_allocate): Only show the overflow arrow when we
4225         have actually overflown an item with a proxy menu item. Also make
4226         sure we rebuild the menu if needed.
4227
4228         Fix #125504, #142377, #143463
4229         
4230         * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose):
4231         Obey the "priv->draw" flag. (#143692)
4232
4233 2004-06-04  Matthias Clasen  <mclasen@redhat.com>
4234
4235         * docs/widget_geometry.txt: Add a note about the !CAN_FOCUS
4236         quirk in the button size allocation code.
4237
4238         * gtk/gtkbutton.c (gtk_button_size_allocate): Give the space
4239         requested for drawing the focus indicator to the child in the
4240         !CAN_FOCUS case. This should fix issues which the Gimp has with 
4241         the button allocation changes in 2.4.2.
4242
4243 Thu Jun  3 21:17:29 2004  Matthias Clasen  <maclas@gmx.de>
4244
4245         * gtk/gtkentry.c (gtk_entry_completion_timeout): Calculate the
4246         length of the entry contents in characters, not in bytes.
4247
4248         * gtk/gtkentry.c (paste_received): Don't pop up the completion
4249         window on paste, noticed by Anders Carlsson.
4250
4251 Thu Jun  3 20:56:19 2004  Matthias Clasen  <maclas@gmx.de>
4252
4253         * gtk/gtkcombobox.c (gtk_combo_box_class_init): Fix the allowed
4254         values and default value for the ::active property.  (#143669,
4255         Olivier Andrieu)
4256
4257 2004-06-03  Michael Natterer  <mitch@gimp.org>
4258
4259         * gtk/gtkimagemenuitem.c: use gtk_widget_get_child_requisition()
4260         instead of accessing item->image->allocation.width/height
4261         directly. Makes widgets which only have a requisition set using
4262         gtk_widget_set_size_request() work and fixes bug #142789.
4263
4264 Thu Jun  3 08:07:59 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4265
4266         * gtk/gtkmenu.c: Revert previous commit. It caused the problem
4267         of sticky right click menus to return.
4268
4269 Wed Jun  2 01:56:02 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4270
4271         * gtk/gtkmenu.c: Fix the stay up algorithm for combo boxes to
4272         better handle the "click" case. bug  Better fix for #141169.
4273
4274 2004-06-02  Federico Mena Quintero  <federico@ximian.com>
4275
4276         * gtk/gtktreeview.c (gtk_tree_view_search_init): Bail out if the
4277         model is empty.  Fixes #143536.
4278
4279 2004-06-02  Matthias Clasen  <mclasen@redhat.com>
4280
4281         * gtk/gtkfontsel.c (gtk_font_selection_size_focus_out): Don't
4282         close the dialog on focus out of the size entry.  (#143505, 
4283         David Hawthorne)
4284
4285 2004-06-02  Federico Mena Quintero  <federico@ximian.com>
4286
4287         Fix #138807.
4288
4289         * gtk/fnmatch.c (_gtk_fnmatch): Take a no_leading_period argument.
4290         (gtk_fnmatch_intern): Likewise; also implement this option.
4291
4292         * gtk/gtkprivate.h (_gtk_fnmatch): Updated prototype.
4293
4294         * gtk/gtkfilesel.c (find_completion_dir): Pass TRUE for the
4295         no_leading_period argument of _gtk_fnmatch().
4296         (attempt_file_completion): Likewise.
4297
4298         * gtk/gtkfilefilter.c (gtk_file_filter_filter): Pass FALSE for the
4299         no_leading_period argument of _gtk_fnmatch().
4300
4301 Wed Jun  2 00:47:11 2004  Matthias Clasen  <maclas@gmx.de>
4302
4303         * gtk/gtkselection.c (_gtk_selection_request): Remove leftover
4304         debug code.
4305
4306 Wed Jun  2 00:13:57 2004  Matthias Clasen  <maclas@gmx.de>
4307
4308         * gtk/gtktreeselection.c (gtk_tree_selection_select_range): Don't
4309         allow unless selection mode is multiple.  (#142634, John Finlay)
4310
4311 Tue Jun  1 23:00:20 2004  Matthias Clasen  <maclas@gmx.de>
4312
4313         * gtk/gtktoolbar.h: 
4314         * gtk/gtktoolbar.c: 
4315         * gtk/gtkentrycompletion.h: 
4316         * gtk/gtkentrycompletion.c: 
4317         * gtk/gtkcombobox.h: 
4318         * gtk/gtkcombobox.c: Rename function parameters from
4319         index to index_ to prevent clash with BSD index().  (#143001)
4320
4321 Tue Jun  1 22:45:42 2004  Matthias Clasen  <maclas@gmx.de>
4322
4323         * gtk/gtkmenu.c (get_accel_path): Handle accel_closure being
4324         NULL on an accel label. (#139641, Sam Stephenson, patch by 
4325         Michael Natterer)
4326
4327 Tue Jun  1 22:19:55 2004  Matthias Clasen  <maclas@gmx.de>
4328
4329         * gtk/gtkicontheme.c (theme_subdir_load):  Prevent icon 
4330         lookup finding icons in the wrong prefix.  (#143328,
4331         Mark McLoughlin)
4332
4333 Wed Jun  2 00:39:58 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4334
4335         Bug #141169.
4336
4337         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Make menus
4338         only stay up if you release within 500 milliseconds.
4339         (gtk_menu_shell_button_press): Set the activate_time to the event
4340         time when a button is pressed.
4341
4342         * gtk/gtkmenu.c (gtk_menu_motion_notify, gtk_menu_enter_notify):
4343         Interprete button releases as activate when we have seen both an
4344         enter an a motion event.
4345
4346 2004-06-01  Federico Mena Quintero  <federico@ximian.com>
4347
4348         * gtk/gtkfilesystemmodel.c (do_files_removed): Don't insert a
4349         dummy node if there is no parent node.  Fixes #143362.
4350
4351 2004-05-31  Federico Mena Quintero  <federico@ximian.com>
4352
4353         * gtk/gtkfilechooserdefault.c (renderer_edited_cb): Change to the
4354         newly-created folder.  Fixes #138932.
4355         (trap_activate_cb): Only return TRUE if we did handle the event.
4356         Fixes #143359; patch by jylefort@brutele.be.
4357
4358 Mon May 31 02:39:32 2004  Matthias Clasen  <maclas@gmx.de>
4359
4360         * gtk/gtkimage.c (gtk_image_new_from_pixmap): Fix typo in 
4361         docs.  (#142892, Tommi Komulainen)
4362
4363 Mon May 31 02:16:37 2004  Matthias Clasen  <maclas@gmx.de>
4364
4365         * gtk/gtkhandlebox.c: Make detached handleboxes work when their
4366         parent is minimized, porting the fix from 1.2.  (#1923, #57182)
4367
4368 Mon May 31 02:03:17 2004  Matthias Clasen  <maclas@gmx.de>
4369
4370         * gtk/gtkwindow.c (gtk_window_show): Make moving realized, 
4371         unmapped windows work. 
4372
4373 Mon May 31 00:27:33 2004  Matthias Clasen  <maclas@gmx.de>
4374
4375         * gtk/gtkfilechooserutils.c (_gtk_file_chooser_set_delegate): Fix
4376         a typo.
4377
4378 Mon May 31 00:23:55 2004  Matthias Clasen  <maclas@gmx.de>
4379
4380         * gtk/gtkfilechooser.c (gtk_file_chooser_set_preview_widget): 
4381         Refer to ::update-preview, not ::selection-changed.
4382
4383 2004-05-29  Christian Rose  <menthos@menthos.com>
4384  
4385         * configure.in: Added "tk" to ALL_LINGUAS.
4386  
4387 Fri May 28 15:00:01 2004  Matthias Clasen  <maclas@gmx.de>
4388
4389         * gtk/gtkwidget.c (gtk_widget_set_parent): Add informative
4390         messages for common problems.  (#137974, Owen Taylor)
4391
4392 Fri May 28 14:20:17 2004  Matthias Clasen  <maclas@gmx.de>
4393
4394         * gdk/x11/gdkevents-x11.c: Fix off-by-one allocation 
4395         errors. (#143337, Billy Biggs) 
4396
4397 Thu May 27 16:36:22 2004  Owen Taylor  <otaylor@redhat.com>
4398
4399         * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): Set
4400         bits within visual->depth that aren't used for color to
4401         1s, in case they are alpha.
4402
4403 2004-05-27  Anders Carlsson  <andersca@gnome.org>
4404
4405         * gtk/gtkfilechooserdefault.c (save_folder_combo_create): 
4406         Make separator rows insensitive.
4407
4408 Thu May 27 00:48:16 2004  Matthias Clasen  <maclas@gmx.de>
4409
4410         * gtk/gtkentrycompletion.c (gtk_entry_completion_set_text_column): 
4411         Add more docs.
4412
4413 Thu May 27 00:45:07 2004  Matthias Clasen  <maclas@gmx.de>
4414
4415         * gtk/gtkentrycompletion.h:
4416         * gtk/gtkentrycompletion.c (gtk_entry_completion_get_text_column): 
4417         Getter for text_column. Also make ::text_column a property.
4418
4419 Thu May 27 00:11:01 2004  Matthias Clasen  <maclas@gmx.de>
4420
4421         * gtk/gtkmenuitem.c (gtk_menu_item_size_request): Fix a typo.
4422
4423 Thu May 27 00:07:47 2004  Jonathan Blandford  <jrb@gnome.org>
4424
4425         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): only remove the
4426         signal if the box exists.
4427
4428 Wed May 26 23:26:51 2004  Matthias Clasen  <maclas@gmx.de>
4429
4430         Support insensitive cells in tree views and combo boxes:
4431         
4432         * gtk/gtkcellrenderer.h: 
4433         * gtk/gtkcellrenderer.c: Add a ::sensitive property.
4434
4435         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): 
4436         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
4437         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): 
4438         Support drawing insensitive.
4439
4440         * gtk/gtkcellview.h: 
4441         * gtk/gtkcellview.c (gtk_cell_view_get_cell_renderers): New 
4442         function to obtain the cell renderers from a cell view. Also
4443         export gtk_cell_view_set_cell_data().
4444
4445         * gtk/gtktreeselection.c (tree_column_is_sensitive):
4446         * gtk/gtktreeselection.c (row_is_selectable): Helper functions
4447         to determine whether all visible cells in a row are insensitive
4448         and whether a row is selectable. A row is not selectable if the 
4449         user function says so or if all visible cells are insensitive.
4450         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node): 
4451         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node): 
4452         Use row_is_selectable().
4453         
4454         * gtk/gtkcombobox.c (row_is_sensitive): 
4455         * gtk/gtkcombobox.c (tree_column_row_is_sensitive): 
4456         * gtk/gtkcombobox.c (menu_row_is_sensitive): Helper functions
4457         to determine row sensitivity in menu or list mode.
4458
4459         * gtk/gtkcombobox.c (update_menu_sensitivity): Helper function
4460         to set up sensitivity menu items from the underlying rows.
4461
4462         * gtk/gtkcombobox.c (gtk_combo_box_popup): 
4463         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): Use
4464         update_menu_sensitivity().
4465                 
4466         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Setup the cell
4467         data funcs.
4468
4469         * gtk/gtkcombobox.c (gtk_combo_box_key_press): Skip insensitive
4470         rows.
4471
4472         * tests/testcombo.c (main): Make some rows insensitive.
4473
4474 2004-05-26  Robert Ă–gren  <gtk@roboros.com>
4475
4476         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Send key
4477         modifiers (shift, ctrl etc) in button and motion events from the
4478         tablet. (#143240)
4479
4480 2004-05-26  Robert Ă–gren  <gtk@roboros.com>
4481
4482         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): Simple
4483         implementation for extended input devices using last known 
4484         device state (#143237)
4485
4486 Tue May 25 21:54:00 2004  Matthias Clasen  <maclas@gmx.de>
4487
4488         * gtk/gtkframe.c: Move docs inline, fixing them on the
4489         way.  (#143029, Steve Chaplin)
4490
4491 2004-05-11  Robert Ă–gren  <gtk@roboros.com>
4492
4493         * gdk/win32/gdkevents-win32.c (propagate): Don't propagate mouse
4494         events to windows that want extended input events. (#142943)
4495         (gdk_event_translate): Move check for extended input devices to
4496         propagate, new parameter to propagate.
4497         (gdk_pointer_grab, gdk_display_pointer_ungrab): Enable calls to
4498         _gdk_input_(un)grab_pointer. (#142943)
4499
4500         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Check for
4501         input grab. [Fix missing update of impl in "dijkstra" event
4502         propagation loop] Drop the parallel "impl" pointer, just use a
4503         cast. Don't propagate beyond windows that want normal input
4504         events. (#142943)
4505         (gdk_input_grab_pointer, gdk_input_ungrab_pointer): Limited
4506         implementation of input grab. (#142943)
4507
4508 2004-05-22  Tor Lillqvist  <tml@iki.fi>
4509
4510         * gdk/win32/gdkinput-win32.c (print_lc): Remove duplicated
4511         line. (Spotted by BenoĂ®t Carpentier.)
4512
4513 2004-05-18  Matthias Clasen  <mclasen@redhat.com>
4514
4515         * configure.in: Check for XFIXES extension.
4516
4517         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add 
4518         a gboolean have_xfixes member.
4519
4520         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Register
4521         XFIXES events and set have_xfixes.
4522
4523         * gdk/gdkevents.h (GdkEventType): Add GDK_OWNER_CHANGE.
4524         (GdkEventOwnerChange): New event struct for owner change events.
4525         (GdkOwnerChange): New enum for the reason field of GdkEventOwnerChange.
4526         
4527         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Translate 
4528         XFixesSelectionNotify events into GdkEventOwnerChange events.
4529         
4530         * gdk/gdkdisplay.h:
4531         * gdk/x11/gdkdisplay-x11.c (gdk_display_supports_selection_notification):
4532         (gdk_display_request_selection_notification): New api 
4533         to support selection ownership notification.
4534
4535         * gtk/gtkclipboard.h:
4536         * gtk/gtkclipboard.c (_gtk_clipboard_handle_event): New private
4537         api to handle owner change events.
4538         (clipboard_peek): Refactored out the body of 
4539         gtk_clipboard_get_for_display() for use in _gtk_clipboard_handle_event().
4540
4541         * gtk/gtkmain.c (gtk_main_do_event): Handle GDK_OWNER_CHANGE events
4542         by calling _gtk_clipboard_handle_event().
4543
4544 2004-05-18  Matthias Clasen  <mclasen@redhat.com>
4545
4546         * gtk/gtkintl.h: Include glib/gi18n-lib.h and only define
4547         the P_() macros ourselves.
4548
4549         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
4550         Restrict the width of the popup to be no larger than the
4551         monitor.  (#142678, DmD Ljungmark)
4552
4553         * gtk/gtkbutton.c: Go back to the initial fix for the 
4554         focus-overdrawing problem, which was actually correct 
4555         according to docs/widget_geometry.txt.
4556
4557         * gtk/gtkarrow.c (gtk_arrow_class_init): Bump the initial
4558         arrow size from 11 to 15 to compensate for that.
4559
4560         * gtk/gtktextview.c (gtk_text_view_class_init): Document the
4561         arguments of the ::move-cursor signal.  (#142725)
4562
4563 2004-05-17  Matthias Clasen  <mclasen@redhat.com>
4564
4565         Merged from 2.4:
4566         
4567         * gtk/gtkbutton.c (gtk_button_size_request) 
4568         (gtk_button_size_allocate, _gtk_button_paint): Allocate
4569         space for the focus rectangle only if necessary.  (#142668,
4570         Michael Natterer)
4571
4572 Sun May 16 23:11:47 2004  Matthias Clasen  <maclas@gmx.de>
4573
4574         Merged from 2.4:
4575         
4576         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove two useless 
4577         lines.  (#142479, Morten Welinder)
4578
4579 Sun May 16 22:27:17 2004  Matthias Clasen  <maclas@gmx.de>
4580
4581         * gtk/gtkintl.h (Q_): Add a Q_() macro. 
4582
4583         * gtk/gtkcellrendererprogress.h: Remove GTK_PROGRESS_CELL_UNKNOWN
4584         and GTK_PROGRESS_CELL_FAILED. With the ability the set the label,
4585         they are not really needed.
4586
4587         * gtk/gtkcellrendererprogress.c: Use the xpad and ypad properties
4588         instead of hardwired padding, use Q_() for the default label, 
4589         compute a reasonable minimal size.  (#142571, #142572, #142573,
4590         Tommi Komulainen, Christian Persch)
4591         
4592 2004-05-15  Tor Lillqvist  <tml@iki.fi>
4593
4594         * gdk/win32/gdkdnd-win32.c: Put back the ref_count field in the
4595         GdkDragContextPrivateWin32 struct (but inside ifdef OLE2_DND this
4596         time). It is used by the OLE2_DND code, which is unfinished and
4597         presumably horribly broken, but still, let's not make it not
4598         compile on purpose. Silence some gcc warnings in the OLE2_DND
4599         code.
4600
4601 2004-05-14  Matthias Clasen  <mclasen@redhat.com>
4602
4603         * gtk/gtktreeview.c (gtk_tree_view_tree_window_to_tree_coords): 
4604         New function to go from tree window to tree coordinates, kept
4605         static for now until we figure out the multiple coordinate
4606         system mess in GtkTreeView API-wise.
4607         (gtk_tree_view_scroll_to_cell): Transform the coordinates 
4608         from tree window to tree coordinates, using the new function.
4609         Previously, the x coordinate was wrongly transformed. (#142494)
4610
4611         * gdk/gdktypes.h (GdkModifierType): Add a comment about unused
4612         bits.
4613
4614         * gtk/gtkstock.c (real_add, gtk_stock_lookup): Use an unused
4615         modifier bit to mark stock item which need to be freed 
4616         eventually.  (#140654, Michal Pasternak, Scott Tsai)
4617
4618 2004-05-11  Robert Ă–gren  <gtk@roboros.com>
4619
4620         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Add missing
4621         call to g_object_ref in Wintab code. (#138341)
4622
4623         * gdk/win32/gdkinput-win32.c: Fix numerous Wintab problems
4624         including unallocated buffers for event->motion.axes and
4625         event->button.axes, unsigned wraparound problem in the code for
4626         detecting missing press/release events and assigning min instead
4627         of max when setting up axes.
4628
4629 2004-05-12  Matthias Clasen  <mclasen@redhat.com>
4630
4631         * tests/testtreeedit.c: Add a progress column.
4632
4633         * gtk/Makefile.am: Add gtkcellrendererprogress.[hc] in the right
4634         places.
4635
4636         * gtk/gtk.h: Include gtkcellrendererprogress.h.
4637
4638         * gtk/gtkcellrendererprogress.[hc]: A progress cell renderer,
4639         based on the one found in Epiphany.
4640
4641 2004-05-11  Michael Natterer  <mitch@gimp.org>
4642
4643         * gtk/gtkcombobox.c (gtk_combo_box_popup)
4644         (gtk_combo_box_menu_button_press): don't allocate the popup
4645         smaller than the combobox. Fixes bug #59660.
4646
4647 2004-05-11  Matthias Clasen  <mclasen@redhat.com>
4648
4649         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Revert the
4650         previous change to this function, clarify the docs instead.
4651
4652         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Use
4653         GTK_SELECTION_BROWSE.
4654
4655         * gtk/gtktreeview.c: Make hover selection work for 
4656         GTK_SELECTION_BROWSE as well.
4657
4658 Tue May 11 00:38:25 2004  Matthias Clasen  <maclas@gmx.de>
4659
4660         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init): 
4661         Document the ::toggled signal.
4662
4663 Mon May 10 23:04:25 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4664
4665         * gtk/gtkwidget.h: Add prototype for _gtk_widget_grab_notify()
4666
4667 2004-05-10  Matthias Clasen  <mclasen@redhat.com>
4668
4669         * gtk/gtkwindow.c (get_screen_icon_info): Make static.
4670
4671         * gdk/gdkdisplay.c (singlehead_...): 
4672         * gdk/x11/gdkkeys-x11.c (get_effective_keymap): 
4673         * gdk/x11/gdkgeometry-x11.c (expose_serial_predicate): 
4674         * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Make static.
4675
4676         * gtk/gtktreeview.c (gtk_tree_view_set_fixed_height_mode): Add a 
4677         note about COLUMN_FIXED restriction.
4678
4679         * gtk/gtkentrycompletion.c (gtk_entry_completion_list_button_press): 
4680         Set the entry in the default handler of the ::match-selected signal.
4681         (#137226)
4682
4683         * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): If we don't
4684         do the move-selected-item below pointer thingie, do the 
4685         place-below-or-above one.
4686
4687         * tests/testentrycompletion.c: Make the second example use the 
4688         ::match-selected signal to make it actually work.
4689
4690         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): 
4691         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Use hover selection
4692         mode.  (#127648, Dave Bordoley)
4693
4694         * gtk/gtktreeview.h:
4695         * gtk/gtktreeview.c: Add a new property "hover_selection", which 
4696         when TRUE makes the selection follow the mouse. Also add setter
4697         and getter for the fixed_height property.
4698
4699 2004-05-10  Matthias Clasen  <mclasen@redhat.com>
4700
4701         * gtk/gtkcombobox.c (gtk_combo_box_popup) 
4702         (gtk_combo_box_menu_button_press): Make sure the menu pops up
4703         as wide as the combobox.  (#59660, Havoc Pennington)
4704
4705 2004-05-10  Matthias Clasen  <mclasen@redhat.com>
4706
4707         * gtk/gtkcombobox.h: 
4708         * gtk/gtkcombobox.c: Support tearoffable combo boxes (in menu 
4709         mode). Add a new property, add-tearoffs, for this.  (#135956)
4710
4711         * gtk/gtkfontsel.c (list_row_activated): Make Return activate the
4712         default button.  (#118921)
4713
4714 Mon May 10 15:03:50 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4715
4716         * gtk/gtkwidget.c (_gtk_widget_grab_notify): New internal function
4717         that emits the grab notify signal.
4718         
4719         * gtk/gtkmain.c (gtk_grab_notify_foreach): Use it here.
4720
4721 Mon May 10 00:48:08 2004  Matthias Clasen  <maclas@gmx.de>
4722
4723         * gtk/gtkmenu.c: Make destruction of a torn off menu work 
4724         like un-tearing off.
4725
4726 Sun May  9 21:05:38 2004  Matthias Clasen  <maclas@gmx.de>
4727
4728         Merge from 2.4:
4729
4730         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
4731         Allow to suppress the stock accelerator by using "".  (#142196,
4732         David A Knight)
4733         
4734 Sun May  9 02:01:13 2004  Matthias Clasen  <maclas@gmx.de>
4735
4736         Merge from 2.4:
4737         
4738         * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): 
4739         In list mode, accept the same mouse/wheel bindings on 
4740         the cellview as on the button.  (#136967)
4741
4742 Sun May  9 01:25:37 2004  Matthias Clasen  <maclas@gmx.de>
4743
4744         * gtk/gtkiconfactory.c (add_to_cache): Actually count the
4745         cached icons.  (#135888, Crispin Flowerday)
4746
4747 Sun May  9 00:03:03 2004  Matthias Clasen  <maclas@gmx.de>
4748
4749         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Make sure
4750         that we actually return menus for nodes of type menu, not the
4751         menuitems they're attached to.
4752
4753 Sat May  8 22:50:55 2004  Matthias Clasen  <maclas@gmx.de>
4754
4755         * gtk/gtkactiongroup.c (gtk_action_group_set_translation_domain): 
4756         Add a note regarding UTF-8 requirements, proposed by 
4757         Mariano SuĂ¡rez-Alvarez.
4758
4759 Sat May  8 22:43:11 2004  Matthias Clasen  <maclas@gmx.de>
4760
4761         * gtk/gtktearoffmenuitem.h: 
4762         * gtk/gtktearoffmenuitem.c: Put the torn_off flag back
4763         into the GtkTearoffMenuItem struct, since it is used
4764         by the Gimp, and keep it synchronized with the 
4765         tearoff_state property of the parent menu.
4766
4767 2004-05-08  Hans Breuer  <hans@breuer.org>
4768
4769         * gtk/gtkfilesystemwin32.c (extract_icon) : finally also
4770         create the correct mask for 'pseudo mime' icons
4771
4772         * gdk/win32/gdkwindow-win32.c(show_window_internal) : also
4773         take focus_on_map into account
4774
4775         * gtk/gtkselection.c : g_message() only with DEBUG_SELECTION
4776
4777         * gtk/gtkactiongroup.c gtk/gtkcombobox.c : 
4778         ... must return a value
4779
4780         * gdk/gdk.def gtk/gtk.def demos/gtk-demo/makefile.msc.in : updated
4781
4782 2004-05-07  Matthias Clasen  <mclasen@redhat.com>
4783
4784         * gtk/gtkbutton.c (gtk_button_size_allocate): Don't let the child
4785         draw over the focus rectangle.
4786
4787         * gtk/gtkhsv.c: Draw focus indication in the color wheel using
4788         standard focus style.  (#63071, Bill Haneman, idea for new
4789         style by Owen Taylor)
4790
4791         * gtk/gtkstyle.c (gtk_default_draw_focus): Support drawing on
4792         focus on the colorwheel via details.
4793
4794 2004-05-06  Matthias Clasen  <mclasen@redhat.com>
4795
4796         Merge from 2.4:
4797         
4798         * gtk/gtkcombobox.c (gtk_combo_box_menu_state_changed): Remove
4799         this no longer needed signal handler.  (#141817, Paul Pogonyshev)
4800
4801 Fri May  7 00:41:46 2004  Matthias Clasen  <maclas@gmx.de>
4802
4803         * gtk/gtktearoffmenuitem.h: 
4804         * gtk/gtktearoffmenuitem.c: Make the tearoff 
4805         functionality model/view, the tearoffmenuitem being
4806         the view and the tearoff_state property of the menu
4807         being the model.  (#101185, Owen Taylor)
4808
4809         * gtk/gtkmenu.c: Add a tearoff_state property.
4810
4811 Thu May  6 23:52:13 2004  Matthias Clasen  <maclas@gmx.de>
4812
4813         Merge from 2.4:
4814
4815         * gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): Also 
4816         popup the submenu for items in torn off menus.  (#122051)
4817
4818 2004-05-06  Sven Neumann  <sven@gimp.org>
4819
4820         * gtk/gtkexpander.c (gtk_expander_size_allocate): in RTL mode,
4821         position the title lable next to the arrow just as we do for LTR
4822         rendering. Fixes bug #141825.
4823
4824 2004-05-06  Matthias Clasen  <mclasen@redhat.com>
4825
4826         * docs/RELEASE-HOWTO: Document the new policy of
4827         bumping version numbers after release.
4828
4829         * configure.in: Bump version number to 2.5.0.
4830
4831 2004-05-06  Padraig O'Briain  <padraig.obriain@sun.com>
4832
4833         * gtk/gtkmenu.h:
4834         * gtk/gtkmenu.c: Add new function gtk_menu_get_for_attach_widget.
4835         (bug #113112).
4836
4837 Thu May  6 00:24:11 2004  Matthias Clasen  <maclas@gmx.de>
4838
4839         * gtk/gtkactiongroup.h: 
4840         * gtk/gtkactiongroup.c (gtk_action_group_translate_string): 
4841         New function to translate a string with translate_func.
4842         (#135740)
4843
4844 Thu May  6 00:02:21 2004  Matthias Clasen  <maclas@gmx.de>
4845
4846         * gtk/gtkcombobox.c (gtk_combo_box_get_wrap_width): 
4847         (gtk_combo_box_get_row_span_column): 
4848         (gtk_combo_box_get_column_span_column): Add missing getters
4849         for readwrite properies. (#135649)
4850
4851 Wed May  5 23:42:42 2004  Matthias Clasen  <maclas@gmx.de>
4852
4853         * gtk/gtkcombobox.h: 
4854         * gtk/gtkcombobox.c (gtk_combo_box_get_active_text): 
4855         Add gtk_combo_box_get_active_text() convenience 
4856         function. (#136372, Christian Neumeir, patch by Olivier Andrieu) 
4857
4858 2004-05-05  Elijah Newren  <newren@math.utah.edu>
4859
4860         Changes to support do-not-focus-on-map hint in conjunction with
4861         _NET_WM_USER_TIME (#115650):
4862
4863         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
4864         field focus_on_map
4865         
4866         * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
4867         set it.
4868
4869         * gtk/gtkwindow.[hc]: Add a boolean property "focus_on_map"
4870         and gtk_window_get_focus_on_map() and gtk_window_set_focus_on_map().
4871
4872         * gdk/win32/gdkwindow-win32.c (gdk_window_new): 
4873         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new): 
4874         * gdk/x11/gdkwindow-x11.c (gdk_window_new):
4875         Initialize the focus_on_map field to TRUE.
4876
4877         * gdk/win32/gdkwindow-win32.c (gdk_window_set_focus_on_map): 
4878         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_focus_on_map): 
4879         * gdk/x11/gdkwindow-x11.c (gdk_window_set_focus_on_map): 
4880         * gdk/x11/gdkwindow-x11.c (setup_toplevel_window):
4881         Implementations for the various backends. The Win32 and linux-fb
4882         implementations set the focus_on_map field, but don't use it yet
4883         to actually implement noinput windows. The X implementation sets
4884         _NET_WM_USER_TIME to 0 if focus_on_map is FALSE (see the EWMH).
4885
4886         * gdk/x11/gdkwindow-x11.h: 
4887         * gdk/x11/gdkevents-x11.c (set_user_time): 
4888         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): 
4889         * gdk/x11/gdkwindow-x11.c (gdk_x11_window_set_user_time): 
4890         s/_gdk_x11_window_set_user_time/gdk_x11_window_set_user_time/,
4891         since we want that function to be part of the public API.
4892
4893 Wed May  5 22:20:21 2004  Matthias Clasen  <maclas@gmx.de>
4894
4895         Merge from 2.4:
4896         
4897         * gtk/gtkiconfactory.c (icon_source_clear): Don't
4898         call g_free() on a pixbuf.  (#141961, Crispin Flowerday) 
4899
4900 2004-05-05  Matthias Clasen  <mclasen@redhat.com>
4901    
4902         Merge from 2.4:
4903         
4904         * gtk/gtkuimanager.c (print_node): Make the output 
4905         parseable.  (#141929, Sven Neumann)
4906
4907 2004-05-05  Tor Lillqvist  <tml@iki.fi>
4908
4909         * gdk/win32/gdkdnd-win32.c (gdk_drag_find_window_for_screen): Add
4910         multi-monitor offset. (#141842, John Ehresman)
4911
4912 2004-05-04  Federico Mena Quintero  <federico@ximian.com>
4913
4914         Fixes #139562, based on a patch by Christian Neumair.
4915
4916         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): Add
4917         a filter_combo_hbox field to contain the filter combo.
4918         (show_filters): Show/hide the filter_combo_hbox.
4919         (create_filename_entry_and_filter_combo): Removed.
4920         (file_pane_create): Create the filter_combo_hbox here.
4921
4922 2004-05-04  Matthias Clasen  <mclasen@redhat.com>
4923
4924         * modules/input/gtkimcontextxim.c: Fix the recent
4925         string_conversion_callback change to work on 
4926         Solaris.  (#141190, Padraig O'Briain)
4927
4928         * gtk/gtkselection.c: Disable debug logging again.
4929
4930 2004-05-03  Matthias Clasen  <mclasen@redhat.com>
4931
4932         * gtk/gtkselection.c: Make the chunk size for 
4933         incremental transfers depend on the maximal request 
4934         size, capped at 256k. This should allow most selections
4935         to be transferred nonincrementally, avoiding many
4936         roundtrips and protocol overhead.
4937
4938 2004-05-03  Federico Mena Quintero  <federico@ximian.com>
4939
4940         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Call
4941         g_signal_new() correctly and initialize the signal fields.  Fixes
4942         #141749; patch based on Michael Natterer's.
4943
4944 u2004-05-03  Matthias Clasen  <mclasen@redhat.com>
4945
4946         * gtk/gtkselection.c (_gtk_selection_request): Fix
4947         a debug message to show correct information.
4948         (_gtk_selection_incr_event): Make INCRemental transfer
4949         of MULTIPLE targets work. This was broken since 1997!
4950
4951 2004-05-02  Hans Breuer  <hans@breuer.org>
4952
4953         * gdk/win32/gdkdrawable-win32.c (draw_segments) : don't
4954         modify the passed in GdkSegment(s) in place, we may get
4955         them again to draw at the same place. Fixes bug #129095, 
4956         bug #137177, ...
4957         (draw_segments) draw the end pixel again to get the 
4958         pixmap mask right, fixes bug #126710, #130202
4959
4960         * gdk/win32/gdkwindow-win32.c : use SetForegroundWindow,
4961         fixes bug #106013, John Ehresman
4962
4963         * gtk/makefile.msc.in : don't try to link gtk.res but
4964         use gtk-win32.res (as supposed to be fixed below :)
4965
4966 2004-05-01  Hans Breuer  <hans@breuer.org>
4967
4968         * tests/Makefile.am : tests/makefile.msc is in CVS for
4969         a long time, finally added to EXTRA_DIST : fixes bug 
4970         #141334, John Ehresman
4971
4972 2004-04-30  Matthias Clasen  <mclasen@redhat.com>
4973
4974         * === Released 2.4.1 ===
4975
4976         * configure.in: Version 2.4.1, interface age 1. 
4977
4978         * NEWS: Updates
4979
4980 2004-04-29  Federico Mena Quintero  <federico@ximian.com>
4981
4982         Fixes #140412.
4983
4984         * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): New
4985         function; moved the code over from
4986         remove_bookmark_button_clicked_cb().
4987         (remove_selected_bookmarks): Now, getting a non-removable bookmark
4988         is not an error, as we may be called as a result of hitting the
4989         Delete key.
4990         (shortcuts_key_press_event_cb): New handler; delete the bookmark
4991         if the user presses Backspace, Delete, or KP_Delete.
4992
4993 2004-04-29  Matthias Clasen  <mclasen@redhat.com>
4994
4995         * gtk/gtkaction.c (closure_accel_activate): Use
4996         _gtk_action_emit_activate() instead of directly
4997         emitting the activate signal.  (#141429, Jody Goldberg)
4998
4999         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
5000         Warn people when the accelerator can not be 
5001         parsed.  (#141429, Jody Goldberg)
5002
5003 2004-04-29  Matthias Clasen  <mclasen@redhat.com>
5004
5005         * tests/testentrycompletion.c (main): Add a missing 
5006         cat.  (#141070, Chris Sherlock)  
5007
5008         * gtk/gtkrc.c (gtk_rc_check_pixmap_dir): Remove unused
5009         variable.  (#141022, Chris Sherlock)
5010         
5011         * gtk/gtkcombo.c (gtk_combo_popup_list): Add a missing
5012         cast.  (#141013, Chris Sherlock)
5013
5014         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Remove
5015         unused variable.  (#141011, Chris Sherlock)
5016
5017 2004-04-29  Tor Lillqvist  <tml@iki.fi>
5018
5019         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Plug memory
5020         leak. (#140775, John Ehresman)
5021
5022 Thu Apr 29 01:09:50 2004  Matthias Clasen  <maclas@gmx.de>
5023
5024         * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
5025         to index the cached gcs, not depth.  (#139494)
5026
5027 2004-04-28  Matthias Clasen  <mclasen@redhat.com>
5028
5029         * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Docs typo fix.
5030
5031 Sun Apr 25 15:36:02 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
5032
5033         * gtk/gtktoolbutton.c (gtk_tool_button_set_label_widget): Fix
5034         cut'n'paste-o from previous commit. (#141046, Torsten Schoenfeld).
5035
5036 2004-04-24  Theppitak Karoonboonyanan  <thep@linux.thai.net>
5037
5038         Patch to add support for string conversion callbacks to
5039         GtkIMContextXIM (#101814)
5040
5041         * modules/input/gtkimcontextxim.c: Set the string conversion callback
5042         if supported by the XIC.
5043
5044         (struct _GtkIMContextXIM): Add string_conversion_callback member.
5045
5046         (struct _GtkXIMInfo, setup_im): Check and keep flag inidicating
5047         whether string conversion callback is supported.
5048
5049         (gtk_im_context_get_ic, +set_string_conversion_callback,
5050         +string_conversion_callback): Also initialize string conversion
5051         callback, if supported, along with the IC initialization.
5052
5053         * modules/input/imxim.c: Make "xim" module default for Thai as well.
5054
5055 2004-04-23  Matthias Clasen  <mclasen@redhat.com>
5056
5057         * gtk/gtkclipboard.c (gtk_clipboard_wait_for_targets): Correctly
5058         initialize targets.  (#139883, John Finlay)
5059
5060         * gdk/gdkdraw.c (gdk_draw_drawable): Small doc improvement. 
5061
5062         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows): 
5063         Don't recommend gtk_tree_row_reference_new_proxy().  (#138309,
5064         Tim-Philipp MĂ¼ller)
5065
5066         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_cell_data): 
5067         Remove an excessive g_return_if_fail().
5068
5069         * gdk/x11/gdkevents-x11.c (set_user_time): Make set_user_time()
5070         static.
5071         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): 
5072         _-prefix calls of gdk_x11_window_set_user_time().
5073
5074 2004-04-22  Matthias Clasen  <mclasen@redhat.com>
5075
5076         * gtk/gtkuimanager.c (update_node): Make sure the separators 
5077         used to demarkate placeholder ends don't show up on 
5078         show_all().  (#140496, Murray Cumming)
5079
5080         * gtk/gtkspinbutton.c (spin_button_at_limit): Make spinbuttons
5081         work with negative increments.  (#137975, Tim Gerla)
5082
5083 Wed Apr 21 21:38:03 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
5084
5085         * gtk/gtktoolbutton.c (gtk_tool_button_set_label_widget,
5086         gtk_tool_button_set_icon_widget): Remove the old widget from the
5087         tool button before overwriting it with the new widget.
5088
5089         (#140508, Todd Goyen)
5090         
5091 2004-04-22  Tor Lillqvist  <tml@iki.fi>
5092
5093         Fix the file chooser on Windows. I can't make it misbehave or
5094         crash any more now. But presumably there are still corner cases
5095         not handled. I haven't really checked behaviour of UNC paths, for
5096         instance.
5097
5098         * gtk/gtkfilesystemwin32.c: Accept both backslash and slash in
5099         several places. Use G_IS_DIR_SEPARATOR macro (which could be added
5100         to GLib in 2.6).
5101
5102         (gtk_file_system_win32_get_parent): Like the Unix version, assert
5103         filename is absolute, and avoid one unnecessary string allocation
5104         and freeing.
5105         
5106         (canonicalize_filename,gtk_file_system_win32_parse): Handle drive
5107         letters more correctly.
5108
5109         (gtk_file_system_win32_render_icon): Assure correct syntax is used
5110         for root folder of a drive. (#137962, Morten Welinder)
5111
5112         (filename_is_some_root): New function that accepts also root
5113         without any drive specified.
5114
5115         (filename_is_drive_root): Rename from filename_is_root.
5116
5117         * gtk/gtkfilechooserentry.c (completion_match_func): Casefold on
5118         Windows.
5119
5120 2004-04-21  Matthias Clasen  <mclasen@redhat.com>
5121
5122         * gtk/gtkentry.c (gtk_entry_completion_timeout): Pop down the 
5123         completion window if there are no completions anymore.
5124
5125         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
5126         Don't call gtk_tree_view_scroll_to_cell() on an empty tree view. 
5127         It doesn't like that.  (#140642, Christian Persch)
5128
5129         * demos/gtk-demo/expander.c (do_expander): A new demo.
5130
5131         * demos/gtk-demo/Makefile.am (demos): Add expander.c.
5132
5133 2004-04-20  Matthias Clasen  <mclasen@redhat.com>
5134
5135         * gtk/gtktextview.c (gtk_text_view_allocate_children): Make
5136         sure anchored children get size allocated, even if the layout
5137         is valid.  (#122323, Andrew E. Makeev)
5138         (gtk_text_view_scroll_pages): 
5139         (gtk_text_view_scroll_hpages): Don't scroll to cursor position
5140         if we already have pending scrolls. Bandaid fix for #78513.
5141
5142 Mon Apr 19 17:59:17 2004  Owen Taylor  <otaylor@redhat.com>
5143
5144         * INSTALL.in: Update libpng and libjpeg URLs, remove
5145         note about building without since that's not the normal
5146         case.
5147
5148 Sun Apr 11 09:45:11 2004  Owen Taylor  <otaylor@redhat.com>
5149
5150         * gtk/gtkicontheme.c (load_themes): Fix a couple of typos in
5151         handling of SVG/non-SVG unthemed icons.
5152
5153 2004-04-19  Morten Welinder  <terra@gnome.org>
5154
5155         * gtk/gtktoolbar.c (gtk_toolbar_focus): Don't leak list of
5156         children.  (#140523)
5157
5158 2004-04-19  Matthias Clasen  <mclasen@redhat.com>
5159
5160         * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): 
5161         Don't stop the iteration up to the tag_root too 
5162         early.  (#109945, Dongho Shin)
5163
5164 Sun Apr 18 17:06:03 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
5165
5166         * gdk/x11/gdkkeys-x11.c (get_effective_keymap): Make
5167         gdk_keymap_translate_keyboard_state() handle NULL
5168         keymaps. (#139715, Torsten Schoenfeld).
5169
5170 Sun Apr 18 16:59:21 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
5171
5172         * configure.in: Don't erase GDK_EXTRA_CFLAGS. Fixes bug 139586,
5173         reported by Pedro RODRIGUEZ, about compilation problems when
5174         Xcursor is installed in a non-standard location.
5175
5176 Sun Apr 18 16:15:15 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
5177
5178         Support for _NET_WM_USER_TIME (bug 115650). Patch by Elijah
5179         Newren.
5180         
5181         * gdk/x11/gdkwindow-x11.[ch]: Add new internal function
5182         _gdk_x11_set_user_time() to set the _NET_WM_USER_TIME property.
5183
5184         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add user_time field
5185
5186         * gdk/x11/gdkdisplay-x11.c: Add _NET_WM_USER_TIME to list of
5187         precached atoms.
5188         
5189         * gdk/x11/gdkinput-x11.c, gdk/x11/gdkevents-x11.c: Set the
5190         property on user interaction.
5191
5192 2004-04-15  Federico Mena Quintero  <federico@ximian.com>
5193
5194         * gtk/gtkfilesel.c (open_new_dir): Tell the user to use
5195         G_FILENAME_ENCODING, not G_BROKEN_FILENAMES.  Fixes #114065.
5196
5197         * gtk/gtkfilechooserdefault.c (split_uris): Use a variant of the
5198         code from gtkfilesel.c to parse a "text/uri-list" blob.  Fixes
5199         #140126.
5200
5201 2004-04-15  Matthias Clasen  <mclasen@redhat.com>
5202
5203         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 
5204         * gtk/gtkbutton.c (gtk_button_class_init): Doc fixes.
5205
5206 2004-04-14  Matthias Clasen  <mclasen@redhat.com>
5207
5208         * gtk/gtkcombobox.c: 
5209         * gtk/gtkwidget.c: 
5210         Make all style properties readonly.
5211
5212 2004-04-14  Matthias Clasen  <mclasen@redhat.com>
5213
5214         * gtk/gtkcolorsel.c: Add a11y relations between the color
5215         wheel and the spin buttons.  (#132745, Padraig O'Briain)
5216
5217         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): Document
5218         the meaning of size == -1.
5219
5220         * gtk/gtkwidget.c (gtk_widget_render_icon): Explicitly accept  
5221         a size of -1.  (#137436, Brian Cameron)
5222
5223         * gtk/gtkcombobox.c: Make the arrow and separator regular
5224         children of an hbox inside the button, and propagate state
5225         changes from the button to the cell view.  (part of the fix
5226         for #138650, should also fix #137535)
5227
5228         * gtk/gtkcellview.c (gtk_cell_view_expose): Pass the PRELIT
5229         state to gtk_cell_renderer_render() when prelighted. (part 
5230         of the fix for #138650)
5231
5232         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
5233         Use PRELIGHT state when appropriate.  (part of the fix for 
5234         #138650)
5235
5236         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Don't spit 
5237         out warnings if called before the combo box is 
5238         realized.  (#139742, Philip Langdale)
5239
5240 Wed Apr 14 03:45:39 2004  Jonathan Blandford  <jrb@gnome.org>
5241
5242         * gtk/gtktreeview.c (gtk_tree_view_expose): propagate expose
5243         events to children.
5244
5245 Wed Apr 14 03:32:58 2004  Jonathan Blandford  <jrb@gnome.org>
5246
5247         * gtk/gtkpathbar.c (make_directory_button): remove spurious
5248         gtk_box_pack_start.
5249
5250 Tue Apr 13 16:19:23 2004  Jonathan Blandford  <jrb@redhat.com>
5251
5252         * gtk/gtkpathbar.c (make_directory_button): patch from Owen to
5253         make the buttons sized by a bold label.  This makes the text
5254         'swim' a little, but stops the buttons from resizing, #137210
5255
5256 2004-04-13  Matthias Clasen  <mclasen@redhat.com>
5257
5258         * gtk/gtkuimanager.c (get_child_node): Don't crash if a node 
5259         has no name.
5260         (start_element_handler): Accept separators without unique 
5261         names.  (#133302, Anders Carlsson)
5262
5263         * gtk/gtkactiongroup.c (gtk_action_group_add_action): Document
5264         possible accelerator gotcha when using this function.  (#139641, 
5265         Christian Persch)
5266
5267         * gtk/gtkuimanager.c (node_remove_ui_reference): Don't leak
5268         list nodes.  (#138862, Morten Welinder)
5269
5270 Tue Apr 13 12:24:49 2004  Jonathan Blandford  <jrb@redhat.com>
5271
5272         * gtk/gtktreeview.c (gtk_tree_view_destroy): remove unused
5273         variable.
5274         (gtk_tree_view_button_press): If we activated the row we don't
5275         want to grab focus back, as moving focus to another widget is
5276         pretty common, #138458
5277
5278 2004-04-12  Federico Mena Quintero  <federico@ximian.com>
5279
5280         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Added
5281         documentation to all the signals.
5282
5283 2004-04-12  Matthias Clasen  <mclasen@dhcp64-228.boston.redhat.com>
5284
5285         * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't unref
5286         model if it is NULL. (#139770)
5287
5288         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Typo fix.
5289
5290         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): Don't add
5291         a shadow inside the scrolled window, add it around the vbox.
5292
5293         * gtk/gtkentryprivate.h: 
5294         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
5295         Return a boolean indicating whether the popup is positioned above 
5296         or below. Scroll the completions to the beginning or the end, 
5297         depending on the positioning.
5298
5299         * gtk/gtkentry.c (gtk_entry_completion_key_press): Make keynav
5300         wrap around in the entry completion popup, and allow GDK_UP to 
5301         enter the popup.  (#137440)
5302
5303 2004-04-12  Matthias Clasen  <mclasen@redhat.com>
5304
5305         * gtk/gtkentry.c (gtk_entry_size_request): Make sure the style is 
5306         there before using it.
5307
5308 Sun Apr 11 15:08:45 2004  Jonathan Blandford  <jrb@gnome.org>
5309
5310         * gtk/gtktreeprivate.h: Moved search entries into priv data.
5311
5312         * gtk/gtktreeview.c: Prep for type-ahead support.
5313
5314         (gtk_tree_view_destroy): Destroy the search window explicitly.
5315         (gtk_tree_view_key_press): Minor change; prep for type-ahead
5316         (gtk_tree_view_ensure_interactive_directory): New function
5317         (gtk_tree_view_focus_out): Rework to handle new entry life-cycle.
5318         (gtk_tree_view_real_start_interactive_search): rework
5319         (gtk_tree_view_search_dialog_hide): ditto
5320         (gtk_tree_view_search_delete_event): ditto
5321         (gtk_tree_view_search_button_press_event): ditto
5322         (gtk_tree_view_search_key_press_event): ditto
5323         (gtk_tree_view_search_move): ditto
5324         (gtk_tree_view_search_init): ditto
5325
5326         * gtk/gtktreeviewcolumn.c:
5327         (gtk_tree_view_column_cell_layout_clear): remove unused variable.
5328
5329         * tests/testfilechooser.c: (main): change
5330
5331 2004-04-11  Hans Breuer  <hans@breuer.org>
5332
5333         * gdk/win32/gdkspawn-win32.c : workaround for bug #137496,
5334         the real fix would involve just another small API breakage,
5335         i.e. gdk_spawn_* using GPid not just gint.
5336
5337         * gtk/makefile.msc.in : build gtk-win32.res, not gtk.res
5338
5339 2004-04-10  Tor Lillqvist  <tml@iki.fi>
5340
5341         * gdk/win32/gdkkeys-win32.c (gdk_keymap_translate_keyboard_state):
5342         If both Shift and CapsLock pressed, ignore the shift only for
5343         letters (that would have been affected by the CapsLock). (#139095)
5344
5345         * gdk/win32/gdkglobals-win32.c: Disable tablet support by default,
5346         seems to be even buggier now than it used to be. (#138341)
5347         Initialize _gdk_input_ignore_wintab to TRUE.
5348
5349         * gdk/win32/gdkmain-win32.c: Add --use-wintab switch and
5350         GDK_USE_WINTAB environment variable to turn on tablet support.
5351
5352 2004-04-09  Christian Persch  <chpe@cvs.gnome.org>
5353
5354         * gtk/gtkuimanager.c: (gtk_ui_manager_insert_action_group),
5355         (gtk_ui_manager_remove_action_group): Terminate
5356         g_object_[dis]connect() calls with NULL instead of 0.
5357         Fixes #138997.
5358
5359 2004-04-09  Guntupalli Karunakar  <karunakar@freedomink.org>
5360
5361         * configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
5362
5363 2004-04-07  Federico Mena Quintero  <federico@ximian.com>
5364
5365         Fix #132500.
5366
5367         * gtk/gtkfilesystem.c (gtk_file_system_parse): Ensure that the
5368         passed-in 'str' is not NULL.
5369
5370         * gtk/gtkfilesystemunix.c (expand_tilde): New helper function;
5371         expands "~/" or "~foo/" at the beginning of a filename.
5372         (gtk_file_system_unix_parse): Use expand_tilde() before doing
5373         anything else.
5374
5375         * gtk/gtkfilechooserentry.c
5376         (gtk_file_chooser_entry_maybe_update_directory): Take in a
5377         force_reload argument.
5378         (gtk_file_chooser_entry_changed): If gtk_file_system_parse()
5379         returns an error, set the file_part_pos to -1.
5380         (load_directory_callback): Only populate the model if the
5381         file_part_pos is not -1.
5382
5383 2004-04-06  Pablo Saratxaga  <pablo@mandrakesoft.com>
5384
5385         * configure.in: Added Icelandic (is) to ALL_LINGUAS
5386
5387 2004-04-05  Federico Mena Quintero  <federico@ximian.com>
5388
5389         * gtk/gtkfilechooserdefault.c (location_popup_handler): Use a
5390         title for SAVE and CREATE_FOLDER modes.  Fixes #137272.
5391
5392         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Look
5393         for G_DIR_SEPARATOR in the display_name, and err out if it is
5394         present; use the same error message as Nautilus.  Fixes #136467.
5395
5396         * gtk/gtkfilechooserdefault.c (file_pane_create): Make the
5397         new-folder button say "Create Fo_lder" rather than "Create
5398         _Folder", so that the mnemonic doesn't conflict with the "Save in
5399         _folder" label.  Fixes #136975.
5400
5401 2004-04-05  Federico Mena Quintero  <federico@ximian.com>
5402
5403         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Ref/sink the
5404         buttons.  Also, free them correctly upon failure.  Based on a
5405         patch by Morten Welinder, fixes #137956.
5406
5407 2004-04-05  Anders Carlsson  <andersca@gnome.org>
5408
5409         * gdk/gdk.c (gdk_arg_context_parse): Handle '--' correctly.
5410
5411 Fri Apr  2 17:57:33 2004  Jonathan Blandford  <jrb@redhat.com>
5412
5413         * gtk/gtktreeview.c (gtk_tree_view_row_inserted): set the height
5414         correctly for fixed height when inserting a node, #138082
5415
5416 2004-04-01  Federico Mena Quintero  <federico@ximian.com>
5417
5418         Fix #136077.
5419
5420         * gtk/gtkpathbar.h (struct _GtkPathBarClass): Add a
5421         "child_is_hidden" boolean argument to the "path-clicked" signal.
5422
5423         * gtk/gtkpathbar.c (struct _ButtonData): Added a file_is_hidden
5424         field.
5425         (make_directory_button): Take a file_is_hidden argument; put it in
5426         the ButtonData.
5427         (_gtk_path_bar_set_path): See whether each path component path is
5428         a hidden file.
5429         (gtk_path_bar_class_init): Add the file_is_hidden argument to the
5430         "path-clicked" signal.
5431         (button_clicked_cb): See if the downwards button represents a
5432         hidden file for the file_is_hidden argument in the signal
5433         emission.
5434
5435         * gtk/gtkmarshalers.list: Added a signal type VOID:POINTER,BOOLEAN.
5436
5437         * gtk/gtkfilechooserdefault.c
5438         (gtk_file_chooser_default_select_path): If we fail to switch
5439         folders, don't try to select the path in the file system model.
5440         Also, return the result from _gtk_file_system_model_path_do().
5441         (gtk_file_chooser_default_select_path): Turn on show_hidden in the
5442         file system model if we are asked to select a hidden file.
5443         (path_bar_clicked): Show hidden files based on whether the
5444         immediate downwards folder in the path bar is a hidden file
5445         itself.
5446         (struct _GtkFileChooserDefault): Added fields
5447         browse_files_popup_menu and browse_files_popup_menu_hidden_files_item.
5448         (create_file_list): Set an object data key of
5449         "GtkFileChooserDefault" on the tree view so that we can find the
5450         impl from the popup menu callbacks.  Also, hook up to the
5451         "button-press-event" and "popup-menu" signals in the file list to
5452         bring up a popup menu.
5453         (list_popup_menu_cb): New callback.
5454         (list_button_press_event_cb): New callback.
5455
5456         Fix #138763:
5457
5458         * gtk/gtkfilesystemmodel.c
5459         (_gtk_file_system_model_new): Oops, connect_object to
5460         "finished-loading".
5461
5462 2004-03-31  Tor Lillqvist  <tml@iki.fi>
5463
5464         * configure.in: Move AC_CANONICAL_HOST earlier, before the check
5465         for native Win32. (#136559, J. Ali Harlow)
5466
5467         * gdk/win32/gdkdrawable-win32.c (draw_arc): Use X11 semantics for
5468         angles. Thanks to Tim Newsham.
5469
5470 2004-03-29  Federico Mena Quintero  <federico@ximian.com>
5471
5472         Fix #137520.
5473
5474         * gtk/gtkfilesystem.h (struct _GtkFileFolderIface): Added slots
5475         for an ::is_finished_loading() method and a ::finished_loading()
5476         signal at the end of the struct.
5477
5478         * gtk/gtkfilesystem.c (gtk_file_folder_base_init): Create the
5479         "finished-loading" signal.
5480         (gtk_file_folder_is_finished_loading): New function.
5481
5482         * gtk/gtkfilesystemunix.c
5483         (gtk_file_folder_unix_is_finished_loading): Implement.
5484
5485         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModelClass): New
5486         slot for a "finished-loading" signal.
5487         (gtk_file_system_model_class_init): Create the "finished-loading"
5488         signal.
5489         (struct _GtkFileSystemModel): New field
5490         idle_finished_loading_source.  We emit the "finished-loading"
5491         signal in an idle if the root folder was done loading right in
5492         _gtk_file_system_model_new(), so that the caller has a chance to
5493         connect to the signal.
5494         (_gtk_file_system_model_new): Connect to the normal signals of the
5495         folder even if the initial _list_children() fails.  Also, see if
5496         the folder is finished loading; connect to the "finished-loading"
5497         signal otherwise.
5498         (gtk_file_system_model_finalize): Remove the idle handler.
5499
5500         * gtk/gtkfilechooserdefault.c (set_list_model): Set a busy cursor
5501         and connect to the model's "finished-loading" signal.
5502         (get_toplevel): New helper function.
5503         (error_message): Use get_toplevel().
5504         (trap_activate_cb): Likewise.
5505         (location_popup_handler): Likewise.
5506         (set_busy_cursor): New function.
5507         (browse_files_model_finished_loading_cb): New callback.
5508
5509 2004-03-25  Federico Mena Quintero  <federico@ximian.com>
5510
5511         * gtk/gtkfilechooserdefault.c (check_preview_change): Just use the
5512         file under the cursor; we don't need the logic from
5513         GtkFileSelection after all.  Fixes #132255.
5514
5515 2004-03-25  Federico Mena Quintero  <federico@ximian.com>
5516
5517         * gtk/gtkfilechooserdefault.c (location_entry_create): Fill the
5518         location entry with the display name of the file under the cursor
5519         for Open mode, or the typed filename in Save mode.
5520
5521 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
5522
5523         * gtk/gtkfilesystemwin32.c
5524         (filename_is_root): Bare drive designators (eg., "c:") are
5525         no longer considered as root filenames.  Fixed #137942
5526
5527 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
5528
5529         * gtk/gtkfilesystemwin32.c
5530         (gtk_file_system_win32_create_folder): Invert test for error in
5531         mkdir.  Fixes #137945
5532
5533 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
5534
5535         Fixed #138004 using Federico's code from #132327.
5536
5537         * gtk/gtkfilesystemwin32.c (struct _GtkFileSystemWin32): Add a
5538         folder_hash field to keep a list of live folder objects.
5539         (gtk_file_system_win32_init): Create the folder_hash.
5540         (gtk_file_system_win32_finalize): Destroy the folder_hash.
5541         (gtk_file_system_win32_get_folder): Ref and return an existing
5542         folder if we have it around, otherwise return a new folder object.
5543         (struct _GtkFileFolderWin32): Add a field for the parent file system.
5544         (gtk_file_folder_win32_finalize): Remove the folder from the file
5545         system's hash table.
5546         (gtk_file_system_win32_create_folder):  Emit "files-added" on the
5547         newly-created folder's parent.  Fixes #138004.
5548
5549 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
5550
5551         * gtk/gtkfilesystemwin32.c
5552         (gtk_file_system_win32_get_folder): Test that path is actually
5553         a directory and throw error if not. Fixed bug #137950
5554
5555 2004-03-22  J. Ali Harlow  <ali@juiblex.co.uk>
5556
5557         * gtk/gtkfilesystemwin32.c
5558         (gtk_file_system_win32_volume_get_display_name): Ignore empty
5559         volume labels; assume that GetVolumeInformation would fail if
5560         GetVolumeInformationW does; catches a small memory leak;
5561         pass the buffer size to GetVolumeInformationW in wide
5562         characters instead of bytes. Fixes bug #137543
5563         (list_volumes): Cope with the theoretical possibility of
5564         more than 26 logical drives. Fixes bug #137940
5565         (bookmarks_serialize): Now actually removes bookmarks.
5566         Fixes bug #137943
5567
5568 2004-03-22  Guntupalli Karunakar  <karunakar@freedomink.org>
5569
5570         * configure.in: Added "pa" (Punjabi) to ALL_LINGUAS.
5571
5572 2004-03-21  Tor Lillqvist  <tml@iki.fi>
5573
5574         * gtk/gtkfilesystemwin32.c
5575         (gtk_file_system_win32_volume_get_base_path): Include the
5576         backslash. Otherwise gtk_file_system_win32_path_to_uri() returns
5577         NULL for a volume base path, as g_filename_to_uri() requires an
5578         absolute path, and just a drive letter and colon isn't. (#137543)
5579
5580 2004-03-20  Hans Breuer  <hans@breuer.org>
5581
5582         * gtk/gtkfilesystemwin32.c : applied the undisputable and
5583         required [due to recent gtkfilesystem internal api semantic 
5584         changes] part of patches to fix bug #137543 (Tor Lillqvist,
5585         J. Ali Harlow)
5586
5587         * gdk/gdkevents-win32.c (handle_configure_event) :
5588              (gdk_event_translate), WM_WINDOWPOSCHANGED : initialize
5589         GdkWindowObject::x, y with screen coords to make 
5590         gdk_window_get_position () return the right thing and thus fix
5591         drag and drop positioning (e.g. Gimp tabs, fixes bug #137192)
5592
5593 2004-03-19  Federico Mena Quintero  <federico@ximian.com>
5594
5595         * Revert the patch to #137520, as 2.4.1 is for conservative bug
5596         fixes only.  The patch is attached to the bug report, for
5597         reference.
5598
5599 2004-03-19  Morten Welinder  <terra@gnome.org>
5600
5601         * gtk/gtkfilechooserdefault.c
5602         (gtk_file_chooser_default_set_current_folder): Test existance of
5603         the path after checking for locality, if needed.
5604
5605 2004-03-19  Federico Mena Quintero  <federico@ximian.com>
5606
5607         Fix #137520.
5608
5609         * gtk/gtkfilesystem.h (struct _GtkFileFolderIface): Added slots
5610         for an ::is_finished_loading() method and a ::finished_loading()
5611         signal at the end of the struct.
5612
5613         * gtk/gtkfilesystem.c (gtk_file_folder_base_init): Create the
5614         "finished-loading" signal.
5615         (gtk_file_folder_is_finished_loading): New function.
5616
5617         * gtk/gtkfilesystemunix.c
5618         (gtk_file_folder_unix_is_finished_loading): Implement.
5619
5620         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModelClass): New
5621         slot for a "finished-loading" signal.
5622         (gtk_file_system_model_class_init): Create the "finished-loading"
5623         signal.
5624         (struct _GtkFileSystemModel): New field
5625         idle_finished_loading_source.  We emit the "finished-loading"
5626         signal in an idle if the root folder was done loading right in
5627         _gtk_file_system_model_new(), so that the caller has a chance to
5628         connect to the signal.
5629         (_gtk_file_system_model_new): Connect to the normal signals of the
5630         folder even if the initial _list_children() fails.  Also, see if
5631         the folder is finished loading; connect to the "finished-loading"
5632         signal otherwise.
5633         (gtk_file_system_model_finalize): Remove the idle handler.
5634
5635         * gtk/gtkfilechooserdefault.c (set_list_model): Set a busy cursor
5636         and connect to the model's "finished-loading" signal.
5637         (get_toplevel): New helper function.
5638         (error_message): Use get_toplevel().
5639         (trap_activate_cb): Likewise.
5640         (location_popup_handler): Likewise.
5641         (set_busy_cursor): New function.
5642         (browse_files_model_finished_loading_cb): New callback.
5643
5644 Thu Mar 18 12:10:45 2004  Owen Taylor  <otaylor@redhat.com>
5645
5646         * gtk/gtktreeitem.c (gtk_tree_item_forall): Include 
5647         eventbox for expander. (#137564, reported by
5648         Jacques Garrigue)
5649
5650 2004-03-18  Guntupalli Karunakar  <karunakar@freedomink.org>
5651
5652         * mr.po: Added "mr" for Marathi to ALL_LINGUAS.
5653
5654 2004-03-17  Morten Welinder  <terra@gnome.org>
5655
5656         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free
5657         volumes not actually put into the shortcut list.
5658
5659         * tests/prop-editor.c (object_changed): Plug leak.
5660
5661         * tests/testfilechooser.c (main): Plug some leaks and expose
5662         others.
5663
5664         * tests/prop-editor.c (create_prop_editor): Don't leak the tooltip
5665         object.  Fixed #136652.
5666
5667         * gtk/gtkfilechooserdefault.c (check_icon_theme): Do nothing if we
5668         have no screen.  Fixes #137260.
5669         (shortcuts_add_bookmark_from_path): Simplify using check_is_folder
5670         thereby fixing leak.  Fixes #137259.
5671
5672         * gtk/gtkpathbar.c (gtk_path_bar_forall): Make this work when the
5673         slider buttons have been destroyed.
5674         (gtk_path_bar_remove): Make this work for slider buttons too.
5675         Fixes #137257
5676
5677 2004-03-15  Morten Welinder  <terra@gnome.org>
5678
5679         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmark_from_path):
5680         Sanitize and plug leak.
5681         (check_icon_theme): Only do something if the widget has a screen.
5682
5683 Wed Mar 17 01:20:28 2004  Matthias Clasen  <maclas@gmx.de>
5684
5685         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
5686         Move the repositioning logic from _gtk_entry_completion() popup
5687         over here. Fixes #137355, reported by Niklas Knutsson.
5688