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