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