]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
Switch set_cairo_target() virtual function to ref_cairo_surface()
[~andy/gtk] / ChangeLog.pre-2-10
1 2005-03-15  Owen Taylor  <otaylor@redhat.com>
2
3         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c 
4         gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
5         gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
6         ref_cairo_surface()
7
8         * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
9         function to create_cairo_context()
10
11         * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
12
13         * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
14         not just the pixel.
15
16         * tests/testcairo.c: Update for create_cairo_context()
17
18         * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
19         Reimplement in terms of Cairo, bypass the vtable entries.
20
21         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
22         gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
23         gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
24         implementation of draw_trapezoids / draw_glyphs[_transformed].
25
26         * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
27
28         * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
29         gdk_pango_context_get_for_screen() into the backend independent code.
30
31         * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
32         for drawing images.
33
34         * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
35         gdk_draw_rectangle_alpha_libgtk_only.
36
37         * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add 
38         gdk_pixbuf_set_as_cairo_source()
39
40         * gdk/gdk.symbols: Update
41
42         * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
43         gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
44
45         * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
46         gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
47         radio button style for now to get something more scalable.
48
49         *  gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
50         antialiasing/dpi settings.
51
52 2005-03-16  Matthias Clasen  <mclasen@redhat.com>
53
54         * demos/gtk-demo/editable_cells.c: Also demonstrate
55         GtkCellRenderer::editing-started and separators.
56
57 Tue Mar 15 20:34:33 2005  Manish Singh  <yosh@gimp.org>
58
59         * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
60
61 2005-03-15  Matthias Clasen  <mclasen@redhat.com>
62
63         Make PLT-reduction work with gcc4, and don't include
64         everything in gdkalias.h:
65
66         * gdk/gdk.symbols: Group symbols by header and source file.
67         * gdk/makegdkalias.pl: Protect definitions by the same
68         preprocessor symbols used to guard the headers. Move
69         the alias declarations to a separate file which is
70         produced when calling makegdkalias.pl -def
71         * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
72         file.
73         * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
74         headers, include gdkaliasdef.c at the bottom.
75
76 2005-03-16  Tor Lillqvist  <tml@novell.com>
77
78         * gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
79         debugging output only if asked for, not always.
80
81         * gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
82         debugging printout instead of +%d+%d. Misc other additions and
83         cosmetic improvements to debugging printouts. Use API_CALL() and
84         GDI_CALL() macros in more places.
85
86         * gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
87         gdk_window_move_resize): To detect child windows, check whether
88         the real parent is not the desktop window, instead of relying on
89         the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
90         windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
91         de facto child windows.
92
93         * gdk/win32/gdkprivate-win32.h
94         * gdk/win32/*.c: Drop global variable _gdk_root_window, just call
95         GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
96         _gdk_root.
97
98         * gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
99         toplevel_window_type field.
100
101         * gdk/win32/gdkwindow-win32.c: As there is only one root window in
102         GDK on Win32, we can compare directly to _gdk_root instead of
103         checking the window type.
104         (gdk_window_reparent): When reparenting a child of the desktop
105         clear out the window decorations. Correspondingly, when
106         reparenting to the desktop, add decorations. As in the X11
107         backend, save the window type of a toplevel window when
108         reparenting, in case it is reparented back to toplevel.
109
110 2005-03-15  Matthias Clasen  <mclasen@redhat.com>
111
112         * gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
113         example for manually setting up a group of actions.
114
115         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
116         Document that inline completion requires text-column to be set.
117         (gtk_entry_completion_compute_prefix): Return NULL if text-column
118         is not set.
119
120         * gtk/gtkentry.c (check_completion_callback): Call 
121         gtk_entry_completion_complete() before inserting the prefix,
122         otherwise the prefix may depend on (random) state of the
123         filter model.  
124
125 2005-03-15  Anders Carlsson  <andersca@imendio.com>
126
127         * docs/iconcache.txt:
128         Update spec.
129         
130         * gtk/gtkiconcache.c: (find_image_offset),
131         (_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
132         (_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
133         * gtk/gtkiconcache.h:
134         Update to be able to fetch pixbuf data and icon metadata.
135         
136         * gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
137         (icon_info_ensure_scale_and_pixbuf):
138         Use new cache functions.
139         
140         * gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
141         (maybe_cache_image_data), (scan_directory), (write_pixdata),
142         (get_image_meta_data_size), (get_image_pixel_data_size),
143         (get_image_data_size), (get_single_node_size), (get_bucket_size),
144         (write_bucket), (main):
145         Update to write pixbuf data as well as information from .icon
146         files.
147         
148 2005-03-15  Tor Lillqvist  <tml@novell.com>
149
150         * gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
151         debugging function. As GetKeyNameText() returns a localized key
152         name we need to convert it to UTF-8.
153
154         * gdk/win32/gdkprivate-win32.h: Declare it.
155
156         * gdk/win32/gdkevents-win32.c: Use it.
157
158         * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
159         handling of children of foreign windows. They should be child
160         windows from Windows's perspective, even if they are toplevel GDK
161         windows.
162
163 2005-03-13  Ivan, Wong Yat Cheung  <email@ivanwong.info>
164
165         * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
166         for big window support. Now also the test in testgtk works.
167
168 2005-03-11  Matthias Clasen  <mclasen@redhat.com>
169
170         * gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
171         style changes.  (#169334, Yury Puzis)
172
173         * gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
174         the doc comments.  (#169967, Masao Mutoh)
175
176 2005-03-12  Ivan, Wong Yat Cheung  <email@ivanwong.info>
177
178         Big window fix for Win32. Big windows are still emulated within
179         16-bit coordinate limits, though. Big windows now work on NT-based
180         Windows. (#169989)
181
182         * gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
183         32-bit coordinates.
184
185         * gdk/win32/gdkgeometry-win32.c: Largely rewrite.
186
187         * gdk/win32/gdkwindow-win32.c: Minor related changes.
188         
189 2005-03-10  Matthias Clasen  <mclasen@redhat.com>
190
191         * gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv): 
192         Fix a doc typo.  (#169873, Johan Dahlin)
193
194         * gtk/gtkdialog.c (gtk_dialog_map): Don't
195         try to focus the default_widget if there is 
196         none.  (#169881, Thomas Leonard)
197
198 Wed Mar  9 19:20:44 2005  Manish Singh  <yosh@gimp.org>
199
200         * configure.in: Remove inadvertent gail references, require
201         Pango 1.9.0
202
203 2005-03-09  Matthias Clasen  <mclasen@redhat.com>
204
205         * configure.in: Require GLib 2.7.0
206
207 2005-03-09  Matthias Clasen  <mclasen@redhat.com>
208
209         * gtk/gtkwidget.h (struct _GtkWidget): Typo fixes in comments.
210         (#169728, Morten Welinder, Owen Taylor)
211
212         * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
213         in the docs.  (#169729, Morten Welinder)
214
215         * gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
216
217         * gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize 
218         when the model is unset.  (#169528, Tomislav Jonjic)
219
220 2005-03-09  Matthias Clasen  <mclasen@redhat.com>
221
222         * gtk/gtkviewport.c (gtk_viewport_class_init): 
223         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): 
224         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init): 
225         * gtk/gtktipsquery.c (gtk_tips_query_class_init): 
226         * gtk/gtktext.c (gtk_text_class_init): 
227         * gtk/gtkstatusbar.c (gtk_statusbar_class_init): 
228         * gtk/gtkspinbutton.c (gtk_spin_button_class_init): 
229         * gtk/gtktoggleaction.c (gtk_toggle_action_class_init): 
230         * gtk/gtkoptionmenu.c (gtk_option_menu_class_init): 
231         * gtk/gtkoldeditable.c (gtk_old_editable_class_init): 
232         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): 
233         * gtk/gtktoolbutton.c (gtk_tool_button_class_init): 
234         * gtk/gtktoolitem.c (gtk_tool_item_class_init): 
235         * gtk/gtkimage.c (gtk_image_class_init): 
236         * gtk/gtkruler.c (gtk_ruler_class_init): 
237         * gtk/gtkiconview.c (gtk_icon_view_class_init): 
238         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): 
239         * gtk/gtkprogress.c (gtk_progress_class_init): 
240         * gtk/gtkmenu.c (gtk_menu_class_init): 
241         * gtk/gtkscale.c (gtk_scale_class_init): 
242         * gtk/gtkpaned.c (gtk_paned_class_init): 
243         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
244         * gtk/gtkfontbutton.c (gtk_font_button_class_init): 
245         * gtk/gtkfontsel.c (gtk_font_selection_class_init): 
246         * gtk/gtkfilesel.c (gtk_file_selection_class_init): 
247         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
248         * gtk/gtkcurve.c (gtk_curve_class_init): 
249         * gtk/gtkcombo.c (gtk_combo_class_init): 
250         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
251         * gtk/gtkcolorbutton.c (gtk_color_button_class_init): 
252         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): 
253         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): 
254         * gtk/gtkcheckbutton.c (gtk_check_button_class_init): 
255         * gtk/gtktogglebutton.c (gtk_toggle_button_class_init): 
256         * gtk/gtkcellview.c (gtk_cell_view_class_init): 
257         * gtk/gtktoolbar.c (gtk_toolbar_class_init): 
258         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): 
259         * gtk/gtkclist.c (gtk_clist_class_init): 
260         * gtk/gtkctree.c (gtk_ctree_class_init): 
261         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): 
262         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): 
263         * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init): 
264         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init): 
265         * gtk/gtkcalendar.c (gtk_calendar_class_init): 
266         * gtk/gtkbbox.c (gtk_button_box_class_init): 
267         * gtk/gtktable.c (gtk_table_class_init): 
268         * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): 
269         * gtk/gtkframe.c (gtk_frame_class_init): 
270         * gtk/gtkaction.c (gtk_action_class_init): 
271         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): 
272         * gtk/gtkaboutdialog.c (gtk_about_dialog_class_init): 
273         * gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
274
275 2005-03-08  Matthias Clasen  <mclasen@redhat.com>
276
277         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): 
278         * gtk/gtkrange.c (gtk_range_class_init): 
279         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): 
280         * gtk/gtktexttag.c (gtk_text_tag_class_init): 
281         * gtk/gtktextview.c (gtk_text_view_class_init): 
282         * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): 
283         * gtk/gtknotebook.c (gtk_notebook_class_init): 
284         * gtk/gtkentry.c (gtk_entry_class_init): 
285         * gtk/gtkexpander.c (gtk_expander_class_init): 
286         * gtk/gtkarrow.c (gtk_arrow_class_init): 
287         * gtk/gtkalignment.c (gtk_alignment_class_init): 
288         * gtk/gtkbutton.c (gtk_button_class_init): 
289         * gtk/gtklabel.c (gtk_label_class_init): 
290         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): 
291         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
292         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 
293         * gtk/gtktreeview.c (gtk_tree_view_class_init): 
294         * gtk/gtkbox.c (gtk_box_class_init): 
295         * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init): 
296         * gtk/gtkcontainer.c (gtk_container_class_init): 
297         * gtk/gtkwidget.c (gtk_widget_class_init): 
298         * gtk/gtkobject.c (gtk_object_class_init): Use canonical names
299         when registering param specs.
300
301         * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
302         (#169607, Mark McLoughlin)
303         
304         * gtk/gtk.symbols: Add the new attributes here, too.
305
306         * gtk/gtkwidget.h: 
307         * gtk/gtktreeview.h: 
308         * gtk/gtktreeviewcolumn.h: 
309         * gtk/gtktextbuffer.h: 
310         * gtk/gtkobject.h: 
311         * gtk/gtkfilechooserdialog.h: 
312         * gtk/gtkdialog.h: 
313         * gtk/gtkcontainer.h: 
314         * gtk/gtkcelllayout.h: 
315         * gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
316         appropriate.  (#165682, Marc Meissner)
317
318 2005-03-07  Matthias Clasen  <mclasen@redhat.com>
319
320         Convert the gdk keyval-keyname tables to a big string
321         + offsets. (#168901)
322         
323         * gdk/gen-keyname-table.pl: Perl script inspired by
324         pango/tools/gen-color-table.pl to create the 
325         gdk_keys_by_keyval and gdk_keys_by_name tables as lists
326         of offsets pointing into a big const string.
327         
328         * gdk/keynames.txt: List of keyval-keyname pairs.
329         * gdk/keyname-table.h: Generated tables.
330
331         * gdk/gdkkeynames.c: Include keyname-table.h and don't
332         generate the inverse table at runtime.
333
334 2005-03-07  Matthias Clasen  <mclasen@redhat.com>
335
336         * gtk/gtkstyle.c: Document which parameters may be NULL.  
337         (#166855, Frank Naumann)
338
339 2005-03-07  Matthias Clasen  <mclasen@redhat.com>
340
341         * AUTHORS: Add original authors of incorporated software.
342
343 Thu Mar  3 16:59:44 2005  Manish Singh  <yosh@gimp.org>
344
345         * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
346
347 2005-03-03  Matthias Clasen  <mclasen@redhat.com>
348
349         * gtk/gtksettings.c (gtk_settings_get_property): 
350         * gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak 
351         the values here.  (#169047, Philip Langdale)
352
353         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): 
354         Don't warn if a stock icon cannot be found.  (#168830,
355         Sven Neumann)
356
357 2005-03-03  Matthias Clasen  <mclasen@redhat.com>
358
359         * gtk/gtkwidget.c (gtk_widget_reparent_subwindows): 
360         Avoid warnings if gtk_widget_reparent() is called at
361         unusual times.  (#168966, Christian Persch)
362
363 Tue Mar  1 14:04:08 2005  Manish Singh  <yosh@gimp.org>
364
365         * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
366         const warnings on data structure seeding.
367
368 Tue Mar  1 13:53:56 2005  Manish Singh  <yosh@gimp.org>
369
370         * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
371
372 2005-03-01  Matthias Clasen  <mclasen@redhat.com>
373
374         * gtk/gtkmenutoolbutton.c (button_state_changed_cb): 
375         Fix prelighting.  (#157392, Vincent Noel, patch by
376         Christian Persch)
377
378         * gtk/gtkicontheme.c (theme_lookup_icon): Make 
379         icon data caching work again.  (#168851, Alexander Larsson)
380
381         * gdk-pixbuf/gdk-pixbuf.c:
382         * gdk-pixbuf/gdk-pixbuf-features.h.in:
383         Revert the previous change, since it breaks
384         bin compat.
385
386 2005-03-01  Matthias Clasen  <mclasen@redhat.com>
387
388         * gdk/gdkkeyuni.c
389         * gdk/gdkpixbuf-drawable.c
390         * gdk/gdkrgb.c
391         * gdk/x11/gdkdnd-x11.c
392         * gdk/x11/gdkevents-x11.c
393         * gdk/x11/gdkproperty-x11.c
394         * gdk/x11/gdkvisual-x11.c
395         * gdk-pixbuf/gdk-pixbuf.c
396         * gdk-pixbuf/gdk-pixbuf-features.h.in
397         * gtk/gtkaction.c
398         * gtk/gtkbindings.c
399         * gtk/gtkcolorbutton.c
400         * gtk/gtkcombo.c
401         * gtk/gtkcontainer.c
402         * gtk/gtkfilechooserdefault.c
403         * gtk/gtkfilesel.c
404         * gtk/gtkgamma.c
405         * gtk/gtkiconview.c
406         * gtk/gtkinputdialog.c
407         * gtk/gtkitemfactory.c
408         * gtk/gtkmenu.c
409         * gtk/gtktextview.c
410         * gtk/gtktooltips.c
411         * gtk/gtktreedatalist.c
412         * gtk/gtkuimanager.c
413         * gtk/tree_minus.xpm
414         * gtk/tree_plus.xpm
415         * gtk/xdgmime/xdgmime.c
416         * gtk/xdgmime/xdgmime.h: 
417         Move constant data to .rodata.
418
419 2005-02-27  Matthias Clasen  <mclasen@redhat.com>
420
421         * gtk/gtkaction.c (connect_proxy): Improve the handling
422         of buttons as action proxys.  (#165534, Milosz Derezynski)
423
424         * gtk/gtklabel.c (gtk_label_size_request): Fix a typo.
425         (#168646, Vincent Untz)
426
427         * gtk/gtkfilechooserdefault.c (save_folder_combo_create): 
428         Unset "focus-on-click" for the save folder combo.  (#168688,
429         Sven Neumann)
430
431 2005-02-25  Matthias Clasen  <mclasen@redhat.com>
432
433         * demos/testpixbuf.c (main): Remove a C++ comment.  (#168531, 
434         Paul Cornett)
435
436         * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Don't leak a 
437         path here.  (#168443, Morten Welinder)
438
439 2005-02-24  Robert Ögren  <gtk@roboros.com>
440
441         Implement better handling of Wintab tablet context overlap on
442         Win32. (#167298)
443
444         * gdk/win32/gdkinput-win32.c (_gdk_input_set_tablet_active): New
445         function that brings any tablet contexts to the top of the overlap
446         order.
447         * gdk/win32/gdkinput-win32.h: Declare _gdk_input_set_tablet_active ()
448         * gdk/win32/gdkevents-win32.c (gdk_event_translate):
449         Call _gdk_input_set_tablet_active when a window is activated (on
450         WM_ACTIVATE)
451
452 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
453
454         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_path): 
455         Don't leak parent_path.  (#168435, Morten Welinder)
456
457 Thu Feb 24 14:20:16 2005  Søren Sandmann  <sandmann@redhat.com>
458
459         * gtk/gtkstyle.c: Add
460
461         g_return_if_fail (style->depth == gdk_drawable_get_depth(window));
462
463         all over the place.
464
465 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
466
467         * gtk/gtkcombobox.c: Consistently use gtk_tree_row_reference_valid().
468         (gtk_combo_box_model_row_deleted): Update the displayed row in 
469         the cell_view.  (#167842, Gustavo Carneiro)
470
471 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
472
473         Fix #167259, reported by  Christian Persch:
474         
475         * gtk/gtkwidget.c (gtk_widget_unparent): Unmap the reparented 
476         widget, even if we avoid the unrealizing. 
477         (gtk_widget_reparent_subwindows): Make reparenting work for
478         !NO_WINDOW widgets which have other windows which are siblings
479         of widget->window (as e.g. GtkSpinButton).
480
481 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
482
483         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed): 
484         Don't emit a warning if a parent node is filtered out. (#164726,
485         Olivier Sessink)
486
487 2005-02-23  Matthias Clasen  <mclasen@redhat.com>
488
489         * gtk/gtklabel.c (gtk_label_style_set): Revert the last 
490         change, since gtk_widget_set_style_internal() already
491         queues a resize.
492
493 2005-02-23  Matthias Clasen  <mclasen@redhat.com>
494
495         * gtk/gtklabel.c (gtk_label_style_set): Queue a resize, since
496         fonts may have changed.  (#164128, Phil Blundell)
497
498         * gtk/gtkaboutdialog.c (gtk_about_dialog_init) 
499         (gtk_about_dialog_new): Move initialization code from _new to 
500         _init.  (#168249, Murray Cumming) 
501
502 Wed Feb 23 17:34:01 2005  Jonathan Blandford  <jrb@redhat.com>
503
504         * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
505         jorn@nl.linux.org (Jorn Baayen) to notice changes to fixed-height
506         widgets.
507
508 2005-02-23  Tor Lillqvist  <tml@novell.com>
509
510         * gdk/win32/gdkkeys-win32.c (update_keymap): Workaround for bug in
511         MapVirtualKey(VK_DIVIDE, 0) in some Windows versions. (#142998)
512
513 Tue Feb 22 13:49:09 2005  Manish Singh  <yosh@gimp.org>
514
515         * gtk/updateiconcache.c: #include <config.h>
516
517 2005-02-22  Federico Mena Quintero  <federico@ximian.com>
518
519         Merged from gtk-2-6:
520
521         Fix #164940, patch by Ben Maurer and Tommi Komulainen.
522
523         * gdk/gdkrgb.c (gdk_rgb_convert_565_d): Constify the "dmp" variable.
524         (gdk_rgb_convert_565_d): Likewise.
525         (DM_565): Made a static const precomputed array to avoid
526         allocating it at runtime.
527         (gdk_rgb_preprocess_dm_565): #ifdef out.
528
529 2005-02-20  Matthias Clasen  <mclasen@redhat.com>
530
531         * gtk/gtkwindow.c: 
532         * gtk/gtkclipboard.c: Fix links to freedesktop.org specs
533         in the documentation.
534
535         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids): 
536         Set have_render_with_trapezoids to GDK_YES when we have 
537         a new enough Render extension.  (#167965,Billy Biggs) 
538
539         * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
540         the last user interaction when focusing the window.  (#166379, 
541         Elijah Newren)
542
543 Thu Feb 17 14:58:16 2005  Manish Singh  <yosh@gimp.org>
544
545         * gtk/gtkuimanager.c (start_element_handler): make sure expand
546         is initialized, cast to GTK_SEPARATOR_TOOL_ITEM.
547
548 Thu Feb 17 14:52:57 2005  Manish Singh  <yosh@gimp.org>
549
550         * gtk/gtkcombobox.c: Pass gtk_widget_get_toplevel() a GTK_WIDGET.
551
552 2005-02-16  Matthias Clasen  <mclasen@redhat.com>
553
554         * docs/iconcache.txt: Add some information about the
555         icon cache format (since I can't locate it at freedesktop.org)
556
557         Fixes for #143829, Tommi Komulainen, Christian Persch:
558         
559         * gtk/gtktreeview.c (gtk_tree_view_destroy): Remove the
560         typeselect_flush_timeout when destroying the widgets
561         it is operating on.  
562         (gtk_tree_view_ensure_interactive_directory): Add the 
563         popup to the window group of the toplevel it belongs to.
564
565         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget) 
566         (gtk_combo_box_popup): Do the same here. 
567
568 2005-02-14  Matthias Clasen  <mclasen@redhat.com>
569
570         * configure.in: Kill --enable-ansi  (#164394)
571
572 2005-02-11  Matthias Clasen  <mclasen@redhat.com>
573
574         * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling 
575         when the pathbar goes away.  (#167094, Rodney Dawes)
576         (change_icon_theme): Use GTK_ICON_SIZE_MENU here as 
577         well  (Vincent Noel)
578
579 2005-02-11  Matthias Clasen  <mclasen@redhat.com>
580
581         Support vertical menubars  (#166632): 
582         
583         * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack 
584         directions, with values for left-to-right, right-to-left, 
585         top-to-bottom and bottom-to-top.
586
587         * gtk/gtk.symbols: 
588         * gtk/gtkmenubar.h: 
589         * gtk/gtkmenubar.c: Add two properties, pack-direction and
590         child-pack-direction, which specify how children and 
591         grandchildren of a menubar are packed, with getters and setters. 
592
593         * gtk/gtkmenubar.c (gtk_menu_bar_set_property): 
594         (gtk_menu_bar_get_property): Implement set_property and get_property.
595
596         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): 
597         (gtk_menu_bar_size_allocate): Take pack direction into account.
598
599         * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement 
600         move_current here move all the menubar-specific direction 
601         tweaking from the generic menushell implementation here.
602
603         * gtk/gtkmenu.c (gtk_menu_move_current): Move  menu-specific 
604         direction tweaking from the generic menushell implementation here.
605
606         * gtk/gtkmenuitem.c (gtk_menu_item_size_request): 
607         (gtk_menu_bar_size_allocate): Take pack direction into account.
608
609         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request) 
610         (gtk_image_menu_item_size_allocate): 
611         (gtk_image_menu_item_toggle_size_request): Take child pack 
612         direction into account and pack the image vertically if
613         necessary.
614
615         * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
616         Set the submenu direction to left-right for menuitems in 
617         vertical menubars.
618         (gtk_real_menu_shell_move_current): Simplify by moving
619         direction tweaking to menu- and menubar-specific 
620         implementations. Take pack direction into account when
621         doing fallbacks.
622
623         * tests/testmenubars.c: Test menubars in various packing
624         direction combinations.
625
626         * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
627
628 2005-02-11  Matthias Clasen  <mclasen@redhat.com>
629
630         Complete the fix for #165770, Vincent Noel:
631         
632         * gtk/gtkfilechooserbutton.c (FALLBACK_ICON_SIZE): Make the
633         fallback size be 16, to be equal to the default for
634         GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
635         (gtk_file_chooser_button_init):
636         (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
637         GTK_ICON_SIZE_SMALL_TOOLBAR. 
638
639 2005-02-09  Matthias Clasen  <mclasen@redhat.com>
640
641         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
642         keynav for going from menubar to menu.
643
644 2005-02-08  Christian Rose  <menthos@menthos.com>
645
646         * configure.in: Added "xh" to ALL_LINGUAS.
647
648 2005-02-08  Matthias Clasen  <mclasen@redhat.com>
649
650         * gtk/gtkuimanager.c (start_element_handler): Accept 
651         the "expand" attribute and set a flag in the node if it
652         is set to "true".
653         (update_node): If the expand flag is set, make separator
654         toolitems non-drawn and expanding.  (#166489, Christian Persch)
655
656 2005-02-05  Hans Breuer  <hans@breuer.org>
657
658         * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
659         build with Cairo dependency. The patch to acually use Cairo
660         on win32 will be on gtk-devel-list soon.
661         * tests/makefile.msc : add testcairo building
662
663         * gtk/stock-icons/makefile.msc : split command line into two to
664         work with the shells default
665
666 Fri Feb  4 14:16:31 2005  Manish Singh  <yosh@gimp.org>
667
668         * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
669         function.
670
671         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
672         Add some extra parens for bitop order of operations disambiguiation.
673
674         * gtk/gtkstock.c: Fix const confusion, make our own copy of the 
675         domain when setting a translate function.
676
677         * tests/testcombo.c: removed unused variable.
678
679 2005-02-04  Matthias Clasen  <mclasen@redhat.com>
680
681         * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
682         being NULL.  (#166179, Diego Gonzalez)
683
684 2005-02-04  Owen Taylor  <otaylor@redhat.com>
685
686         * configure.in: Revert gtk_binary_version to 2.4.0. Fix
687         up comment to talk only about backwards compat, not
688         forward/backwards compat. (#166293, reported by Vincent Noel)
689
690 2005-02-04  Matthias Clasen  <mclasen@redhat.com>
691
692         * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
693         when there is not enough space. This avoids a nasty size
694         allocation loop in the file chooser.  (#154007, reported 
695         by Milosz Derezynski, patch by Robert Ögren)
696
697 2005-02-04  Matthias Clasen  <mclasen@redhat.com>
698
699         * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
700         selection of RTL direction if the widget does not have 
701         focus.  (#164125, Frederic Crozat)
702
703 Thu Feb  3 19:15:55 2005  Manish Singh  <yosh@gimp.org>
704
705         * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
706
707 2005-02-03  Owen Taylor  <otaylor@redhat.com>
708
709         * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
710         gdk_drawable_set_cairo_target().
711
712         * tests/testtreeflow.c (enum): Use grand not rand as a variable
713         name because one of the cairo headers is pulling in stdlib.h.
714
715         * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
716         example.
717
718         * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
719
720         * Require libpangocairo for all backends.
721
722 2005-02-03  Tor Lillqvist  <tml@novell.com>
723
724         * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
725         wide character version of ImmGetCompositionString() here,
726         too. (#165278, Takuro Ashie)
727
728 2005-02-03  Matthias Clasen  <mclasen@redhat.com>
729
730         * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
731         one roundtrip per motion event.  (#166173, pointed out
732         by Chris Lee, patch by Søren Sandmann)
733
734         * gtk/gtk.symbols: 
735         * gtk/gtkstock.h: 
736         * gtk/gtkstock.c (gtk_stock_set_translate_func): 
737         New function which allows to change the function used for
738         translation stock labels, on a per-domain basis. Use this
739         functionality to switch the GTK+ stock items to use Q_()
740         prefixed msgids.  (#166179, Funda Wang)
741         
742         * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
743         Tommi Komulainen)
744
745 2005-02-02  Federico Mena Quintero  <federico@ximian.com>
746
747         Merged from gtk-2-6:
748
749         * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
750         Don't select the first row if the chooser is not mapped.  This
751         happens when it's acting on behalf of GtkFileChooserButton.  Also,
752         don't select the first row if we are in SAVE or CREATE_FOLDER
753         modes --- I had missed that (see the ChangeLog entry from
754         2005-01-18).  Fixes #165264.
755
756 2005-02-02  Tor Lillqvist  <tml@novell.com>
757
758         Implement lazy extended input initialization on Win32, by Robert
759         Ögren. Fixes #163163, possibly #162334. Lazy initialization would
760         be a good idea in any case even if it didn't fix any visible
761         problems, though.
762
763         The Wacom tablet driver seems to get confused if Wintab is
764         initialized but no window is shown before the process exits. This
765         is the case for some GIMP plug-ins, for instance. 
766
767         * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
768         non-static (and renamed).
769         (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
770
771         * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
772
773         * gdk/win32/gdkinput.c (gdk_devices_list,
774         gdk_display_list_devices, gdk_input_set_extension_events): Call
775         _gdk_input_wintab_init_check() here instead.
776
777 2005-02-02  Ivan, Wong Yat Cheung  <email@ivanwong.info>
778
779         * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
780         of a single window so that gtk_clipboard_request_contents() can be
781         called inside a GtkClipboardReceivedFunc(). (#163844)
782
783 2005-02-01  Matthias Clasen  <mclasen@redhat.com>
784
785         * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
786         in XDG_DATA_DIRS/pixmaps.  (#165950, Thomas Zajic)
787
788         * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
789         to NULL after freeing it.  (#165800, Damon Chaplin)
790
791 2005-02-01  Michael Natterer  <mitch@gimp.org>
792
793         * configure.in: depend on stable pango-1.8, not unstable 1.7
794
795 2005-02-01  Federico Mena Quintero  <federico@ximian.com>
796
797         Merged from gtk-2-6:
798
799         * gtk/gtkfilechooserdefault.c
800         (browse_files_model_finished_loading_cb): Don't
801         g_assert_not_reached() if we are in any other state.  Another code
802         path may have triggered a folder reload.  Fixes #165556.
803
804 2005-02-01  Federico Mena Quintero  <federico@ximian.com>
805
806         Merged from gtk-2-6:
807
808         Fix #165770:
809
810         * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
811         fallback size be 16, to be equal to the default for
812         GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
813         (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
814         GTK_ICON_SIZE_SMALL_TOOLBAR.
815
816 2005-02-01  Matthias Clasen  <mclasen@redhat.com>
817
818         * */*.c: Fix many instances of "the the" in docs and
819         comments.  (#165815, Masao Mutoh)
820
821         * gtk/updateiconcache.c (main): Add a --quiet option.
822
823 2005-02-01  Tor Lillqvist  <tml@novell.com>
824
825         * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
826         reset_after_dead, handle_dead): New functions, code blocks
827         refactored out of update_keymap(). No functionality change.
828
829         (update_keymap): Use ToUnicodeEx() when available (on NT-based
830         Windows) instead of ToAsciiEx(). Makes keyboard input work in
831         Unicode-only input locales that don't have any ANSI codepage, for
832         instance Hindi and Bengali. Use _gdk_input_codepage only on
833         Win9x. (#165723)
834
835         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
836         WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
837         TranslateCharsetInfo() to get the input locale's corresponding
838         codepage, if any.
839
840 2005-01-31  Matthias Clasen  <mclasen@redhat.com>
841
842         * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate 
843         NULL-terminated va lists.  (#165683)
844
845 2005-01-29  Matthias Clasen  <mclasen@redhat.com>
846
847         * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw): 
848         Typo fix.  (#165581, Masao Mutoh)
849
850 Thu Jan 27 14:25:45 2005  Manish Singh  <yosh@gimp.org>
851
852         * README.cvs-commits: update ancient IRC info.
853
854 2005-01-27  Federico Mena Quintero  <federico@ximian.com>
855
856         Merged from gtk-2-6:
857
858         * gtk/gtkfilechooserdefault.c
859         (gtk_file_chooser_default_select_path): Oops, don't assert that we
860         can't reach the end of the function; this happens if we are still
861         loading but don't need a path change.  Fixes #165213.
862
863 2005-01-27  Matthias Clasen  <mclasen@redhat.com>
864
865         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
866         Make wrapping work in RTL mode.  
867
868         * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
869         obey HIG spacing a bit more, add a hand cursor when over the
870         link button.  (#163979, Jorn Baayen)
871
872 2005-01-26  Matthias Clasen  <mclasen@redhat.com>
873
874         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
875         Don't allow -1 as minimum-key-length.
876         (gtk_entry_completion_set_model): Add missing notification.
877         (gtk_entry_completion_set_minimum_key_length): Add missing
878         notification, allow setting minimum-key-length to 0.  (#165194,
879         Vincent Ladeuil)
880
881 2005-01-26  Matthias Clasen  <mclasen@redhat.com>
882
883         * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
884         the license dialog is initially displayed without a horizontal
885         scrollbar.  
886         (gtk_about_dialog_class_init): Document the fact that the 
887         license text is not wrapped.  (#165012, Christian Rose)
888
889 2005-01-25  Matthias Clasen  <mclasen@redhat.com>
890
891         * gtk/gtkbutton.c (gtk_button_set_image): Fix docs.  (#165180,
892         Jeff Franks)
893
894         * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix 
895         docs.  (#165163, Jeff Franks)
896         
897         * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
898         for a string GValue.  (#165203, Damon Chaplin)
899
900 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
901
902         * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): 
903         Initialize user_time from DESKTOP_STARTUP_ID.  (#165131,
904         Elijah Newren)
905
906 2005-01-24  Federico Mena Quintero  <federico@ximian.com>
907
908         * gtk/gtkfilechooserdefault.c: Removed leftover comments.
909
910 2005-01-24  Federico Mena Quintero  <federico@ximian.com>
911
912         Merged from gtk-2-6:
913
914         Fix #147785 and clean up the loading code:
915
916         * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
917         be EMPTY, PRELOAD, LOADING, FINISHED.
918         (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
919         (struct _GtkFileChooserDefault): Added a pending_select_paths
920         field.
921         (load_remove_timer): Add the new states.
922         (load_setup_timer): Likewise.
923         (load_timeout_cb): Likewise.  Switch to the LOAD_LOADING state.
924         (browse_files_model_finished_loading_cb): Switch to the
925         LOAD_FINISHED state.
926         (enum PendingOp): Removed.
927         (struct _GtkFileChooserDefault): Removed the pending_op and
928         pending_select_path fields.
929         (pending_select_paths_free): New utility function.
930         (pending_select_paths_add): New utility function.
931         (gtk_file_chooser_default_finalize): Call
932         pending_select_paths_free().
933         (pending_op_queue): Removed.
934         (pending_op_process): Removed.
935         (pending_select_paths_process): New function.
936         (browse_files_model_finished_loading_cb): Call
937         pending_select_paths_process().
938         (center_selected_row_foreach_cb): Handle multiple selection by
939         only centering the first row.
940         (get_is_file_filtered): Constify.
941         (gtk_file_chooser_default_select_path): Queue into a list of paths
942         to select if we are not finished loading.
943         (show_and_select_paths): New utility function.
944         (up_folder_handler): Use pending_select_paths_add().
945         (gtk_file_chooser_default_should_respond): Do not call
946         pending_op_queue(); free the pending_selected_paths instead.
947         (gtk_file_chooser_default_initial_focus): Don't queue a pending
948         operation, and don't select the first row unconditionally --- this
949         will happen when the folder is done loading.
950         (shortcuts_row_activated_cb): Free the pending_select_paths.
951         (pending_select_paths_store_selection): New utility function.
952         (gtk_file_chooser_default_map): Call
953         pending_select_paths_store_selection() to save the selection
954         before reloading the folder.
955         (select_func): Umm?  Call gtk_tree_selection_select_iter().  Don't
956         move the cursor here; it will be done when processing the pending paths.
957
958         * tests/testfilechooser.c (main): Add a button to the command
959         window to unmap and remap the file chooser.
960
961 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
962
963         * docs/tutorial/gtk-tut.sgml:
964         * docs/tutorial/gtk_tut.sgml:
965         * docs/reference/gtk/tmpl/gtkliststore.sgml:
966         * gtk/gtkactiongroup.c:
967         * gtk/gtksizegroup.c:
968         * gtk/gtksizegroup.h:
969         * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
970         appropriate.  (#165108, Dan Winship)
971
972 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
973
974         * gtk/gtkwidget.c (gtk_widget_class_init): Document 
975         GtkWidget::style-set.  (#164222, Alex Graveley)
976         
977 2005-01-22  Matthias Clasen  <mclasen@redhat.com>
978
979         * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full): 
980         Remove the accidentally added prototype for this unimplemented 
981         function.  (#164893, Jeff Franks)
982
983         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
984         drags.  (#164884)
985
986 2005-01-23  Tor Lillqvist  <tml@novell.com>
987
988         * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
989         dead accent key. (#164859, reported and fix verified by Daniel
990         Atallah.)
991
992         * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
993         GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
994         and upsilon.
995
996         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name): 
997         Don't call GetVolumeInformation() for network drives. They might
998         be disconnected, and calling GetVolumeInformation() will then
999         cause long delays. (#164448, reported by Dave Neary.) It seems to
1000         be very hard to reliably find out whether a network drive is
1001         connected or not, so it's easier to just not try getting the
1002         volume name for them. See the bug report for discussion.
1003
1004         Make volume name display formats translatable.
1005
1006         Fix for #163702, from Ivan Wong: 
1007         
1008         * gdk/win32/gdkprivate-win32.h 
1009         * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
1010         
1011         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
1012         WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
1013         GDK_SELECTION_CLEAR event.
1014
1015         * gdk/win32/gdkselection-win32.c
1016         (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
1017         when emptying the clipboard ourselves.
1018
1019         (gdk_selection_send_notify_for_display): Remove the artifical
1020         GDK_SELECTION_CLEAR event generation.
1021
1022 2005-01-21  Matthias Clasen  <mclasen@redhat.com>
1023
1024         * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
1025         provided by Bill Haneman.
1026
1027 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
1028
1029         * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs.  (#164725,
1030         George Kraft IV)
1031
1032         * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
1033         here, even if the only focusable widgets are labels.
1034
1035 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
1036
1037         Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
1038         
1039         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init) 
1040         Add a follow-state property which when TRUE causes the pixbuf
1041         to be tinted according to state.
1042
1043         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): 
1044         Use follow-state and colorize the pixbuf when appropriate.      
1045         
1046 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
1047
1048         Support wrapping in GtkCellRendererText  (#163608):
1049         
1050         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
1051         Add wrap-mode and wrap-width properties which cause a 
1052         text cell to break to a specified width when set.
1053
1054         * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
1055         and wrap-width when they are set.
1056
1057 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
1058
1059         * gtk/gtkmodules.c (load_module): Don't reverse the order
1060         of modules when putting them in gtk_modules.  (#162676, Dennis
1061         Cranston, patch by Remus Draica)
1062
1063         * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash 
1064         if the tree is empty.  (#164669, Priit Laes)
1065
1066 Wed Jan 19 18:57:02 2005  Manish Singh  <yosh@gimp.org>
1067
1068         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
1069         GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
1070         function a bit too.
1071
1072 Wed Jan 19 17:17:31 2005  Manish Singh  <yosh@gimp.org>
1073
1074         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
1075         strict aliasing warning in _NET_VIRTUAL_ROOTS code.
1076
1077 2005-01-19  Tor Lillqvist  <tml@novell.com>
1078
1079         * gdk/win32/gdkkeys-win32.c (update_keymap,
1080         gdk_keymap_translate_keyboard_state): Handle keyboards with
1081         ShiftLock (and not CapsLock) correctly. (#161814)
1082
1083 2005-01-19  Matthias Clasen  <mclasen@redhat.com>
1084
1085         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
1086         In save mode, don't return paths containing nonexisting 
1087         directories.  (#162443, Jean Marie Favreau)
1088
1089         * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit 
1090         macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
1091
1092         * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
1093         atom.
1094
1095         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): 
1096         Support _NET_VIRTUAL_ROOTS.  (#163910, Carsten Haitzler)
1097         
1098         * gdk/gdk.symbols: 
1099         * gdk/x11/gdkx.h: 
1100         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time): 
1101         Add a function to obtain the last user interaction 
1102         time.  (#163119, Elijah Newren)
1103
1104 Tue Jan 18 13:56:09 2005  Manish Singh  <yosh@gimp.org>
1105
1106         * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
1107         PENDING_OP_NONE.
1108
1109 Tue Jan 18 13:46:46 2005  Manish Singh  <yosh@gimp.org>
1110
1111         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
1112         disambiguate nested if/else.
1113
1114 2005-01-18  Federico Mena Quintero  <federico@ximian.com>
1115
1116         Merged from gtk-2-6:
1117
1118         * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
1119         operation to select the first file if we are in SAVE or
1120         CREATE_FOLDER modes.  Executing that operation would overwrite the
1121         contents of the save-name entry.
1122
1123 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
1124
1125         * gdk/gdkdisplay.h: 
1126         * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer): 
1127         * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
1128         pointer warping to GDK.  (#160437)
1129
1130         * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
1131
1132 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
1133
1134         * gtk/gtkstyle.c (gtk_default_draw_check) 
1135         (gtk_default_draw_option, gtk_default_draw_handle): Add some
1136         more NULL checks, patch by Michael Natterer.
1137
1138 Tue Jan 18 10:55:47 2005  Søren Sandmann  <sandmann@redhat.com>
1139
1140         * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
1141         and NULL widget.
1142
1143         * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
1144         NULL widget.  (#164477, Michael Natterer)
1145
1146 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
1147
1148         Avoid X errors when running against servers which
1149         implement XRender < 0.4.  (#164427, Albert Chin)
1150         
1151         * gdk/x11/gdkprivate-x11.h:
1152         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids): 
1153         New function to check for trapezoid support in XRender.
1154         (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids): 
1155         Use it here.
1156         
1157         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a 
1158         separate have_render_with_trapezoids field.
1159
1160         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
1161
1162 2005-01-17  Matthias Clasen  <mclasen@redhat.com>
1163
1164         * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
1165
1166 Mon Jan 17 16:44:36 2005  Jonathan Blandford  <jrb@redhat.com>
1167
1168         * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
1169         dist.
1170
1171 2005-01-17  Matthias Clasen  <mclasen@redhat.com>
1172
1173         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
1174         and restore the selected row in the bookmark list and the
1175         save folder combo.  (#164290)
1176
1177 2005-01-16  Matthias Clasen  <mclasen@redhat.com>
1178
1179         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
1180         Fix argument order in docs.  
1181
1182 2005-01-15  Matthias Clasen  <mclasen@redhat.com>
1183
1184         * gtk/gtktextview.c (gtk_text_view_check_keymap_direction): 
1185         * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL 
1186         if the keymap is neutral.  (#164125, Phil Blundell)
1187
1188 2005-01-14  Matthias Clasen  <mclasen@redhat.com>
1189
1190         * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
1191         reset the property to its default value -1. 
1192         (gtk_tree_view_get_search_column): Return the default value in
1193         the g_return_val_if_fail() check.  (#163864, Richard Hult)
1194
1195         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value): 
1196         Add a translator hint.  (#163889)
1197
1198         * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
1199         is an enum value, not a define. Pointed out by Tommi Komulainen.
1200         * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
1201
1202 2005-01-13  Matthias Clasen  <mclasen@redhat.com>
1203
1204         * configure.in: Check for nl_langinfo()
1205         * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
1206         available to determine first day of week   (#163842, Vincent Untz)
1207
1208         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about 
1209         the lifecycle of widgets.  (#159503, Christian Persch)
1210
1211         * demos/gtk-demo/main.c (create_text): Use monospace for the 
1212         source code view.  (#163526, Theerud Lawtrakul)
1213
1214         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
1215         for the Credits button to avoid duplicate.  (#163465, Tim-Philipp 
1216         Müller)
1217         
1218         * configure.in: Add an OS_LINUX conditional.
1219
1220         * gdk/Makefile.am (TESTS):
1221         * gdk-pixbuf/Makefile.am (TESTS):
1222         * gtk/Makefile.am (TESTS): Only run abicheck on Linux.  (#163917,
1223         Roger Leigh)
1224
1225 2005-01-13  Matthias Clasen <mclasen@redhat.com>
1226
1227         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
1228         (gtk_tree_view_set_headers_clickable): Make the headers-visible
1229         property readwrite instead of just writable, and remove the
1230         g_return_if_fail check that there is a model when setting this
1231         property. Also improve the blurb.  (#163851, Richard Hult)
1232
1233 2005-01-12  Owen Taylor <otaylor@redhat.com>
1234
1235         * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
1236         initialization of gdktarget, that was causing it to be
1237         evaluated before host was set. Simplify --with-gdktarget help
1238         message.
1239
1240         * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1 
1241         which doesn't work with slightly older versions of GNU grep 
1242         in install-libtool-import-lib rule.
1243         
1244 2005-01-12  Tor Lillqvist  <tlillqvist@novell.com>
1245
1246         Fix for #162790, by Iwan Wong:
1247         
1248         * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
1249         correctly. Simplify the interface to render_line_horizontal() and
1250         render_line_vertical(). Need to draw lines "manually" also on
1251         NT-based Windowses if we have a dash offset or are drawing
1252         double-dashed lines.
1253
1254         * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
1255         double-dash flag, and a brush for the background colour (used by
1256         the odd dashes in the double-dash line style) in the GdkGCWin32
1257         struct.
1258
1259         * gdk/win32/gdkgc-win32.c: Set up above new fields.
1260
1261 2005-01-10  Federico Mena Quintero  <federico@ximian.com>
1262
1263         Fix #162617.
1264
1265         * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
1266         GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
1267         (gtk_file_system_unix_get_folder): Make error reporting more
1268         accurate.  Don't bail out if we can't read the directory.
1269         (fill_in_stats): Don't return an error; just assume we don't have
1270         stat info for this folder's files.
1271         (fill_in_names): Don't create the hash table for the names if we
1272         can't open the directory.
1273         (gtk_file_folder_unix_list_children): Don't emit the
1274         "finished-loading" signal --- we don't do asynchronous loads, so
1275         we are always finished loading.
1276         (gtk_file_folder_unix_get_info): Use helper functions; handle the
1277         case where we can't stat '/'.
1278         (get_icon_type_from_path): Don't call fill_in_stats() here; only
1279         use the info we have.
1280         (fill_in_mime_type): Don't return an error.  Don't do anything if
1281         we don't have the stat info.
1282
1283 2005-01-10  Owen Taylor  <otaylor@redhat.com>
1284
1285         * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
1286         to EXTRA_DIST.
1287
1288 2005-01-10  Matthias Clasen  <mclasen@redhat.com>
1289
1290         * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
1291         signals.  (#163319, Murray Cumming)
1292
1293 2005-01-09  Tor Lillqvist  <tlillqvist@novell.com>
1294
1295         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
1296         cursor also when changing the cursor of a window that is the first
1297         ancestor of the window containing the pointer that has a cursor
1298         defined. (#163035, Ivan Wong)
1299
1300 2005-01-09  Anders Carlsson <andersca@gnome.org>
1301
1302         * gtk/gtkcellrenderertext.c: (get_size):
1303         * gtk/gtklabel.c: (gtk_label_size_request):
1304         * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
1305         Don't pass NULL to pango_context_get_metrics. Use 
1306         pango_context_get_language instead, which is way faster.
1307         
1308 2005-01-08  Matthias Clasen  <mclasen@redhat.com>
1309
1310         * configure.in: Bump version
1311
1312         * === Released 2.6.1 ===
1313         
1314         * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
1315
1316 2005-01-07  Tor Lillqvist  <tml@iki.fi>
1317
1318         * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
1319         Fix braino. (#163232, Arnaud Charlet)
1320
1321 2005-01-06  Matthias Clasen  <mclasen@redhat.com>
1322
1323         * gtk/gtkiconview.c: Make markup_column work, and fix some
1324         layout issues when either icon or text is missing.  (#163065)
1325
1326 2005-01-06  Federico Mena Quintero  <federico@ximian.com>
1327
1328         * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
1329         "Open _Location" item.  Fixes #148839.
1330
1331 2005-01-06  Matthias Clasen  <mclasen@redhat.com>
1332
1333         * README.in: Fix a typo.  (#163128, kentaro fukuchi)
1334
1335 2005-01-06  James M. Cape  <jcape@ignore-your.tv>
1336
1337         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
1338         (gtk_file_chooser_button_new_with_backend): Use default title if
1339         NULL is passed.
1340
1341         * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
1342         match API.
1343
1344 2005-01-05  Federico Mena Quintero  <federico@ximian.com>
1345
1346         Fix #161409:
1347
1348         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
1349         a pending operation to select the first row.
1350
1351 2005-01-05  Federico Mena Quintero  <federico@ximian.com>
1352
1353         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
1354         button_data_free() explicitly; the button is weak-reffed and the
1355         callback will free the button data.  Fixes #163010.
1356         (_gtk_path_bar_set_path): Don't ref/sink the button.  And for the
1357         failure case, call gtk_widget_destroy() on it.
1358
1359         * gtk/gtkfilechooserdefault.c (check_is_folder): Use
1360         gtk_file_system_get_folder() again (see the ChangeLog entry from
1361         2004-08-25).  We can't first get the parent folder and then
1362         request the info for the path in question, as the parent folder
1363         may not be readable.  See bug #162617.
1364         (gtk_file_chooser_default_set_current_folder): Assert that the
1365         passed-in path is not null.
1366         (shortcuts_find_current_folder): Likewise.
1367         (shortcuts_add_current_folder): Likewise.
1368         (set_list_model): Likewise.
1369         (gtk_file_chooser_default_map): Only reload the current folder if
1370         it exists.
1371         (bookmarks_check_add_sensitivity): Check for the current folder
1372         being NULL.
1373         (browse_files_select_first_row): Don't set the cursor if there is
1374         no model loaded.
1375
1376 2005-01-05  Matthias Clasen  <mclasen@redhat.com>
1377
1378         * gtk/gtkfilechooserdefault.c: Don't construct errors from 
1379         the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
1380         (get_file_info, check_is_folder): Translate errors from
1381         the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
1382         of the fix for #162911, noticed by Murray Cumming.
1383
1384 Wed Jan  5 11:42:49 2005  Søren Sandmann  <sandmann@redhat.com>
1385
1386         * gtk/gtkviewport.c (gtk_viewport_realize):
1387         * gtk/gtktextview.c ((text_window_realize): Set the background of
1388         the windows to None instead of adding EXPOSURE_MASK, as suggested
1389         by Owen in #162112.
1390
1391         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update 
1392         the user time when receiving a WM_DELETE message.  (#162980, 
1393         Elijah Newren)
1394         
1395 Tue Jan  4 16:52:14 2005  Jonathan Blandford  <jrb@redhat.com>
1396
1397         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
1398         only reorder on button 1, part of #141937
1399
1400 Tue Jan  4 11:36:43 2005  Søren Sandmann  <sandmann@redhat.com>
1401
1402         Bug 162112.
1403         
1404         * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
1405         to win->window's event_mask
1406
1407         * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
1408         to viewport->view_window.
1409
1410 2005-01-04  Matthias Clasen  <mclasen@redhat.com>
1411
1412         * demos/testpixbuf.c (main): Remove the size_prepared callback,
1413         to test incremental display.
1414         (new_testrgb_window): Return the drawing area, not the window,
1415         since we want to queue draws on the drawing area.
1416
1417 2005-01-03  Matthias Clasen  <mclasen@redhat.com>
1418
1419         * examples/*: Re-extract.
1420
1421         * docs/tutorial/gtk-tut.sgml: Small corrections.
1422         
1423         * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
1424         section.  (#161414, Robert Ancell)
1425
1426         * docs/tutorial/gtk-tut.sgml: Make it build.
1427
1428         * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
1429         regarding modality.  (#112903, Dave Bordoley)
1430
1431         * gtk/gtkfixed.c (gtk_fixed_set_has_window): 
1432         Add a little motivation.  (#145556, Tommi Komulainen)
1433
1434         * docs/tutorial/gtk-tut.sgml: Clarify section on 
1435         g_signal_connect_swapped.   (#120543, David Bourguignon)
1436
1437         Make gtk_icon_theme_load_icon() work independent of
1438         icon factory initialization.  (#162791, Tristan Van Berkom)
1439         
1440         * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
1441         _gtk_icon_factory_ensure_default_icons, and make it non-static.
1442
1443         * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
1444
1445 2005-01-02  Matthias Clasen  <mclasen@redhat.com>
1446
1447         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder): 
1448         Don't add a shortcut here.  (#162752, Tor Lillqvist)
1449
1450 2005-01-02  Tor Lillqvist  <tml@iki.fi>
1451
1452         * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
1453         CoTaskMemFree in get_special_folder() below.
1454
1455         * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
1456         Win32 using _gtk_file_system_win32_path_compare().
1457
1458         * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
1459
1460         * gtk/gtkfilechooserbutton.c (model_add_special)
1461         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
1462         _gtk_file_system_win32_get_desktop() to get correct Desktop folder
1463         on Win32. (#144003)
1464
1465         * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
1466         consider all drives "mounted", including floppies. Trying to
1467         inspect the contents of a nonexistent floppy will cause errors
1468         later that are handled normally, no need to avoid them
1469         completely. Keep the drive type in the GtkFileSystemVolume.
1470         Support UNC paths. (#161797, #137874) Fix error message
1471         capitalizations as in gtkfilesystemunix.c.
1472
1473         (gtk_file_system_win32_init): Start one timeout per
1474         GtkFileSystemWin32.
1475
1476         (gtk_file_system_win32_finalize): Remove the timeout.
1477
1478         (get_special_folder): Copied from GLib.
1479
1480         (_gtk_file_system_win32_get_desktop): New function, uses
1481         get_special_folder().
1482
1483         (gtk_file_system_win32_list_volumes): Don't start a timeout at
1484         each call to this function. Don't assume A: and B: are floppies.
1485
1486         (gtk_file_system_win32_get_volume_for_path): Don't assume all
1487         volumes are drive roots, i.e. support share roots of UNC paths
1488         (\\server\share).
1489
1490         (gtk_file_system_win32_get_folder): Don't assume errno is set
1491         after g_file_test() returns FALSE. It isn't on Win32 (and even on
1492         Unix I don't think one should assume anything about errno after
1493         g_file_test()).
1494
1495         (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
1496
1497         (gtk_file_system_win32_volume_get_display_name): Don't call
1498         GetVolumeInformation() on drives A: or B: if they are removable,
1499         as they might then be floppies, causing an unnecessary
1500         delay. (#157820)
1501
1502         (gtk_file_system_win32_volume_render_icon): Use network icon for
1503         unrecognized drive types.
1504
1505         (canonicalize_filename, gtk_file_system_win32_parse): Don't get
1506         confused by UNC paths.
1507
1508         (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
1509         for case-insensitive UTF-8 path comparison.
1510
1511         (extract_icon): Use SHGetFileInfo() which is faster than
1512         ExtractAssociatedIcon(). Icon extraction is still slow, though,
1513         needs work.
1514
1515         (win32_pseudo_mime_lookup): Don't use the same icon for all
1516         shortcuts or executables. Cache only other file type icons.
1517
1518         (gtk_file_system_win32_render_icon): Use network stock icon for
1519         remote drives and UNC server share roots. Compare home directory
1520         case-insensitively. Do lookup icons also for executable files,
1521         after all, it's these files that can have individual icons in the
1522         first place. Yes, it can be slow. Needs work.
1523
1524         (filename_is_drive_root): Require also the slash after the colon.
1525
1526         (filename_is_server_share): New function.
1527
1528         (_gtk_file_system_win32_path_compare): New function, does
1529         case-folded UTF-8 comparison.
1530
1531         * gtk/gtkfilesystemwin32.h: Declare
1532         _gtk_file_system_win32_path_compare().
1533
1534 2005-01-01  Matthias Clasen  <mclasen@redhat.com>
1535
1536         * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
1537         custom image by passing NULL.
1538         (gtk_button_init): Initialize image_is_stock to TRUE, fixing
1539         a problem with changing stock labels.  (#162273, Marcin 
1540         Krzyzanowski)
1541
1542 2005-01-01  Tor Lillqvist  <tml@iki.fi>
1543
1544         * gtk/gtkmodules.c (get_module_path)
1545         * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
1546         gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
1547         g_getenv() now returning UTF-8 on Win32, no need to call
1548         g_locale_to_utf8().
1549
1550 2004-12-31  Matthias Clasen  <mclasen@redhat.com>
1551
1552         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval) 
1553         (_gtk_key_hash_lookup): Don't sort a list of values as if
1554         it was a list of entries. This fixes crashes during mnemonic
1555         activation in the presence of multiple keymaps. (#162488, 
1556         Christian Persch)
1557
1558 2004-12-30  Matthias Clasen  <mclasen@redhat.com>
1559
1560         * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
1561         state propagation when making an insensitive combo box sensitive
1562         again.  (#162524, Carlos Garnacho Parro)
1563
1564         * gtk/gtkfilechooserdefault.c: Use secondary text for error 
1565         dialogs.
1566
1567         * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
1568         (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
1569         for error messages. Also mark some error messages for translation,
1570         fix capitalization of error messages.
1571
1572         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property): 
1573         Use g_value_get_boolean() for ellipsize_set.  (#162447, 
1574         Brian Tarricone)
1575
1576 2004-12-30  Tor Lillqvist  <tml@iki.fi>
1577
1578         * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
1579         only on Unix.
1580
1581 2004-12-28  Matthias Clasen  <mclasen@redhat.com>
1582
1583         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
1584         submenu direction from the parent menu.
1585
1586         * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first): 
1587         Return a boolean indicating whether an item in the submenu
1588         was selected.
1589         (gtk_real_menu_shell_move_current): When going in child 
1590         direction, don't get stuck at completely insensitive 
1591         submenus.  (#162055, Billy Biggs)       
1592
1593 2004-12-27  Matthias Clasen  <mclasen@redhat.com>
1594
1595         Make the clipboard image API more robust (#162357, 
1596         Torsten Schoenfeld):
1597         
1598         * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
1599         ref the pixbuf if it is NULL.
1600
1601         * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): 
1602         NULL-terminate the varargs in the call to 
1603         gdk_pixbuf_save_to_buffer(). 
1604         (gtk_selection_data_get_pixbuf): Only use a pixbuf loader 
1605         if there is data to load.
1606
1607 2004-12-27  Matthias Clasen  <mclasen@redhat.com>
1608
1609         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): 
1610         Set x_root and y_root in button and motion events from 
1611         extended input devices.  (#148715, Robert Ögren)
1612
1613         * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a 
1614         typo.  (#162339, Alessio Dessi)
1615
1616         * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
1617         properties as new since 2.4.  (#156101, Billy Biggs)
1618
1619         * configure.in: Add a warning about the linux-fb 
1620         target.  (#155488, Zeeshan Ali)
1621
1622         * gtk/gtkmain.c (gtk_init_with_args): Typo fix.  (#162278,
1623         Torsten Schoenfeld)
1624
1625 2004-12-26  Matthias Clasen  <mclasen@redhat.com>
1626
1627         * gtk/gtkfilechooser.c (gtk_file_chooser_set_action): 
1628         Typo fix.  (#162219, Masao Mutoh)
1629         (gtk_file_chooser_set_preview_widget_active): 
1630         Another typo.  (#162218, Masao Mutoh)
1631
1632 2004-12-23  Matthias Clasen  <mclasen@redhat.com>
1633
1634         * gtk/gtkliststore.c (gtk_list_store_iter_children): 
1635         Return TRUE if there are children.  (#162134, Iñigo Serna,
1636         patch by John Finlay)
1637
1638         * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): 
1639         Transfer state from the button to the cell view to get
1640         prelighting right.  (#156327, Ricardo Veguilla)
1641
1642 Wed Dec 22 14:22:19 2004  Søren Sandmann  <sandmann@redhat.com>
1643
1644         * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
1645         timeout. Written by Christian Persch.
1646
1647 Wed Dec 22 14:14:02 2004  Søren Sandmann  <sandmann@redhat.com>
1648
1649         Bug #161561
1650         
1651         * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
1652         background for windows that get expose events. 
1653
1654         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
1655         hack to repaint !expose windows.
1656
1657 Wed Dec 22 11:35:41 2004  Søren Sandmann  <sandmann@redhat.com>
1658
1659         Bug #147497, make menu items activate immediately when you release
1660         the button.
1661         
1662         * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
1663         items activate immediately.
1664
1665         * gtk/gtkmenu.c (definitely_within_item): New function
1666         * gtk/gtkmenu.c (check_threshold): New function
1667
1668 2004-12-22  Matthias Clasen  <mclasen@redhat.com>
1669
1670         * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
1671         null the mnemonic_menu when unsetting a mnemonic, reported
1672         by Owen Taylor.
1673
1674 2004-12-21  Matthias Clasen  <mclasen@redhat.com>
1675
1676         * gtk/gtkliststore.c (generate_order): Generate the order the
1677         way it is supposed to be, order[new_pos] == old_pos.
1678         (gtk_list_store_reorder): Invert the order before using it.
1679
1680 2004-12-22  Matthias Clasen  <mclasen@redhat.com>
1681
1682         Fix sorting of list stores.  (#161886, Marcin Krzyzanowski)
1683
1684         * gtk/gtkliststore.c (generate_order): Generate the order the
1685         way it is supposed to be, order[new_pos] == old_pos.
1686         (gtk_list_store_reorder): Invert the order before using it.
1687
1688         * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
1689         list store fix.
1690
1691 Wed Dec 22 01:24:01 2004  Jonathan Blandford  <jrb@redhat.com>
1692
1693         * gtk/queryimmodules.c (main): print out the version and binary
1694         name in the header comment.  Problem reported by Seth Nickell.
1695
1696 2004-12-20  Matthias Clasen  <mclasen@redhat.com>
1697
1698         * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
1699         root path to gtk_tree_model_rows_reordered().  (#161720,
1700         Marcin Krzyzanowski)
1701
1702         * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't 
1703         translate NULL messages.  (#161789, Morten Welinder)
1704
1705         * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
1706         the secondary label on show_all().  (#161707, Christian Persch)
1707
1708 2004-12-19  Tor Lillqvist  <tml@iki.fi>
1709
1710         * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
1711         Use wide character API when available. Use UTF-8 for filenames.
1712
1713         * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
1714         the string's trailing zero byte in the property's length, just for
1715         safety.
1716
1717 2004-12-18  Matthias Clasen  <mclasen@redhat.com>
1718
1719         * gtk/gtkfilechooserentry.c (check_completion_callback) 
1720         (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
1721
1722         * gtk/gtkfilechooserdefault.c (edited_idle_cb) 
1723         (shortcuts_drag_outside_idle_cb): Add missing 
1724         GDK_THREADS_ENTER/LEAVE.  (#161604)
1725         
1726         * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb): 
1727         (list_select_func): Don't call gtk_file_info_get_is_folder()
1728         on NULL. 
1729
1730         * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name): 
1731         (gtk_about_dialog_init): Add missing initializations.  (#161646,
1732         Torsten Schoenfeld)
1733