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