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