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