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