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