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