]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-8
Remove the accidentally added prototype for this unimplemented
[~andy/gtk] / ChangeLog.pre-2-8
1 2005-01-22  Matthias Clasen  <mclasen@redhat.com>
2
3         * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full): 
4         Remove the accidentally added prototype for this unimplemented 
5         function.  (#164893, Jeff Franks)
6
7         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
8         drags.  (#164884)
9
10 2005-01-23  Tor Lillqvist  <tml@novell.com>
11
12         * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
13         dead accent key. (#164859, reported and fix verified by Daniel
14         Atallah.)
15
16         * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
17         GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
18         and upsilon.
19
20         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name): 
21         Don't call GetVolumeInformation() for network drives. They might
22         be disconnected, and calling GetVolumeInformation() will then
23         cause long delays. (#164448, reported by Dave Neary.) It seems to
24         be very hard to reliably find out whether a network drive is
25         connected or not, so it's easier to just not try getting the
26         volume name for them. See the bug report for discussion.
27
28         Make volume name display formats translatable.
29
30         Fix for #163702, from Ivan Wong: 
31         
32         * gdk/win32/gdkprivate-win32.h 
33         * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
34         
35         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
36         WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
37         GDK_SELECTION_CLEAR event.
38
39         * gdk/win32/gdkselection-win32.c
40         (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
41         when emptying the clipboard ourselves.
42
43         (gdk_selection_send_notify_for_display): Remove the artifical
44         GDK_SELECTION_CLEAR event generation.
45
46 2005-01-21  Matthias Clasen  <mclasen@redhat.com>
47
48         * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
49         provided by Bill Haneman.
50
51 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
52
53         * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs.  (#164725,
54         George Kraft IV)
55
56         * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
57         here, even if the only focusable widgets are labels.
58
59 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
60
61         Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
62         
63         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init) 
64         Add a follow-state property which when TRUE causes the pixbuf
65         to be tinted according to state.
66
67         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): 
68         Use follow-state and colorize the pixbuf when appropriate.      
69         
70 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
71
72         Support wrapping in GtkCellRendererText  (#163608):
73         
74         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
75         Add wrap-mode and wrap-width properties which cause a 
76         text cell to break to a specified width when set.
77
78         * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
79         and wrap-width when they are set.
80
81 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
82
83         * gtk/gtkmodules.c (load_module): Don't reverse the order
84         of modules when putting them in gtk_modules.  (#162676, Dennis
85         Cranston, patch by Remus Draica)
86
87         * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash 
88         if the tree is empty.  (#164669, Priit Laes)
89
90 Wed Jan 19 18:57:02 2005  Manish Singh  <yosh@gimp.org>
91
92         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
93         GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
94         function a bit too.
95
96 Wed Jan 19 17:17:31 2005  Manish Singh  <yosh@gimp.org>
97
98         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
99         strict aliasing warning in _NET_VIRTUAL_ROOTS code.
100
101 2005-01-19  Tor Lillqvist  <tml@novell.com>
102
103         * gdk/win32/gdkkeys-win32.c (update_keymap,
104         gdk_keymap_translate_keyboard_state): Handle keyboards with
105         ShiftLock (and not CapsLock) correctly. (#161814)
106
107 2005-01-19  Matthias Clasen  <mclasen@redhat.com>
108
109         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
110         In save mode, don't return paths containing nonexisting 
111         directories.  (#162443, Jean Marie Favreau)
112
113         * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit 
114         macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
115
116         * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
117         atom.
118
119         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): 
120         Support _NET_VIRTUAL_ROOTS.  (#163910, Carsten Haitzler)
121         
122         * gdk/gdk.symbols: 
123         * gdk/x11/gdkx.h: 
124         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time): 
125         Add a function to obtain the last user interaction 
126         time.  (#163119, Elijah Newren)
127
128 Tue Jan 18 13:56:09 2005  Manish Singh  <yosh@gimp.org>
129
130         * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
131         PENDING_OP_NONE.
132
133 Tue Jan 18 13:46:46 2005  Manish Singh  <yosh@gimp.org>
134
135         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
136         disambiguate nested if/else.
137
138 2005-01-18  Federico Mena Quintero  <federico@ximian.com>
139
140         Merged from gtk-2-6:
141
142         * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
143         operation to select the first file if we are in SAVE or
144         CREATE_FOLDER modes.  Executing that operation would overwrite the
145         contents of the save-name entry.
146
147 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
148
149         * gdk/gdkdisplay.h: 
150         * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer): 
151         * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
152         pointer warping to GDK.  (#160437)
153
154         * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
155
156 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
157
158         * gtk/gtkstyle.c (gtk_default_draw_check) 
159         (gtk_default_draw_option, gtk_default_draw_handle): Add some
160         more NULL checks, patch by Michael Natterer.
161
162 Tue Jan 18 10:55:47 2005  Søren Sandmann  <sandmann@redhat.com>
163
164         * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
165         and NULL widget.
166
167         * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
168         NULL widget.  (#164477, Michael Natterer)
169
170 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
171
172         Avoid X errors when running against servers which
173         implement XRender < 0.4.  (#164427, Albert Chin)
174         
175         * gdk/x11/gdkprivate-x11.h:
176         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids): 
177         New function to check for trapezoid support in XRender.
178         (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids): 
179         Use it here.
180         
181         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a 
182         separate have_render_with_trapezoids field.
183
184         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
185
186 2005-01-17  Matthias Clasen  <mclasen@redhat.com>
187
188         * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
189
190 Mon Jan 17 16:44:36 2005  Jonathan Blandford  <jrb@redhat.com>
191
192         * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
193         dist.
194
195 2005-01-17  Matthias Clasen  <mclasen@redhat.com>
196
197         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
198         and restore the selected row in the bookmark list and the
199         save folder combo.  (#164290)
200
201 2005-01-16  Matthias Clasen  <mclasen@redhat.com>
202
203         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
204         Fix argument order in docs.  
205
206 2005-01-15  Matthias Clasen  <mclasen@redhat.com>
207
208         * gtk/gtktextview.c (gtk_text_view_check_keymap_direction): 
209         * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL 
210         if the keymap is neutral.  (#164125, Phil Blundell)
211
212 2005-01-14  Matthias Clasen  <mclasen@redhat.com>
213
214         * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
215         reset the property to its default value -1. 
216         (gtk_tree_view_get_search_column): Return the default value in
217         the g_return_val_if_fail() check.  (#163864, Richard Hult)
218
219         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value): 
220         Add a translator hint.  (#163889)
221
222         * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
223         is an enum value, not a define. Pointed out by Tommi Komulainen.
224         * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
225
226 2005-01-13  Matthias Clasen  <mclasen@redhat.com>
227
228         * configure.in: Check for nl_langinfo()
229         * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
230         available to determine first day of week   (#163842, Vincent Untz)
231
232         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about 
233         the lifecycle of widgets.  (#159503, Christian Persch)
234
235         * demos/gtk-demo/main.c (create_text): Use monospace for the 
236         source code view.  (#163526, Theerud Lawtrakul)
237
238         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
239         for the Credits button to avoid duplicate.  (#163465, Tim-Philipp 
240         Müller)
241         
242         * configure.in: Add an OS_LINUX conditional.
243
244         * gdk/Makefile.am (TESTS):
245         * gdk-pixbuf/Makefile.am (TESTS):
246         * gtk/Makefile.am (TESTS): Only run abicheck on Linux.  (#163917,
247         Roger Leigh)
248
249 2005-01-13  Matthias Clasen <mclasen@redhat.com>
250
251         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
252         (gtk_tree_view_set_headers_clickable): Make the headers-visible
253         property readwrite instead of just writable, and remove the
254         g_return_if_fail check that there is a model when setting this
255         property. Also improve the blurb.  (#163851, Richard Hult)
256
257 2005-01-12  Owen Taylor <otaylor@redhat.com>
258
259         * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
260         initialization of gdktarget, that was causing it to be
261         evaluated before host was set. Simplify --with-gdktarget help
262         message.
263
264         * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1 
265         which doesn't work with slightly older versions of GNU grep 
266         in install-libtool-import-lib rule.
267         
268 2005-01-12  Tor Lillqvist  <tlillqvist@novell.com>
269
270         Fix for #162790, by Iwan Wong:
271         
272         * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
273         correctly. Simplify the interface to render_line_horizontal() and
274         render_line_vertical(). Need to draw lines "manually" also on
275         NT-based Windowses if we have a dash offset or are drawing
276         double-dashed lines.
277
278         * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
279         double-dash flag, and a brush for the background colour (used by
280         the odd dashes in the double-dash line style) in the GdkGCWin32
281         struct.
282
283         * gdk/win32/gdkgc-win32.c: Set up above new fields.
284
285 2005-01-10  Federico Mena Quintero  <federico@ximian.com>
286
287         Fix #162617.
288
289         * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
290         GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
291         (gtk_file_system_unix_get_folder): Make error reporting more
292         accurate.  Don't bail out if we can't read the directory.
293         (fill_in_stats): Don't return an error; just assume we don't have
294         stat info for this folder's files.
295         (fill_in_names): Don't create the hash table for the names if we
296         can't open the directory.
297         (gtk_file_folder_unix_list_children): Don't emit the
298         "finished-loading" signal --- we don't do asynchronous loads, so
299         we are always finished loading.
300         (gtk_file_folder_unix_get_info): Use helper functions; handle the
301         case where we can't stat '/'.
302         (get_icon_type_from_path): Don't call fill_in_stats() here; only
303         use the info we have.
304         (fill_in_mime_type): Don't return an error.  Don't do anything if
305         we don't have the stat info.
306
307 2005-01-10  Owen Taylor  <otaylor@redhat.com>
308
309         * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
310         to EXTRA_DIST.
311
312 2005-01-10  Matthias Clasen  <mclasen@redhat.com>
313
314         * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
315         signals.  (#163319, Murray Cumming)
316
317 2005-01-09  Tor Lillqvist  <tlillqvist@novell.com>
318
319         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
320         cursor also when changing the cursor of a window that is the first
321         ancestor of the window containing the pointer that has a cursor
322         defined. (#163035, Ivan Wong)
323
324 2005-01-09  Anders Carlsson <andersca@gnome.org>
325
326         * gtk/gtkcellrenderertext.c: (get_size):
327         * gtk/gtklabel.c: (gtk_label_size_request):
328         * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
329         Don't pass NULL to pango_context_get_metrics. Use 
330         pango_context_get_language instead, which is way faster.
331         
332 2005-01-08  Matthias Clasen  <mclasen@redhat.com>
333
334         * configure.in: Bump version
335
336         * === Released 2.6.1 ===
337         
338         * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
339
340 2005-01-07  Tor Lillqvist  <tml@iki.fi>
341
342         * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
343         Fix braino. (#163232, Arnaud Charlet)
344
345 2005-01-06  Matthias Clasen  <mclasen@redhat.com>
346
347         * gtk/gtkiconview.c: Make markup_column work, and fix some
348         layout issues when either icon or text is missing.  (#163065)
349
350 2005-01-06  Federico Mena Quintero  <federico@ximian.com>
351
352         * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
353         "Open _Location" item.  Fixes #148839.
354
355 2005-01-06  Matthias Clasen  <mclasen@redhat.com>
356
357         * README.in: Fix a typo.  (#163128, kentaro fukuchi)
358
359 2005-01-06  James M. Cape  <jcape@ignore-your.tv>
360
361         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
362         (gtk_file_chooser_button_new_with_backend): Use default title if
363         NULL is passed.
364
365         * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
366         match API.
367
368 2005-01-05  Federico Mena Quintero  <federico@ximian.com>
369
370         Fix #161409:
371
372         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
373         a pending operation to select the first row.
374
375 2005-01-05  Federico Mena Quintero  <federico@ximian.com>
376
377         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
378         button_data_free() explicitly; the button is weak-reffed and the
379         callback will free the button data.  Fixes #163010.
380         (_gtk_path_bar_set_path): Don't ref/sink the button.  And for the
381         failure case, call gtk_widget_destroy() on it.
382
383         * gtk/gtkfilechooserdefault.c (check_is_folder): Use
384         gtk_file_system_get_folder() again (see the ChangeLog entry from
385         2004-08-25).  We can't first get the parent folder and then
386         request the info for the path in question, as the parent folder
387         may not be readable.  See bug #162617.
388         (gtk_file_chooser_default_set_current_folder): Assert that the
389         passed-in path is not null.
390         (shortcuts_find_current_folder): Likewise.
391         (shortcuts_add_current_folder): Likewise.
392         (set_list_model): Likewise.
393         (gtk_file_chooser_default_map): Only reload the current folder if
394         it exists.
395         (bookmarks_check_add_sensitivity): Check for the current folder
396         being NULL.
397         (browse_files_select_first_row): Don't set the cursor if there is
398         no model loaded.
399
400 2005-01-05  Matthias Clasen  <mclasen@redhat.com>
401
402         * gtk/gtkfilechooserdefault.c: Don't construct errors from 
403         the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
404         (get_file_info, check_is_folder): Translate errors from
405         the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
406         of the fix for #162911, noticed by Murray Cumming.
407
408 Wed Jan  5 11:42:49 2005  Søren Sandmann  <sandmann@redhat.com>
409
410         * gtk/gtkviewport.c (gtk_viewport_realize):
411         * gtk/gtktextview.c ((text_window_realize): Set the background of
412         the windows to None instead of adding EXPOSURE_MASK, as suggested
413         by Owen in #162112.
414
415         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update 
416         the user time when receiving a WM_DELETE message.  (#162980, 
417         Elijah Newren)
418         
419 Tue Jan  4 16:52:14 2005  Jonathan Blandford  <jrb@redhat.com>
420
421         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
422         only reorder on button 1, part of #141937
423
424 Tue Jan  4 11:36:43 2005  Søren Sandmann  <sandmann@redhat.com>
425
426         Bug 162112.
427         
428         * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
429         to win->window's event_mask
430
431         * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
432         to viewport->view_window.
433
434 2005-01-04  Matthias Clasen  <mclasen@redhat.com>
435
436         * demos/testpixbuf.c (main): Remove the size_prepared callback,
437         to test incremental display.
438         (new_testrgb_window): Return the drawing area, not the window,
439         since we want to queue draws on the drawing area.
440
441 2005-01-03  Matthias Clasen  <mclasen@redhat.com>
442
443         * examples/*: Re-extract.
444
445         * docs/tutorial/gtk-tut.sgml: Small corrections.
446         
447         * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
448         section.  (#161414, Robert Ancell)
449
450         * docs/tutorial/gtk-tut.sgml: Make it build.
451
452         * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
453         regarding modality.  (#112903, Dave Bordoley)
454
455         * gtk/gtkfixed.c (gtk_fixed_set_has_window): 
456         Add a little motivation.  (#145556, Tommi Komulainen)
457
458         * docs/tutorial/gtk-tut.sgml: Clarify section on 
459         g_signal_connect_swapped.   (#120543, David Bourguignon)
460
461         Make gtk_icon_theme_load_icon() work independent of
462         icon factory initialization.  (#162791, Tristan Van Berkom)
463         
464         * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
465         _gtk_icon_factory_ensure_default_icons, and make it non-static.
466
467         * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
468
469 2005-01-02  Matthias Clasen  <mclasen@redhat.com>
470
471         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder): 
472         Don't add a shortcut here.  (#162752, Tor Lillqvist)
473
474 2005-01-02  Tor Lillqvist  <tml@iki.fi>
475
476         * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
477         CoTaskMemFree in get_special_folder() below.
478
479         * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
480         Win32 using _gtk_file_system_win32_path_compare().
481
482         * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
483
484         * gtk/gtkfilechooserbutton.c (model_add_special)
485         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
486         _gtk_file_system_win32_get_desktop() to get correct Desktop folder
487         on Win32. (#144003)
488
489         * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
490         consider all drives "mounted", including floppies. Trying to
491         inspect the contents of a nonexistent floppy will cause errors
492         later that are handled normally, no need to avoid them
493         completely. Keep the drive type in the GtkFileSystemVolume.
494         Support UNC paths. (#161797, #137874) Fix error message
495         capitalizations as in gtkfilesystemunix.c.
496
497         (gtk_file_system_win32_init): Start one timeout per
498         GtkFileSystemWin32.
499
500         (gtk_file_system_win32_finalize): Remove the timeout.
501
502         (get_special_folder): Copied from GLib.
503
504         (_gtk_file_system_win32_get_desktop): New function, uses
505         get_special_folder().
506
507         (gtk_file_system_win32_list_volumes): Don't start a timeout at
508         each call to this function. Don't assume A: and B: are floppies.
509
510         (gtk_file_system_win32_get_volume_for_path): Don't assume all
511         volumes are drive roots, i.e. support share roots of UNC paths
512         (\\server\share).
513
514         (gtk_file_system_win32_get_folder): Don't assume errno is set
515         after g_file_test() returns FALSE. It isn't on Win32 (and even on
516         Unix I don't think one should assume anything about errno after
517         g_file_test()).
518
519         (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
520
521         (gtk_file_system_win32_volume_get_display_name): Don't call
522         GetVolumeInformation() on drives A: or B: if they are removable,
523         as they might then be floppies, causing an unnecessary
524         delay. (#157820)
525
526         (gtk_file_system_win32_volume_render_icon): Use network icon for
527         unrecognized drive types.
528
529         (canonicalize_filename, gtk_file_system_win32_parse): Don't get
530         confused by UNC paths.
531
532         (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
533         for case-insensitive UTF-8 path comparison.
534
535         (extract_icon): Use SHGetFileInfo() which is faster than
536         ExtractAssociatedIcon(). Icon extraction is still slow, though,
537         needs work.
538
539         (win32_pseudo_mime_lookup): Don't use the same icon for all
540         shortcuts or executables. Cache only other file type icons.
541
542         (gtk_file_system_win32_render_icon): Use network stock icon for
543         remote drives and UNC server share roots. Compare home directory
544         case-insensitively. Do lookup icons also for executable files,
545         after all, it's these files that can have individual icons in the
546         first place. Yes, it can be slow. Needs work.
547
548         (filename_is_drive_root): Require also the slash after the colon.
549
550         (filename_is_server_share): New function.
551
552         (_gtk_file_system_win32_path_compare): New function, does
553         case-folded UTF-8 comparison.
554
555         * gtk/gtkfilesystemwin32.h: Declare
556         _gtk_file_system_win32_path_compare().
557
558 2005-01-01  Matthias Clasen  <mclasen@redhat.com>
559
560         * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
561         custom image by passing NULL.
562         (gtk_button_init): Initialize image_is_stock to TRUE, fixing
563         a problem with changing stock labels.  (#162273, Marcin 
564         Krzyzanowski)
565
566 2005-01-01  Tor Lillqvist  <tml@iki.fi>
567
568         * gtk/gtkmodules.c (get_module_path)
569         * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
570         gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
571         g_getenv() now returning UTF-8 on Win32, no need to call
572         g_locale_to_utf8().
573
574 2004-12-31  Matthias Clasen  <mclasen@redhat.com>
575
576         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval) 
577         (_gtk_key_hash_lookup): Don't sort a list of values as if
578         it was a list of entries. This fixes crashes during mnemonic
579         activation in the presence of multiple keymaps. (#162488, 
580         Christian Persch)
581
582 2004-12-30  Matthias Clasen  <mclasen@redhat.com>
583
584         * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
585         state propagation when making an insensitive combo box sensitive
586         again.  (#162524, Carlos Garnacho Parro)
587
588         * gtk/gtkfilechooserdefault.c: Use secondary text for error 
589         dialogs.
590
591         * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
592         (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
593         for error messages. Also mark some error messages for translation,
594         fix capitalization of error messages.
595
596         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property): 
597         Use g_value_get_boolean() for ellipsize_set.  (#162447, 
598         Brian Tarricone)
599
600 2004-12-30  Tor Lillqvist  <tml@iki.fi>
601
602         * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
603         only on Unix.
604
605 2004-12-28  Matthias Clasen  <mclasen@redhat.com>
606
607         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
608         submenu direction from the parent menu.
609
610         * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first): 
611         Return a boolean indicating whether an item in the submenu
612         was selected.
613         (gtk_real_menu_shell_move_current): When going in child 
614         direction, don't get stuck at completely insensitive 
615         submenus.  (#162055, Billy Biggs)       
616
617 2004-12-27  Matthias Clasen  <mclasen@redhat.com>
618
619         Make the clipboard image API more robust (#162357, 
620         Torsten Schoenfeld):
621         
622         * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
623         ref the pixbuf if it is NULL.
624
625         * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): 
626         NULL-terminate the varargs in the call to 
627         gdk_pixbuf_save_to_buffer(). 
628         (gtk_selection_data_get_pixbuf): Only use a pixbuf loader 
629         if there is data to load.
630
631 2004-12-27  Matthias Clasen  <mclasen@redhat.com>
632
633         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): 
634         Set x_root and y_root in button and motion events from 
635         extended input devices.  (#148715, Robert Ögren)
636
637         * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a 
638         typo.  (#162339, Alessio Dessi)
639
640         * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
641         properties as new since 2.4.  (#156101, Billy Biggs)
642
643         * configure.in: Add a warning about the linux-fb 
644         target.  (#155488, Zeeshan Ali)
645
646         * gtk/gtkmain.c (gtk_init_with_args): Typo fix.  (#162278,
647         Torsten Schoenfeld)
648
649 2004-12-26  Matthias Clasen  <mclasen@redhat.com>
650
651         * gtk/gtkfilechooser.c (gtk_file_chooser_set_action): 
652         Typo fix.  (#162219, Masao Mutoh)
653         (gtk_file_chooser_set_preview_widget_active): 
654         Another typo.  (#162218, Masao Mutoh)
655
656 2004-12-23  Matthias Clasen  <mclasen@redhat.com>
657
658         * gtk/gtkliststore.c (gtk_list_store_iter_children): 
659         Return TRUE if there are children.  (#162134, Iñigo Serna,
660         patch by John Finlay)
661
662         * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): 
663         Transfer state from the button to the cell view to get
664         prelighting right.  (#156327, Ricardo Veguilla)
665
666 Wed Dec 22 14:22:19 2004  Søren Sandmann  <sandmann@redhat.com>
667
668         * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
669         timeout. Written by Christian Persch.
670
671 Wed Dec 22 14:14:02 2004  Søren Sandmann  <sandmann@redhat.com>
672
673         Bug #161561
674         
675         * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
676         background for windows that get expose events. 
677
678         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
679         hack to repaint !expose windows.
680
681 Wed Dec 22 11:35:41 2004  Søren Sandmann  <sandmann@redhat.com>
682
683         Bug #147497, make menu items activate immediately when you release
684         the button.
685         
686         * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
687         items activate immediately.
688
689         * gtk/gtkmenu.c (definitely_within_item): New function
690         * gtk/gtkmenu.c (check_threshold): New function
691
692 2004-12-22  Matthias Clasen  <mclasen@redhat.com>
693
694         * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
695         null the mnemonic_menu when unsetting a mnemonic, reported
696         by Owen Taylor.
697
698 2004-12-21  Matthias Clasen  <mclasen@redhat.com>
699
700         * gtk/gtkliststore.c (generate_order): Generate the order the
701         way it is supposed to be, order[new_pos] == old_pos.
702         (gtk_list_store_reorder): Invert the order before using it.
703
704 2004-12-22  Matthias Clasen  <mclasen@redhat.com>
705
706         Fix sorting of list stores.  (#161886, Marcin Krzyzanowski)
707
708         * gtk/gtkliststore.c (generate_order): Generate the order the
709         way it is supposed to be, order[new_pos] == old_pos.
710         (gtk_list_store_reorder): Invert the order before using it.
711
712         * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
713         list store fix.
714
715 Wed Dec 22 01:24:01 2004  Jonathan Blandford  <jrb@redhat.com>
716
717         * gtk/queryimmodules.c (main): print out the version and binary
718         name in the header comment.  Problem reported by Seth Nickell.
719
720 2004-12-20  Matthias Clasen  <mclasen@redhat.com>
721
722         * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
723         root path to gtk_tree_model_rows_reordered().  (#161720,
724         Marcin Krzyzanowski)
725
726         * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't 
727         translate NULL messages.  (#161789, Morten Welinder)
728
729         * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
730         the secondary label on show_all().  (#161707, Christian Persch)
731
732 2004-12-19  Tor Lillqvist  <tml@iki.fi>
733
734         * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
735         Use wide character API when available. Use UTF-8 for filenames.
736
737         * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
738         the string's trailing zero byte in the property's length, just for
739         safety.
740
741 2004-12-18  Matthias Clasen  <mclasen@redhat.com>
742
743         * gtk/gtkfilechooserentry.c (check_completion_callback) 
744         (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
745
746         * gtk/gtkfilechooserdefault.c (edited_idle_cb) 
747         (shortcuts_drag_outside_idle_cb): Add missing 
748         GDK_THREADS_ENTER/LEAVE.  (#161604)
749         
750         * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb): 
751         (list_select_func): Don't call gtk_file_info_get_is_folder()
752         on NULL. 
753
754         * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name): 
755         (gtk_about_dialog_init): Add missing initializations.  (#161646,
756         Torsten Schoenfeld)
757