]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-8
Add the same warning that the blink_cb() in GtkEntry already has.
[~andy/gtk] / ChangeLog.pre-2-8
1 Mon Aug  2 00:21:26 2004  Matthias Clasen  <maclas@gmx.de>
2
3         * gtk/gtktextview.c (blink_cb): Add the same warning
4         that the blink_cb() in GtkEntry already has.  (#148733)
5
6 Mon Aug  2 00:12:16 2004  Matthias Clasen  <maclas@gmx.de>
7
8         * gtk/gtkentry.c (gtk_entry_class_init):
9         (gtk_entry_get_alignment): 
10         (gtk_entry_set_alignment): Document the xalign property
11         and its getter and setter as 2.4 additions.  (#148978,
12         Axel Simon)
13
14 Mon Aug  2 00:11:31 2004  Matthias Clasen  <maclas@gmx.de>
15
16         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): 
17         * gtk/gtkactiongroup.c (gtk_action_group_class_init): Use
18         canonical signal names in doc comments, since gtk-doc won't
19         pick up signal docs with underscores.  
20
21 2004-08-01  Matthias Clasen  <mclasen@redhat.com>
22         
23         * configure.in: Post-release version bump
24
25         * === Released 2.5.1 ===
26  
27 Thu Jul 29 16:36:42 2004  Jonathan Blandford  <jrb@redhat.com>
28
29         * gtk/gtktreeprivate.h: New arguments
30
31         * gtk/gtktreeview.c:
32         (gtk_tree_view_class_init): Add key_release callback
33         (gtk_tree_view_init): Initialize timeout handler
34         (gtk_tree_view_unrealize): clear timeout if needed
35         (gtk_tree_view_key_press): Typeahead support
36         (gtk_tree_view_key_release): Not used yet -- will be needed for
37         typeahead.
38         (gtk_tree_view_search_entry_flush_timeout): Remove typeahead entry
39         in a timeout.
40         (gtk_tree_view_ensure_interactive_directory):
41         (gtk_tree_view_real_start_interactive_search):
42         (gtk_tree_view_search_init):
43         (gtk_tree_view_start_interactive_search): Typeahead support added.
44         (gtk_tree_view_search_dialog_hide): Clear timeout and text when we
45         hide.
46
47 Sat Jul 31 23:17:44 2004  Matthias Clasen  <maclas@gmx.de>
48
49         * NEWS: Updates
50
51 Sat Jul 31 01:13:01 2004  Matthias Clasen  <maclas@gmx.de>
52
53         * gtk/gtkwindow.c: 
54         * gtk/gtkentry.c: 
55         * gtk/gtkaction.c: Use the canonical form of signal names 
56         after "notify::". Otherwise, no notification arrives. 
57         GObject should have a warning for that, really.  (#148879, 
58         Lorenzo Gil Sánchez)
59
60 Sat Jul 31 00:42:08 2004  Matthias Clasen  <maclas@gmx.de>
61
62         * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): 
63         * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_above): Don't
64         set both states at once.  (#148789, Matthew Garrett)
65
66 2004-07-30  Matthias Clasen  <mclasen@redhat.com>
67
68         * gtk/gtkcombobox.c: Don't forget to destroy the row separator
69         function user data when the combo box is destroyed.
70
71 2004-07-30  Matthias Clasen  <mclasen@redhat.com>
72
73         * gtk/gtkcombobox.h: 
74         * gtk/gtkcombobox.c: Change the api for separators to use a 
75         separator function instead of a boolean column.
76
77         * tests/testcombo.c: Update to match the api change.
78
79 Fri Jul 30 02:21:41 2004  Matthias Clasen  <maclas@gmx.de>
80
81         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
82         Fix the positioning of the popup. 
83
84 Fri Jul 30 00:56:31 2004  Matthias Clasen  <maclas@gmx.de>
85
86         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_active_changed): 
87         Implement this in terms of gtk_combo_box_get_active_iter(),
88         instead of gtk_combo_box_get_active().
89
90 2004-07-29  Federico Mena Quintero  <federico@ximian.com>
91
92         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): Add
93         a field for an "add to shortcuts" menu item.
94         (popup_menu_detach_cb): Clear out the field.
95         (file_list_build_popup_menu): Only build the menu here.
96         (file_list_update_popup_menu): Build the menu, then update the
97         sensitivity of its items.
98         (file_list_popup_menu): Use file_list_update_popup_menu().
99         (bookmarks_check_add_sensitivity): Also set the sensitivity of the
100         popup menu item.  Correctly handle the case for a *single* file.
101         Simplify a bit.
102         (bookmarks_add_selected_folder): New helper function; code moved
103         over from add_bookmark_button_clicked_cb().
104         (add_bookmark_button_clicked_cb): Use the function above.
105         (selection_check): Rather than returning a boolean value for
106         emptiness, actually return the number of selected rows.  Also,
107         simplify a bit.
108         (get_selected_path): New helper function.
109
110 2004-07-29  Anders Carlsson  <andersca@gnome.org>
111
112         * demos/gtk-demo/Makefile.am:
113         * demos/gtk-demo/clipboard.c: (copy_button_clicked),
114         (paste_received), (paste_button_clicked), (do_clipboard):
115         Add clipboard demo.
116         
117 2004-07-28  Federico Mena Quintero  <federico@ximian.com>
118
119         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
120         Store signal IDs in gulongs, not guints!
121         (gtk_file_chooser_default_hierarchy_changed): We now monitor the
122         focus widget on our toplevel to know which widget was last focused
123         at the time our "should_respond" method gets called.
124         (shortcuts_activate_selected): New helper function.
125         (shortcuts_get_selected): New helper function.
126         (remove_selected_bookmarks): Use shortcuts_get_selected().
127         (bookmarks_check_remove_sensitivity): Likewise.
128         (shortcuts_reorder): Likewise.
129         (shortcuts_activate_iter): Renamed from shortcuts_activate_item().
130         Activate by iter, not by item number.
131         (save_folder_combo_changed_cb): Use shortcuts_activate_iter().
132         (shortcuts_row_activated_cb): Likewise.
133         (gtk_file_chooser_default_should_respond): If the last focused
134         widget on the toplevel was the shortcuts list, activate the
135         selected shortcut.
136
137 2004-07-28  Matthias Clasen  <mclasen@redhat.com>
138
139         * gdk/linux-fb/gdkprivate-fb.h: Make the fb backend compile against
140         current freetype.  (#148558, Nicolas Deves)
141
142         * gtk/gtktreeview.c: Replace the EXPANDER_MAX macro by 
143         ROW_HEIGHT.  (#145528)
144
145         * gtk/gtkuimanager.c: Warning fixes.
146
147         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Fix
148         prototype mismatch.  (#148589, Nicolas Deves)
149
150 2004-07-28  Anders Carlsson  <andersca@gnome.org>
151
152         * gdk/x11/gdkdrawable-x11.c (gdk_draw_rectangle_alpha_libgtk_only): 
153         Cast to 32-bit integers when premultiplying, suggested by Keith Packard.
154
155 2004-07-27  Anders Carlsson  <andersca@gnome.org>
156
157         * demos/gtk-demo/iconview.c: (do_iconview):
158         Change selection mode to multiple.
159         
160         * gdk/gdkdrawable.h:
161         * gdk/linux-fb/gdkdrawable-fb2.c:
162         (gdk_draw_rectangle_alpha_libgtk_only):
163         * gdk/win32/gdkdrawable-win32.c:
164         (gdk_draw_rectangle_alpha_libgtk_only):
165         * gdk/x11/gdkdrawable-x11.c: (gdk_x11_draw_image),
166         (get_impl_drawable), (gdk_x11_draw_pixbuf),
167         (gdk_draw_rectangle_alpha_libgtk_only):
168         Add gdk_draw_rectangle_alpha_libgtk_only which uses 
169         XRenderFillRectangle on X11. It's stubbed out on the 
170         Win32 and fb backends.
171         
172         * gtk/gtkiconview.c: 
173         (gtk_icon_view_paint_rubberband):
174         Use gdk_draw_rectangle_alpha_libgtk_only here.
175
176 2004-07-27  Anders Carlsson  <andersca@gnome.org>
177
178         * gtk/gtkaboutdialog.c: (gtk_about_dialog_init),
179         (text_view_style_set), (add_credits_page),
180         (display_credits_dialog), (display_license_dialog):
181         Remove dialog separators, fix text view background setting,
182         use Close buttons instead of OK buttons.
183         
184 2004-07-27  Matthias Clasen  <mclasen@redhat.com>
185
186         * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory): 
187         Add a frame around the C-f popup to stop it from merging visually
188         in whatever is underneath.
189
190         * gtk/gtkcombobox.h: 
191         * gtk/gtkcombobox.c (gtk_combo_box_get_popup_accessible): New 
192         function necessary to make GtkComboBox accessible.  (#132847, 
193         Padraig O'Briain)
194
195 Tue Jul 27 02:34:06 2004  Matthias Clasen  <maclas@gmx.de>
196
197         * gtk/gtkwidget.c (gtk_widget_dispose): Hide parentless
198         windows when disposing them.  (#133231, Michael Natterer)
199
200 2004-07-26  Matthias Clasen  <mclasen@redhat.com>
201
202         * gtk/gtklabel.c (gtk_label_class_init): Expand the documentation
203         for GtkLabel::ellipsize.
204
205 Mon Jul 26 00:38:27 2004  Matthias Clasen  <maclas@gmx.de>
206
207         Make the GtkComboBox in list mode scroll if the list is too
208         large to fit in the popup.  (#135543)
209
210         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add a 
211 o       scrolled window to the popup in list mode.
212         (gtk_combo_box_list_position): Calculate the height of the
213         popup so that it fits on the screen, set the scrollbar policy
214         of the scrolled window appropriately.
215         (gtk_combo_box_popup): Use the height calculated by 
216         gtk_combo_box_list_position().
217         (gtk_combo_box_remeasure): Don't add unnecessary padding.
218         (gtk_combo_box_size_request): But add the focus with here.
219         (gtk_combo_box_list_setup): Connect to enter notify on the 
220         popup window to activate auto scrolling.
221         (gtk_combo_box_list_enter_notify): Activate auto scrolling.
222         (gtk_combo_box_list_button_pressed): Setup a timeout for
223         auto scrolling. 
224         (gtk_combo_box_list_scroll_timeout): Timeout function for
225         auto scrolling.
226         (gtk_combo_box_list_auto_scroll): Scroll the list when the 
227         pointer leaves the window.
228         
229 Sun Jul 25 19:51:17 2004  Matthias Clasen  <maclas@gmx.de>
230
231         * gtk/gtknotebook.c (gtk_notebook_scroll): Ignore scroll
232         events from the content of the page.  (#148409, Gabriel 
233         de Perthuis)
234
235 Sat Jul 24 21:38:12 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
236
237         * gtk/gtktoolbar.c (internal_insert_element): Warn if you try to
238         add a tool item to a toolbar using the deprecated API.
239
240 Fri Jul 23 13:04:10 2004  Matthias Clasen  <maclas@gmx.de>
241
242         * gtk/gtkdnd.c (gtk_drag_dest_set): Revert the change to
243         initialize target_list to an empty list instead of NULL,
244         since it broke tree dnd.  (#148215, Ernst Persson)
245
246         * gtk/gtkdnd.c (gtk_drag_dest_add_text_targets): 
247         * gtk/gtkdnd.c (gtk_drag_source_add_text_targets): Instead 
248         handle target list being NULL here.
249
250 2004-07-23  Dafydd Harries  <daf@muse.19inch.net>
251
252         * gtk/gtkradioaction.c:
253         * gtk/gtkradiobutton.c:
254         * gtk/gtkentry.c:
255         * gtk/gtkmisc.c:
256         Improve various translatable messages. (#137616)
257
258 Fri Jul 23 11:11:10 2004  Matthias Clasen  <maclas@gmx.de>
259
260         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): 
261         Align the entry in the same way as the cell.  (#136749)
262
263 Fri Jul 23 11:01:00 2004  Matthias Clasen  <maclas@gmx.de>
264
265         * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): 
266         Don't iterate too far up. (#147965, Olivier Sessink)
267
268 Fri Jul 23 10:28:43 2004  Matthias Clasen  <maclas@gmx.de>
269
270         * gtk/gtktreeview.c (gtk_tree_view_finalize): 
271         * gtk/gtkradioaction.c (gtk_radio_action_finalize): 
272         * gtk/gtkfontsel.c (gtk_font_selection_finalize): 
273         * gtk/gtkcellview.c (gtk_cell_view_finalize): 
274         * gtk/gtkcalendar.c (gtk_calendar_finalize): 
275         * gtk/gtkactiongroup.c (gtk_action_group_finalize): Remove
276         unnecessary checks.  (#148175, Morten Welinder)
277
278 Thu Jul 22 01:42:16 2004  Matthias Clasen  <maclas@gmx.de>
279
280         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
281         Add a new :ellipsize property which controls ellipsization of the 
282         rendered text.  (#144835, Vincent Untz, patch by Jonathan Blandford
283         and Anders Carlsson)
284         
285         * gtk/gtkfilechooserdefault.c (create_file_list): Use ellipsization
286         for the name column.
287
288 Thu Jul 22 01:21:28 2004  Matthias Clasen  <maclas@gmx.de>
289
290         * gtk/gtkfontsel.c (gtk_font_selection_init): Add additional
291         accessability relations.  (#141804,  Padraig O'Briain)
292
293 Thu Jul 22 01:16:23 2004  Matthias Clasen  <maclas@gmx.de>
294
295         * gtk/gtkcombobox.c: Avoid some warnings.
296
297 Thu Jul 22 01:05:16 2004  Matthias Clasen  <maclas@gmx.de>
298
299         * configure.in: Require Pango 1.5.1 (for ellipsisation).
300
301         * gtk/gtklabel.h: 
302         * gtk/gtklabel.c (gtk_label_class_init): Add a new :ellipsize
303         property which controls ellipsization of the label.  (#125250, 
304         Tim Van Wassenhove, patch by James M. Cape)
305
306         * tests/testellipsise.c: Simple test for ellipsizsation.
307
308 Wed Jul 21 22:46:27 2004  Matthias Clasen  <maclas@gmx.de>
309
310         * gtk/gtkcombobox.c (gtk_combo_box_new_text): Don't leak the
311         list store.  (#148134, Crispin Flowerday)
312
313 Wed Jul 21 22:35:47 2004  Matthias Clasen  <maclas@gmx.de>
314
315         * gtk/gtkcombobox.c (gtk_combo_box_destroy): Don't leak the
316         menu.  (#148110, Tommi Komulainen)
317
318 Wed Jul 21 22:24:10 2004  Matthias Clasen  <maclas@gmx.de>
319
320         * gtk/gtkcellview.c (gtk_cell_view_finalize): Don't leak
321         tree model and tree row reference.  (#148125, Crispin Flowerday)
322
323 Wed Jul 21 22:17:06 2004  Matthias Clasen  <maclas@gmx.de>
324
325         * tests/testcombo.c (main): Don't leak models.  (#148128,
326         Tommi Komulainen)
327
328 Wed Jul 21 21:26:08 2004  Matthias Clasen  <maclas@gmx.de>
329
330         * gtk/gtkviewport.c (viewport_set_adjustment): Don't leak
331         the adjustments.  (#148089, Tommi Komulainen)
332
333 Wed Jul 21 21:20:21 2004  Matthias Clasen  <maclas@gmx.de>
334
335         * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't leak
336         the adjustments.  (#148073, Tommi Komulainen)
337
338 Wed Jul 21 21:04:50 2004  Matthias Clasen  <maclas@gmx.de>
339
340         * gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the 
341         arrow.  (#148064, Tommi Komulainen)
342
343 2004-07-21  Matthias Clasen  <mclasen@redhat.com>
344
345         * gtk/gtkcalendar.c: Use the new text target functionality
346         in GtkTargetList instead of hardcoding a subset of text targets.
347
348 Tue Jul 20 23:11:23 2004  Matthias Clasen  <maclas@gmx.de>
349
350         * gdk/x11/gdkevents-x11.c: Hook up gtk-menu-bar-accel to
351         an XSetting, Gtk/MenuBarAccel.  (#120859, Scott James Remnant)
352
353 Tue Jul 20 22:26:29 2004  Matthias Clasen  <maclas@gmx.de>
354
355         * gtk/gtkfilechooserutils.h: 
356         * gtk/gtktoolbutton.c: 
357         * gtk/gtktoolbar.c: 
358         * gtk/gtkicontheme.c: 
359         * gtk/gtkcalendar.c: 
360         * demos/gtk-demo/ui_manager.c: 
361         * demos/gtk-demo/appwindow.c: Remove trailing commas
362         from enumerations.  (#148035)
363
364 2004-07-20  Federico Mena Quintero  <federico@ximian.com>
365
366         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Fix the
367         documentation comment for the editing-started signal.
368
369         * gtk/gtkmarshalers.list: Added VOID:OBJECT,STRING for
370         GtkCellRenderer::editing-started.
371
372 2004-07-20  Matthias Clasen  <mclasen@redhat.com>
373
374         * tests/testactions.c (main): 
375         * tests/testmerge.c (main): Add some refcount debugging.
376
377         * gtk/gtkuimanager.c (update_node, free_node): Ref an sink
378         all proxies, so that we can properly clean up floating proxies
379         which the app didn't adopt.  (#147926, Tommi Komulainen)
380
381 2004-07-20  Matthias Clasen  <mclasen@redhat.com>
382
383         Allow custom initialization of cell editables.  (#147221)
384         
385         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): 
386         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Add a 
387         ::editing-started signal as a hook for setting up the 
388         GtkCellEditable.
389         (gtk_cell_renderer_start_editing): ...and emit it here.
390
391 Mon Jul 19 23:51:50 2004  Matthias Clasen  <maclas@gmx.de>
392
393         * gtk/gtktreeview.c (gtk_tree_view_button_press): Set drag_pos
394         before grabbing the focus, since we may reenter into 
395         gtk_tree_view_motion_resize_column() which requires drag_pos
396         to be set.  (#147913, Guilherme Salgado, patch by John Finlay) 
397
398 Mon Jul 19 23:51:50 2004  Matthias Clasen  <maclas@gmx.de>
399
400         * gtk/gtktreeview.c (gtk_tree_view_enter_notify): Don't
401         use uninitialized node pointer.  (#147911, Peter Zelezny)
402
403 Tue Jul 20 04:34:56 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
404
405         * configure.in: Bump version number
406
407 Sun Jul 18 17:21:10 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
408
409         * === Released 2.5.0 ===
410
411         * NEWS: updates
412
413         * tests/testcombo.c: Fix compilation
414
415 2004-07-19  Matthias Clasen  <mclasen@redhat.com>
416
417         * gtk/gtkentrycompletion.c (gtk_entry_completion_set_popup_completion):
418         Fix doc comment.
419         
420 2004-07-19  Matthias Clasen  <mclasen@redhat.com>
421
422         Make GtkCellView public, since people seem to have uses for it, 
423         it is clean API and we were just conservative in not making it 
424         public initially. At the same time, get rid of GtkCellViewMenuItem,
425         which doesn't have any function which can't be served by a
426         GtkMenuItem with a GtkCellView child.  (#136637, Padraig O'Briain)
427
428         * gtk/gtk.h: Include gtkcellview.h
429
430         * gtk/Makefile.am (gtk_public_h_sources): 
431
432         * gtk/Makefile.am (gtk_private_h_sources): 
433         (gtk_c_sources): Remove gtkcellviewmenuitem.[hc]
434         * gtk/gtkcombobox.c: Replace all uses of GtkCellViewMenuItem by
435         GtkMenuItem with a GtkCellView child.
436
437         * gtk/gtkcellviewmenuitem.[hc]: Removed.
438
439 2004-07-19  Matthias Clasen  <mclasen@redhat.com>
440
441         Support inline autocompletion in entries  (#135953)
442         
443         * gtk/gtkentryprivate.h: 
444         * gtk/gtkentrycompletion.h: 
445         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
446         Add a new signal ::insert-prefix which can be used to override 
447         the default inline-completion behaviour. Add two new boolean
448         properties, :popup_completion and :inline_completion which
449         determine how the possible completions should be presented.
450         (gtk_entry_completion_insert_prefix): New function to request
451         a prefix insertion. 
452
453         * gtk/gtkentry.c: Add the necessary glue for inline completion. 
454
455 Sun Jul 18 15:28:24 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
456
457         * gtk/gtkdnd.c (gtk_drag_source_set, gtk_drag_dest_set): Create an
458         empty target list if targets is NULL.
459
460         * configure.in: Add check for X11/extensions/sync.h. (#147416,
461         Morten Welinder)
462
463 Sun Jul 18 01:24:31 2004  Matthias Clasen  <maclas@gmx.de>
464
465         * NEWS: Updates for 2.5.0
466
467 Sat Jul 17 23:11:04 2004  Matthias Clasen  <maclas@gmx.de>
468
469         * gtk/gtkiconview.h:
470         * gtk/gtkiconview.c (gtk_icon_view_class_init): 
471         * gtk/gtkiconview.c (gtk_icon_view_set_orientation): 
472         * gtk/gtkiconview.c (gtk_icon_view_get_orientation): 
473         * gtk/gtkiconview.c (gtk_icon_view_calculate_item_size): 
474         * gtk/gtkiconview.c (gtk_icon_view_layout_single_row): 
475         Add a new :orientation property to determine whether text
476         is positioned below or beside icons.  (#147463)
477
478 Sat Jul 17 23:03:30 2004  Matthias Clasen  <maclas@gmx.de>
479
480         * gtk/gtkiconview.c (gtk_icon_view_paint_item): 
481         * gtk/gtkiconview.c (gtk_icon_view_calculate_item_size): 
482         * gtk/gtkiconview.c (gtk_icon_view_layout_single_row): Draw 
483         focus indicator outside the selection, respect focus 
484         line width.  (#147460) 
485
486 Sat Jul 17 01:17:33 2004  Matthias Clasen  <maclas@gmx.de>
487
488         * gdk/x11/gdkdnd-x11.c (xdnd_check_dest): Fix a warning
489         message.
490
491 Sat Jul 17 00:48:27 2004  Matthias Clasen  <maclas@gmx.de>
492
493         Support text/plain selection target  (#55117, Owen Taylor)
494         
495         * gtk/gtkselection.h: 
496         * gtk/gtkdnd.h: 
497         * gtk/gtkselection.c (gtk_target_list_add_text_targets): 
498         * gtk/gtkdnd.c (gtk_drag_dest_add_text_targets): 
499         * gtk/gtkdnd.c (gtk_drag_source_add_text_targets): New
500         functions to facilitate handling of text targets.
501
502         * gtk/gtkentry.c: 
503         * gtk/gtktextview.c: Use the new text target handling 
504         functions instead of hardwiring the list of supported
505         text targets everywhere.
506
507         * gtk/gtkselection.c (gtk_selection_data_get_text): 
508         (gtk_selection_data_set_text): 
509         Support the targets text/plain, text/plain?charset=utf-8
510         and text/plain?charset=<LOCALE-CHARSET> as outlined in
511         #55117: 
512         For text/plain send only ASCII, but accept 8-bit text 
513         and treat it as ISO-8859-1 as specified by the Xdnd spec.
514         Always send CRLF terminators. Accept either and convert
515         into the native terminator for the platform.
516         
517 Fri Jul 16 23:20:34 2004  Matthias Clasen  <maclas@gmx.de>
518
519         Support themed window icons.  (#92346, Calum Benson)
520         
521         * gtk/gtkicontheme.c (gtk_icon_theme_get_icon_sizes): New 
522         function to obtain information about the sizes in which an
523         icon is available.  
524
525         * gtk/gtkwindow.h: 
526         * gtk/gtkwindow.c (gtk_window_class_init): 
527         (gtk_window_set_icon_name): 
528         (gtk_window_get_icon_name): Add an "icon_name" property
529         (gtk_window_set_default_icon_name): ...and a default icon name. 
530         (icon_list_from_theme): 
531         (update_themed_icon): New auxiliary functions to create a 
532         list of all available sizes of a themed icon and update the
533         window icon list from it.
534
535 2004-07-16  Matthias Clasen  <mclasen@redhat.com>
536
537         * gtk/gtkcombobox.c (gtk_combo_box_scroll_event): Make 
538         scrolling work if no item is selected.
539         (gtk_cell_editable_key_press): Don't eat space.
540
541         Add a combo box cell renderer (#139347, Lorenzo Gil Sanchez)
542         
543         * gtk/gtkcellrenderercombo.[hc]: New Files.
544
545         * gtk/gtk.h: 
546         * gtk/Makefile.am (gtk_public_h_sources, gtk_c_sources): 
547         Add the new files.
548
549         * gtk/gtkcombobox.[hc]: Implement GtkCellEditable, add a 
550         :has-frame property for suppressing the frame around 
551         the child and redo the size allocation logic to take 
552         focus width into account.
553
554         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): 
555         Acknowledge the GtkComboBox:has-frame property and make
556         the entry fill its allocation vertically.
557
558         * gtk/gtkmarshalers.list: Add BOOLEAN:STRING.
559                 
560         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Queue
561         a draw here to keep non-widget windows from leaving 
562         shadows behind.
563
564 2004-07-16  Matthias Clasen  <mclasen@redhat.com>
565
566         * gtk/gtkcombobox.c (gtk_combo_box_forall): Don't iterate
567         multiple times over some of the children. 
568
569 Thu Jul 15 22:19:40 2004  Matthias Clasen  <maclas@gmx.de>
570
571         Fix #60128, #58307, #144706:
572         
573         * gtk/gtkstyle.c (gtk_style_real_copy): Handle references
574         to bg_pixmaps properly.
575         (gtk_style_real_unrealize): Don't keep dangling references
576         to the bg_pixmaps.  
577         (gtk_style_attach): Split the loop into two loops, first 
578         looking for a matching style, then for an empty one.
579         (gtk_style_finalize): 
580         (gtk_style_duplicate): Add comments explaining the handling
581         of style->styles.
582
583 Thu Jul 15 20:31:28 2004  Matthias Clasen  <maclas@gmx.de>
584
585         * gtk/gtkspinbutton.c (start_spinning): Install the timeout
586         before changing the value, so that a ::value_changed handler
587         has a chance to remove it.  (#122427, Elke Meier)
588
589 Thu Jul 15 19:20:05 2004  Matthias Clasen  <maclas@gmx.de>
590
591         * gdk/x11/gdkgtk+/im-x11.c (_gdk_x11_initialize_locale): 
592         * gtk/gtkcalendar.c (gtk_calendar_class_init): Use 'cannot'
593         instead of 'can not' in messages.  (#144226, Morten Welinder)
594
595 2004-07-15  Matthias Clasen  <mclasen@redhat.com>
596
597         * gtk/gtktreeview.c (gtk_tree_view_class_init): 
598         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 
599         Correct the declared default values of several properties
600         to be in sync with the actual initial values.
601
602         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): 
603         Make spacing a property, correct the declared default values 
604         of several properties to be in sync with the actual initial 
605         values.  (#147654, Matthias Clasen)
606
607         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Don't reparent
608         back to menu->toplevel if it is already gone because we're
609         shutting down.  (#147656, John Cupitt)
610
611 2004-07-14  Federico Mena Quintero  <federico@ximian.com>
612
613         Fix #126295:
614
615         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw a focus
616         indicator along the edge of the bin_window when the tree is empty.
617         (grab_focus_and_unset_draw_keyfocus): New helper function.
618         (gtk_tree_view_button_press): Remove a bit of superfluous code.
619         Use the helper function to save on duplicated code.
620         (gtk_tree_view_button_press): Grab the focus if the tree is empty.
621         (gtk_tree_view_focus): Allow focusing into an empty tree.
622
623 2004-07-14  Matthias Clasen  <mclasen@redhat.com>
624
625         * gtk/gtkaboutdialog.c (add_credits_page): Don't use
626         gcc extensions for the ternary ?: operator.  (#147590,
627         Damien Carbery)
628
629 2004-07-14  Federico Mena Quintero  <federico@ximian.com>
630
631         Fix #144405, patch by Padraig O'Briain <padraig.obriain@sun.com>:
632
633         * gtk/gtkfilechooserdefault.c (shortcuts_list_create): Set the
634         accessible object name for the tree view.
635         (create_file_list): Likewise.
636
637 Tue Jul 13 21:53:08 2004  Matthias Clasen  <maclas@gmx.de>
638
639         * gtk/gtkicontheme.c (free_unthemed_icon): Don't leak
640         no_svg_filename.  (#147399, Kjartan Maraas)
641
642 2004-07-13  Matthias Clasen  <mclasen@redhat.com>
643
644         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_get_neighbor_sizes): 
645         Make this work in RTL context.
646
647 2004-07-13  Federico Mena Quintero  <federico@ximian.com>
648
649         * gtk/gtkfilechooserdefault.c (shortcuts_activate_volume): Set a
650         busy cursor while mounting the volume.  Also, ref the chooser
651         while mounting, as we may re-enter.  Fixes #139376.
652
653 2004-07-13  Matthias Clasen  <mclasen@redhat.com>
654
655         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): 
656         Prepare to handle composite implementations of
657         GtkCellEditable, but recursively poking at
658         allocation->y (hack stolen from GtkCList).
659         (check_expander_max): Tweak the warning.
660
661         * gtk/gtkmain.h: Add gtk_parse_args(), its a public 
662         function.  (#147476, Owen Taylor)
663
664         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't
665         crash if unrealized.
666
667 Tue Jul 13 01:50:06 2004  Matthias Clasen  <maclas@gmx.de>
668
669         * gtk/gtkaboutdialog.c (display_credits_dialog): Don't
670         display untranslated translator credits. 
671
672 Tue Jul 13 01:15:05 2004  Matthias Clasen  <maclas@gmx.de>
673
674         * gtk/gtkiconview.c: Some documentation updates.
675
676 Tue Jul 13 00:40:29 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
677
678         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Do an
679         empty begin_paint_region()/end_paint() for windows without
680         EXPOSURE_MASK.
681
682         * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_unset_bg,
683         _gdk_x11_window_tmp_reset_bg): Remove checks for EXPOSURE_MASK.
684
685 2004-07-12  Matthias Clasen  <mclasen@redhat.com>
686
687         * demos/gtk-demo/appwindow.c: Use a GtkAboutDialog.
688
689         * gtk/gtkaboutdialog.h: 
690         * gtk/gtkaboutdialog.c: New widget: GtkAboutDialog.
691
692         * gtk/Makefile.am (gtk_public_h_sources, gtk_c_sources): 
693         * gtk/gtk.h: Add GtkAboutDialog. (#109435, Paolo Borelli,
694         patch by Matthias Clasen)
695
696         * gtk/gtkrc.c (_gtk_rc_init): Apply the gtk-default-menu-item-style 
697         to cell view menu items as well.  (#147405, John Cupitt)
698
699         * gtk/gtkentrycompletion.c: Warning fixes.  (#147420,
700         Morten Welinder)
701
702         * gtk/gtkcombobox.c (gtk_combo_box_destroy): Pop down 
703         first. (#147399, John Cupitt)
704
705 Mon Jul 12 01:56:26 2004  Matthias Clasen  <maclas@gmx.de>
706
707         * gdk/x11/gdkwindow-x11.c (gdk_toplevel_x11_free_contents): 
708         Include the update_counter check in the HAVE_XSYNC condition,
709         since update_counter isn't present in the !HAVE_XSYNC case.
710
711 Mon Jul 12 00:52:04 2004  Matthias Clasen  <maclas@gmx.de>
712
713         * gtk/stock-icons/Makefile.am: 
714         * gtk/stock-icons/stock_about_{16,24}.png: 
715         * gtk/stock-icons/stock_connect_{16,24}.png: 
716         * gtk/stock-icons/stock_disconnect_{16,24}.png: 
717         * gtk/stock-icons/stock_edit_{16,24}.png: 
718         * gtk/stock-icons/stock_media_forward_{16,24}.png: 
719         * gtk/stock-icons/stock_media_next_{16,24}.png: 
720         * gtk/stock-icons/stock_media_pause_{16,24}.png: 
721         * gtk/stock-icons/stock_media_play_{16,24}.png: 
722         * gtk/stock-icons/stock_media_previous_{16,24}.png: 
723         * gtk/stock-icons/stock_media_record_{16,24}.png: 
724         * gtk/stock-icons/stock_media_rewind_{16,24}.png: 
725         * gtk/stock-icons/stock_media_stop_{16,24}.png: 
726         * gtk/gtkstock.h (GTK_STOCK_ABOUT): 
727         * gtk/gtkstock.h (GTK_STOCK_CONNECT): 
728         * gtk/gtkstock.h (GTK_STOCK_DISCONNECT): 
729         * gtk/gtkstock.h (GTK_STOCK_EDIT): 
730         * gtk/gtkstock.h (GTK_STOCK_MEDIA_FORWARD): 
731         * gtk/gtkstock.h (GTK_STOCK_MEDIA_NEXT): 
732         * gtk/gtkstock.h (GTK_STOCK_MEDIA_PAUSE): 
733         * gtk/gtkstock.h (GTK_STOCK_MEDIA_PLAY): 
734         * gtk/gtkstock.h (GTK_STOCK_MEDIA_PREVIOUS): 
735         * gtk/gtkstock.h (GTK_STOCK_MEDIA_RECORD): 
736         * gtk/gtkstock.h (GTK_STOCK_MEDIA_REWIND): 
737         * gtk/gtkstock.h (GTK_STOCK_MEDIA_STOP): 
738         * gtk/gtkiconfactory.c (get_default_icons): 
739         * gtk/gtkstock.c (builtin_items): Add a number of new stock 
740         items.  (#102530, #68015, #109811, Jordi Mallach, Benjamin Otte,
741         Michael Opdenacker)
742
743 Sun Jul 11 15:24:03 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
744
745         Bug 143330, support update counter spec.
746         
747         * configure.in: Add check for the Sync extension
748
749         * gdk/gdkwindow.h: gdk_window_enable_synchronized_configure() and
750         gdk_window_configure_finished()
751
752         * gtk/gtkwindow.c (gtk_window_move_resize): Call gdk_window_finish_configure().
753         * gtk/gtkwindow.c (gtk_window_realize): Automatically enable
754         synchronized configures.
755
756         * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store current
757         and pending counter values. 
758
759         * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): New function.
760         * gdk/x11/gdkwindow-x11.c
761         (gdk_window_enable_synchronized_configure): New function.
762         * gdk/x11/gdkwindow-x11.c (gdk_toplevel_x11_free_contents):
763         Delete update counter.
764         * gdk/x11/gdkwindow-x11.c (set_wm_protocols): Advertise
765         _NET_WM_SYNC_REQUEST when Sync is available
766
767         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Handle
768         _NET_WM_SYNC_REQUEST messages
769         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Save counter
770         value for use by gdk_window_configure_finished() when receiving
771         ConfigureNotifies.
772
773         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add use_sync flag
774         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Check if the XSync
775         extension is available
776         * gdk/x11/gdkdisplay-x11.c: Add _NET_WM_SYNC_REQUEST and
777         _NET_WM_SYNC_REQUEST_COUNTER to list of supported atoms.
778
779         * gdk/linux-fb/gdkwindow-fb.c, gdk/win32/gdkwindow-win32.c: Add
780         stubs for enable_synchronized_configure() and configure_finished()
781
782 Sat Jul 10 23:35:13 2004  Matthias Clasen  <maclas@gmx.de>
783
784         * gtk/gtkentry.c (paste_received): Make middle-button pasting
785         work as expected inside the entry.  (#116789, Scott Bronson)
786
787 Sat Jul 10 22:13:53 2004  Matthias Clasen  <maclas@gmx.de>
788
789         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): Update 
790         clipboards.  (#142805, Mikael Hallendal)
791
792 Sun Jul 11 01:38:48 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
793
794         * gtk/gtkpaned.c (gtk_paned_expose): Remove clip-region computing
795         code. Just use &paned->handle_pos.
796
797 Sun Jul 11 01:12:50 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
798
799         Bug 144271
800         
801         * gtk/gtknotebook.c (gtk_notebook_size_allocate): Remove an
802         unnecessary redraw..
803
804         * gtk/gtknotebook.c (gtk_notebook_page_allocate): Remove some
805         incorrect redraws.
806
807 Sat Jul 10 01:33:25 2004  Matthias Clasen  <maclas@gmx.de>
808
809         * docs/RELEASE-HOWTO: Updates.
810
811 Sat Jul 10 01:55:29 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
812
813         * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_{re|un}set_bg):
814         Insert checks for root window. The root window is never mapped.
815
816 Sat Jul 10 01:06:05 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
817
818         * gdk/x11/gdkwindow-x11.c (post_unmap): Fix a warning
819         * gdk/x11/gdkwindow-x11.c (show_window_internal): Actually unset
820         bg.
821
822 Sat Jul 10 00:37:45 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
823
824         Bug 113310.
825         
826         * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_{un|re}set_bg):
827         New functions that can do a recursive unset/reset bg.
828
829         * gdk/x11/gdkgeometry-x11.c: Remove
830         gdk_window_tmp_{un|re}set_bg().
831
832         * gdk/x11/gdkwindow-x11.c (pre_unmap, post_unmap): New functions
833         called before and after unmapping a window. They unset the
834         background of all other windows to prevent flicker from the X
835         server repainting the background. post_unmap() also invalidates
836         the parent of the unmapped window to draw it without roundtrips.
837
838         * gdk/x11/gdkwindow-x11.c (show_window_internal): Unset
839         background of newly mapped windows and all desendants to prevent
840         flicker.
841         
842 Fri Jul  9 15:33:55 2004  Manish Singh  <yosh@gimp.org>
843
844         * gdk/gdkevents.c: have a dummy case GDK_OWNER_CHANGE in switch
845         statements to avoid gcc warnings about not all enum values handled.
846
847         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): ignore should live in 
848         #ifdef HAVE_XFIXES.
849
850 Fri Jul  9 23:26:09 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
851
852         (Bug 113340)
853
854         * gdk/x11/gdkwindow-x11.h (struct _GdkWindowImplX11): Add an
855         "override_redirect" bit.
856
857         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set it here.
858         
859         * gdk/x11/gdkwindow-x11.c (gdk_window_move, gdk_window_resize,
860         gdk_window_move_resize): 
861         Update the local size/position cache
862         immediately for override redirect windows.
863
864         * gdk/x11/gdkwindow-x11.c (show_window_internal): Invalidate
865         newly mapped child and override redirect windows.
866
867 2004-07-09  Federico Mena Quintero  <federico@ximian.com>
868
869         Fixes #137031:
870
871         * gtk/gtkfilesystemunix.c (get_fallback_icon): New helper
872         function, fetches a stock icon as a fallback.
873         (gtk_file_system_unix_volume_render_icon): Fall back to a stock
874         icon.
875         (gtk_file_system_unix_render_icon): Fall back to a stock icon.
876         Use helper functions rather than being a mega-function.
877         (get_icon_name_for_directory): Renamed from
878         get_icon_for_directory().
879         (get_icon_type_from_path): New helper function; code pulled out
880         from gtk_file_system_unix_render_icon().
881         (get_special_icon): Likewise.
882         (get_icon_for_mime_type): Likewise.
883
884 2004-07-09  Federico Mena Quintero  <federico@ximian.com>
885
886         * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
887         temp_event.
888
889 2004-07-09  Matthias Clasen  <mclasen@redhat.com>
890
891         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the 
892         requisition of the widget instead of relying on the style
893         drawing function to supply the size of the drawable.  (#146531) 
894
895 2004-07-09  Matthias Clasen  <mclasen@redhat.com>
896
897         Make GtkEntry work harder to protect passwords:  (#143955,
898         Morten Welinder)
899         
900         * gtk/gtkentry.c (gtk_entry_destroy): Add a destroy handler
901         to clear the password even if the widget is leaked.
902
903         * gtk/gtkentry.c (gtk_entry_real_delete_text): 
904         * gtk/gtkentry.c (gtk_entry_finalize): Zero out the memory
905         before freeing it.
906         
907         * gtk/gtkentry.c (gtk_entry_real_insert_text): Zero and free
908         the old memory instead of just reallocating it.
909
910         * gtk/gtkentry.c (gtk_entry_create_layout): Don't leak text
911         direction information for passwords.
912
913 2004-07-09  Matthias Clasen  <mclasen@redhat.com>
914
915         * gtk/gtkstyle.c: Fix some cases where style functions were 
916         not handling widget == NULL properly.  (#146282)
917
918 Thu Jul  8 22:38:58 2004  Matthias Clasen  <maclas@gmx.de>
919
920         * gtk/gtktreeview.c: Improve the EXPANDER_MAX warning.
921
922 2004-07-08  Federico Mena Quintero  <federico@ximian.com>
923
924         Fix #139290:
925
926         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Add a
927         GError argument.  Do check for errors when getting the
928         GtkFileFolder:  get the folder and read the children before
929         actually creating the model.  Removed obsolete code that handled
930         roots-changed on the file system.
931         (file_model_node_get_info): Assert that we don't reach the old
932         case to display file system roots.
933         (roots_changed_callback): Removed.
934
935         * gtk/gtkfilechooserdefault.c (set_list_model): Add a GError
936         argument, and a boolean return value.  Return an error if we
937         cannot create the file system model.  On error, set a NULL model
938         on the tree.
939         (gtk_file_chooser_default_set_current_folder): Use the error value
940         from set_list_model().
941         (gtk_file_chooser_default_set_property): Set the show_hidden
942         property only if the browse_files_model exists.
943         (gtk_file_chooser_default_unselect_path): Only operate if the
944         browse_files_model exists.
945         (check_preview_change): Check whether we have the sort_model.
946         (change_folder_and_display_error): Copy the path we get passed
947         before using it.  There's a comment in there that explains why we
948         need to copy it; basically, if the passed path belongs to the
949         model, the model may go away in the middle of this function and
950         we'll be left with a dangling pointer.
951         (install_list_model_filter): Assert that the model is not NULL.
952         (set_current_filter): Check whether the model exists.
953
954         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Don't
955         g_return_if_fail if the model is NULL.
956         (gtk_tree_selection_get_selected_rows): Likewise.
957         (gtk_tree_selection_count_selected_rows): Likewise.
958         (gtk_tree_selection_selected_foreach): Likewise.
959         (gtk_tree_selection_path_is_selected): Likewise; rather just
960         return FALSE.
961         (gtk_tree_selection_select_all): Likewise.
962         (gtk_tree_selection_unselect_all): Likewise.
963         (gtk_tree_selection_select_range): Do g_return_if_fail() if the
964         model is NULL.
965         (gtk_tree_selection_unselect_range): Likewise.
966
967         * gtk/gtkfilesystemunix.c (fill_in_names): Return immediately if
968         g_dir_open() fails:  there is no need to set the error ourselves,
969         as g_dir_open() already does it.
970
971 2004-07-08  Matthias Clasen  <mclasen@redhat.com>
972
973         * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Allow
974         to restore the default search function.  (#145365, John Finlay) 
975
976         * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Don't leak 
977         references to the drag context.  (#144324, Alex Larsson)
978
979 Thu Jul  8 00:31:34 2004  Matthias Clasen  <maclas@gmx.de>
980
981         * gtk/gtktreeview.c (gtk_tree_view_set_model): Stop editing
982         when a new model is set.  (#145566, Dmitry M. Shatrov)
983
984 Wed Jul  7 23:44:32 2004  Matthias Clasen  <maclas@gmx.de>
985
986         * gtk/gtkimage.c (gtk_image_expose): Make sure that subpixbufs
987         are properly aligned for gdk_pixbuf_saturate_and_pixelate(),
988         in order to avoid rendering artifacts from misaligned 
989         pixelation patterns.  (#145585, Felipe Heidrich, Billy Biggs)
990
991 2004-07-07  Matthias Clasen  <mclasen@redhat.com>
992
993         * gtk/gtktreeview.c: 
994         * gtk/gtktreeview.h: Small documentation fixes.
995
996 2004-07-07  Matthias Clasen  <mclasen@redhat.com>
997
998         Support separators in combo boxes and more generally in tree 
999         views  (#135873):
1000         
1001         * gtk/gtkcombobox.h: 
1002         * gtk/gtkcombobox.c (gtk_combo_box_get_row_separator_column):
1003         * gtk/gtkcombobox.c (gtk_combo_box_set_row_separator_column):
1004         Add a ::row-separator-column property with getter and setter, 
1005         which can indicate a boolean model column to determine which
1006         rows are separators. 
1007
1008         * gtk/gtkcombobox.c: Display separator rows as separator menu 
1009         items in menu mode, and by using the new treeview separator 
1010         functionality in list mode.
1011
1012         * gtk/gtktreeview.h: 
1013         * gtk/gtktreeprivate.h:
1014         * gtk/gtktreeview.c (gtk_tree_view_get_row_separator_func): 
1015         * gtk/gtktreeview.c (gtk_tree_view_set_row_separator_func): 
1016         Add a callback to determine whether a row is a separator.
1017         
1018         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): 
1019         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): 
1020         * gtk/gtktreeview.c (validate_row): Use the new callback
1021         to determine whether a row is a separator, and draw it
1022         as a separator then. Since separators should take up less
1023         vertical space than regular rows, this requires removing
1024         the redundant MAX(...,expander_size) calls which appear in
1025         many places. Instead, the MAX() is now only done in 
1026         validate_row(), and only if the row is not a separator.
1027         To catch possible side effects of this intrusive change,
1028         I have left EXPANDER_MAX() calls in place of the MAX() calls
1029         which will emit a warning if something breaks. They should
1030         be removed before 2.6.
1031
1032         * gtk/gtktreeselection.c (row_is_selectable): Don't let 
1033         separator rows be selected.
1034         
1035         * tests/testcombo.c (create_blaat): Add a separator column.
1036
1037 Tue Jul  6 22:58:00 2004  Matthias Clasen  <maclas@gmx.de>
1038
1039         * gdk/x11/gdkwindow-x11.c (gdk_x11_window_set_user_time): Fix
1040         a 64bit alignment issue.  (#144302, Sunil)
1041
1042 2004-07-07  Tor Lillqvist  <tml@iki.fi>
1043
1044         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text)
1045         * gdk/win32/gdkfont-win32.c (gdk_text_extents)
1046         * gdk/win32/gdkproperty-win32.c (find_common_locale,
1047         gdk_property_change)
1048         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Use
1049         g_utf8_to_utf16() instead of the removed _gdk_utf8_to_ucs2() (see
1050         below).
1051
1052         * gdk/win32/gdkglobals-win32.c
1053         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init)
1054         * gdk/win3/gdkprivate-win32.h: Add a variable for the TARGETS
1055         atom. Initialize it. Declare it. Drop the variable for the
1056         COMPOUND_TEXT atom.
1057
1058         * gdk/win32/gdkim-win32.c (gdk_wcstombs): Don't return UTF-8. This
1059         function is supposed to return the string in the locale's charset
1060         and encoding. Use g_convert().
1061
1062         (gdk_mbstowcs): Similarily, don't take an UTF-8 string, but a
1063         string in the locale's charset. Use g_convert().
1064
1065         (_gdk_ucs2_to_utf8, _gdk_utf8_to_wcs, _gdk_utf8_to_ucs2):
1066         Delete. The UCS-2 functions didn't handle surrogates anyway. Use
1067         GLib's UTF-16 functions instead. Windows uses UTF-16.
1068
1069         * gdk/win32/gdkprivate-win32.h: Remove declarations of the deleted
1070         functions mentioned above.
1071
1072         * gdk/win32/gdkproperty-win32.c (gdk_property_change): Use CF_TEXT
1073         also if the string is of type STRING, i.e. ISO-8859-1, and the
1074         current codepage is 1252, and contains no C1 chars. Accept
1075         also UTF8_STRING.
1076
1077         * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
1078         Mark as static. When storing STRING data, convert to
1079         Latin-1. (#140537)
1080         (gdk_selection_owner_set_for_display): Now that STRING is always
1081         ISO-8859-1, use UTF8_STRING when sending the selection request
1082         to ourselves.
1083
1084         (gdk_selection_convert): Handle also UTF8_STRING. (#140537, John
1085         Ehresman)
1086
1087         (gdk_text_property_to_text_list_for_display): Make work more like
1088         X11 version. Do obey the encoding parameter.
1089
1090         (gdk_string_to_compound_text_for_display,
1091         gdk_utf8_to_compound_text_for_display): Don't even pretend
1092         supporting COMPOUND_TEXT.
1093
1094         (gdk_utf8_to_string_target): Convert to ISO-8859-1, like on X11.
1095
1096         (sanitize_utf8): Zero-terminate string.
1097
1098 2004-07-06  Matthias Clasen  <mclasen@redhat.com>
1099
1100         * gtk/stock-icons/Makefile.am: Add stock_file_16.png, 
1101         stock_file_24.png, stock_directory_16.png and stock_directory_24.png.
1102
1103         * gtk/gtkstock.h (GTK_STOCK_FILE, GTK_STOCK_DIRECTORY): 
1104         * gtk/gtkiconfactory.c (get_default_icons): New stock icons as 
1105         fallbacks for gtkfilechooser. Currently these are the same images
1106         as the "new" and "open" items...
1107
1108 Tue Jul  6 10:00:22 2004  Jonathan Blandford  <jrb@redhat.com>
1109
1110         Fix for #136496, Pawel Salek:
1111         
1112         * gtk/gtktreeview.c (gtk_tree_view_row_changed): Queue a redraw on
1113         a node when it changes in fixed_height mode.
1114
1115         (gtk_tree_view_node_queue_redraw): new function to queue a redraw
1116         on a node.
1117
1118 2004-07-06  Matthias Clasen  <mclasen@redhat.com>
1119
1120         * gtk/gtkmenu.c (gtk_menu_position): Make sure 
1121         private->monitor_num is a valid monitor number before 
1122         using it.  (#139187, Michael Natterer)
1123
1124 Tue Jul  6 02:00:28 2004  Matthias Clasen  <maclas@gmx.de>
1125
1126         * gtk/gtkfilechooserdefault.c (popup_position_func): 
1127         * gtk/gtkentry.c (popup_position_func): 
1128         * gtk/gtktextview.c (popup_position_func): Improve positioning
1129         of keyboard-activated menus with Xinerama.
1130
1131 Tue Jul  6 00:29:03 2004  Matthias Clasen  <maclas@gmx.de>
1132
1133         * gtk/gtkuimanager.c (do_updates): 
1134         (do_updates_idle): Only call GDK_THREADS_ENTER() / _LEAVE() 
1135         when called from an idle handler.  (#145429, Jan-Marek Glogowski)
1136
1137 Mon Jul  5 23:47:38 2004  Matthias Clasen  <maclas@gmx.de>
1138
1139         * gtk/gtkfilechooserutils.c (delegate_notify): Use
1140         the less efficient g_object_interface_find_property () instead
1141         of the param_id range check, since the GParamSpecs we're 
1142         dealing with are the overridden onces on the interface, whose
1143         param_id is always zero.  (#145312, Alex Roitman, fix proposed
1144         by Owen Taylor)
1145
1146 2004-07-05  Lorenzo Gil Sanchez  <lgs@sicem.biz>
1147
1148         * gtk/gtklayout.c (gtk_layout_add): added a default method for the add
1149         virtual method of GtkContainer.
1150         (gtk_layout_class_init): assign gtk_layout_add to the 'add' virtual
1151         method slot of the container class.
1152
1153 2004-07-05  Anders Carlsson  <andersca@gnome.org>
1154
1155         * gtk/gtkiconview.c: (gtk_icon_view_set_markup_column):
1156         * gtk/gtkiconview.h:
1157         Use gint, not int in gtk_icon_view_set_markup_column,
1158         (Paolo Maggi)
1159         
1160 2004-07-05  Anders Carlsson  <andersca@gnome.org>
1161
1162         * gtk/gtkiconview.c: (gtk_icon_view_class_init),
1163         (gtk_icon_view_real_select_cursor_item),
1164         (gtk_icon_view_real_activate_cursor_item):
1165         * gtk/gtkiconview.h:
1166         Add an "activate_cursor_item" action signal
1167         and bind it to the return key.
1168         
1169 2004-07-04  Anders Carlsson  <andersca@gnome.org>
1170
1171         * demos/gtk-demo/Makefile.am:
1172         * demos/gtk-demo/gnome-fs-directory.png:
1173         * demos/gtk-demo/gnome-fs-regular.png:
1174         * demos/gtk-demo/iconview.c: (load_pixbufs), (fill_store),
1175         (sort_func), (create_store), (item_activated), (up_clicked),
1176         (home_clicked), (do_iconview):
1177         Add a simple file browser based on the icon view.
1178         
1179         * gtk/gtk.h:
1180         Add gtk/gtkiconview.h
1181         
1182         * gtk/gtkiconview.c: (gtk_icon_view_layout),
1183         (gtk_icon_view_item_new), (gtk_icon_view_item_activated):
1184         Fix a few bugs discovered while writing the demo.
1185         
1186 2004-07-04  Anders Carlsson  <andersca@gnome.org>
1187
1188         * gtk/Makefile.am:
1189         * gtk/gtkiconview.c
1190         * gtk/gtkiconview.h:
1191         Add GtkIconView to the build, remove debugging output.
1192         
1193 Sun Jul  4 01:29:35 2004  Matthias Clasen  <maclas@gmx.de>
1194
1195         * gtk/gtkcalendar.c (gtk_calendar_drag_data_get): 
1196         (gtk_calendar_drag_data_received): Fix off-by-one error.  
1197         GDate month is one-based and GtkCalendar month is zero-based.  
1198         (#145134, William Jon McCann)
1199
1200 Sun Jul  4 01:11:07 2004  Matthias Clasen  <maclas@gmx.de>
1201
1202         * gtk/gtktreestore.c (gtk_tree_store_move): Don't crash if
1203         somebody tries to move a node after itself in a list of 
1204         length 1.  (#145291, Sampo Nurmentaus)
1205
1206 Sat Jul  3 23:43:23 2004  Matthias Clasen  <maclas@gmx.de>
1207
1208         * docs/faq/gtk-faq.sgml: 
1209         * gtk/gtkwindow.c: Fix links to www.freedesktop.org.  (#145210,
1210         Billy Biggs)
1211
1212 Sat Jul  3 02:09:51 2004  Matthias Clasen  <maclas@gmx.de>
1213
1214         * gtk/gtksocket.c (gtk_socket_end_embedding): Reset current_width
1215         and current_height to 0 when ending the embedding.  (#143675,
1216         Nickolay V. Shmyrev)
1217
1218 Sat Jul  3 01:48:19 2004  Matthias Clasen  <maclas@gmx.de>
1219
1220         * gtk/gtkentry.c (gtk_entry_move_visually): Let the cursor move
1221         to the right end of the entry text, even if it ends in combining
1222         marks.  (#141728, Theppitak Karoonboonyanan)
1223
1224 Fri Jul  2 23:34:33 2004  Matthias Clasen  <maclas@gmx.de>
1225
1226         * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Unset the displayed
1227         row when unsetting the model.  (#138560, Christian Persch)
1228
1229 Fri Jul  2 23:01:07 2004  Matthias Clasen  <maclas@gmx.de>
1230
1231         * gtk/gtkcombobox.c (update_menu_sensitivity): Don't crash if there
1232         are no items.
1233
1234 Fri Jul  2 22:41:27 2004  Matthias Clasen  <maclas@gmx.de>
1235
1236         * gtk/gtkimage.c (gtk_image_expose): Properly align mask and
1237         pixbuf if a subarea is exposed.  (#135423, fix by John Ehresman)
1238
1239 Fri Jul  2 21:40:21 2004  Matthias Clasen  <maclas@gmx.de>
1240
1241         * gtk/gtknotebook.c (gtk_notebook_realize): Add scroll events
1242         to the event mask, set a scroll_event handler.
1243         * gtk/gtknotebook.c (gtk_notebook_scroll): Handle scroll events
1244         by switching tabs.  (#145244, Gabriel de Perthuis)
1245
1246 2004-07-02  Anders Carlsson  <andersca@gnome.org>
1247
1248         * gtk/gtktreeview.c (gtk_tree_view_set_model): 
1249         Make sure we check for a NULL model first.
1250
1251 2004-07-01  J. Ali Harlow  <ali@juiblex.co.uk>
1252
1253         * gdk/win32/gdkinput-win32.c (_gdk_input_ungrab_pointer): Fix
1254         win32 build problem w/o wintab.  Fixed #145242
1255
1256 2004-06-30  Anders Carlsson  <andersca@gnome.org>
1257
1258         * gtk/gtktreeview.c (gtk_tree_view_set_model): Use
1259         g_return_if_fail to make sure that the model is a GtkTreeModel.
1260
1261 Sat Jun 26 17:41:10 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1262
1263         * gtk/gtk[hv]separator.c (gtk_[hv]separator_expose): Draw line with the
1264         current state, not GTK_STATE_NORMAL
1265
1266         * gtk/gtkframe.c (gtk_frame_paint): Fix a rounding error
1267
1268 Sat Jun 26 15:07:25 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1269
1270         * gtk/gtkstyle.c, gtk/gtkrc.c: small color tweak. (#141173)
1271
1272 Sat Jun 26 01:15:40 2004  Matthias Clasen  <maclas@gmx.de>
1273
1274         * gdk/x11/gdkwindow-x11.c (set_initial_hints): Handle
1275         _NET_WM_STATE_ABOVE and _NET_WM_STATE_BELOW.  (#144851, 
1276         Billy Biggs)
1277
1278 Sat Jun 26 01:04:31 2004  Matthias Clasen  <maclas@gmx.de>
1279
1280         * gtk/gtkiconfactory.c (clear_cache): Prevent unwanted 
1281         recursion by resetting icon_set->cache before freeing
1282         the cache.  (#144947, Tim Janik)
1283
1284 Sat Jun 26 00:40:02 2004  Matthias Clasen  <maclas@gmx.de>
1285
1286         * gtk/gtkiconfactory.c (render_icon_name_pixbuf): 
1287         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): 
1288         * gtk/gtkstyle.c (gtk_default_render_icon): Accept a NULL 
1289         style.
1290
1291 Sat Jun 26 00:04:36 2004  Matthias Clasen  <maclas@gmx.de>
1292
1293         * gtk/gtkentrycompletion.c (gtk_entry_completion_set_model): 
1294         * gtk/gtkcombobox.c (gtk_combo_box_set_model): Reflect the 
1295         last change in the docs.
1296
1297 Fri Jun 25 23:35:42 2004  Matthias Clasen  <maclas@gmx.de>
1298
1299         * gtk/gtkentrycompletion.c (gtk_entry_completion_set_model):
1300         * gtk/gtkcombobox.c (gtk_combo_box_set_model): Allow passing
1301         NULL to unset the model.  (#137211, patch by  Mariano Suárez-Alvarez)
1302
1303 Fri Jun 25 23:33:05 2004  Matthias Clasen  <maclas@gmx.de>
1304
1305         * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Fix the
1306         placement policy for GtkComboBoxEntry to be: if it fits below, 
1307         place below, if it fits above place above, else place in the 
1308         larger space and scroll so that the scroll arrow appear at the
1309         far end.  (#144362, David A. Knight)
1310
1311 Fri Jun 25 22:49:58 2004  Matthias Clasen  <maclas@gmx.de>
1312
1313         * gtk/gtktreestore.c (gtk_tree_store_move): Avoid uninitialized
1314         use of &parent_iter. (#145007, John Finlay)
1315
1316 2004-06-25  Bastien Nocera  <hadess@hadess.net>
1317
1318         reviewed by: Matthias Clasen  <maclas@gmx.de>
1319
1320         * gdk/x11/gdkkeys-x11.c: (get_symbol), (update_keymaps),
1321         (gdk_keymap_lookup_key), (translate_keysym): fix keys parsing when
1322         the number of keysyms per keycode is odd. Fixes #144808.
1323
1324 2004-06-25  Matthias Clasen  <mclasen@redhat.com>
1325
1326         * gtk/gtkfontbutton.c (gtk_font_button_update_font_info): Avoid
1327         a crash if the font doesn't exist.  (#144967, Yevgen Muntyan) 
1328
1329 Fri Jun 25 00:32:15 2004  Matthias Clasen  <maclas@gmx.de>
1330
1331         * gtk/gtktreestore.c (gtk_tree_store_swap): Commit the change
1332         which was mentioned below.
1333
1334 Thu Jun 24 23:35:09 2004  Matthias Clasen  <maclas@gmx.de>
1335
1336         * gtk/gtknotebook.c (gtk_notebook_class_init): Fix a typo,
1337         string change.  (#139503, Baris Cicek)
1338
1339 2004-06-22  Federico Mena Quintero  <federico@ximian.com>
1340
1341         * gtk/gtkfilechooserdefault.c (location_popup_handler): Use a Save
1342         or an Open stock button for the C-l dialog depending on the action
1343         in which the file chooser operates.  Fixes #141753.
1344
1345 2004-06-22  Federico Mena Quintero  <federico@ximian.com>
1346
1347         Fixes the GTK+ part of #142308:
1348
1349         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_filename_to_path):
1350         Use filename_to_path().
1351         (gtk_file_system_unix_uri_to_path): Likewise.
1352         (filename_to_path): Use remove_trailing_slash().
1353
1354 2004-06-22  Matthias Clasen  <mclasen@redhat.com>
1355
1356         * gtk/gtktextview.c (gtk_text_view_class_init): Improve docs
1357         for the ::move_cursor signal.
1358
1359         * gtk/gtkaccelmap.c (_gtk_accel_path_is_valid): Accept
1360         "<WINDOWTYPE>" as a valid accel path.  (#144427, Philip 
1361         Kendall)        
1362
1363         * gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure 
1364         this gets defined for all backends, so linux-fb has a 
1365         chance of compiling.
1366
1367         * gdk/x11/gdkgc-x11.c: 
1368         * gdk/gdkgc.c: Move function docs inline, add hints about 
1369         obtaining rgb colors from gcs.  (#144688, Steve Chaplin)
1370
1371         * gtk/gtktreestore.c (gtk_tree_store_swap): Make this work
1372         for children of the root.  (#139785, Jean-François Wauthy,
1373         patch by John Finlay)
1374
1375         * gtk/gtkicontheme.h (GTK_ICON_THEME_GET_CLASS): Typo
1376         fix.  (#144750, Jeff Franks) 
1377
1378 2004-06-21  Michael Natterer  <mitch@gimp.org>
1379         Merge from stable:
1380
1381         * gdk/x11/gdkdrawable-x11.[ch]: made convert_format() utility
1382         function public as _gdk_x11_convert_to_format().
1383
1384         * gdk/x11/gdkcursor-x11.c (create_cursor_image): premultiply
1385         the pixels from the GdkPixbuf when putting them in the
1386         Xcursor image. Fixes bug #144350.
1387
1388 2004-06-16  Federico Mena Quintero  <federico@ximian.com>
1389
1390         * gtk/gtkfilesystemmodel.c (do_files_added): When inserting a
1391         visible node, free the old path before creating the new one.
1392         Fixes #144356.
1393
1394 Tue Jun 15 01:10:32 2004  Matthias Clasen  <maclas@gmx.de>
1395
1396         * gtk/gtkcombobox.c: Make GtkComboBox work without model.  
1397         (#144198, Mariano Suárez-Alvarez)
1398         
1399 Fri Jun 11 22:05:56 2004  Matthias Clasen  <maclas@gmx.de>
1400
1401         * gtk/gtkfilechooserdefault.c: Don't use
1402         contractions like "don't" or "isn't" in error messages.
1403         It isn't nice to use them in log entries either...
1404         (#137774, Morten Welinder, patch by Alexander Winston)
1405
1406 2004-06-11  Federico Mena Quintero  <federico@ximian.com>
1407
1408         Fixes #143578:
1409
1410         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_add_editable):
1411         Don't ref the editable node.
1412         (_gtk_file_system_model_remove_editable): Don't unref the editable node.
1413         (_gtk_file_system_model_remove_editable): Ahem, free the node.
1414
1415         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
1416         Added fields for edited_idle and edited_new_text.
1417         (renderer_edited_cb): Queue the
1418         creation of the folder in an idle handler.
1419         (renderer_editing_canceled_cb): Likewise for the cancellation.
1420         (gtk_file_chooser_default_finalize): Free the impl->edited_new_text.
1421
1422 Thu Jun 10 22:12:26 2004  Matthias Clasen  <maclas@gmx.de>
1423
1424         * gtk/gtkmain.c (gtk_parse_args): Typo fix.
1425
1426 2004-06-10  Federico Mena Quintero  <federico@ximian.com>
1427
1428         Fixes #144110, patch by Bastien Nocera <hadess@hadess.net>.
1429
1430         * gtk/gtkfilechooser.c (gtk_file_chooser_list_shortcut_folders):
1431         Refer to gtk_file_chooser_add_shortcut_folder().
1432         (gtk_file_chooser_list_shortcut_folder_uris): Refer to
1433         gtk_file_chooser_add_shortcut_folder_uri().
1434
1435 Thu Jun 10 00:36:15 2004  Matthias Clasen  <maclas@gmx.de>
1436
1437         * gtk/gtkcalendar.c (gtk_calendar_main_button): Start 
1438         the drag before focusing the selected.day.
1439         * gtk/gtkcalendar.c (gtk_calendar_state_changed): Stop
1440         a beginning drag if the widget becomes insensitive.
1441
1442 Thu Jun 10 00:09:06 2004  Matthias Clasen  <maclas@gmx.de>
1443
1444         * gtk/gtkcalendar.c (gtk_calendar_button_press): Start 
1445         spinning before calling arrow_action(), so that a signal
1446         handler triggered from arrow_action() has a chance to 
1447         stop the spinning.  (#143966, Davyd Madeley)
1448
1449 Wed Jun  9 23:11:23 2004  Matthias Clasen  <maclas@gmx.de>
1450
1451         * gtk/gtkstyle.c (_gtk_style_init_for_settings): Fix a 
1452         typo.  (#144070, Kent Sandvik)
1453
1454 Thu Jun 10 00:22:51 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1455
1456         * gtk/gtkmenu.c: Revert the "drag select" part of
1457         #141169. (#144011).
1458
1459 Mon Jun  7 23:07:40 2004  Matthias Clasen  <maclas@gmx.de>
1460
1461         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): Handle
1462         priv->model being NULL.  (#143856, Mariano Suárez-Alvarez)
1463
1464 2004-06-07  Federico Mena Quintero  <federico@ximian.com>
1465
1466         * gtk/gtktreeview.c (gtk_tree_view_button_press): Revert the patch
1467         from 2003/Sep/12.  This kept DnD in tree views within modal
1468         dialogs from working, which is especially bad for the file
1469         chooser.  Fixes #135168.
1470
1471 Sun Jun  6 23:57:21 2004  Matthias Clasen  <maclas@gmx.de>
1472
1473         Make the entry context menu work in editable text cells. The changes
1474         are based on a patch by Kristian Rietveld, which implemented an 
1475         approach outlined by Owen Taylor.  (#50075)
1476         
1477         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event): 
1478         Ignore focus out if the entry menu is posted.
1479         (gtk_cell_renderer_text_populate_popup): Mark the entry menu as 
1480         posted, and set up a signal handler to clear the flag if the menu 
1481         is unmapped.
1482         (gtk_cell_renderer_text_popup_unmap): Clear the in_entry_menu flag, 
1483         set up a timeout to stop editing if the focus is lost.
1484         (popdown_timeout): Stop editing if the entry doesn't have focus anymore.
1485         (gtk_cell_renderer_text_start_editing): Connect to the populate_popup 
1486         signal on the entry and keep a pointer to the entry.
1487         (gtk_cell_renderer_text_editing_done): Disconnect from popuplate_popup, 
1488         clear the pointer to the entry.
1489
1490 Sun Jun  6 23:24:43 2004  Matthias Clasen  <maclas@gmx.de>
1491
1492         * gtk/gtktexttag.c (gtk_text_tag_class_init): Improve the description
1493         of the ::language property.  (#143802, Owen Taylor)
1494
1495 Sat Jun  5 23:07:30 2004  Matthias Clasen  <maclas@gmx.de>
1496
1497         * gtk/gtkentrycompletion.c: (gtk_entry_completion_init),
1498         (gtk_entry_completion_list_enter_notify),
1499         (gtk_entry_completion_list_motion_notify),
1500         (_gtk_entry_completion_popup), (_gtk_entry_completion_popdown):
1501         * gtk/gtkentryprivate.h: Add an ignore_enter flag and
1502         use it as in the menu code to avoid the initial selection if
1503         the window pops up under the pointer.  (Anders Carlsson)
1504
1505 Sat Jun  5 20:05:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1506
1507         * tests/testmerge.c: Add a checkbox to queue an
1508         merge/unmerge. Patch from Matthias Clasen.
1509
1510         * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Add a new flag
1511         "need_rebuild"
1512         (rebuild_menu): New function that rebuilds the overflow menu and
1513         makes sure it doesn't start or end with a separator.
1514         (toolbar_content_new_tool_item)
1515         (toolbar_content_remove)
1516         (toolbar_content_new_compatibility): Set the rebuild_needed flag
1517         (gtk_toolbar_size_allocate): Only show the overflow arrow when we
1518         have actually overflown an item with a proxy menu item. Also make
1519         sure we rebuild the menu if needed.
1520
1521         Fix #125504, #142377, #143463
1522         
1523         * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose):
1524         Obey the "priv->draw" flag. (#143692)
1525
1526 2004-06-04  Matthias Clasen  <mclasen@redhat.com>
1527
1528         * docs/widget_geometry.txt: Add a note about the !CAN_FOCUS
1529         quirk in the button size allocation code.
1530
1531         * gtk/gtkbutton.c (gtk_button_size_allocate): Give the space
1532         requested for drawing the focus indicator to the child in the
1533         !CAN_FOCUS case. This should fix issues which the Gimp has with 
1534         the button allocation changes in 2.4.2.
1535
1536 Thu Jun  3 21:17:29 2004  Matthias Clasen  <maclas@gmx.de>
1537
1538         * gtk/gtkentry.c (gtk_entry_completion_timeout): Calculate the
1539         length of the entry contents in characters, not in bytes.
1540
1541         * gtk/gtkentry.c (paste_received): Don't pop up the completion
1542         window on paste, noticed by Anders Carlsson.
1543
1544 Thu Jun  3 20:56:19 2004  Matthias Clasen  <maclas@gmx.de>
1545
1546         * gtk/gtkcombobox.c (gtk_combo_box_class_init): Fix the allowed
1547         values and default value for the ::active property.  (#143669,
1548         Olivier Andrieu)
1549
1550 2004-06-03  Michael Natterer  <mitch@gimp.org>
1551
1552         * gtk/gtkimagemenuitem.c: use gtk_widget_get_child_requisition()
1553         instead of accessing item->image->allocation.width/height
1554         directly. Makes widgets which only have a requisition set using
1555         gtk_widget_set_size_request() work and fixes bug #142789.
1556
1557 Thu Jun  3 08:07:59 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1558
1559         * gtk/gtkmenu.c: Revert previous commit. It caused the problem
1560         of sticky right click menus to return.
1561
1562 Wed Jun  2 01:56:02 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1563
1564         * gtk/gtkmenu.c: Fix the stay up algorithm for combo boxes to
1565         better handle the "click" case. bug  Better fix for #141169.
1566
1567 2004-06-02  Federico Mena Quintero  <federico@ximian.com>
1568
1569         * gtk/gtktreeview.c (gtk_tree_view_search_init): Bail out if the
1570         model is empty.  Fixes #143536.
1571
1572 2004-06-02  Matthias Clasen  <mclasen@redhat.com>
1573
1574         * gtk/gtkfontsel.c (gtk_font_selection_size_focus_out): Don't
1575         close the dialog on focus out of the size entry.  (#143505, 
1576         David Hawthorne)
1577
1578 2004-06-02  Federico Mena Quintero  <federico@ximian.com>
1579
1580         Fix #138807.
1581
1582         * gtk/fnmatch.c (_gtk_fnmatch): Take a no_leading_period argument.
1583         (gtk_fnmatch_intern): Likewise; also implement this option.
1584
1585         * gtk/gtkprivate.h (_gtk_fnmatch): Updated prototype.
1586
1587         * gtk/gtkfilesel.c (find_completion_dir): Pass TRUE for the
1588         no_leading_period argument of _gtk_fnmatch().
1589         (attempt_file_completion): Likewise.
1590
1591         * gtk/gtkfilefilter.c (gtk_file_filter_filter): Pass FALSE for the
1592         no_leading_period argument of _gtk_fnmatch().
1593
1594 Wed Jun  2 00:47:11 2004  Matthias Clasen  <maclas@gmx.de>
1595
1596         * gtk/gtkselection.c (_gtk_selection_request): Remove leftover
1597         debug code.
1598
1599 Wed Jun  2 00:13:57 2004  Matthias Clasen  <maclas@gmx.de>
1600
1601         * gtk/gtktreeselection.c (gtk_tree_selection_select_range): Don't
1602         allow unless selection mode is multiple.  (#142634, John Finlay)
1603
1604 Tue Jun  1 23:00:20 2004  Matthias Clasen  <maclas@gmx.de>
1605
1606         * gtk/gtktoolbar.h: 
1607         * gtk/gtktoolbar.c: 
1608         * gtk/gtkentrycompletion.h: 
1609         * gtk/gtkentrycompletion.c: 
1610         * gtk/gtkcombobox.h: 
1611         * gtk/gtkcombobox.c: Rename function parameters from
1612         index to index_ to prevent clash with BSD index().  (#143001)
1613
1614 Tue Jun  1 22:45:42 2004  Matthias Clasen  <maclas@gmx.de>
1615
1616         * gtk/gtkmenu.c (get_accel_path): Handle accel_closure being
1617         NULL on an accel label. (#139641, Sam Stephenson, patch by 
1618         Michael Natterer)
1619
1620 Tue Jun  1 22:19:55 2004  Matthias Clasen  <maclas@gmx.de>
1621
1622         * gtk/gtkicontheme.c (theme_subdir_load):  Prevent icon 
1623         lookup finding icons in the wrong prefix.  (#143328,
1624         Mark McLoughlin)
1625
1626 Wed Jun  2 00:39:58 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1627
1628         Bug #141169.
1629
1630         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Make menus
1631         only stay up if you release within 500 milliseconds.
1632         (gtk_menu_shell_button_press): Set the activate_time to the event
1633         time when a button is pressed.
1634
1635         * gtk/gtkmenu.c (gtk_menu_motion_notify, gtk_menu_enter_notify):
1636         Interprete button releases as activate when we have seen both an
1637         enter an a motion event.
1638
1639 2004-06-01  Federico Mena Quintero  <federico@ximian.com>
1640
1641         * gtk/gtkfilesystemmodel.c (do_files_removed): Don't insert a
1642         dummy node if there is no parent node.  Fixes #143362.
1643
1644 2004-05-31  Federico Mena Quintero  <federico@ximian.com>
1645
1646         * gtk/gtkfilechooserdefault.c (renderer_edited_cb): Change to the
1647         newly-created folder.  Fixes #138932.
1648         (trap_activate_cb): Only return TRUE if we did handle the event.
1649         Fixes #143359; patch by jylefort@brutele.be.
1650
1651 Mon May 31 02:39:32 2004  Matthias Clasen  <maclas@gmx.de>
1652
1653         * gtk/gtkimage.c (gtk_image_new_from_pixmap): Fix typo in 
1654         docs.  (#142892, Tommi Komulainen)
1655
1656 Mon May 31 02:16:37 2004  Matthias Clasen  <maclas@gmx.de>
1657
1658         * gtk/gtkhandlebox.c: Make detached handleboxes work when their
1659         parent is minimized, porting the fix from 1.2.  (#1923, #57182)
1660
1661 Mon May 31 02:03:17 2004  Matthias Clasen  <maclas@gmx.de>
1662
1663         * gtk/gtkwindow.c (gtk_window_show): Make moving realized, 
1664         unmapped windows work. 
1665
1666 Mon May 31 00:27:33 2004  Matthias Clasen  <maclas@gmx.de>
1667
1668         * gtk/gtkfilechooserutils.c (_gtk_file_chooser_set_delegate): Fix
1669         a typo.
1670
1671 Mon May 31 00:23:55 2004  Matthias Clasen  <maclas@gmx.de>
1672
1673         * gtk/gtkfilechooser.c (gtk_file_chooser_set_preview_widget): 
1674         Refer to ::update-preview, not ::selection-changed.
1675
1676 2004-05-29  Christian Rose  <menthos@menthos.com>
1677  
1678         * configure.in: Added "tk" to ALL_LINGUAS.
1679  
1680 Fri May 28 15:00:01 2004  Matthias Clasen  <maclas@gmx.de>
1681
1682         * gtk/gtkwidget.c (gtk_widget_set_parent): Add informative
1683         messages for common problems.  (#137974, Owen Taylor)
1684
1685 Fri May 28 14:20:17 2004  Matthias Clasen  <maclas@gmx.de>
1686
1687         * gdk/x11/gdkevents-x11.c: Fix off-by-one allocation 
1688         errors. (#143337, Billy Biggs) 
1689
1690 Thu May 27 16:36:22 2004  Owen Taylor  <otaylor@redhat.com>
1691
1692         * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): Set
1693         bits within visual->depth that aren't used for color to
1694         1s, in case they are alpha.
1695
1696 2004-05-27  Anders Carlsson  <andersca@gnome.org>
1697
1698         * gtk/gtkfilechooserdefault.c (save_folder_combo_create): 
1699         Make separator rows insensitive.
1700
1701 Thu May 27 00:48:16 2004  Matthias Clasen  <maclas@gmx.de>
1702
1703         * gtk/gtkentrycompletion.c (gtk_entry_completion_set_text_column): 
1704         Add more docs.
1705
1706 Thu May 27 00:45:07 2004  Matthias Clasen  <maclas@gmx.de>
1707
1708         * gtk/gtkentrycompletion.h:
1709         * gtk/gtkentrycompletion.c (gtk_entry_completion_get_text_column): 
1710         Getter for text_column. Also make ::text_column a property.
1711
1712 Thu May 27 00:11:01 2004  Matthias Clasen  <maclas@gmx.de>
1713
1714         * gtk/gtkmenuitem.c (gtk_menu_item_size_request): Fix a typo.
1715
1716 Thu May 27 00:07:47 2004  Jonathan Blandford  <jrb@gnome.org>
1717
1718         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): only remove the
1719         signal if the box exists.
1720
1721 Wed May 26 23:26:51 2004  Matthias Clasen  <maclas@gmx.de>
1722
1723         Support insensitive cells in tree views and combo boxes:
1724         
1725         * gtk/gtkcellrenderer.h: 
1726         * gtk/gtkcellrenderer.c: Add a ::sensitive property.
1727
1728         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): 
1729         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
1730         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): 
1731         Support drawing insensitive.
1732
1733         * gtk/gtkcellview.h: 
1734         * gtk/gtkcellview.c (gtk_cell_view_get_cell_renderers): New 
1735         function to obtain the cell renderers from a cell view. Also
1736         export gtk_cell_view_set_cell_data().
1737
1738         * gtk/gtktreeselection.c (tree_column_is_sensitive):
1739         * gtk/gtktreeselection.c (row_is_selectable): Helper functions
1740         to determine whether all visible cells in a row are insensitive
1741         and whether a row is selectable. A row is not selectable if the 
1742         user function says so or if all visible cells are insensitive.
1743         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node): 
1744         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node): 
1745         Use row_is_selectable().
1746         
1747         * gtk/gtkcombobox.c (row_is_sensitive): 
1748         * gtk/gtkcombobox.c (tree_column_row_is_sensitive): 
1749         * gtk/gtkcombobox.c (menu_row_is_sensitive): Helper functions
1750         to determine row sensitivity in menu or list mode.
1751
1752         * gtk/gtkcombobox.c (update_menu_sensitivity): Helper function
1753         to set up sensitivity menu items from the underlying rows.
1754
1755         * gtk/gtkcombobox.c (gtk_combo_box_popup): 
1756         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): Use
1757         update_menu_sensitivity().
1758                 
1759         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Setup the cell
1760         data funcs.
1761
1762         * gtk/gtkcombobox.c (gtk_combo_box_key_press): Skip insensitive
1763         rows.
1764
1765         * tests/testcombo.c (main): Make some rows insensitive.
1766
1767 2004-05-26  Robert Ögren  <gtk@roboros.com>
1768
1769         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Send key
1770         modifiers (shift, ctrl etc) in button and motion events from the
1771         tablet. (#143240)
1772
1773 2004-05-26  Robert Ögren  <gtk@roboros.com>
1774
1775         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): Simple
1776         implementation for extended input devices using last known 
1777         device state (#143237)
1778
1779 Tue May 25 21:54:00 2004  Matthias Clasen  <maclas@gmx.de>
1780
1781         * gtk/gtkframe.c: Move docs inline, fixing them on the
1782         way.  (#143029, Steve Chaplin)
1783
1784 2004-05-11  Robert Ögren  <gtk@roboros.com>
1785
1786         * gdk/win32/gdkevents-win32.c (propagate): Don't propagate mouse
1787         events to windows that want extended input events. (#142943)
1788         (gdk_event_translate): Move check for extended input devices to
1789         propagate, new parameter to propagate.
1790         (gdk_pointer_grab, gdk_display_pointer_ungrab): Enable calls to
1791         _gdk_input_(un)grab_pointer. (#142943)
1792
1793         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Check for
1794         input grab. [Fix missing update of impl in "dijkstra" event
1795         propagation loop] Drop the parallel "impl" pointer, just use a
1796         cast. Don't propagate beyond windows that want normal input
1797         events. (#142943)
1798         (gdk_input_grab_pointer, gdk_input_ungrab_pointer): Limited
1799         implementation of input grab. (#142943)
1800
1801 2004-05-22  Tor Lillqvist  <tml@iki.fi>
1802
1803         * gdk/win32/gdkinput-win32.c (print_lc): Remove duplicated
1804         line. (Spotted by Benoît Carpentier.)
1805
1806 2004-05-18  Matthias Clasen  <mclasen@redhat.com>
1807
1808         * configure.in: Check for XFIXES extension.
1809
1810         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add 
1811         a gboolean have_xfixes member.
1812
1813         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Register
1814         XFIXES events and set have_xfixes.
1815
1816         * gdk/gdkevents.h (GdkEventType): Add GDK_OWNER_CHANGE.
1817         (GdkEventOwnerChange): New event struct for owner change events.
1818         (GdkOwnerChange): New enum for the reason field of GdkEventOwnerChange.
1819         
1820         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Translate 
1821         XFixesSelectionNotify events into GdkEventOwnerChange events.
1822         
1823         * gdk/gdkdisplay.h:
1824         * gdk/x11/gdkdisplay-x11.c (gdk_display_supports_selection_notification):
1825         (gdk_display_request_selection_notification): New api 
1826         to support selection ownership notification.
1827
1828         * gtk/gtkclipboard.h:
1829         * gtk/gtkclipboard.c (_gtk_clipboard_handle_event): New private
1830         api to handle owner change events.
1831         (clipboard_peek): Refactored out the body of 
1832         gtk_clipboard_get_for_display() for use in _gtk_clipboard_handle_event().
1833
1834         * gtk/gtkmain.c (gtk_main_do_event): Handle GDK_OWNER_CHANGE events
1835         by calling _gtk_clipboard_handle_event().
1836
1837 2004-05-18  Matthias Clasen  <mclasen@redhat.com>
1838
1839         * gtk/gtkintl.h: Include glib/gi18n-lib.h and only define
1840         the P_() macros ourselves.
1841
1842         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
1843         Restrict the width of the popup to be no larger than the
1844         monitor.  (#142678, DmD Ljungmark)
1845
1846         * gtk/gtkbutton.c: Go back to the initial fix for the 
1847         focus-overdrawing problem, which was actually correct 
1848         according to docs/widget_geometry.txt.
1849
1850         * gtk/gtkarrow.c (gtk_arrow_class_init): Bump the initial
1851         arrow size from 11 to 15 to compensate for that.
1852
1853         * gtk/gtktextview.c (gtk_text_view_class_init): Document the
1854         arguments of the ::move-cursor signal.  (#142725)
1855
1856 2004-05-17  Matthias Clasen  <mclasen@redhat.com>
1857
1858         Merged from 2.4:
1859         
1860         * gtk/gtkbutton.c (gtk_button_size_request) 
1861         (gtk_button_size_allocate, _gtk_button_paint): Allocate
1862         space for the focus rectangle only if necessary.  (#142668,
1863         Michael Natterer)
1864
1865 Sun May 16 23:11:47 2004  Matthias Clasen  <maclas@gmx.de>
1866
1867         Merged from 2.4:
1868         
1869         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove two useless 
1870         lines.  (#142479, Morten Welinder)
1871
1872 Sun May 16 22:27:17 2004  Matthias Clasen  <maclas@gmx.de>
1873
1874         * gtk/gtkintl.h (Q_): Add a Q_() macro. 
1875
1876         * gtk/gtkcellrendererprogress.h: Remove GTK_PROGRESS_CELL_UNKNOWN
1877         and GTK_PROGRESS_CELL_FAILED. With the ability the set the label,
1878         they are not really needed.
1879
1880         * gtk/gtkcellrendererprogress.c: Use the xpad and ypad properties
1881         instead of hardwired padding, use Q_() for the default label, 
1882         compute a reasonable minimal size.  (#142571, #142572, #142573,
1883         Tommi Komulainen, Christian Persch)
1884         
1885 2004-05-15  Tor Lillqvist  <tml@iki.fi>
1886
1887         * gdk/win32/gdkdnd-win32.c: Put back the ref_count field in the
1888         GdkDragContextPrivateWin32 struct (but inside ifdef OLE2_DND this
1889         time). It is used by the OLE2_DND code, which is unfinished and
1890         presumably horribly broken, but still, let's not make it not
1891         compile on purpose. Silence some gcc warnings in the OLE2_DND
1892         code.
1893
1894 2004-05-14  Matthias Clasen  <mclasen@redhat.com>
1895
1896         * gtk/gtktreeview.c (gtk_tree_view_tree_window_to_tree_coords): 
1897         New function to go from tree window to tree coordinates, kept
1898         static for now until we figure out the multiple coordinate
1899         system mess in GtkTreeView API-wise.
1900         (gtk_tree_view_scroll_to_cell): Transform the coordinates 
1901         from tree window to tree coordinates, using the new function.
1902         Previously, the x coordinate was wrongly transformed. (#142494)
1903
1904         * gdk/gdktypes.h (GdkModifierType): Add a comment about unused
1905         bits.
1906
1907         * gtk/gtkstock.c (real_add, gtk_stock_lookup): Use an unused
1908         modifier bit to mark stock item which need to be freed 
1909         eventually.  (#140654, Michal Pasternak, Scott Tsai)
1910
1911 2004-05-11  Robert Ögren  <gtk@roboros.com>
1912
1913         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Add missing
1914         call to g_object_ref in Wintab code. (#138341)
1915
1916         * gdk/win32/gdkinput-win32.c: Fix numerous Wintab problems
1917         including unallocated buffers for event->motion.axes and
1918         event->button.axes, unsigned wraparound problem in the code for
1919         detecting missing press/release events and assigning min instead
1920         of max when setting up axes.
1921
1922 2004-05-12  Matthias Clasen  <mclasen@redhat.com>
1923
1924         * tests/testtreeedit.c: Add a progress column.
1925
1926         * gtk/Makefile.am: Add gtkcellrendererprogress.[hc] in the right
1927         places.
1928
1929         * gtk/gtk.h: Include gtkcellrendererprogress.h.
1930
1931         * gtk/gtkcellrendererprogress.[hc]: A progress cell renderer,
1932         based on the one found in Epiphany.
1933
1934 2004-05-11  Michael Natterer  <mitch@gimp.org>
1935
1936         * gtk/gtkcombobox.c (gtk_combo_box_popup)
1937         (gtk_combo_box_menu_button_press): don't allocate the popup
1938         smaller than the combobox. Fixes bug #59660.
1939
1940 2004-05-11  Matthias Clasen  <mclasen@redhat.com>
1941
1942         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Revert the
1943         previous change to this function, clarify the docs instead.
1944
1945         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Use
1946         GTK_SELECTION_BROWSE.
1947
1948         * gtk/gtktreeview.c: Make hover selection work for 
1949         GTK_SELECTION_BROWSE as well.
1950
1951 Tue May 11 00:38:25 2004  Matthias Clasen  <maclas@gmx.de>
1952
1953         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init): 
1954         Document the ::toggled signal.
1955
1956 Mon May 10 23:04:25 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1957
1958         * gtk/gtkwidget.h: Add prototype for _gtk_widget_grab_notify()
1959
1960 2004-05-10  Matthias Clasen  <mclasen@redhat.com>
1961
1962         * gtk/gtkwindow.c (get_screen_icon_info): Make static.
1963
1964         * gdk/gdkdisplay.c (singlehead_...): 
1965         * gdk/x11/gdkkeys-x11.c (get_effective_keymap): 
1966         * gdk/x11/gdkgeometry-x11.c (expose_serial_predicate): 
1967         * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Make static.
1968
1969         * gtk/gtktreeview.c (gtk_tree_view_set_fixed_height_mode): Add a 
1970         note about COLUMN_FIXED restriction.
1971
1972         * gtk/gtkentrycompletion.c (gtk_entry_completion_list_button_press): 
1973         Set the entry in the default handler of the ::match-selected signal.
1974         (#137226)
1975
1976         * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): If we don't
1977         do the move-selected-item below pointer thingie, do the 
1978         place-below-or-above one.
1979
1980         * tests/testentrycompletion.c: Make the second example use the 
1981         ::match-selected signal to make it actually work.
1982
1983         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): 
1984         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Use hover selection
1985         mode.  (#127648, Dave Bordoley)
1986
1987         * gtk/gtktreeview.h:
1988         * gtk/gtktreeview.c: Add a new property "hover_selection", which 
1989         when TRUE makes the selection follow the mouse. Also add setter
1990         and getter for the fixed_height property.
1991
1992 2004-05-10  Matthias Clasen  <mclasen@redhat.com>
1993
1994         * gtk/gtkcombobox.c (gtk_combo_box_popup) 
1995         (gtk_combo_box_menu_button_press): Make sure the menu pops up
1996         as wide as the combobox.  (#59660, Havoc Pennington)
1997
1998 2004-05-10  Matthias Clasen  <mclasen@redhat.com>
1999
2000         * gtk/gtkcombobox.h: 
2001         * gtk/gtkcombobox.c: Support tearoffable combo boxes (in menu 
2002         mode). Add a new property, add-tearoffs, for this.  (#135956)
2003
2004         * gtk/gtkfontsel.c (list_row_activated): Make Return activate the
2005         default button.  (#118921)
2006
2007 Mon May 10 15:03:50 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2008
2009         * gtk/gtkwidget.c (_gtk_widget_grab_notify): New internal function
2010         that emits the grab notify signal.
2011         
2012         * gtk/gtkmain.c (gtk_grab_notify_foreach): Use it here.
2013
2014 Mon May 10 00:48:08 2004  Matthias Clasen  <maclas@gmx.de>
2015
2016         * gtk/gtkmenu.c: Make destruction of a torn off menu work 
2017         like un-tearing off.
2018
2019 Sun May  9 21:05:38 2004  Matthias Clasen  <maclas@gmx.de>
2020
2021         Merge from 2.4:
2022
2023         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
2024         Allow to suppress the stock accelerator by using "".  (#142196,
2025         David A Knight)
2026         
2027 Sun May  9 02:01:13 2004  Matthias Clasen  <maclas@gmx.de>
2028
2029         Merge from 2.4:
2030         
2031         * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): 
2032         In list mode, accept the same mouse/wheel bindings on 
2033         the cellview as on the button.  (#136967)
2034
2035 Sun May  9 01:25:37 2004  Matthias Clasen  <maclas@gmx.de>
2036
2037         * gtk/gtkiconfactory.c (add_to_cache): Actually count the
2038         cached icons.  (#135888, Crispin Flowerday)
2039
2040 Sun May  9 00:03:03 2004  Matthias Clasen  <maclas@gmx.de>
2041
2042         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Make sure
2043         that we actually return menus for nodes of type menu, not the
2044         menuitems they're attached to.
2045
2046 Sat May  8 22:50:55 2004  Matthias Clasen  <maclas@gmx.de>
2047
2048         * gtk/gtkactiongroup.c (gtk_action_group_set_translation_domain): 
2049         Add a note regarding UTF-8 requirements, proposed by 
2050         Mariano Suárez-Alvarez.
2051
2052 Sat May  8 22:43:11 2004  Matthias Clasen  <maclas@gmx.de>
2053
2054         * gtk/gtktearoffmenuitem.h: 
2055         * gtk/gtktearoffmenuitem.c: Put the torn_off flag back
2056         into the GtkTearoffMenuItem struct, since it is used
2057         by the Gimp, and keep it synchronized with the 
2058         tearoff_state property of the parent menu.
2059
2060 2004-05-08  Hans Breuer  <hans@breuer.org>
2061
2062         * gtk/gtkfilesystemwin32.c (extract_icon) : finally also
2063         create the correct mask for 'pseudo mime' icons
2064
2065         * gdk/win32/gdkwindow-win32.c(show_window_internal) : also
2066         take focus_on_map into account
2067
2068         * gtk/gtkselection.c : g_message() only with DEBUG_SELECTION
2069
2070         * gtk/gtkactiongroup.c gtk/gtkcombobox.c : 
2071         ... must return a value
2072
2073         * gdk/gdk.def gtk/gtk.def demos/gtk-demo/makefile.msc.in : updated
2074
2075 2004-05-07  Matthias Clasen  <mclasen@redhat.com>
2076
2077         * gtk/gtkbutton.c (gtk_button_size_allocate): Don't let the child
2078         draw over the focus rectangle.
2079
2080         * gtk/gtkhsv.c: Draw focus indication in the color wheel using
2081         standard focus style.  (#63071, Bill Haneman, idea for new
2082         style by Owen Taylor)
2083
2084         * gtk/gtkstyle.c (gtk_default_draw_focus): Support drawing on
2085         focus on the colorwheel via details.
2086
2087 2004-05-06  Matthias Clasen  <mclasen@redhat.com>
2088
2089         Merge from 2.4:
2090         
2091         * gtk/gtkcombobox.c (gtk_combo_box_menu_state_changed): Remove
2092         this no longer needed signal handler.  (#141817, Paul Pogonyshev)
2093
2094 Fri May  7 00:41:46 2004  Matthias Clasen  <maclas@gmx.de>
2095
2096         * gtk/gtktearoffmenuitem.h: 
2097         * gtk/gtktearoffmenuitem.c: Make the tearoff 
2098         functionality model/view, the tearoffmenuitem being
2099         the view and the tearoff_state property of the menu
2100         being the model.  (#101185, Owen Taylor)
2101
2102         * gtk/gtkmenu.c: Add a tearoff_state property.
2103
2104 Thu May  6 23:52:13 2004  Matthias Clasen  <maclas@gmx.de>
2105
2106         Merge from 2.4:
2107
2108         * gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): Also 
2109         popup the submenu for items in torn off menus.  (#122051)
2110
2111 2004-05-06  Sven Neumann  <sven@gimp.org>
2112
2113         * gtk/gtkexpander.c (gtk_expander_size_allocate): in RTL mode,
2114         position the title lable next to the arrow just as we do for LTR
2115         rendering. Fixes bug #141825.
2116
2117 2004-05-06  Matthias Clasen  <mclasen@redhat.com>
2118
2119         * docs/RELEASE-HOWTO: Document the new policy of
2120         bumping version numbers after release.
2121
2122         * configure.in: Bump version number to 2.5.0.
2123
2124 2004-05-06  Padraig O'Briain  <padraig.obriain@sun.com>
2125
2126         * gtk/gtkmenu.h:
2127         * gtk/gtkmenu.c: Add new function gtk_menu_get_for_attach_widget.
2128         (bug #113112).
2129
2130 Thu May  6 00:24:11 2004  Matthias Clasen  <maclas@gmx.de>
2131
2132         * gtk/gtkactiongroup.h: 
2133         * gtk/gtkactiongroup.c (gtk_action_group_translate_string): 
2134         New function to translate a string with translate_func.
2135         (#135740)
2136
2137 Thu May  6 00:02:21 2004  Matthias Clasen  <maclas@gmx.de>
2138
2139         * gtk/gtkcombobox.c (gtk_combo_box_get_wrap_width): 
2140         (gtk_combo_box_get_row_span_column): 
2141         (gtk_combo_box_get_column_span_column): Add missing getters
2142         for readwrite properies. (#135649)
2143
2144 Wed May  5 23:42:42 2004  Matthias Clasen  <maclas@gmx.de>
2145
2146         * gtk/gtkcombobox.h: 
2147         * gtk/gtkcombobox.c (gtk_combo_box_get_active_text): 
2148         Add gtk_combo_box_get_active_text() convenience 
2149         function. (#136372, Christian Neumeir, patch by Olivier Andrieu) 
2150
2151 2004-05-05  Elijah Newren  <newren@math.utah.edu>
2152
2153         Changes to support do-not-focus-on-map hint in conjunction with
2154         _NET_WM_USER_TIME (#115650):
2155
2156         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
2157         field focus_on_map
2158         
2159         * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
2160         set it.
2161
2162         * gtk/gtkwindow.[hc]: Add a boolean property "focus_on_map"
2163         and gtk_window_get_focus_on_map() and gtk_window_set_focus_on_map().
2164
2165         * gdk/win32/gdkwindow-win32.c (gdk_window_new): 
2166         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new): 
2167         * gdk/x11/gdkwindow-x11.c (gdk_window_new):
2168         Initialize the focus_on_map field to TRUE.
2169
2170         * gdk/win32/gdkwindow-win32.c (gdk_window_set_focus_on_map): 
2171         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_focus_on_map): 
2172         * gdk/x11/gdkwindow-x11.c (gdk_window_set_focus_on_map): 
2173         * gdk/x11/gdkwindow-x11.c (setup_toplevel_window):
2174         Implementations for the various backends. The Win32 and linux-fb
2175         implementations set the focus_on_map field, but don't use it yet
2176         to actually implement noinput windows. The X implementation sets
2177         _NET_WM_USER_TIME to 0 if focus_on_map is FALSE (see the EWMH).
2178
2179         * gdk/x11/gdkwindow-x11.h: 
2180         * gdk/x11/gdkevents-x11.c (set_user_time): 
2181         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): 
2182         * gdk/x11/gdkwindow-x11.c (gdk_x11_window_set_user_time): 
2183         s/_gdk_x11_window_set_user_time/gdk_x11_window_set_user_time/,
2184         since we want that function to be part of the public API.
2185
2186 Wed May  5 22:20:21 2004  Matthias Clasen  <maclas@gmx.de>
2187
2188         Merge from 2.4:
2189         
2190         * gtk/gtkiconfactory.c (icon_source_clear): Don't
2191         call g_free() on a pixbuf.  (#141961, Crispin Flowerday) 
2192
2193 2004-05-05  Matthias Clasen  <mclasen@redhat.com>
2194    
2195         Merge from 2.4:
2196         
2197         * gtk/gtkuimanager.c (print_node): Make the output 
2198         parseable.  (#141929, Sven Neumann)
2199
2200 2004-05-05  Tor Lillqvist  <tml@iki.fi>
2201
2202         * gdk/win32/gdkdnd-win32.c (gdk_drag_find_window_for_screen): Add
2203         multi-monitor offset. (#141842, John Ehresman)
2204
2205 2004-05-04  Federico Mena Quintero  <federico@ximian.com>
2206
2207         Fixes #139562, based on a patch by Christian Neumair.
2208
2209         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): Add
2210         a filter_combo_hbox field to contain the filter combo.
2211         (show_filters): Show/hide the filter_combo_hbox.
2212         (create_filename_entry_and_filter_combo): Removed.
2213         (file_pane_create): Create the filter_combo_hbox here.
2214
2215 2004-05-04  Matthias Clasen  <mclasen@redhat.com>
2216
2217         * modules/input/gtkimcontextxim.c: Fix the recent
2218         string_conversion_callback change to work on 
2219         Solaris.  (#141190, Padraig O'Briain)
2220
2221         * gtk/gtkselection.c: Disable debug logging again.
2222
2223 2004-05-03  Matthias Clasen  <mclasen@redhat.com>
2224
2225         * gtk/gtkselection.c: Make the chunk size for 
2226         incremental transfers depend on the maximal request 
2227         size, capped at 256k. This should allow most selections
2228         to be transferred nonincrementally, avoiding many
2229         roundtrips and protocol overhead.
2230
2231 2004-05-03  Federico Mena Quintero  <federico@ximian.com>
2232
2233         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Call
2234         g_signal_new() correctly and initialize the signal fields.  Fixes
2235         #141749; patch based on Michael Natterer's.
2236
2237 u2004-05-03  Matthias Clasen  <mclasen@redhat.com>
2238
2239         * gtk/gtkselection.c (_gtk_selection_request): Fix
2240         a debug message to show correct information.
2241         (_gtk_selection_incr_event): Make INCRemental transfer
2242         of MULTIPLE targets work. This was broken since 1997!
2243
2244 2004-05-02  Hans Breuer  <hans@breuer.org>
2245
2246         * gdk/win32/gdkdrawable-win32.c (draw_segments) : don't
2247         modify the passed in GdkSegment(s) in place, we may get
2248         them again to draw at the same place. Fixes bug #129095, 
2249         bug #137177, ...
2250         (draw_segments) draw the end pixel again to get the 
2251         pixmap mask right, fixes bug #126710, #130202
2252
2253         * gdk/win32/gdkwindow-win32.c : use SetForegroundWindow,
2254         fixes bug #106013, John Ehresman
2255
2256         * gtk/makefile.msc.in : don't try to link gtk.res but
2257         use gtk-win32.res (as supposed to be fixed below :)
2258
2259 2004-05-01  Hans Breuer  <hans@breuer.org>
2260
2261         * tests/Makefile.am : tests/makefile.msc is in CVS for
2262         a long time, finally added to EXTRA_DIST : fixes bug 
2263         #141334, John Ehresman
2264
2265 2004-04-30  Matthias Clasen  <mclasen@redhat.com>
2266
2267         * === Released 2.4.1 ===
2268
2269         * configure.in: Version 2.4.1, interface age 1. 
2270
2271         * NEWS: Updates
2272
2273 2004-04-29  Federico Mena Quintero  <federico@ximian.com>
2274
2275         Fixes #140412.
2276
2277         * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): New
2278         function; moved the code over from
2279         remove_bookmark_button_clicked_cb().
2280         (remove_selected_bookmarks): Now, getting a non-removable bookmark
2281         is not an error, as we may be called as a result of hitting the
2282         Delete key.
2283         (shortcuts_key_press_event_cb): New handler; delete the bookmark
2284         if the user presses Backspace, Delete, or KP_Delete.
2285
2286 2004-04-29  Matthias Clasen  <mclasen@redhat.com>
2287
2288         * gtk/gtkaction.c (closure_accel_activate): Use
2289         _gtk_action_emit_activate() instead of directly
2290         emitting the activate signal.  (#141429, Jody Goldberg)
2291
2292         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
2293         Warn people when the accelerator can not be 
2294         parsed.  (#141429, Jody Goldberg)
2295
2296 2004-04-29  Matthias Clasen  <mclasen@redhat.com>
2297
2298         * tests/testentrycompletion.c (main): Add a missing 
2299         cat.  (#141070, Chris Sherlock)  
2300
2301         * gtk/gtkrc.c (gtk_rc_check_pixmap_dir): Remove unused
2302         variable.  (#141022, Chris Sherlock)
2303         
2304         * gtk/gtkcombo.c (gtk_combo_popup_list): Add a missing
2305         cast.  (#141013, Chris Sherlock)
2306
2307         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Remove
2308         unused variable.  (#141011, Chris Sherlock)
2309
2310 2004-04-29  Tor Lillqvist  <tml@iki.fi>
2311
2312         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Plug memory
2313         leak. (#140775, John Ehresman)
2314
2315 Thu Apr 29 01:09:50 2004  Matthias Clasen  <maclas@gmx.de>
2316
2317         * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1
2318         to index the cached gcs, not depth.  (#139494)
2319
2320 2004-04-28  Matthias Clasen  <mclasen@redhat.com>
2321
2322         * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Docs typo fix.
2323
2324 Sun Apr 25 15:36:02 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2325
2326         * gtk/gtktoolbutton.c (gtk_tool_button_set_label_widget): Fix
2327         cut'n'paste-o from previous commit. (#141046, Torsten Schoenfeld).
2328
2329 2004-04-24  Theppitak Karoonboonyanan  <thep@linux.thai.net>
2330
2331         Patch to add support for string conversion callbacks to
2332         GtkIMContextXIM (#101814)
2333
2334         * modules/input/gtkimcontextxim.c: Set the string conversion callback
2335         if supported by the XIC.
2336
2337         (struct _GtkIMContextXIM): Add string_conversion_callback member.
2338
2339         (struct _GtkXIMInfo, setup_im): Check and keep flag inidicating
2340         whether string conversion callback is supported.
2341
2342         (gtk_im_context_get_ic, +set_string_conversion_callback,
2343         +string_conversion_callback): Also initialize string conversion
2344         callback, if supported, along with the IC initialization.
2345
2346         * modules/input/imxim.c: Make "xim" module default for Thai as well.
2347
2348 2004-04-23  Matthias Clasen  <mclasen@redhat.com>
2349
2350         * gtk/gtkclipboard.c (gtk_clipboard_wait_for_targets): Correctly
2351         initialize targets.  (#139883, John Finlay)
2352
2353         * gdk/gdkdraw.c (gdk_draw_drawable): Small doc improvement. 
2354
2355         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows): 
2356         Don't recommend gtk_tree_row_reference_new_proxy().  (#138309,
2357         Tim-Philipp Müller)
2358
2359         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_cell_data): 
2360         Remove an excessive g_return_if_fail().
2361
2362         * gdk/x11/gdkevents-x11.c (set_user_time): Make set_user_time()
2363         static.
2364         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): 
2365         _-prefix calls of gdk_x11_window_set_user_time().
2366
2367 2004-04-22  Matthias Clasen  <mclasen@redhat.com>
2368
2369         * gtk/gtkuimanager.c (update_node): Make sure the separators 
2370         used to demarkate placeholder ends don't show up on 
2371         show_all().  (#140496, Murray Cumming)
2372
2373         * gtk/gtkspinbutton.c (spin_button_at_limit): Make spinbuttons
2374         work with negative increments.  (#137975, Tim Gerla)
2375
2376 Wed Apr 21 21:38:03 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2377
2378         * gtk/gtktoolbutton.c (gtk_tool_button_set_label_widget,
2379         gtk_tool_button_set_icon_widget): Remove the old widget from the
2380         tool button before overwriting it with the new widget.
2381
2382         (#140508, Todd Goyen)
2383         
2384 2004-04-22  Tor Lillqvist  <tml@iki.fi>
2385
2386         Fix the file chooser on Windows. I can't make it misbehave or
2387         crash any more now. But presumably there are still corner cases
2388         not handled. I haven't really checked behaviour of UNC paths, for
2389         instance.
2390
2391         * gtk/gtkfilesystemwin32.c: Accept both backslash and slash in
2392         several places. Use G_IS_DIR_SEPARATOR macro (which could be added
2393         to GLib in 2.6).
2394
2395         (gtk_file_system_win32_get_parent): Like the Unix version, assert
2396         filename is absolute, and avoid one unnecessary string allocation
2397         and freeing.
2398         
2399         (canonicalize_filename,gtk_file_system_win32_parse): Handle drive
2400         letters more correctly.
2401
2402         (gtk_file_system_win32_render_icon): Assure correct syntax is used
2403         for root folder of a drive. (#137962, Morten Welinder)
2404
2405         (filename_is_some_root): New function that accepts also root
2406         without any drive specified.
2407
2408         (filename_is_drive_root): Rename from filename_is_root.
2409
2410         * gtk/gtkfilechooserentry.c (completion_match_func): Casefold on
2411         Windows.
2412
2413 2004-04-21  Matthias Clasen  <mclasen@redhat.com>
2414
2415         * gtk/gtkentry.c (gtk_entry_completion_timeout): Pop down the 
2416         completion window if there are no completions anymore.
2417
2418         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
2419         Don't call gtk_tree_view_scroll_to_cell() on an empty tree view. 
2420         It doesn't like that.  (#140642, Christian Persch)
2421
2422         * demos/gtk-demo/expander.c (do_expander): A new demo.
2423
2424         * demos/gtk-demo/Makefile.am (demos): Add expander.c.
2425
2426 2004-04-20  Matthias Clasen  <mclasen@redhat.com>
2427
2428         * gtk/gtktextview.c (gtk_text_view_allocate_children): Make
2429         sure anchored children get size allocated, even if the layout
2430         is valid.  (#122323, Andrew E. Makeev)
2431         (gtk_text_view_scroll_pages): 
2432         (gtk_text_view_scroll_hpages): Don't scroll to cursor position
2433         if we already have pending scrolls. Bandaid fix for #78513.
2434
2435 Mon Apr 19 17:59:17 2004  Owen Taylor  <otaylor@redhat.com>
2436
2437         * INSTALL.in: Update libpng and libjpeg URLs, remove
2438         note about building without since that's not the normal
2439         case.
2440
2441 Sun Apr 11 09:45:11 2004  Owen Taylor  <otaylor@redhat.com>
2442
2443         * gtk/gtkicontheme.c (load_themes): Fix a couple of typos in
2444         handling of SVG/non-SVG unthemed icons.
2445
2446 2004-04-19  Morten Welinder  <terra@gnome.org>
2447
2448         * gtk/gtktoolbar.c (gtk_toolbar_focus): Don't leak list of
2449         children.  (#140523)
2450
2451 2004-04-19  Matthias Clasen  <mclasen@redhat.com>
2452
2453         * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): 
2454         Don't stop the iteration up to the tag_root too 
2455         early.  (#109945, Dongho Shin)
2456
2457 Sun Apr 18 17:06:03 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2458
2459         * gdk/x11/gdkkeys-x11.c (get_effective_keymap): Make
2460         gdk_keymap_translate_keyboard_state() handle NULL
2461         keymaps. (#139715, Torsten Schoenfeld).
2462
2463 Sun Apr 18 16:59:21 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2464
2465         * configure.in: Don't erase GDK_EXTRA_CFLAGS. Fixes bug 139586,
2466         reported by Pedro RODRIGUEZ, about compilation problems when
2467         Xcursor is installed in a non-standard location.
2468
2469 Sun Apr 18 16:15:15 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2470
2471         Support for _NET_WM_USER_TIME (bug 115650). Patch by Elijah
2472         Newren.
2473         
2474         * gdk/x11/gdkwindow-x11.[ch]: Add new internal function
2475         _gdk_x11_set_user_time() to set the _NET_WM_USER_TIME property.
2476
2477         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add user_time field
2478
2479         * gdk/x11/gdkdisplay-x11.c: Add _NET_WM_USER_TIME to list of
2480         precached atoms.
2481         
2482         * gdk/x11/gdkinput-x11.c, gdk/x11/gdkevents-x11.c: Set the
2483         property on user interaction.
2484
2485 2004-04-15  Federico Mena Quintero  <federico@ximian.com>
2486
2487         * gtk/gtkfilesel.c (open_new_dir): Tell the user to use
2488         G_FILENAME_ENCODING, not G_BROKEN_FILENAMES.  Fixes #114065.
2489
2490         * gtk/gtkfilechooserdefault.c (split_uris): Use a variant of the
2491         code from gtkfilesel.c to parse a "text/uri-list" blob.  Fixes
2492         #140126.
2493
2494 2004-04-15  Matthias Clasen  <mclasen@redhat.com>
2495
2496         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 
2497         * gtk/gtkbutton.c (gtk_button_class_init): Doc fixes.
2498
2499 2004-04-14  Matthias Clasen  <mclasen@redhat.com>
2500
2501         * gtk/gtkcombobox.c: 
2502         * gtk/gtkwidget.c: 
2503         Make all style properties readonly.
2504
2505 2004-04-14  Matthias Clasen  <mclasen@redhat.com>
2506
2507         * gtk/gtkcolorsel.c: Add a11y relations between the color
2508         wheel and the spin buttons.  (#132745, Padraig O'Briain)
2509
2510         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): Document
2511         the meaning of size == -1.
2512
2513         * gtk/gtkwidget.c (gtk_widget_render_icon): Explicitly accept  
2514         a size of -1.  (#137436, Brian Cameron)
2515
2516         * gtk/gtkcombobox.c: Make the arrow and separator regular
2517         children of an hbox inside the button, and propagate state
2518         changes from the button to the cell view.  (part of the fix
2519         for #138650, should also fix #137535)
2520
2521         * gtk/gtkcellview.c (gtk_cell_view_expose): Pass the PRELIT
2522         state to gtk_cell_renderer_render() when prelighted. (part 
2523         of the fix for #138650)
2524
2525         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
2526         Use PRELIGHT state when appropriate.  (part of the fix for 
2527         #138650)
2528
2529         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Don't spit 
2530         out warnings if called before the combo box is 
2531         realized.  (#139742, Philip Langdale)
2532
2533 Wed Apr 14 03:45:39 2004  Jonathan Blandford  <jrb@gnome.org>
2534
2535         * gtk/gtktreeview.c (gtk_tree_view_expose): propagate expose
2536         events to children.
2537
2538 Wed Apr 14 03:32:58 2004  Jonathan Blandford  <jrb@gnome.org>
2539
2540         * gtk/gtkpathbar.c (make_directory_button): remove spurious
2541         gtk_box_pack_start.
2542
2543 Tue Apr 13 16:19:23 2004  Jonathan Blandford  <jrb@redhat.com>
2544
2545         * gtk/gtkpathbar.c (make_directory_button): patch from Owen to
2546         make the buttons sized by a bold label.  This makes the text
2547         'swim' a little, but stops the buttons from resizing, #137210
2548
2549 2004-04-13  Matthias Clasen  <mclasen@redhat.com>
2550
2551         * gtk/gtkuimanager.c (get_child_node): Don't crash if a node 
2552         has no name.
2553         (start_element_handler): Accept separators without unique 
2554         names.  (#133302, Anders Carlsson)
2555
2556         * gtk/gtkactiongroup.c (gtk_action_group_add_action): Document
2557         possible accelerator gotcha when using this function.  (#139641, 
2558         Christian Persch)
2559
2560         * gtk/gtkuimanager.c (node_remove_ui_reference): Don't leak
2561         list nodes.  (#138862, Morten Welinder)
2562
2563 Tue Apr 13 12:24:49 2004  Jonathan Blandford  <jrb@redhat.com>
2564
2565         * gtk/gtktreeview.c (gtk_tree_view_destroy): remove unused
2566         variable.
2567         (gtk_tree_view_button_press): If we activated the row we don't
2568         want to grab focus back, as moving focus to another widget is
2569         pretty common, #138458
2570
2571 2004-04-12  Federico Mena Quintero  <federico@ximian.com>
2572
2573         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Added
2574         documentation to all the signals.
2575
2576 2004-04-12  Matthias Clasen  <mclasen@dhcp64-228.boston.redhat.com>
2577
2578         * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't unref
2579         model if it is NULL. (#139770)
2580
2581         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Typo fix.
2582
2583         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): Don't add
2584         a shadow inside the scrolled window, add it around the vbox.
2585
2586         * gtk/gtkentryprivate.h: 
2587         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
2588         Return a boolean indicating whether the popup is positioned above 
2589         or below. Scroll the completions to the beginning or the end, 
2590         depending on the positioning.
2591
2592         * gtk/gtkentry.c (gtk_entry_completion_key_press): Make keynav
2593         wrap around in the entry completion popup, and allow GDK_UP to 
2594         enter the popup.  (#137440)
2595
2596 2004-04-12  Matthias Clasen  <mclasen@redhat.com>
2597
2598         * gtk/gtkentry.c (gtk_entry_size_request): Make sure the style is 
2599         there before using it.
2600
2601 Sun Apr 11 15:08:45 2004  Jonathan Blandford  <jrb@gnome.org>
2602
2603         * gtk/gtktreeprivate.h: Moved search entries into priv data.
2604
2605         * gtk/gtktreeview.c: Prep for type-ahead support.
2606
2607         (gtk_tree_view_destroy): Destroy the search window explicitly.
2608         (gtk_tree_view_key_press): Minor change; prep for type-ahead
2609         (gtk_tree_view_ensure_interactive_directory): New function
2610         (gtk_tree_view_focus_out): Rework to handle new entry life-cycle.
2611         (gtk_tree_view_real_start_interactive_search): rework
2612         (gtk_tree_view_search_dialog_hide): ditto
2613         (gtk_tree_view_search_delete_event): ditto
2614         (gtk_tree_view_search_button_press_event): ditto
2615         (gtk_tree_view_search_key_press_event): ditto
2616         (gtk_tree_view_search_move): ditto
2617         (gtk_tree_view_search_init): ditto
2618
2619         * gtk/gtktreeviewcolumn.c:
2620         (gtk_tree_view_column_cell_layout_clear): remove unused variable.
2621
2622         * tests/testfilechooser.c: (main): change
2623
2624 2004-04-11  Hans Breuer  <hans@breuer.org>
2625
2626         * gdk/win32/gdkspawn-win32.c : workaround for bug #137496,
2627         the real fix would involve just another small API breakage,
2628         i.e. gdk_spawn_* using GPid not just gint.
2629
2630         * gtk/makefile.msc.in : build gtk-win32.res, not gtk.res
2631
2632 2004-04-10  Tor Lillqvist  <tml@iki.fi>
2633
2634         * gdk/win32/gdkkeys-win32.c (gdk_keymap_translate_keyboard_state):
2635         If both Shift and CapsLock pressed, ignore the shift only for
2636         letters (that would have been affected by the CapsLock). (#139095)
2637
2638         * gdk/win32/gdkglobals-win32.c: Disable tablet support by default,
2639         seems to be even buggier now than it used to be. (#138341)
2640         Initialize _gdk_input_ignore_wintab to TRUE.
2641
2642         * gdk/win32/gdkmain-win32.c: Add --use-wintab switch and
2643         GDK_USE_WINTAB environment variable to turn on tablet support.
2644
2645 2004-04-09  Christian Persch  <chpe@cvs.gnome.org>
2646
2647         * gtk/gtkuimanager.c: (gtk_ui_manager_insert_action_group),
2648         (gtk_ui_manager_remove_action_group): Terminate
2649         g_object_[dis]connect() calls with NULL instead of 0.
2650         Fixes #138997.
2651
2652 2004-04-09  Guntupalli Karunakar  <karunakar@freedomink.org>
2653
2654         * configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
2655
2656 2004-04-07  Federico Mena Quintero  <federico@ximian.com>
2657
2658         Fix #132500.
2659
2660         * gtk/gtkfilesystem.c (gtk_file_system_parse): Ensure that the
2661         passed-in 'str' is not NULL.
2662
2663         * gtk/gtkfilesystemunix.c (expand_tilde): New helper function;
2664         expands "~/" or "~foo/" at the beginning of a filename.
2665         (gtk_file_system_unix_parse): Use expand_tilde() before doing
2666         anything else.
2667
2668         * gtk/gtkfilechooserentry.c
2669         (gtk_file_chooser_entry_maybe_update_directory): Take in a
2670         force_reload argument.
2671         (gtk_file_chooser_entry_changed): If gtk_file_system_parse()
2672         returns an error, set the file_part_pos to -1.
2673         (load_directory_callback): Only populate the model if the
2674         file_part_pos is not -1.
2675
2676 2004-04-06  Pablo Saratxaga  <pablo@mandrakesoft.com>
2677
2678         * configure.in: Added Icelandic (is) to ALL_LINGUAS
2679
2680 2004-04-05  Federico Mena Quintero  <federico@ximian.com>
2681
2682         * gtk/gtkfilechooserdefault.c (location_popup_handler): Use a
2683         title for SAVE and CREATE_FOLDER modes.  Fixes #137272.
2684
2685         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Look
2686         for G_DIR_SEPARATOR in the display_name, and err out if it is
2687         present; use the same error message as Nautilus.  Fixes #136467.
2688
2689         * gtk/gtkfilechooserdefault.c (file_pane_create): Make the
2690         new-folder button say "Create Fo_lder" rather than "Create
2691         _Folder", so that the mnemonic doesn't conflict with the "Save in
2692         _folder" label.  Fixes #136975.
2693
2694 2004-04-05  Federico Mena Quintero  <federico@ximian.com>
2695
2696         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Ref/sink the
2697         buttons.  Also, free them correctly upon failure.  Based on a
2698         patch by Morten Welinder, fixes #137956.
2699
2700 2004-04-05  Anders Carlsson  <andersca@gnome.org>
2701
2702         * gdk/gdk.c (gdk_arg_context_parse): Handle '--' correctly.
2703
2704 Fri Apr  2 17:57:33 2004  Jonathan Blandford  <jrb@redhat.com>
2705
2706         * gtk/gtktreeview.c (gtk_tree_view_row_inserted): set the height
2707         correctly for fixed height when inserting a node, #138082
2708
2709 2004-04-01  Federico Mena Quintero  <federico@ximian.com>
2710
2711         Fix #136077.
2712
2713         * gtk/gtkpathbar.h (struct _GtkPathBarClass): Add a
2714         "child_is_hidden" boolean argument to the "path-clicked" signal.
2715
2716         * gtk/gtkpathbar.c (struct _ButtonData): Added a file_is_hidden
2717         field.
2718         (make_directory_button): Take a file_is_hidden argument; put it in
2719         the ButtonData.
2720         (_gtk_path_bar_set_path): See whether each path component path is
2721         a hidden file.
2722         (gtk_path_bar_class_init): Add the file_is_hidden argument to the
2723         "path-clicked" signal.
2724         (button_clicked_cb): See if the downwards button represents a
2725         hidden file for the file_is_hidden argument in the signal
2726         emission.
2727
2728         * gtk/gtkmarshalers.list: Added a signal type VOID:POINTER,BOOLEAN.
2729
2730         * gtk/gtkfilechooserdefault.c
2731         (gtk_file_chooser_default_select_path): If we fail to switch
2732         folders, don't try to select the path in the file system model.
2733         Also, return the result from _gtk_file_system_model_path_do().
2734         (gtk_file_chooser_default_select_path): Turn on show_hidden in the
2735         file system model if we are asked to select a hidden file.
2736         (path_bar_clicked): Show hidden files based on whether the
2737         immediate downwards folder in the path bar is a hidden file
2738         itself.
2739         (struct _GtkFileChooserDefault): Added fields
2740         browse_files_popup_menu and browse_files_popup_menu_hidden_files_item.
2741         (create_file_list): Set an object data key of
2742         "GtkFileChooserDefault" on the tree view so that we can find the
2743         impl from the popup menu callbacks.  Also, hook up to the
2744         "button-press-event" and "popup-menu" signals in the file list to
2745         bring up a popup menu.
2746         (list_popup_menu_cb): New callback.
2747         (list_button_press_event_cb): New callback.
2748
2749         Fix #138763:
2750
2751         * gtk/gtkfilesystemmodel.c
2752         (_gtk_file_system_model_new): Oops, connect_object to
2753         "finished-loading".
2754
2755 2004-03-31  Tor Lillqvist  <tml@iki.fi>
2756
2757         * configure.in: Move AC_CANONICAL_HOST earlier, before the check
2758         for native Win32. (#136559, J. Ali Harlow)
2759
2760         * gdk/win32/gdkdrawable-win32.c (draw_arc): Use X11 semantics for
2761         angles. Thanks to Tim Newsham.
2762
2763 2004-03-29  Federico Mena Quintero  <federico@ximian.com>
2764
2765         Fix #137520.
2766
2767         * gtk/gtkfilesystem.h (struct _GtkFileFolderIface): Added slots
2768         for an ::is_finished_loading() method and a ::finished_loading()
2769         signal at the end of the struct.
2770
2771         * gtk/gtkfilesystem.c (gtk_file_folder_base_init): Create the
2772         "finished-loading" signal.
2773         (gtk_file_folder_is_finished_loading): New function.
2774
2775         * gtk/gtkfilesystemunix.c
2776         (gtk_file_folder_unix_is_finished_loading): Implement.
2777
2778         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModelClass): New
2779         slot for a "finished-loading" signal.
2780         (gtk_file_system_model_class_init): Create the "finished-loading"
2781         signal.
2782         (struct _GtkFileSystemModel): New field
2783         idle_finished_loading_source.  We emit the "finished-loading"
2784         signal in an idle if the root folder was done loading right in
2785         _gtk_file_system_model_new(), so that the caller has a chance to
2786         connect to the signal.
2787         (_gtk_file_system_model_new): Connect to the normal signals of the
2788         folder even if the initial _list_children() fails.  Also, see if
2789         the folder is finished loading; connect to the "finished-loading"
2790         signal otherwise.
2791         (gtk_file_system_model_finalize): Remove the idle handler.
2792
2793         * gtk/gtkfilechooserdefault.c (set_list_model): Set a busy cursor
2794         and connect to the model's "finished-loading" signal.
2795         (get_toplevel): New helper function.
2796         (error_message): Use get_toplevel().
2797         (trap_activate_cb): Likewise.
2798         (location_popup_handler): Likewise.
2799         (set_busy_cursor): New function.
2800         (browse_files_model_finished_loading_cb): New callback.
2801
2802 2004-03-25  Federico Mena Quintero  <federico@ximian.com>
2803
2804         * gtk/gtkfilechooserdefault.c (check_preview_change): Just use the
2805         file under the cursor; we don't need the logic from
2806         GtkFileSelection after all.  Fixes #132255.
2807
2808 2004-03-25  Federico Mena Quintero  <federico@ximian.com>
2809
2810         * gtk/gtkfilechooserdefault.c (location_entry_create): Fill the
2811         location entry with the display name of the file under the cursor
2812         for Open mode, or the typed filename in Save mode.
2813
2814 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
2815
2816         * gtk/gtkfilesystemwin32.c
2817         (filename_is_root): Bare drive designators (eg., "c:") are
2818         no longer considered as root filenames.  Fixed #137942
2819
2820 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
2821
2822         * gtk/gtkfilesystemwin32.c
2823         (gtk_file_system_win32_create_folder): Invert test for error in
2824         mkdir.  Fixes #137945
2825
2826 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
2827
2828         Fixed #138004 using Federico's code from #132327.
2829
2830         * gtk/gtkfilesystemwin32.c (struct _GtkFileSystemWin32): Add a
2831         folder_hash field to keep a list of live folder objects.
2832         (gtk_file_system_win32_init): Create the folder_hash.
2833         (gtk_file_system_win32_finalize): Destroy the folder_hash.
2834         (gtk_file_system_win32_get_folder): Ref and return an existing
2835         folder if we have it around, otherwise return a new folder object.
2836         (struct _GtkFileFolderWin32): Add a field for the parent file system.
2837         (gtk_file_folder_win32_finalize): Remove the folder from the file
2838         system's hash table.
2839         (gtk_file_system_win32_create_folder):  Emit "files-added" on the
2840         newly-created folder's parent.  Fixes #138004.
2841
2842 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
2843
2844         * gtk/gtkfilesystemwin32.c
2845         (gtk_file_system_win32_get_folder): Test that path is actually
2846         a directory and throw error if not. Fixed bug #137950
2847
2848 2004-03-22  J. Ali Harlow  <ali@juiblex.co.uk>
2849
2850         * gtk/gtkfilesystemwin32.c
2851         (gtk_file_system_win32_volume_get_display_name): Ignore empty
2852         volume labels; assume that GetVolumeInformation would fail if
2853         GetVolumeInformationW does; catches a small memory leak;
2854         pass the buffer size to GetVolumeInformationW in wide
2855         characters instead of bytes. Fixes bug #137543
2856         (list_volumes): Cope with the theoretical possibility of
2857         more than 26 logical drives. Fixes bug #137940
2858         (bookmarks_serialize): Now actually removes bookmarks.
2859         Fixes bug #137943
2860
2861 2004-03-22  Guntupalli Karunakar  <karunakar@freedomink.org>
2862
2863         * configure.in: Added "pa" (Punjabi) to ALL_LINGUAS.
2864
2865 2004-03-21  Tor Lillqvist  <tml@iki.fi>
2866
2867         * gtk/gtkfilesystemwin32.c
2868         (gtk_file_system_win32_volume_get_base_path): Include the
2869         backslash. Otherwise gtk_file_system_win32_path_to_uri() returns
2870         NULL for a volume base path, as g_filename_to_uri() requires an
2871         absolute path, and just a drive letter and colon isn't. (#137543)
2872
2873 2004-03-20  Hans Breuer  <hans@breuer.org>
2874
2875         * gtk/gtkfilesystemwin32.c : applied the undisputable and
2876         required [due to recent gtkfilesystem internal api semantic 
2877         changes] part of patches to fix bug #137543 (Tor Lillqvist,
2878         J. Ali Harlow)
2879
2880         * gdk/gdkevents-win32.c (handle_configure_event) :
2881              (gdk_event_translate), WM_WINDOWPOSCHANGED : initialize
2882         GdkWindowObject::x, y with screen coords to make 
2883         gdk_window_get_position () return the right thing and thus fix
2884         drag and drop positioning (e.g. Gimp tabs, fixes bug #137192)
2885
2886 2004-03-19  Federico Mena Quintero  <federico@ximian.com>
2887
2888         * Revert the patch to #137520, as 2.4.1 is for conservative bug
2889         fixes only.  The patch is attached to the bug report, for
2890         reference.
2891
2892 2004-03-19  Morten Welinder  <terra@gnome.org>
2893
2894         * gtk/gtkfilechooserdefault.c
2895         (gtk_file_chooser_default_set_current_folder): Test existance of
2896         the path after checking for locality, if needed.
2897
2898 2004-03-19  Federico Mena Quintero  <federico@ximian.com>
2899
2900         Fix #137520.
2901
2902         * gtk/gtkfilesystem.h (struct _GtkFileFolderIface): Added slots
2903         for an ::is_finished_loading() method and a ::finished_loading()
2904         signal at the end of the struct.
2905
2906         * gtk/gtkfilesystem.c (gtk_file_folder_base_init): Create the
2907         "finished-loading" signal.
2908         (gtk_file_folder_is_finished_loading): New function.
2909
2910         * gtk/gtkfilesystemunix.c
2911         (gtk_file_folder_unix_is_finished_loading): Implement.
2912
2913         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModelClass): New
2914         slot for a "finished-loading" signal.
2915         (gtk_file_system_model_class_init): Create the "finished-loading"
2916         signal.
2917         (struct _GtkFileSystemModel): New field
2918         idle_finished_loading_source.  We emit the "finished-loading"
2919         signal in an idle if the root folder was done loading right in
2920         _gtk_file_system_model_new(), so that the caller has a chance to
2921         connect to the signal.
2922         (_gtk_file_system_model_new): Connect to the normal signals of the
2923         folder even if the initial _list_children() fails.  Also, see if
2924         the folder is finished loading; connect to the "finished-loading"
2925         signal otherwise.
2926         (gtk_file_system_model_finalize): Remove the idle handler.
2927
2928         * gtk/gtkfilechooserdefault.c (set_list_model): Set a busy cursor
2929         and connect to the model's "finished-loading" signal.
2930         (get_toplevel): New helper function.
2931         (error_message): Use get_toplevel().
2932         (trap_activate_cb): Likewise.
2933         (location_popup_handler): Likewise.
2934         (set_busy_cursor): New function.
2935         (browse_files_model_finished_loading_cb): New callback.
2936
2937 Thu Mar 18 12:10:45 2004  Owen Taylor  <otaylor@redhat.com>
2938
2939         * gtk/gtktreeitem.c (gtk_tree_item_forall): Include 
2940         eventbox for expander. (#137564, reported by
2941         Jacques Garrigue)
2942
2943 2004-03-18  Guntupalli Karunakar  <karunakar@freedomink.org>
2944
2945         * mr.po: Added "mr" for Marathi to ALL_LINGUAS.
2946
2947 2004-03-17  Morten Welinder  <terra@gnome.org>
2948
2949         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free
2950         volumes not actually put into the shortcut list.
2951
2952         * tests/prop-editor.c (object_changed): Plug leak.
2953
2954         * tests/testfilechooser.c (main): Plug some leaks and expose
2955         others.
2956
2957         * tests/prop-editor.c (create_prop_editor): Don't leak the tooltip
2958         object.  Fixed #136652.
2959
2960         * gtk/gtkfilechooserdefault.c (check_icon_theme): Do nothing if we
2961         have no screen.  Fixes #137260.
2962         (shortcuts_add_bookmark_from_path): Simplify using check_is_folder
2963         thereby fixing leak.  Fixes #137259.
2964
2965         * gtk/gtkpathbar.c (gtk_path_bar_forall): Make this work when the
2966         slider buttons have been destroyed.
2967         (gtk_path_bar_remove): Make this work for slider buttons too.
2968         Fixes #137257
2969
2970 2004-03-15  Morten Welinder  <terra@gnome.org>
2971
2972         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmark_from_path):
2973         Sanitize and plug leak.
2974         (check_icon_theme): Only do something if the widget has a screen.
2975
2976 Wed Mar 17 01:20:28 2004  Matthias Clasen  <maclas@gmx.de>
2977
2978         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
2979         Move the repositioning logic from _gtk_entry_completion() popup
2980         over here. Fixes #137355, reported by Niklas Knutsson.
2981