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