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