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