]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
New function which allows to change the function used for translation
[~andy/gtk] / ChangeLog.pre-2-10
1 2005-02-03  Matthias Clasen  <mclasen@redhat.com>
2
3         * gtk/gtk.symbols: 
4         * gtk/gtkstock.h: 
5         * gtk/gtkstock.c (gtk_stock_set_translate_func): 
6         New function which allows to change the function used for
7         translation stock labels, on a per-domain basis. Use this
8         functionality to switch the GTK+ stock items to use Q_()
9         prefixed msgids.  (#166179, Funda Wang)
10         
11         * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
12         Tommi Komulainen)
13
14 2005-02-02  Federico Mena Quintero  <federico@ximian.com>
15
16         Merged from gtk-2-6:
17
18         * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
19         Don't select the first row if the chooser is not mapped.  This
20         happens when it's acting on behalf of GtkFileChooserButton.  Also,
21         don't select the first row if we are in SAVE or CREATE_FOLDER
22         modes --- I had missed that (see the ChangeLog entry from
23         2005-01-18).  Fixes #165264.
24
25 2005-02-02  Tor Lillqvist  <tml@novell.com>
26
27         Implement lazy extended input initialization on Win32, by Robert
28         Ögren. Fixes #163163, possibly #162334. Lazy initialization would
29         be a good idea in any case even if it didn't fix any visible
30         problems, though.
31
32         The Wacom tablet driver seems to get confused if Wintab is
33         initialized but no window is shown before the process exits. This
34         is the case for some GIMP plug-ins, for instance. 
35
36         * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
37         non-static (and renamed).
38         (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
39
40         * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
41
42         * gdk/win32/gdkinput.c (gdk_devices_list,
43         gdk_display_list_devices, gdk_input_set_extension_events): Call
44         _gdk_input_wintab_init_check() here instead.
45
46 2005-02-02  Ivan, Wong Yat Cheung  <email@ivanwong.info>
47
48         * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
49         of a single window so that gtk_clipboard_request_contents() can be
50         called inside a GtkClipboardReceivedFunc(). (#163844)
51
52 2005-02-01  Matthias Clasen  <mclasen@redhat.com>
53
54         * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
55         in XDG_DATA_DIRS/pixmaps.  (#165950, Thomas Zajic)
56
57         * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
58         to NULL after freeing it.  (#165800, Damon Chaplin)
59
60 2005-02-01  Michael Natterer  <mitch@gimp.org>
61
62         * configure.in: depend on stable pango-1.8, not unstable 1.7
63
64 2005-02-01  Federico Mena Quintero  <federico@ximian.com>
65
66         Merged from gtk-2-6:
67
68         * gtk/gtkfilechooserdefault.c
69         (browse_files_model_finished_loading_cb): Don't
70         g_assert_not_reached() if we are in any other state.  Another code
71         path may have triggered a folder reload.  Fixes #165556.
72
73 2005-02-01  Federico Mena Quintero  <federico@ximian.com>
74
75         Merged from gtk-2-6:
76
77         Fix #165770:
78
79         * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
80         fallback size be 16, to be equal to the default for
81         GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
82         (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
83         GTK_ICON_SIZE_SMALL_TOOLBAR.
84
85 2005-02-01  Matthias Clasen  <mclasen@redhat.com>
86
87         * */*.c: Fix many instances of "the the" in docs and
88         comments.  (#165815, Masao Mutoh)
89
90         * gtk/updateiconcache.c (main): Add a --quiet option.
91
92 2005-02-01  Tor Lillqvist  <tml@novell.com>
93
94         * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
95         reset_after_dead, handle_dead): New functions, code blocks
96         refactored out of update_keymap(). No functionality change.
97
98         (update_keymap): Use ToUnicodeEx() when available (on NT-based
99         Windows) instead of ToAsciiEx(). Makes keyboard input work in
100         Unicode-only input locales that don't have any ANSI codepage, for
101         instance Hindi and Bengali. Use _gdk_input_codepage only on
102         Win9x. (#165723)
103
104         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
105         WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
106         TranslateCharsetInfo() to get the input locale's corresponding
107         codepage, if any.
108
109 2005-01-31  Matthias Clasen  <mclasen@redhat.com>
110
111         * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate 
112         NULL-terminated va lists.  (#165683)
113
114 2005-01-29  Matthias Clasen  <mclasen@redhat.com>
115
116         * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw): 
117         Typo fix.  (#165581, Masao Mutoh)
118
119 Thu Jan 27 14:25:45 2005  Manish Singh  <yosh@gimp.org>
120
121         * README.cvs-commits: update ancient IRC info.
122
123 2005-01-27  Federico Mena Quintero  <federico@ximian.com>
124
125         Merged from gtk-2-6:
126
127         * gtk/gtkfilechooserdefault.c
128         (gtk_file_chooser_default_select_path): Oops, don't assert that we
129         can't reach the end of the function; this happens if we are still
130         loading but don't need a path change.  Fixes #165213.
131
132 2005-01-27  Matthias Clasen  <mclasen@redhat.com>
133
134         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
135         Make wrapping work in RTL mode.  
136
137         * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
138         obey HIG spacing a bit more, add a hand cursor when over the
139         link button.  (#163979, Jorn Baayen)
140
141 2005-01-26  Matthias Clasen  <mclasen@redhat.com>
142
143         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
144         Don't allow -1 as minimum-key-length.
145         (gtk_entry_completion_set_model): Add missing notification.
146         (gtk_entry_completion_set_minimum_key_length): Add missing
147         notification, allow setting minimum-key-length to 0.  (#165194,
148         Vincent Ladeuil)
149
150 2005-01-26  Matthias Clasen  <mclasen@redhat.com>
151
152         * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
153         the license dialog is initially displayed without a horizontal
154         scrollbar.  
155         (gtk_about_dialog_class_init): Document the fact that the 
156         license text is not wrapped.  (#165012, Christian Rose)
157
158 2005-01-25  Matthias Clasen  <mclasen@redhat.com>
159
160         * gtk/gtkbutton.c (gtk_button_set_image): Fix docs.  (#165180,
161         Jeff Franks)
162
163         * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix 
164         docs.  (#165163, Jeff Franks)
165         
166         * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
167         for a string GValue.  (#165203, Damon Chaplin)
168
169 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
170
171         * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): 
172         Initialize user_time from DESKTOP_STARTUP_ID.  (#165131,
173         Elijah Newren)
174
175 2005-01-24  Federico Mena Quintero  <federico@ximian.com>
176
177         * gtk/gtkfilechooserdefault.c: Removed leftover comments.
178
179 2005-01-24  Federico Mena Quintero  <federico@ximian.com>
180
181         Merged from gtk-2-6:
182
183         Fix #147785 and clean up the loading code:
184
185         * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
186         be EMPTY, PRELOAD, LOADING, FINISHED.
187         (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
188         (struct _GtkFileChooserDefault): Added a pending_select_paths
189         field.
190         (load_remove_timer): Add the new states.
191         (load_setup_timer): Likewise.
192         (load_timeout_cb): Likewise.  Switch to the LOAD_LOADING state.
193         (browse_files_model_finished_loading_cb): Switch to the
194         LOAD_FINISHED state.
195         (enum PendingOp): Removed.
196         (struct _GtkFileChooserDefault): Removed the pending_op and
197         pending_select_path fields.
198         (pending_select_paths_free): New utility function.
199         (pending_select_paths_add): New utility function.
200         (gtk_file_chooser_default_finalize): Call
201         pending_select_paths_free().
202         (pending_op_queue): Removed.
203         (pending_op_process): Removed.
204         (pending_select_paths_process): New function.
205         (browse_files_model_finished_loading_cb): Call
206         pending_select_paths_process().
207         (center_selected_row_foreach_cb): Handle multiple selection by
208         only centering the first row.
209         (get_is_file_filtered): Constify.
210         (gtk_file_chooser_default_select_path): Queue into a list of paths
211         to select if we are not finished loading.
212         (show_and_select_paths): New utility function.
213         (up_folder_handler): Use pending_select_paths_add().
214         (gtk_file_chooser_default_should_respond): Do not call
215         pending_op_queue(); free the pending_selected_paths instead.
216         (gtk_file_chooser_default_initial_focus): Don't queue a pending
217         operation, and don't select the first row unconditionally --- this
218         will happen when the folder is done loading.
219         (shortcuts_row_activated_cb): Free the pending_select_paths.
220         (pending_select_paths_store_selection): New utility function.
221         (gtk_file_chooser_default_map): Call
222         pending_select_paths_store_selection() to save the selection
223         before reloading the folder.
224         (select_func): Umm?  Call gtk_tree_selection_select_iter().  Don't
225         move the cursor here; it will be done when processing the pending paths.
226
227         * tests/testfilechooser.c (main): Add a button to the command
228         window to unmap and remap the file chooser.
229
230 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
231
232         * docs/tutorial/gtk-tut.sgml:
233         * docs/tutorial/gtk_tut.sgml:
234         * docs/reference/gtk/tmpl/gtkliststore.sgml:
235         * gtk/gtkactiongroup.c:
236         * gtk/gtksizegroup.c:
237         * gtk/gtksizegroup.h:
238         * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
239         appropriate.  (#165108, Dan Winship)
240
241 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
242
243         * gtk/gtkwidget.c (gtk_widget_class_init): Document 
244         GtkWidget::style-set.  (#164222, Alex Graveley)
245         
246 2005-01-22  Matthias Clasen  <mclasen@redhat.com>
247
248         * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full): 
249         Remove the accidentally added prototype for this unimplemented 
250         function.  (#164893, Jeff Franks)
251
252         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
253         drags.  (#164884)
254
255 2005-01-23  Tor Lillqvist  <tml@novell.com>
256
257         * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
258         dead accent key. (#164859, reported and fix verified by Daniel
259         Atallah.)
260
261         * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
262         GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
263         and upsilon.
264
265         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name): 
266         Don't call GetVolumeInformation() for network drives. They might
267         be disconnected, and calling GetVolumeInformation() will then
268         cause long delays. (#164448, reported by Dave Neary.) It seems to
269         be very hard to reliably find out whether a network drive is
270         connected or not, so it's easier to just not try getting the
271         volume name for them. See the bug report for discussion.
272
273         Make volume name display formats translatable.
274
275         Fix for #163702, from Ivan Wong: 
276         
277         * gdk/win32/gdkprivate-win32.h 
278         * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
279         
280         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
281         WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
282         GDK_SELECTION_CLEAR event.
283
284         * gdk/win32/gdkselection-win32.c
285         (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
286         when emptying the clipboard ourselves.
287
288         (gdk_selection_send_notify_for_display): Remove the artifical
289         GDK_SELECTION_CLEAR event generation.
290
291 2005-01-21  Matthias Clasen  <mclasen@redhat.com>
292
293         * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
294         provided by Bill Haneman.
295
296 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
297
298         * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs.  (#164725,
299         George Kraft IV)
300
301         * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
302         here, even if the only focusable widgets are labels.
303
304 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
305
306         Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
307         
308         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init) 
309         Add a follow-state property which when TRUE causes the pixbuf
310         to be tinted according to state.
311
312         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): 
313         Use follow-state and colorize the pixbuf when appropriate.      
314         
315 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
316
317         Support wrapping in GtkCellRendererText  (#163608):
318         
319         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
320         Add wrap-mode and wrap-width properties which cause a 
321         text cell to break to a specified width when set.
322
323         * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
324         and wrap-width when they are set.
325
326 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
327
328         * gtk/gtkmodules.c (load_module): Don't reverse the order
329         of modules when putting them in gtk_modules.  (#162676, Dennis
330         Cranston, patch by Remus Draica)
331
332         * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash 
333         if the tree is empty.  (#164669, Priit Laes)
334
335 Wed Jan 19 18:57:02 2005  Manish Singh  <yosh@gimp.org>
336
337         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
338         GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
339         function a bit too.
340
341 Wed Jan 19 17:17:31 2005  Manish Singh  <yosh@gimp.org>
342
343         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
344         strict aliasing warning in _NET_VIRTUAL_ROOTS code.
345
346 2005-01-19  Tor Lillqvist  <tml@novell.com>
347
348         * gdk/win32/gdkkeys-win32.c (update_keymap,
349         gdk_keymap_translate_keyboard_state): Handle keyboards with
350         ShiftLock (and not CapsLock) correctly. (#161814)
351
352 2005-01-19  Matthias Clasen  <mclasen@redhat.com>
353
354         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
355         In save mode, don't return paths containing nonexisting 
356         directories.  (#162443, Jean Marie Favreau)
357
358         * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit 
359         macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
360
361         * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
362         atom.
363
364         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): 
365         Support _NET_VIRTUAL_ROOTS.  (#163910, Carsten Haitzler)
366         
367         * gdk/gdk.symbols: 
368         * gdk/x11/gdkx.h: 
369         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time): 
370         Add a function to obtain the last user interaction 
371         time.  (#163119, Elijah Newren)
372
373 Tue Jan 18 13:56:09 2005  Manish Singh  <yosh@gimp.org>
374
375         * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
376         PENDING_OP_NONE.
377
378 Tue Jan 18 13:46:46 2005  Manish Singh  <yosh@gimp.org>
379
380         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
381         disambiguate nested if/else.
382
383 2005-01-18  Federico Mena Quintero  <federico@ximian.com>
384
385         Merged from gtk-2-6:
386
387         * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
388         operation to select the first file if we are in SAVE or
389         CREATE_FOLDER modes.  Executing that operation would overwrite the
390         contents of the save-name entry.
391
392 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
393
394         * gdk/gdkdisplay.h: 
395         * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer): 
396         * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
397         pointer warping to GDK.  (#160437)
398
399         * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
400
401 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
402
403         * gtk/gtkstyle.c (gtk_default_draw_check) 
404         (gtk_default_draw_option, gtk_default_draw_handle): Add some
405         more NULL checks, patch by Michael Natterer.
406
407 Tue Jan 18 10:55:47 2005  Søren Sandmann  <sandmann@redhat.com>
408
409         * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
410         and NULL widget.
411
412         * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
413         NULL widget.  (#164477, Michael Natterer)
414
415 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
416
417         Avoid X errors when running against servers which
418         implement XRender < 0.4.  (#164427, Albert Chin)
419         
420         * gdk/x11/gdkprivate-x11.h:
421         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids): 
422         New function to check for trapezoid support in XRender.
423         (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids): 
424         Use it here.
425         
426         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a 
427         separate have_render_with_trapezoids field.
428
429         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
430
431 2005-01-17  Matthias Clasen  <mclasen@redhat.com>
432
433         * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
434
435 Mon Jan 17 16:44:36 2005  Jonathan Blandford  <jrb@redhat.com>
436
437         * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
438         dist.
439
440 2005-01-17  Matthias Clasen  <mclasen@redhat.com>
441
442         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
443         and restore the selected row in the bookmark list and the
444         save folder combo.  (#164290)
445
446 2005-01-16  Matthias Clasen  <mclasen@redhat.com>
447
448         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
449         Fix argument order in docs.  
450
451 2005-01-15  Matthias Clasen  <mclasen@redhat.com>
452
453         * gtk/gtktextview.c (gtk_text_view_check_keymap_direction): 
454         * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL 
455         if the keymap is neutral.  (#164125, Phil Blundell)
456
457 2005-01-14  Matthias Clasen  <mclasen@redhat.com>
458
459         * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
460         reset the property to its default value -1. 
461         (gtk_tree_view_get_search_column): Return the default value in
462         the g_return_val_if_fail() check.  (#163864, Richard Hult)
463
464         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value): 
465         Add a translator hint.  (#163889)
466
467         * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
468         is an enum value, not a define. Pointed out by Tommi Komulainen.
469         * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
470
471 2005-01-13  Matthias Clasen  <mclasen@redhat.com>
472
473         * configure.in: Check for nl_langinfo()
474         * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
475         available to determine first day of week   (#163842, Vincent Untz)
476
477         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about 
478         the lifecycle of widgets.  (#159503, Christian Persch)
479
480         * demos/gtk-demo/main.c (create_text): Use monospace for the 
481         source code view.  (#163526, Theerud Lawtrakul)
482
483         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
484         for the Credits button to avoid duplicate.  (#163465, Tim-Philipp 
485         Müller)
486         
487         * configure.in: Add an OS_LINUX conditional.
488
489         * gdk/Makefile.am (TESTS):
490         * gdk-pixbuf/Makefile.am (TESTS):
491         * gtk/Makefile.am (TESTS): Only run abicheck on Linux.  (#163917,
492         Roger Leigh)
493
494 2005-01-13  Matthias Clasen <mclasen@redhat.com>
495
496         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
497         (gtk_tree_view_set_headers_clickable): Make the headers-visible
498         property readwrite instead of just writable, and remove the
499         g_return_if_fail check that there is a model when setting this
500         property. Also improve the blurb.  (#163851, Richard Hult)
501
502 2005-01-12  Owen Taylor <otaylor@redhat.com>
503
504         * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
505         initialization of gdktarget, that was causing it to be
506         evaluated before host was set. Simplify --with-gdktarget help
507         message.
508
509         * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1 
510         which doesn't work with slightly older versions of GNU grep 
511         in install-libtool-import-lib rule.
512         
513 2005-01-12  Tor Lillqvist  <tlillqvist@novell.com>
514
515         Fix for #162790, by Iwan Wong:
516         
517         * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
518         correctly. Simplify the interface to render_line_horizontal() and
519         render_line_vertical(). Need to draw lines "manually" also on
520         NT-based Windowses if we have a dash offset or are drawing
521         double-dashed lines.
522
523         * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
524         double-dash flag, and a brush for the background colour (used by
525         the odd dashes in the double-dash line style) in the GdkGCWin32
526         struct.
527
528         * gdk/win32/gdkgc-win32.c: Set up above new fields.
529
530 2005-01-10  Federico Mena Quintero  <federico@ximian.com>
531
532         Fix #162617.
533
534         * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
535         GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
536         (gtk_file_system_unix_get_folder): Make error reporting more
537         accurate.  Don't bail out if we can't read the directory.
538         (fill_in_stats): Don't return an error; just assume we don't have
539         stat info for this folder's files.
540         (fill_in_names): Don't create the hash table for the names if we
541         can't open the directory.
542         (gtk_file_folder_unix_list_children): Don't emit the
543         "finished-loading" signal --- we don't do asynchronous loads, so
544         we are always finished loading.
545         (gtk_file_folder_unix_get_info): Use helper functions; handle the
546         case where we can't stat '/'.
547         (get_icon_type_from_path): Don't call fill_in_stats() here; only
548         use the info we have.
549         (fill_in_mime_type): Don't return an error.  Don't do anything if
550         we don't have the stat info.
551
552 2005-01-10  Owen Taylor  <otaylor@redhat.com>
553
554         * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
555         to EXTRA_DIST.
556
557 2005-01-10  Matthias Clasen  <mclasen@redhat.com>
558
559         * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
560         signals.  (#163319, Murray Cumming)
561
562 2005-01-09  Tor Lillqvist  <tlillqvist@novell.com>
563
564         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
565         cursor also when changing the cursor of a window that is the first
566         ancestor of the window containing the pointer that has a cursor
567         defined. (#163035, Ivan Wong)
568
569 2005-01-09  Anders Carlsson <andersca@gnome.org>
570
571         * gtk/gtkcellrenderertext.c: (get_size):
572         * gtk/gtklabel.c: (gtk_label_size_request):
573         * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
574         Don't pass NULL to pango_context_get_metrics. Use 
575         pango_context_get_language instead, which is way faster.
576         
577 2005-01-08  Matthias Clasen  <mclasen@redhat.com>
578
579         * configure.in: Bump version
580
581         * === Released 2.6.1 ===
582         
583         * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
584
585 2005-01-07  Tor Lillqvist  <tml@iki.fi>
586
587         * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
588         Fix braino. (#163232, Arnaud Charlet)
589
590 2005-01-06  Matthias Clasen  <mclasen@redhat.com>
591
592         * gtk/gtkiconview.c: Make markup_column work, and fix some
593         layout issues when either icon or text is missing.  (#163065)
594
595 2005-01-06  Federico Mena Quintero  <federico@ximian.com>
596
597         * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
598         "Open _Location" item.  Fixes #148839.
599
600 2005-01-06  Matthias Clasen  <mclasen@redhat.com>
601
602         * README.in: Fix a typo.  (#163128, kentaro fukuchi)
603
604 2005-01-06  James M. Cape  <jcape@ignore-your.tv>
605
606         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
607         (gtk_file_chooser_button_new_with_backend): Use default title if
608         NULL is passed.
609
610         * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
611         match API.
612
613 2005-01-05  Federico Mena Quintero  <federico@ximian.com>
614
615         Fix #161409:
616
617         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
618         a pending operation to select the first row.
619
620 2005-01-05  Federico Mena Quintero  <federico@ximian.com>
621
622         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
623         button_data_free() explicitly; the button is weak-reffed and the
624         callback will free the button data.  Fixes #163010.
625         (_gtk_path_bar_set_path): Don't ref/sink the button.  And for the
626         failure case, call gtk_widget_destroy() on it.
627
628         * gtk/gtkfilechooserdefault.c (check_is_folder): Use
629         gtk_file_system_get_folder() again (see the ChangeLog entry from
630         2004-08-25).  We can't first get the parent folder and then
631         request the info for the path in question, as the parent folder
632         may not be readable.  See bug #162617.
633         (gtk_file_chooser_default_set_current_folder): Assert that the
634         passed-in path is not null.
635         (shortcuts_find_current_folder): Likewise.
636         (shortcuts_add_current_folder): Likewise.
637         (set_list_model): Likewise.
638         (gtk_file_chooser_default_map): Only reload the current folder if
639         it exists.
640         (bookmarks_check_add_sensitivity): Check for the current folder
641         being NULL.
642         (browse_files_select_first_row): Don't set the cursor if there is
643         no model loaded.
644
645 2005-01-05  Matthias Clasen  <mclasen@redhat.com>
646
647         * gtk/gtkfilechooserdefault.c: Don't construct errors from 
648         the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
649         (get_file_info, check_is_folder): Translate errors from
650         the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
651         of the fix for #162911, noticed by Murray Cumming.
652
653 Wed Jan  5 11:42:49 2005  Søren Sandmann  <sandmann@redhat.com>
654
655         * gtk/gtkviewport.c (gtk_viewport_realize):
656         * gtk/gtktextview.c ((text_window_realize): Set the background of
657         the windows to None instead of adding EXPOSURE_MASK, as suggested
658         by Owen in #162112.
659
660         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update 
661         the user time when receiving a WM_DELETE message.  (#162980, 
662         Elijah Newren)
663         
664 Tue Jan  4 16:52:14 2005  Jonathan Blandford  <jrb@redhat.com>
665
666         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
667         only reorder on button 1, part of #141937
668
669 Tue Jan  4 11:36:43 2005  Søren Sandmann  <sandmann@redhat.com>
670
671         Bug 162112.
672         
673         * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
674         to win->window's event_mask
675
676         * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
677         to viewport->view_window.
678
679 2005-01-04  Matthias Clasen  <mclasen@redhat.com>
680
681         * demos/testpixbuf.c (main): Remove the size_prepared callback,
682         to test incremental display.
683         (new_testrgb_window): Return the drawing area, not the window,
684         since we want to queue draws on the drawing area.
685
686 2005-01-03  Matthias Clasen  <mclasen@redhat.com>
687
688         * examples/*: Re-extract.
689
690         * docs/tutorial/gtk-tut.sgml: Small corrections.
691         
692         * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
693         section.  (#161414, Robert Ancell)
694
695         * docs/tutorial/gtk-tut.sgml: Make it build.
696
697         * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
698         regarding modality.  (#112903, Dave Bordoley)
699
700         * gtk/gtkfixed.c (gtk_fixed_set_has_window): 
701         Add a little motivation.  (#145556, Tommi Komulainen)
702
703         * docs/tutorial/gtk-tut.sgml: Clarify section on 
704         g_signal_connect_swapped.   (#120543, David Bourguignon)
705
706         Make gtk_icon_theme_load_icon() work independent of
707         icon factory initialization.  (#162791, Tristan Van Berkom)
708         
709         * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
710         _gtk_icon_factory_ensure_default_icons, and make it non-static.
711
712         * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
713
714 2005-01-02  Matthias Clasen  <mclasen@redhat.com>
715
716         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder): 
717         Don't add a shortcut here.  (#162752, Tor Lillqvist)
718
719 2005-01-02  Tor Lillqvist  <tml@iki.fi>
720
721         * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
722         CoTaskMemFree in get_special_folder() below.
723
724         * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
725         Win32 using _gtk_file_system_win32_path_compare().
726
727         * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
728
729         * gtk/gtkfilechooserbutton.c (model_add_special)
730         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
731         _gtk_file_system_win32_get_desktop() to get correct Desktop folder
732         on Win32. (#144003)
733
734         * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
735         consider all drives "mounted", including floppies. Trying to
736         inspect the contents of a nonexistent floppy will cause errors
737         later that are handled normally, no need to avoid them
738         completely. Keep the drive type in the GtkFileSystemVolume.
739         Support UNC paths. (#161797, #137874) Fix error message
740         capitalizations as in gtkfilesystemunix.c.
741
742         (gtk_file_system_win32_init): Start one timeout per
743         GtkFileSystemWin32.
744
745         (gtk_file_system_win32_finalize): Remove the timeout.
746
747         (get_special_folder): Copied from GLib.
748
749         (_gtk_file_system_win32_get_desktop): New function, uses
750         get_special_folder().
751
752         (gtk_file_system_win32_list_volumes): Don't start a timeout at
753         each call to this function. Don't assume A: and B: are floppies.
754
755         (gtk_file_system_win32_get_volume_for_path): Don't assume all
756         volumes are drive roots, i.e. support share roots of UNC paths
757         (\\server\share).
758
759         (gtk_file_system_win32_get_folder): Don't assume errno is set
760         after g_file_test() returns FALSE. It isn't on Win32 (and even on
761         Unix I don't think one should assume anything about errno after
762         g_file_test()).
763
764         (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
765
766         (gtk_file_system_win32_volume_get_display_name): Don't call
767         GetVolumeInformation() on drives A: or B: if they are removable,
768         as they might then be floppies, causing an unnecessary
769         delay. (#157820)
770
771         (gtk_file_system_win32_volume_render_icon): Use network icon for
772         unrecognized drive types.
773
774         (canonicalize_filename, gtk_file_system_win32_parse): Don't get
775         confused by UNC paths.
776
777         (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
778         for case-insensitive UTF-8 path comparison.
779
780         (extract_icon): Use SHGetFileInfo() which is faster than
781         ExtractAssociatedIcon(). Icon extraction is still slow, though,
782         needs work.
783
784         (win32_pseudo_mime_lookup): Don't use the same icon for all
785         shortcuts or executables. Cache only other file type icons.
786
787         (gtk_file_system_win32_render_icon): Use network stock icon for
788         remote drives and UNC server share roots. Compare home directory
789         case-insensitively. Do lookup icons also for executable files,
790         after all, it's these files that can have individual icons in the
791         first place. Yes, it can be slow. Needs work.
792
793         (filename_is_drive_root): Require also the slash after the colon.
794
795         (filename_is_server_share): New function.
796
797         (_gtk_file_system_win32_path_compare): New function, does
798         case-folded UTF-8 comparison.
799
800         * gtk/gtkfilesystemwin32.h: Declare
801         _gtk_file_system_win32_path_compare().
802
803 2005-01-01  Matthias Clasen  <mclasen@redhat.com>
804
805         * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
806         custom image by passing NULL.
807         (gtk_button_init): Initialize image_is_stock to TRUE, fixing
808         a problem with changing stock labels.  (#162273, Marcin 
809         Krzyzanowski)
810
811 2005-01-01  Tor Lillqvist  <tml@iki.fi>
812
813         * gtk/gtkmodules.c (get_module_path)
814         * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
815         gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
816         g_getenv() now returning UTF-8 on Win32, no need to call
817         g_locale_to_utf8().
818
819 2004-12-31  Matthias Clasen  <mclasen@redhat.com>
820
821         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval) 
822         (_gtk_key_hash_lookup): Don't sort a list of values as if
823         it was a list of entries. This fixes crashes during mnemonic
824         activation in the presence of multiple keymaps. (#162488, 
825         Christian Persch)
826
827 2004-12-30  Matthias Clasen  <mclasen@redhat.com>
828
829         * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
830         state propagation when making an insensitive combo box sensitive
831         again.  (#162524, Carlos Garnacho Parro)
832
833         * gtk/gtkfilechooserdefault.c: Use secondary text for error 
834         dialogs.
835
836         * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
837         (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
838         for error messages. Also mark some error messages for translation,
839         fix capitalization of error messages.
840
841         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property): 
842         Use g_value_get_boolean() for ellipsize_set.  (#162447, 
843         Brian Tarricone)
844
845 2004-12-30  Tor Lillqvist  <tml@iki.fi>
846
847         * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
848         only on Unix.
849
850 2004-12-28  Matthias Clasen  <mclasen@redhat.com>
851
852         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
853         submenu direction from the parent menu.
854
855         * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first): 
856         Return a boolean indicating whether an item in the submenu
857         was selected.
858         (gtk_real_menu_shell_move_current): When going in child 
859         direction, don't get stuck at completely insensitive 
860         submenus.  (#162055, Billy Biggs)       
861
862 2004-12-27  Matthias Clasen  <mclasen@redhat.com>
863
864         Make the clipboard image API more robust (#162357, 
865         Torsten Schoenfeld):
866         
867         * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
868         ref the pixbuf if it is NULL.
869
870         * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): 
871         NULL-terminate the varargs in the call to 
872         gdk_pixbuf_save_to_buffer(). 
873         (gtk_selection_data_get_pixbuf): Only use a pixbuf loader 
874         if there is data to load.
875
876 2004-12-27  Matthias Clasen  <mclasen@redhat.com>
877
878         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): 
879         Set x_root and y_root in button and motion events from 
880         extended input devices.  (#148715, Robert Ögren)
881
882         * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a 
883         typo.  (#162339, Alessio Dessi)
884
885         * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
886         properties as new since 2.4.  (#156101, Billy Biggs)
887
888         * configure.in: Add a warning about the linux-fb 
889         target.  (#155488, Zeeshan Ali)
890
891         * gtk/gtkmain.c (gtk_init_with_args): Typo fix.  (#162278,
892         Torsten Schoenfeld)
893
894 2004-12-26  Matthias Clasen  <mclasen@redhat.com>
895
896         * gtk/gtkfilechooser.c (gtk_file_chooser_set_action): 
897         Typo fix.  (#162219, Masao Mutoh)
898         (gtk_file_chooser_set_preview_widget_active): 
899         Another typo.  (#162218, Masao Mutoh)
900
901 2004-12-23  Matthias Clasen  <mclasen@redhat.com>
902
903         * gtk/gtkliststore.c (gtk_list_store_iter_children): 
904         Return TRUE if there are children.  (#162134, Iñigo Serna,
905         patch by John Finlay)
906
907         * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): 
908         Transfer state from the button to the cell view to get
909         prelighting right.  (#156327, Ricardo Veguilla)
910
911 Wed Dec 22 14:22:19 2004  Søren Sandmann  <sandmann@redhat.com>
912
913         * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
914         timeout. Written by Christian Persch.
915
916 Wed Dec 22 14:14:02 2004  Søren Sandmann  <sandmann@redhat.com>
917
918         Bug #161561
919         
920         * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
921         background for windows that get expose events. 
922
923         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
924         hack to repaint !expose windows.
925
926 Wed Dec 22 11:35:41 2004  Søren Sandmann  <sandmann@redhat.com>
927
928         Bug #147497, make menu items activate immediately when you release
929         the button.
930         
931         * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
932         items activate immediately.
933
934         * gtk/gtkmenu.c (definitely_within_item): New function
935         * gtk/gtkmenu.c (check_threshold): New function
936
937 2004-12-22  Matthias Clasen  <mclasen@redhat.com>
938
939         * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
940         null the mnemonic_menu when unsetting a mnemonic, reported
941         by Owen Taylor.
942
943 2004-12-21  Matthias Clasen  <mclasen@redhat.com>
944
945         * gtk/gtkliststore.c (generate_order): Generate the order the
946         way it is supposed to be, order[new_pos] == old_pos.
947         (gtk_list_store_reorder): Invert the order before using it.
948
949 2004-12-22  Matthias Clasen  <mclasen@redhat.com>
950
951         Fix sorting of list stores.  (#161886, Marcin Krzyzanowski)
952
953         * gtk/gtkliststore.c (generate_order): Generate the order the
954         way it is supposed to be, order[new_pos] == old_pos.
955         (gtk_list_store_reorder): Invert the order before using it.
956
957         * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
958         list store fix.
959
960 Wed Dec 22 01:24:01 2004  Jonathan Blandford  <jrb@redhat.com>
961
962         * gtk/queryimmodules.c (main): print out the version and binary
963         name in the header comment.  Problem reported by Seth Nickell.
964
965 2004-12-20  Matthias Clasen  <mclasen@redhat.com>
966
967         * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
968         root path to gtk_tree_model_rows_reordered().  (#161720,
969         Marcin Krzyzanowski)
970
971         * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't 
972         translate NULL messages.  (#161789, Morten Welinder)
973
974         * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
975         the secondary label on show_all().  (#161707, Christian Persch)
976
977 2004-12-19  Tor Lillqvist  <tml@iki.fi>
978
979         * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
980         Use wide character API when available. Use UTF-8 for filenames.
981
982         * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
983         the string's trailing zero byte in the property's length, just for
984         safety.
985
986 2004-12-18  Matthias Clasen  <mclasen@redhat.com>
987
988         * gtk/gtkfilechooserentry.c (check_completion_callback) 
989         (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
990
991         * gtk/gtkfilechooserdefault.c (edited_idle_cb) 
992         (shortcuts_drag_outside_idle_cb): Add missing 
993         GDK_THREADS_ENTER/LEAVE.  (#161604)
994         
995         * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb): 
996         (list_select_func): Don't call gtk_file_info_get_is_folder()
997         on NULL. 
998
999         * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name): 
1000         (gtk_about_dialog_init): Add missing initializations.  (#161646,
1001         Torsten Schoenfeld)
1002