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