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