]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-8
rework function to make page up/down behave the same as in GtkTextView.
[~andy/gtk] / ChangeLog.pre-2-8
1 2005-07-10  Kristian Rietveld  <kris@gtk.org>
2
3         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): rework
4         function to make page up/down behave the same as in GtkTextView.
5         (Fixes #101220, Owen Taylor).
6
7 2005-07-09  Kristian Rietveld  <kris@gtk.org>
8
9         Fix #305737, patch from Tomislav Jonjic. This makes the
10         gtk_tree_store_insert* family of functions emit row_has_child_toggled
11         when needed (they didn't do that before).
12
13         * gtk/gtktreestore.c (gtk_tree_store_insert): emit
14         row_has_child_toggled when needed,
15         (gtk_tree_store_insert_before): fix a possible memleak,
16         emit row_has_child_toggled when needed,
17         (gtk_tree_store_insert_after): ditto.
18
19 2005-07-09  Kristian Rietveld  <kris@gtk.org>
20
21         * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): when
22         open_all is TRUE, traverse the newly built tree to emit
23         row_expanded for the subitems. (rev 1.444, patch in #172319
24         broke this). Fixes #305582, reported by Billy Biggs.
25
26 2005-07-09  Tor Lillqvist  <tml@novell.com>
27
28         * configure.in: Look for windres on Win32. Drop build/* from
29         AC_CONFIG_FILES.
30
31         * Makefile.am: Drop build from SUBDIRS. 
32
33         * gdk/win32/rc/Makefile.am
34         * gdk/Makefile.am
35         * gtk/Makefile.am: Don't use the scripts in build/win32 to compile
36         the rc files into resource object files. (This means we lose the
37         build number increment magic, but I doubt it was that useful
38         anyway.) Instead use windres directly. To pass a normal .o file
39         produced by windres through libtool, which would want a .lo file,
40         pass it directly to the linker using a -Wl option.
41
42         * gdk/win32/rc/gdk.rc.in
43         * gtk/gtk-win32.rc.in: Replace BUILDNUMBER with 0.
44
45 2005-07-08  Kristian Rietveld  <kris@gtk.org>
46
47         Fixes #165034, reported by Jorn Baayen.
48
49         * gtk/gtkrbtree.[ch] (_gtk_rbtree_set_fixed_height): add a
50         mark_valid parameter (so we can mark all nodes as valid when we
51         are setting them to the fixed height).
52
53         * gtk/gtktreeview.c (initialized_fixed_height_mode): mark all
54         nodes as valid when setting the fixed height,
55         (do_validate_rows): update call to _set_fixed_height,
56         (gtk_tree_view_row_inserted): mark node as valid when fixed
57         height mode is enabled and a height has been set,
58         (gtk_tree_view_build_tree): if fixed height mode is enabled,
59         mark new nodes as valid in addition to setting the height.
60
61 2005-07-08  Matthias Clasen  <mclasen@redhat.com>
62
63         * configure.in: Bump version
64         
65         * === Released 2.7.2 ===
66
67         * NEWS: Updates
68
69         * gtk/gtkcelllayout.c (gtk_cell_layout_pack_start): 
70         (gtk_cell_layout_pack_end): Add a note about reusing cell
71         renderers.
72
73         * gtk/gtkdnd.c (gtk_drag_update_cursor): Pass a GdkDragAction to
74         gtk_drag_get_cursor.  (#309784, Sebastian Bacher)
75
76 2005-07-08  Tor Lillqvist  <tml@novell.com>
77
78         * gtk/gtkfilesel.c: Use g_get_host_name().
79
80 2005-07-07  Matthias Clasen  <mclasen@redhat.com>
81
82         * configure.in: Add -DHPPEX -DSHMLINK to CFLAGS for HP-UX.  
83         (#162979, Paul Cornett)
84
85         * gtk/gtkhscale.c (gtk_hscale_new_with_range): 
86         (gtk_vscale_new_with_range): Add some additional docs on 
87         precision here too.  (#309238, Steve Chaplin)
88
89         * gdk/x11/gdkmain-x11.c (generate_grab_broken_event): Don't
90         generate events on destroyed windows.
91
92         Implement Drag-and-Drop to the file list.  (#145121, Sven Neumann)
93         
94         * gtk/gtkfilechooserdefault.c (file_list_drag_data_received_cb) 
95         (file_list_drag_drop_cb, file_list_drag_motion_cb): New functions
96         to handle drag-and-drop on the file list.
97         (create_file_list): Set up drag-and-drop handlers on the file list.
98
99 2005-07-07  Matthias Clasen  <mclasen@redhat.com>
100
101         Fix #157787, reported by Jonathan Blandford: 
102         
103         * gtk/gtkfilechooserdefault.c 
104         (gtk_file_chooser_default_set_current_folder): Don't leave a 
105         "trail" behind when set_current_folder is called explicitly.
106         (gtk_file_chooser_default_update_current_folder): New function
107         that is called to update the current folder in response to
108         user actions.
109
110         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Add a boolean
111         keep_trail argument, and don't leave a "trail" behind unless
112         it is set.
113
114 2005-07-06  Manish Singh  <yosh@gimp.org>
115
116         * demos/gtk-demo/menus.c: change_orientation() should return void,
117         remove unused variable in do_menus().
118
119 2005-07-06  Tor Lillqvist  <tml@novell.com>
120
121         * gdk/win32/gdkcursor-win32.c
122         (gdk_win32_icon_to_pixbuf_libgtk_only): Don't create the GdkPixbuf
123         until we know that we have something to put in it.
124
125 2005-07-05  Matthias Clasen  <mclasen@redhat.com>
126
127         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): Add some
128         additional docs on precision.  (#309238, Steve Chaplin)
129
130         * modules/input/imime.c: Fix includes.  (#309462, Kazuki IWAMOTO)
131
132 2005-07-05  Matthias Clasen  <mclasen@redhat.com>
133
134         * doc/tools/widgets.c: Actually generate a file-button
135         image.
136
137 2005-07-06  Tor Lillqvist  <tml@novell.com>
138
139         * gdk/win32/gdkcursor-win32.c: Add comment about the current named
140         cursor implementation, and what it maybe really should do.
141         (gdk_win32_icon_to_pixbuf_libgtk_only): New function, code moved
142         here from gtk/gtkfilesystemwin32.c:extract_icon().
143         (gdk_cursor_get_image): Use
144         gdk_win32_icon_to_pixbuf_libgtk_only().
145
146         * gdk/gdk.symbols
147         * gdk/win32/gdkwin32.h: Declare gdk_win32_icon_to_pixbuf_libgtk_only().
148
149         * gtk/gtkfilesystemwin32.c (extract_icon): Use
150         gdk_win32_icon_to_pixbuf_libgtk_only().
151
152 2005-07-05  Matthias Clasen  <mclasen@redhat.com>
153
154         * gtk/gtkmenu.c (gtk_menu_grab_notify): Take window
155         groups into account.  (#309473, Diego Gonzalez)
156
157         * gtk/gtkwindow.[hc]: Add a non-exported function to
158         get the grab widget of a window group.
159
160 2005-07-05  Kristian Rietveld  <kris@gtk.org>
161
162         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): in the
163         'main' expose loop, add back the calls to _set_cell_data
164         removed earlier. (#309221, Matthias Clasen).
165
166 2005-07-05  Matthias Clasen  <mclasen@redhat.com>
167
168         * demos/gtk-demo/menus.c: Demonstrate vertical menubars.
169
170         * gtk/gtk.symbols:
171         * gtk/gtkaboutdialog.[hc]: Add a wrap-license property
172         with getter and setter.  (#165012, Christian Rose,
173         based on a patch by Christian Persch)
174
175 2005-07-05  Matthias Clasen  <mclasen@redhat.com>
176
177         * gdk/Makefile.am: Distribute the keyname-table.h header 
178         and the files that are used to construct it.  (#309421,
179         J. Ali Harlow)
180
181 2005-07-04  Matthias Clasen  <mclasen@redhat.com>
182
183         * gtk/gtkmenubar.c (gtk_menu_bar_set_pack_direction) 
184         (gtk_menu_bar_set_child_pack_direction): Queue a resize
185         on the contained menuitems as well.  
186
187         * demos/gtk-demo/appwindow.c: Break some overlong lines. 
188
189 2005-07-03  Hans Breuer  <hans@breuer.org>
190
191         * **/makefile.msc[.in] : updated
192         * gtk/gtkiconcache.c : <io.h> for open()
193         * gtk/gtkstyle.c : use G_PI instead of M_PI
194
195         * gdk/win32/gdkcursor-win32.c : implement gdk_cursor_new_from_name()
196         by mapping the lower case win32 api name to the respective cursor.
197         E.g. pass "wait" to get the IDC_WAIT cursor. Also allows to load
198         cursors from named resources in the executable.
199         (gdk_cursor_get_image) : just return NULL for now.
200
201         * gdk/win32/gdkgeometry-win32.c : implement gdk_window_move_region()
202         by delegation to ScollWindowEx(), untested.
203
204         * gdk/win32/gdkwindow-win32.c : stub for gdk_window_set_urgency_hint()
205
206 2005-07-03  Matthias Clasen  <mclasen@redhat.com>
207
208         * gtk/gtkimagemenuitem.c: Hmm, when committing my vertical
209         menubar patch, I forgot the GtkImageMenuItem changes. And I
210         managed to do 2 releases without noticing that...
211
212         * gtk/gtksettings.c (gtk_settings_class_init): Correct the 
213         blurb for the icon-sizes setting. String change.  
214         (#309355, Benjamin Berg)
215
216 2005-07-01  Matthias Clasen  <mclasen@redhat.com>
217
218         * configure.in: Bump version.
219
220         * === Released 2.7.1 ===
221         
222         * NEWS: Updates
223
224 2005-07-01  Matthias Clasen  <mclasen@redhat.com>
225
226         * gtk/gtkfilesel.c (cmpl_init_state): Prevent an infinite
227         loop when G_FILENAME_ENCODING is invalid.  (#309280, Padraig Brady)
228
229 Thu Jun 30 14:17:24 2005  Manish Singh  <yosh@gimp.org>
230
231         * gdk/x11/gdkprivate-x11.h: declare _gdk_xgrab_check_button_event.
232
233         * gtk/gtkbutton.c: fix signature of gtk_button_grab_broken.
234
235 2005-06-30  Matthias Clasen  <mclasen@redhat.com>
236
237         * gdk/x11/gdkvisual-x11.c (gdk_visual_decompose_mask): Avoid
238         infinite loop if a mask is zero.  (#309222, David Saxton)
239
240         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child): 
241         Clarify the code, gcc 4 complains about predecrement in MAX().
242
243         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't
244         prematurely unregister callbacks. 
245
246         * NEWS: Updates
247
248 2005-06-29  Matthias Clasen  <mclasen@redhat.com>
249
250         * gtk/gtkbutton.c (gtk_button_grab_broken): Handle broken
251         grabs.
252
253         * gtk/gtkrange.c (gtk_range_grab_broken): Handle broken 
254         grabs.
255
256         * gdk/gdkevents.h: Add a boolean to specify wether the broken
257         grab was implicit.
258
259         * gdk/x11/gdkdisplay-x11.c (gdk_display_pointer_is_grabbed): 
260         As the documentation states, don't return TRUE for
261         implicit grabs.
262
263         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
264         a boolean field to store wether a pointer grab is implicit.
265
266         * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_button_event): 
267         Track implicit grabs.
268
269         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
270         _gdk_xgrab_check_button_event for button events.
271
272 2005-06-28  Matthias Clasen  <mclasen@redhat.com>
273
274         * gtk/gtkiconview.c (gtk_icon_view_calculate_item_size2): 
275         Make sure that cell boxes are always completely inside
276         the item area. 
277
278 2005-06-27  Matthias Clasen  <mclasen@redhat.com>
279
280         * demos/gtk-demo/main.c (create_tree): Make the list of
281         demos scrollable.
282
283         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
284         Fix positioning at the end of the line for lines ending
285         in invisible characters.
286         (gtk_text_layout_get_line_display): Set display->layout 
287         to a PangoLayout, even for totally invisible lines. 
288
289         * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Ignore
290         GrabBroken events which are caused by overgrabbing inside
291         the application; menus rely on these for their operation.
292         
293         * gdk/gdkevents.h (struct _GdkEventGrabBroken): Add a 
294         grab_window field.
295
296         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Set
297         grab_window to NULL when generating GrabBroken events for
298         WM_KILLFOCUS messages.
299
300         * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_unmap) 
301         (_gdk_xgrab_check_destroy): Set grab_window to NULL when
302         generating GrabBroken events when the grab window becomes
303         unviewable or is destroyed.
304
305         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab): 
306         Generate GrabBroken events when overriding a grab inside
307         the application. In this case, set grab_window to the new
308         grab_window.
309         
310 2005-06-27  Matthias Clasen  <mclasen@redhat.com>
311
312         * gtk/gtkbutton.c (gtk_real_button_activate): Continue
313         to activate even if we can't grab the keyboard.
314         (gtk_button_finish_activate): Only ungrab when we have
315         a keyboard grab.  (#172998, William Jon McCann)
316
317 2005-06-27  Matthias Clasen  <mclasen@redhat.com>
318
319         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): 
320         Avoid a segfault. (#309054)
321
322 2005-06-27  Matthias Clasen  <mclasen@redhat.com>
323
324         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
325         fields for grab timestamps.
326
327         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab): 
328         Store grab timestamps when grabbing.
329         
330         * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard_ungrab) 
331         (gdk_display_pointer_ungrab): Don't unset the grab_window
332         if the timestamps indicate that the ungrab will fails.
333
334         * gtk/gtkmenu.c (gtk_menu_grab_notify): Cancel menus when 
335         they are grab-shadowed by something thats not a 
336         submenu.  (#145416, Euan MacGregor)
337
338 2005-06-27  Owen Taylor  <otaylor@redhat.com>
339
340         * gtk/gtk[hv]ruler.c (gtk_[hv]ruler_draw_ticks): 
341         Fix indentation.
342
343 2005-06-27  Kjartan Maraas  <kmaraas@gnome.org>
344
345         * gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
346         * gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
347         Closes bug #308953.
348
349 2005-06-27  Matthias Clasen  <mclasen@redhat.com>
350
351         * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
352         GMappedFile.
353
354         * configure.in: Require GLib 2.7.1
355
356 2005-06-26  Matthias Clasen  <mclasen@redhat.com>
357
358         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): 
359         Unregister XIM callbacks here.  (#309054)
360
361         * modules/input/gtkimcontextxim.h: Small cleanup.
362
363         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
364         scroll offset when drawing the box.  (#308834, Tom von 
365         Schwerdtner)
366
367 2005-06-26  Tor Lillqvist  <tml@novell.com>
368
369         * gdk/Makefile.am
370         * gtk/Makefile.am: Current GNU tools do understand the PRIVATE
371         keyword, so no need to remove those entries from the import
372         library. libtool installs the .dll.a import library itself, so no
373         need to do it here. Install the .def file.
374
375 Sun Jun 26 00:04:36 2005  Manish Singh  <yosh@gimp.org>
376
377         * gdk/gdkevents.c (gdk_event_get_time, gdk_event_get_state): add
378         GDK_GRAB_BROKEN to the switch cases.
379
380         * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): remove unused
381         variables.
382
383         * gtk/gtkpaned.c (gtk_paned_grab_broken): return TRUE.
384
385 2005-06-26  Matthias Clasen  <mclasen@redhat.com>
386
387         * gtk/gtktreeview.c (gtk_tree_view_grab_broken): Stop column
388         header drag operations if the grab is broken.
389
390         * gtk/gtkhsv.c (gtk_hsv_grab_broken): Stop the drag if
391         the grab is broken.
392
393         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't do 
394         explicitly ungrab pointer and keyboard. We're unmapping
395         the grab window anyway. 
396         (gtk_combo_box_popup): Handle grab failures.
397
398 2005-06-25  Matthias Clasen  <mclasen@redhat.com>
399
400         * gdk/x11/gdkmain-x11.c (gdk_keyboard_grab, gdk_pointer_grab):
401         Don't emit grab-broken for overgrabbing, until we figure
402         out how to do that without breaking the menu code.
403
404 2005-06-25  Matthias Clasen  <mclasen@redhat.com>
405
406         Add a GrabBroken event to GDK, and a grab-broken-event
407         signal to GtkWidget.  (#107320, Simon Cooke, initial patch 
408         by John Ehresman)
409
410         * gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
411         define a GdkEventGrabBroken event struct.
412
413         * gdk/win32/gdkevents-win32.c (gdk_event_translate): 
414         Generate GrabBroken events in response to WM_KILLFOCUS.
415
416         * gdk/x11/gdkmain-x11.c: Generate GrabBroken events
417         when a grab is broken by the window becoming unviewable,
418         or by another grab from the same client.
419         
420         * gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.
421
422         * gtk/gtkwidget.c (gtk_widget_event_internal): Translate
423         GrabBroken events into grab_broken_event signals.
424
425         * gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
426         events.
427
428         * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
429         the menu when the grab is broken.
430
431         * gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop 
432         the color picker if the grab is broken.
433
434         * gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
435         the grab is broken.
436
437 2005-06-25  Matthias Clasen  <mclasen@redhat.com>
438
439         Add some new stock items.  (#166480, Kristof Vansant)
440         
441         * gtk/stock-icons/stock_fullscreen_16.png: 
442         * gtk/stock-icons/stock_fullscreen_24.png: 
443         * gtk/stock-icons/stock_leave_fullscreen_16.png: 
444         * gtk/stock-icons/stock_leave_fullscreen_24.png: 
445         * gtk/stock-icons/stock_info_16.png: 
446         * gtk/stock-icons/stock_info_24.png: New icons.
447
448         * gtk/stock-icons/Makefile.am: Add new icons.
449
450         * gtk/gtkstock.h: Define names for the new icons.
451
452         * gtk/gtkstock.c (builtin_items): Register new stock items.
453         
454         * gtk/gtkiconfactory.c (get_default_icons): Register new 
455         stock icons.
456
457 2005-06-24  Owen Taylor  <otaylor@redhat.com>
458
459         * gdk/gdkrgb.c (gdk_rgb_select_conv): Fix up selection of
460         conversion functions for MSB machines: convert_0888[_br]
461         now work on bytes so are endian independent. 
462         (Reported by David Zeuthen)
463
464 2005-06-24  Matthias Clasen  <mclasen@redhat.com>
465
466         * gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
467         jump to the next line if we are at the end of the line.  
468         (gtk_text_view_move_cursor_internal): Make movement by
469         paragraphs up/down symmetric.  (#307055, Behnam Esfahbod)
470
471 2005-06-23  Tor Lillqvist  <tml@novell.com>
472
473         Improve and simplify line segment rendering on Win32, especially
474         the implementation of GDK_CAP_NOT_LAST, and dashed lines. Fixes
475         bugs #306396 and #308413.
476
477         * gdk/win32/gdkprivate-win32.h (GdkGCWin32): Save the GdkGC's
478         line_style, cap_style and join_style as such in the
479         GdkGCWin32. Don't need to keep the pen_double_dash flag, we can
480         check the line_style.
481
482         * gdk/win32/gdkgc-win32.c (fixup_pen): New internal function. Sets
483         up the GDI pen type, style, end cap and join attributes to use
484         based on the pen width, GDK line style, end cap style, and join
485         style.
486
487         For a narrow (zero-width) GDK pen with the GDK_CAP_NOT_LAST end
488         cap style, which typically are used for XOR drawing where it is
489         essential that the last pixel is not drawn, use a GDI cosmetic
490         pen. Only for a cosmetic pen does GDI not draw the last pixel. I
491         deduced this by experimetation, the documentation is rather vague.
492
493         For other GDK pens use a geometric GDI pen. If the width is 0 or 1
494         and the GDK end cap style is GDK_CAP_BUTT, and the line style is
495         GDK_LINE_SOLID, use PS_ENDCAP_ROUND. This ensures that also
496         single-pixel length lines are drawn. (For sngle-pixel width lines
497         roundness as such is of course irrelevant.) For dashed lines, use
498         PS_ENDCAP_FLAT.
499
500         For wide lines use PS_ENDCAP_FLAT, _ROUND or _SQUARE,
501         respectively, for GDK_CAP_BUTT, GDK_CAP_ROUND and GDK_CAP_PROJECTING.
502
503         For one pixel on-off dashed lines, use PS_ALTERNATE, it seems to
504         work better than PS_USERSTYLE. For other dashed lines, use
505         PS_USERSTYLE and the dashes as set by the user (or the default
506         four-pixel on-off style).
507
508         (gdk_win32_gc_values_to_win32values, gdk_win32_gc_set_dashes):
509         Call fixup_pen() to do the pen settings after modifying some of
510         the GDK GC attributes that affect pens.
511
512         * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
513         render_line_vertical, draw_segments): Check GdkGCWin32::line_style
514         instead of the the removed pen_double_dash member. Don't use
515         PATCOPY unconditionally in the PatBlt() call, use a raster op
516         code that depends on the GC function in use.
517
518         (draw_rectangle, draw_segments, draw_lines): Be more careful in
519         deciding when to do the manual dash rendering.
520
521         (draw_segments): Don't do any manual "last point" drawing at
522         all. The above changes takes care of narrow line segments being
523         drawn correctly in most cases, at least on NT-based Windows.
524
525 2005-06-23  Matthias Clasen  <mclasen@redhat.com>
526
527         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): 
528         Fix an error in the cache timeout logic.  (#166601, Morten
529         Welinder)
530
531         * gtk/gtktreeview.c (gtk_tree_view_key_press): Change the
532         keynav for header reordering and resizing to Alt-arrows and
533         Shift-Alt-arrows, following a proposal by the keynav 
534         authority. (#308666, Calum Benson)
535
536         * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Remove
537         a leftover debugging envvar.  
538
539 2005-06-23  Owen Taylor  <otaylor@redhat.com>
540
541         * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix the
542         big endian case for 3-channel source. (Reported by
543         David Zeuthen)
544
545 2005-06-23  Matthias Clasen  <mclasen@redhat.com>
546
547         * gtk/gtkbutton.c (gtk_button_construct_child): Don't
548         trigger warnings if there are extra references to the
549         hbox.  (#308677, Dan Winship)
550
551         * gtk/gtkfilesystemunix.c (bookmark_list_write): Use
552         g_file_set_contents().  (#308722, Morten Welinder)
553
554 2005-06-22  Matthias Clasen  <mclasen@redhat.com>
555
556         * gdk/x11/gdkdnd-x11.c (xdnd_finished_filter): Set the
557         time field in the event.  (#308573, Morten Welinder)
558
559         * gtk/gtkfilesystemunix.c: Remove gratitious differences
560         between the stable branch and HEAD, which sneaked in with
561         the bookmark renaming.  
562
563 2005-06-22  Kjartan Maraas  <kmaraas@gnome.org>
564
565         * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
566         Closes bug #308581.
567
568 2005-06-21  Matthias Clasen  <mclasen@redhat.com>
569
570         * gtk/gtkarrow.c:
571         * gtk/gtkimage.c:
572         * gtk/gtklabel.c:
573         * gtk/gtkpixmap.c: Modify all of the GtkMisc widgets to round down
574         on centering calculations to match the behaviour of other parts
575         of GTK+. (#307419, Ryan Lortie)
576
577 2005-06-21  Matthias Clasen  <mclasen@redhat.com>
578
579         * gtk/gtkdnd.c (gtk_drag_source_set): Connect to 
580         button-release-event as well, to handle touchscreen 
581         scenarios better.  (#171490, Markku Vire)
582
583         * gtk/*.h: Trivial cleanups. (#169647, #303455, 
584         Fabricio Barros Cabral, Benoit Carpentier)
585
586         * gdk/gdk.symbols: 
587         * gdk/gdkwindow.h: 
588         * gdk/x11/gdkgeometry-x11.c (gdk_window_move_region): New
589         function which can be used to implement scrolling in 
590         non-window widgets.  (#135165, Søren Sandmann)
591
592 2005-06-20  Matthias Clasen  <mclasen@redhat.com>
593
594         * gtk/gtkiconcache.c: Handle MAP_FAILED.  (#308449, Georg
595         Schwarz)
596
597 2005-06-20  Matthias Clasen  <mclasen@redhat.com>
598
599         * configure.in: Bump version number.
600
601         * === Released 2.7.0 ===
602
603 2005-06-20  Matthias Clasen  <mclasen@redhat.com>
604
605         * gtk/gtk.symbols:
606         * gtk/gtkwindow.h:
607         * gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
608         gtk_window_present which takes a timestamp.  (#166379, Elijah Newren)
609
610 2005-06-19  Matthias Clasen  <mclasen@redhat.com>
611         
612         * gtk/gtk.symbols: Add a forgotten symbol
613
614         * NEWS: Updates
615
616 2005-06-19  Kristian Rietveld  <kris@gtk.org>
617
618         * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): added a
619         check which avoids processing updates on bin_window and scrolling
620         if the node is already visible. (#170600, Billy Biggs).
621
622 2005-06-19  Kristian Rietveld  <kris@gtk.org>
623
624         * gtk/gtktreeview.c (validate_visible_area): only keep the
625         row at the same position if the full row is visible. (#304623,
626         Jorn Baayen).
627
628 2005-06-19  Kristian Rietveld  <kris@gtk.org>
629
630         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
631         if treeview's height is smaller than the current page_size (just
632         like we do elsewhere).
633
634 2005-06-19  Kristian Rietveld  <kris@gtk.org>
635
636         Make mousewheel scrolling possible in typeahead mode, suggestion
637         from Reinout van Schouwen (#307898).
638
639         * gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
640         connect treeview search window to scroll_event signal,
641         (gtk_tree_view_search_scroll_event): implement.
642
643 2005-06-19  Kristian Rietveld  <kris@gtk.org>
644
645         * gtk/gtktreeview.c (gtk_tree_view_search_button_press_event): pass
646         the event on to treeview, so it has a change of selecting a row, etc.
647         (#169677, Kirk Bridger).
648
649 2005-06-19  Kristian Rietveld  <kris@gtk.org>
650
651         This commit includes a fix for #169463, Stefan Kost.
652
653         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
654         when cell_area is set, return cell_area width/height as width/height,
655         so the focus rectangle will be drawn correctly.
656
657         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get
658         of focus-line-width property,
659         (validate_row): take focus_line_width into account.
660
661         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
662         also take focus_line_width into account when calculating the cell_area
663         y and height (before, we only took it into account when calculating
664         x and width).
665
666 2005-06-19  Matthias Clasen  <mclasen@redhat.com>
667
668         * gtk/gtk.symbols:
669         * gtk/gtksizegroup.[hc]: Add an ignore-hidden property
670         with getter and setter.  (#171612, Christian Neumair)
671
672 2005-06-18  Matthias Clasen  <mclasen@redhat.com>
673
674         * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Make this 
675         work for inserting before/after an existing menuitem or
676         toolitem.  (#155946, Christian Persch)
677
678         * tests/testmerge.c (delayed_toggle_dynamic): Test the 
679         "insert after" functionality of gtk_ui_manager_add_ui.
680
681         * gtk/gtkuimanager.c: Allow to construct menu tool buttons.
682         (#300678, Sven Neumann)
683         
684         * demos/gtk-demo/appwindow.c: Demonstrate menu tool buttons
685         constructed with GtkUIManager.
686
687         * gtk/gtk.symbols: 
688         * gtk/gtkimage.h: 
689         * gtk/gtkimage.c (gtk_image_clear): Make this function
690         public.  (#64792, Havoc Pennington)
691
692 2005-06-18  Kristian Rietveld  <kris@gtk.org>
693
694         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): undo merging
695         of the separate loop setting cell data with cell drawing loop
696         (introduced in revision 1.280), since this breaks focus handling
697         wrt special cells.
698
699 Sat Jun 18 04:22:51 2005  Manish Singh  <yosh@gimp.org>
700
701         * gdk/gdkcursor.h: remove GDK_CURSOR and GDK_IS_CURSOR, instance
702         checks don't work on boxed types.
703
704         * gdk/x11/gdkcursor-x11.c: 
705         * gdk/gdkcursor.c: make return_if_fail checks != NULL instead of
706         GDK_IS_CURSOR.
707         
708 Sat Jun 18 04:21:58 2005  Manish Singh  <yosh@gimp.org>
709
710         * gtk/gtktreeview.c (do_presize_handler): remove unused variable
711         height_old.
712
713 2005-06-18  Matthias Clasen  <mclasen@redhat.com>
714
715         * gtk/gtkcellrenderertoggle.c:
716         * gtk/gtktextview.c:
717         * gtk/gtktreeview.c: Typo fixes in comments.
718
719         * gtk/gtkpaned.c (gtk_paned_add): Barf if more than
720         2 children are added.  (#308111, Morten Welinder)
721
722         * gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
723         1-based.  (#163842, Pierre Ossman)
724
725 2005-06-17  Kristian Rietveld  <kris@gtk.org>
726
727         Fix #160281, testcase from Peter Bloomfield.
728
729         * gtk/gtktreeview.c (do_presize_handler): always size request
730         and update adjustments in fixed height mode,
731         (gtk_tree_view_build_tree): if a fixed height is set, set this
732         height on newly added nodes.
733
734 2005-06-17  Tor Lillqvist  <tml@novell.com>
735
736         * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
737         and suggested_action fields in the GdkDragContext to
738         GDK_ACTION_COPY. Otherwise apps that check the suggested_action
739         field, like eog, won't accept dropped files.
740
741 2005-06-17  Matthias Clasen  <mclasen@redhat.com>
742
743         Support the ICCCM urgency hint.  (#61858, Havoc Pennington)
744         
745         * gtk/gtk.symbols: 
746         * gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property
747         with getter and setter.
748
749         * gdk/gdk.symbols: 
750         * gdk/gdkwindow.h: 
751         * gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint): 
752         Add a setter for the urgency hint.
753
754         * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store
755         urgency hint here.
756
757         * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency
758         hint in the WM_HINTS property when appropriate.
759
760 2005-06-17  Matthias Clasen  <mclasen@redhat.com>
761
762         * gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
763
764         * gdk/x11/gdkcursor-x11.c: 
765         * gdk/gdkcursor.c: Improve some return_if_fail checks,
766         and add the missing non-Xcursor fallback for 
767         _gdk_x11_cursor_update_theme(), noticed by Jeroen 
768         Zwartepoorte.
769
770         * gtk/gtkbutton.c (gtk_button_class_init): Document
771         several button signals as not useful.
772
773         * gtk/gtkentrycompletion.c (gtk_entry_completion_complete): 
774         Resize the popup if necessary.  (#308076, Vincent Noel)
775
776         * gtk/gtkwindow.c (gtk_window_real_set_focus): Queue a
777         draw on the old and new focus widgets, if their defaultness
778         changes.  (#305607, Billy Biggs)
779
780 2005-06-17  Kristian Rietveld  <kris@gtk.org>
781
782         * gtk/gtktreeview.c (validate_visible_area): make sure the row
783         above 'above_path' is always in a validated state, so it does
784         not mess up scrolling. (#303319, testcase from Billy Biggs).
785
786 2005-06-17  Matthias Clasen  <mclasen@redhat.com>
787
788         * gdk/x11/gdkprivate-x11.h: 
789         * gdk/x11/gdkcursor-x11.c: Handle cursor theme changes
790         for cached cursors which are not associated with a window
791         at the time of the theme change, by storing a serial
792         number in each cursor, and updating the theme_serial 
793         counter whenever the cursor theme changes.
794         
795         * gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme): 
796         Private function to update a cursor to the current
797         cursor theme if necessary.
798
799         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
800         * gdk/x11/gdkwindow-x11.c (gdk_window_set_cursor): Call
801         _gdk_x11_cursor_update_theme() here.
802
803 2005-06-17  Owen Taylor  <otaylor@redhat.com>
804
805         * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
806         #if G_BYTE_ORDER == GDK_LSB_FIRST.
807
808 2005-06-17  Kristian Rietveld  <kris@gtk.org>
809
810         * gtk/gtktreeview.c (validate_visible_area): don't try to update
811         the top_row rowref ourselves here, but just have _dy_to_top_row()
812         do it,
813         (gtk_tree_view_scroll_to_cell): handle scrolling via
814         validate_visible_area() if the treeview is not visible or needs
815         reallocation. (#165246, Nickolay V. Shmyrev).
816
817 2005-06-17  Kristian Rietveld  <kris@gtk.org>
818
819         Fixes #307914 (Alexander Larsson), fixing some breakage caused
820         by my previous commit.
821
822         * gtk/gtktreeview.c (validate_visible_area): force dy to be zero
823         when it fits on a single page,
824         (scroll_sync_handler): same here.
825
826 Thu Jun 16 15:33:42 2005  Manish Singh  <yosh@gimp.org>
827
828         * gdk/x11/gdkcursor-x11.c (update_cursor): remove unused variable.
829
830         * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_get_cursor): use
831         g_return_val_if_fail.
832
833         * gtk/gtkdnd.c (gtk_drag_get_cursor): initialize hot_x and hot_y
834         for all cases.
835
836         * gtk/gtkfilechooserdefault.c (button_new): gtk_button_set_image
837         takes a GtkWidget, not a GtkImage.
838
839 2005-06-16  Matthias Clasen  <mclasen@redhat.com>
840
841         * gtk/gtkfilechooserdefault.c (button_new): Simplify
842         the code and respect the show-button-images setting.
843         (#307941, Vincent Noel)
844
845         * gtk/gtkdnd.c: Update the RGBA cursor if an
846         icon is set after the cursor has been constructed.
847         Also handle repeated setting of icons correctly.
848
849 2005-06-16  Matthias Clasen  <mclasen@redhat.com>
850
851         * gtk/gtkbutton.c (gtk_button_set_image): Add some more
852         docs.  (#307818, Christian Persch)
853
854 2005-06-15  Matthias Clasen  <mclasen@redhat.com>
855
856         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
857         Initialize all fields of the expose event.  (#151693,
858         Jim Evins)
859
860 2005-06-15  Matthias Clasen  <mclasen@redhat.com>
861
862         * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
863         red and blue in place.
864
865         * gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
866         formatting, pointed out by Kjartan Maraas.
867
868         * gtk/gtksettings.c: Add two new settings, 
869         gtk-cursor-theme-name and gtk-cursor-theme-size to
870         control the cursor theme.
871
872         * gdk/x11/gdkevents-x11.c: Add two new X settings,
873         Gtk/CursorThemeName and Gtk/CursorThemeSize, and map
874         these to the gtk settings.
875
876         * tests/testgtk.c (create_cursors): Add a cursor theme
877         testcase.
878
879         * gdk/x11/gdkwindow-x11.[hc]: Keep a reference to the 
880         GdkCursor and add a private getter for it, so that we can 
881         update the cursor when the cursor theme changes.
882         
883         * gdk/gdk.symbols: 
884         * gdk/x11/gdkx.h: 
885         * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): 
886         New function to change the cursor theme.
887
888         * gdk/x11/gdkwindow-x11.c: Remove a lot of pointless
889         g_return_if_fail() non-NULL checks.
890
891 2005-06-15  Matthias Clasen  <mclasen@redhat.com>
892
893         * gdk/abicheck.sh: Use uniq to filter out duplicates.
894         * gdk/gdk.symbols: Fix a define.
895
896 2005-06-14  Matthias Clasen  <mclasen@redhat.com>
897
898         * gtk/gtkwindow.c (gtk_window_parse_geometry):
899         Fix up the example.  (#307699, Michal Suchanek)
900
901 2005-06-14  Matthias Clasen  <mclasen@redhat.com>
902
903         * gtk/gtkcalendar.c: Update num_marked_dates as we
904         used to do.  (#307689, Thorsten Schoenfeld)
905  
906 2005-06-14  Federico Mena Quintero  <federico@ximian.com>
907
908         Merged from gtk-2-6:
909
910         Fix #302087:
911
912         * gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
913         "selection-changed" and do the normal housekeeping even if we are
914         in SAVE mode and there is nothing selected.  We didn't emit that
915         signal if we were in SAVE mode and unselect_all() got called.
916         (gtk_file_chooser_default_unselect_all): Call
917         pending_select_paths_free() so that we cancel any asynchronous
918         selections.
919         (gtk_file_chooser_default_set_current_name): Likewise.
920
921 2005-06-14  Federico Mena Quintero  <federico@ximian.com>
922
923         Merged from gtk-2-6:
924
925         Fixes #307640:
926
927         * gtk/gtkfilechooserdefault.c
928         (gtk_file_chooser_default_should_respond): Oops, I broke SAVE
929         mode.  If the parent path is a folder, only create a subfolder if
930         we are in CREATE_FOLDER mode; if we are in SAVE mode, just return
931         and respond.  Also, pick up the case where the user types
932         "dirname/" instead of "dirname".
933         (check_save_entry): Make the return type void.  Add some return
934         parameters so that we can do more thorough checking.
935         (gtk_file_chooser_default_get_paths): If the file part is empty
936         and we are in SAVE mode, return an empty selection.
937
938 2005-06-15  Kristian Rietveld  <kris@gtk.org>
939
940         Patch for #163214 (reported by Tommi Komulainen) and fixes some
941         other scrolling/validation related bugs along the why.
942
943         * gtk/gtktreeview.c (gtk_tree_view_size_request): run
944         do_validate_rows once and don't queue a size request there,
945         (gtk_tree_view_size_allocate): don't update vadj value without
946         reason, sync top_row/dy after the window sizes and adjustments
947         are in sync again,
948         (validate_visible_area): always update dy when scrolling,
949         manually set top_row here after changing the vadj (don't depend
950         on _adjustment_changed and top_row/dy sync to do this), since we
951         now always set top_row here correctly, we can always free
952         scroll_to_path at the end which avoids infinite expose loops,
953         (do_validate_rows): add queue_resize boolean, remove top_row/dy
954         sync here, we cannot do it safely at this place since the
955         window sizes and adjustments are out of sync,
956         (validate_rows), (validate_rows_handler): update call to
957         do_validate_rows().
958
959 2005-06-14  Matthias Clasen  <mclasen@redhat.com>
960
961         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_name): Add a 
962         stub for the no-Xcursor case. (noticed by Luis Villa)
963
964         Use named cursors for the DND cursors, the names are "dnd-none",
965         "dnd-copy", "dnd-link", "dnd-move" and "dnd-ask". Also use an RGBA 
966         cursor instead of cursor+window when possible. This saves 
967         roundtrips during the drag operation, and makes translucent icons 
968         possible.
969         
970         * gtk/gtkdndcursors.h: New file, containing inlined pixbufs
971         for the default dnd cursors.
972
973         * gtk/gtkdnd.c (struct _GtkDragSourceInfo): Store the cursors
974         used during the drag here, also store the icon pixbuf here. 
975
976         * gtk/gtkdnd.c (drag_cursors): Store the cursor names here. Also
977         switch the default cursors from xbm to inlined pixbufs. 
978
979         * gtk/gtkdnd.c (gtk_drag_get_cursor): This function now takes the
980         GtkDragSourceInfo as well, since it has to composite the 
981         drag-specific cursors. The cursors combined from the image of
982         the themed cursor and the icon_pixbuf stored in the info.
983
984         * gtk/gtkdnd.c (gtk_drag_begin_internal): Don't set the default
985         icon if there is an icon_pixbuf, which will be composited into
986         the cursor later.
987
988         * gtk/gtkdnd.c (set_icon_stock_pixbuf): If appropriate, store
989         the pixbuf in the info struct for later compositing into the
990         cursor instead of creating an icon window.
991         
992         * gtk/gtkdnd.c (gtk_drag_drop_finished): If we used an
993         RGBA cursor for the drag, and need to display the cancel
994         animation, construct the icon window here.
995
996         * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Unref the 
997         drag-specific cursors and the icon_pixbuf when done with
998         the drag.
999
1000 2005-06-14  Matthias Clasen  <mclasen@redhat.com>
1001
1002         * gtk/gtkcolorsel.c (make_picker_cursor): Use a named cursor
1003         with the name "color-picker", when available.
1004
1005         * gdk/gdk.symbols: 
1006         * gdk/gdkcursor.h: 
1007         * gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image) 
1008         (gdk_cursor_new_from_name): New functions to construct named
1009         cursors and to get the image used for a cursor.  
1010
1011 2005-06-13  Matthias Clasen  <mclasen@redhat.com>
1012
1013         * gtk/gtkpathbar.[hc]: Rework the way in which rerooting of the
1014         path bar is done, implementing the following principles:
1015         (#137289, patch by Benjamin Otte)
1016         
1017         1. Re-root only if $HOME is an ancestor of the current path.
1018
1019         2. When re-rooting, make sure the Left arrow appears in the path 
1020         bar, so that you can navigate up from $HOME to /.  In that case, 
1021         make sure the Right arrow doesn't appear if the sub-hierarchy from 
1022         $HOME to the cwd fits in the window.
1023
1024         3. Make sure that hitting Alt-Up takes you always one folder up, 
1025         even when the path bar is re-rooted.
1026
1027         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
1028         Try harder not to modify readonly strings. (#307541, Torsten Schoenfeld)
1029
1030         * gtk/gtkfilechooserbutton.c (model_update_current_folder): 
1031         Free the data of the row before overwriting it.  (#307490,
1032         Kjartan Maraas)
1033
1034 2005-06-13  Kjartan Maraas  <kmaraas@gnome.org>
1035
1036         * gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
1037         leak the cairo context. Closes bug #307426.
1038
1039 2005-06-13  Matthias Clasen  <mclasen@redhat.com>
1040
1041         Make invisible text work a bit better (#66194, patch by
1042         Jeroen Zwartepoorte)
1043         
1044         * gtk/gtk.symbols:
1045         * gtk/gtktextiter.[hc]: Add function to move by
1046         visible lines.
1047
1048         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): 
1049         Skip invisible text when moving by paragraphs.
1050
1051         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually): 
1052         Skip invisible lines here too.
1053
1054 2005-06-12  Matthias Clasen  <mclasen@redhat.com>
1055
1056         * gtk/gtkselection.c (gtk_target_list_add_image_targets): 
1057         Don't leak the format names.  (#307190, Morten Welinder)
1058
1059 2005-06-12  Kjartan Maraas  <kmaraas@gnome.org>
1060
1061         * gdk/x11/gdkasync.c: (send_event_handler): Plug
1062         a leak. Closes bug #307281.
1063
1064 2005-06-12  Matthias Clasen  <mclasen@redhat.com>
1065
1066         * gtk/gtkcalendar.c (calendar_paint_header): 
1067         (gtk_calendar_size_request): Allow localization of the
1068         format in which the year is displayed.  (#135451, Paisa 
1069         Seeluangsawat)
1070
1071         * gdk/*.h: Cleanup.  (#169648, Fabricio Barros Cabral)
1072
1073         * gdk/gdkcairo.c: Small doc additions.
1074
1075         * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row): 
1076         Check start_button_mask before starting a drag.  (#149058, 
1077         Andreas Volz)
1078
1079         * gtk/gtkfilesystemunix.c: Support .hidden files.  (#129170,
1080         Sayamindu Dasgupta, patch by Jan Arne Petersen)
1081
1082 2005-06-11  Matthias Clasen  <mclasen@redhat.com>
1083
1084         * NEWS: Updates.
1085
1086         * gtk/gtkwidget.c (gtk_widget_set_app_paintable): More docs
1087         provided by Owen Taylor.
1088
1089         * gtk/gtk.symbols: 
1090         * gtk/gtkiconview.h: 
1091         * gtk/gtkiconview.c (gtk_icon_view_get_visible_range): 
1092         Add a function to determine what parts of the model are
1093         visible.  (#306726, Jonathan Blandford)
1094
1095         * gtk/gtkfilesystemunix.c (create_file_info): Treat backup
1096         files the same way as hidden files, to be closer to what
1097         Nautilus does.  (#136196, Sean Middleditch)
1098
1099 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
1100
1101         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
1102         Don't modify strings returned from gettext().
1103
1104 Fri Jun 10 19:06:03 2005  Manish Singh  <yosh@gimp.org>
1105
1106         * gtk/gtktextdisplay.c (render_para): don't use deprecated
1107         gdk_gc_unref function.
1108
1109 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
1110
1111         Allow setting paragraph background.  (#81045, Gustavo
1112         Carneiro, patch by Jeroen Zwartepoorte)
1113         
1114         * gtk/gtktextlayout.c (set_para_values): Propagate 
1115         pg_bg_color to the display struct.
1116         (gtk_text_layout_free_line_display): Free it here.
1117
1118         * gtk/gtktextdisplay.c (render_para): If pg_bg_color
1119         is set, draw a rectangle in that color behind
1120         the paragraph.
1121
1122         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add 
1123         paragraph-background, paragraph-background-gdk and
1124         paragraph-background-set properties.
1125         (set_pg_bg_color): A setter for paragraph-background.
1126
1127         * gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
1128         pg_bg_color.
1129
1130         * gtk/gtktexttag.h (struct _GtkTextAttributes): Add
1131         pg_bg_color.
1132         (struct _GtkTextTag): Add pg_bg_color_set.
1133
1134 2005-06-10  Kjartan Maraas  <kmaraas@gnome.org>
1135
1136         * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
1137         cairo surface when done with it. Plugs a fairly large leak in
1138         some cases.
1139         ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
1140         826 blocks are definitely lost in loss record 25239 of 25250
1141         Like this from nautilus.
1142
1143 2005-06-10  Michael Natterer  <mitch@imendio.com>
1144
1145         * gtk/gtk.symbols
1146         * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
1147         to get an action's accel_closure (Fixes #141750 and #148106).
1148
1149 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
1150
1151         * gdk/gen-keyname-table.pl: Generate N_() calls for
1152         translatable key names.
1153
1154         * gdk/keynames.txt: Mark some key names as translatable.
1155         
1156         * gdk/keyname-table.h: Regenerated.
1157
1158         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
1159         some context to the msg ids for keyboard modifiers and
1160         key names.
1161         (_gtk_accel_label_class_get_accelerator_label): Try to
1162         translate key names.  (#300224, Christian Rose)
1163
1164 2005-06-10  Federico Mena Quintero  <federico@ximian.com>
1165
1166         Merged from gtk-2-6:
1167
1168         Fixes #162358:
1169
1170         * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
1171         immediately if we are in CREATE_FOLDER mode, so that we can fill
1172         the entry with the newly-selected folder.
1173         (gtk_file_chooser_default_set_property): Warn against turning on
1174         multiple selection for CREATE_FOLDER mode, or about setting that
1175         action while multiple selection is on.
1176         (update_chooser_entry): Change the entry's contents as well if we
1177         are in CREATE_FOLDER mode.  If nothing is selected, clear the
1178         chooser entry.
1179         (trap_activate_cb): Don't trap enter/space if modifiers are
1180         pressed.  This lets one use Ctrl-space to toggle rows in multiple
1181         selection mode.
1182         (gtk_file_chooser_default_should_respond): Clean up the if-chain
1183         mess of special cases by using an array to determine what to do.
1184         Also, for the save-entry case in CREATE_FOLDER mode, actually fix
1185         the bug where the file chooser would switch to an existing folder
1186         rather than confirming with it, and create the folder ourselves.
1187         (error_creating_folder_over_existing_file_dialog): New function.
1188
1189         * gtk/gtkfilechooserentry.c (check_completion_callback): Only
1190         insert the common prefix if we are in an "open" mode.  Use a
1191         helper function.
1192         (append_common_prefix): New helper function; code moved over from
1193         check_completion_callback().
1194         (find_common_prefix): New helper function.
1195         (gtk_file_chooser_entry_focus): Append the common prefix if the
1196         user requests it explicitly.
1197
1198 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
1199
1200         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand): 
1201         * gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow): 
1202         * gtk/gtktextview.c (gtk_text_view_get_iter_at_position): 
1203         * gtk/gtkstock.c (gtk_stock_set_translate_func): 
1204         * gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment): 
1205         * gtk/gtkscrolledwindow.h: 
1206         * gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus): 
1207
1208         * gtk/gtkiconview.c (gtk_icon_view_set_margin): 
1209         * gtk/gtkicontheme.c (gtk_icon_info_load_icon): 
1210         * gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.
1211
1212 2005-06-09  Matthias Clasen  <mclasen@redhat.com>
1213
1214         * gdk/x11/gdkwindow-x11.c: Small markup fixes.
1215
1216         * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
1217         (#306212, Steve Chaplin, docs provided by Billy Biggs)
1218
1219         * gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small 
1220         cleanup.  (#305539, Paolo Borelli)
1221
1222 2005-06-09  Rodrigo Moya <rodrigo@novell.com>
1223
1224         * configure.in: added cairo to list of $GTK_PACKAGES.
1225
1226 2005-06-09  Matthias Clasen  <mclasen@redhat.com>
1227
1228         * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
1229         the user time on the window when a drop happens.  (#169364, Alexander
1230         Hunziker, patch by Elijah Newren)
1231
1232         * gdk/x11/gdkwindow-x11.c: Small markup fixes.
1233
1234         * gtk/gtk.symbols: 
1235         * gtk/gtkiconview.h: 
1236         * gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
1237         to scroll to a path.  (#306838, Jonathan Blandford)
1238
1239 2005-06-08  Matthias Clasen  <mclasen@redhat.com>
1240
1241         * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
1242         item.  (#306839, Jonathan Blandford)
1243
1244         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
1245         negative before appending the index, to avoid double error
1246         message.  (#306393, Morten Welinder)
1247
1248         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
1249         Don't crash if search_window is NULL.  (#304914, Victor Osadci,
1250         testcase by Olaf Vitters)
1251
1252         * gtk/gtkimage.c: Make the file property readable.  
1253         (#170674, Lorenzo Gil Sanchez)
1254
1255         
1256 2005-06-08  Matthias Clasen  <mclasen@redhat.com>
1257
1258         * gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
1259         g_utf8_collate_key_for_filename().
1260
1261 2005-06-07  Kjartan Maraas  <kmaraas@gnome.org>
1262
1263         * gtk/gtkfilechooserbutton.c: (update_label_and_image):
1264         Merge leak fix from stable. Bug 306754.
1265
1266 2005-06-05  Tor Lillqvist  <tml@novell.com>
1267
1268         * gdk/win32/gdkscreen-win32.c
1269         (_gdk_windowing_substitute_screen_number): Return NULL unless
1270         screen number is zero. We have only one screen on Win32.
1271         (gdk_screen_make_display_name): Call gdk_display_get_name() and
1272         return that.
1273         
1274         * modules/engines/Makefile.am
1275         * modules/input/Makefile.am: Decide whether to build the
1276         ms-windows theme engine based on the GDK backend, not based on
1277         platform. (I.e., if building for Cygwin with the X11 backend, we
1278         shouldn't build the ms-windows engine, but if building for Cygwin
1279         but with the Win32 backend, we should.) Ditto for the IME
1280         (Windows) input module. (#305832)
1281
1282 2005-06-04  Tor Lillqvist  <tml@novell.com>
1283
1284         * gdk/win32/gdkcursor-win32.c
1285         * gdk/win32/gdkwindow-win32.c
1286         * gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
1287         Support cursors with alpha on XP. Use code in common with the
1288         support for alpha icons that already was present. (#306101, Tim
1289         Evans)
1290
1291         * modules/engines/ms-windows/msw_style.c: Render insensitive icons
1292         in a way that more closely matches Windows. (#305986, Tim Evans).
1293
1294         * modules/engines/ms-windows/Makefile.am (LDADDS): Link with
1295         gdk-pixbuf.
1296
1297 2005-06-03  Dom Lachowicz <cinamod@hotmail.com>
1298
1299         * modules/engines/ms-windows/msw_style.c: Re-sync with gtk-wimp
1300         * modules/engines/ms-windows/xp_theme.c: Ditto
1301         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
1302
1303 Thu May 26 16:43:27 2005 Manish Singh  <yosh@gimp.org>
1304
1305         * gtk/gtkentrycompletion.h: Add declarations for
1306         gtk_entry_completion_{get,set}_popup_single_match.
1307
1308 2005-05-26  Matthias Clasen  <mclasen@redhat.com>
1309
1310         * gtk/gtk.symbols: 
1311         * gtk/gtkentrycompletion.c: Add a property to suppress the
1312         popup for single matches.  (#154711)
1313
1314         * gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here.
1315
1316         * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action): 
1317         Use it here.
1318
1319         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the 
1320         redisplay after modifying the tag in the btree, otherwise 
1321         we end up showing the old tags until the next redraw comes 
1322         around.   (#143537, Gary Kramlich, Peter Wainwright)
1323
1324         * gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make 
1325         autoscrolling work at the bottom of the screen.
1326
1327 2005-05-26  Maciej Katafiasz  <email@mathrick.org>
1328
1329         * docs/reference/gtk/tmpl/gtkentry.sgml:
1330         Point to GtkTextView instead of GtkText. Fixes bug #305535
1331
1332 2005-05-26  Sven Neumann  <sven@gimp.org>
1333
1334         * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
1335         aggressive PNG compression level (bug #305340).
1336
1337 2005-05-26  Tor Lillqvist  <tml@novell.com>
1338
1339         * gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting
1340         from the root window, take the multi-monitor offset into
1341         account. (#305511)
1342
1343 2005-05-25  Matthias Clasen  <mclasen@redhat.com>
1344
1345         * demos/gtk-demo/appwindow.c (do_appwindow): Set the window
1346         icon by name.
1347
1348         * gtk/gtkfilesystem.c (gtk_file_folder_is_finished_loading): 
1349         Remove another C99ism.
1350
1351         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the 
1352         background of rows insensitive when the treeview is insensitive.
1353         (pointed out by Billy Biggs)
1354
1355         * demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
1356         and DND, and clipboard persistency.
1357
1358         * gtk/gtkselection.c (gtk_target_list_add_image_targets): 
1359         Make sure png comes first, otherwise dnd may use bmp by
1360         default, loosing transparency.
1361
1362 2005-05-25  Michael Natterer  <mitch@imendio.com>
1363
1364         * gtk/gtktextview.c (blink_cb): block the text_layout's "changed"
1365         handler when changing cursor visibility because it would expose
1366         the whole paragraph where the cursor is. Instead, expose the
1367         cursors' areas manually. (#173047).
1368
1369         (text_window_invalidate_cursors): new function which exposes the
1370         cursors.
1371
1372         * gtk/gtkstyle.c (draw_insertion_cursor): added comment that the
1373         same cursor size calculation is in text_window_invalidate_cursors().
1374
1375 2005-05-25  Matthias Clasen  <mclasen@redhat.com>
1376
1377         * demos/gtk-demo/editable_cells.c (create_items_model): Also
1378         demonstrate GtkCellRendererProgress.
1379
1380         * demos/gtk-demo/Makefile.am (demos): 
1381         * demos/gtk-demo/combobox.c: Add a demo showing combo box 
1382         variations.
1383
1384         * demos/gtk-demo/Makefile.am (demos): 
1385         * demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.
1386
1387 2005-05-24  Matthias Clasen  <mclasen@redhat.com>
1388
1389         * demos/gtk-demo/iconview.c (do_iconview): Fix a typo.
1390
1391 2005-05-24  Tor Lillqvist  <tml@novell.com>
1392
1393         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Handle
1394         gtk-alternative-button-order (setting it to TRUE).
1395
1396 2005-05-23  Matthias Clasen  <mclasen@redhat.com>
1397
1398         * gtk/gtktreeview.c (gtk_tree_view_search_init): Remove
1399         an unused variable.  (#305130, Jaap A. Haitsma)
1400
1401         * gtk/gtkfilechooserdefault.c (filter_create): Don't grab
1402         the focus away from the file list when operating the filter
1403         combo with the pointer.  (#304844, Sven Neumann)
1404
1405 2005-05-23  Tor Lillqvist  <tml@novell.com>
1406
1407         * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_APPS to
1408         GDK_Menu. (#172383, Ivan Wong)
1409
1410         * gdk/win32/gdkkeys-win32.c (handle_dead): If the keysym isn't one
1411         of the special cases this function takes care of, use it as
1412         such. This takes care of for instance the Bengali Virama, see bug
1413         #165723.
1414
1415 2005-05-20  Matthias Clasen  <mclasen@redhat.com>
1416
1417         * gtk/gtkimcontextsimple.c (check_table): Avoid a possible
1418         buffer overrun.  (#142444, Leonard Michlmayr)
1419
1420         * gtk/gtkfilesystem.c: Remove C99-isms (#304879, 
1421         Kazuki IWAMOTO)
1422
1423 2005-05-18  Matthias Clasen  <mclasen@redhat.com>
1424
1425         * gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri): 
1426         Use the correct function to conver the uri to a path.  (#304565,
1427         Ismael Juma)
1428
1429         * gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the
1430         Cancel button properly.  (#304234, Sven Neumann)
1431
1432 2005-05-18  Anders Carlsson  <andersca@imendio.com>
1433
1434         * gtk/gtktextview.c: (gtk_text_view_flush_scroll),
1435         (gtk_text_view_update_adjustments), (gtk_text_view_value_changed):
1436         * gtk/gtktextview.h:
1437         If the horizontal adjustment changes because of a change in the
1438         layout width, then do a complete redraw. This is because there
1439         might be right-aligned or centered text that needs to be redrawn.
1440
1441 2005-05-18  Matthias Clasen  <mclasen@redhat.com>
1442         
1443         * gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set
1444         the event masks of descendent windows.  (#169821, Tommi Komulainen)
1445
1446         * gtk/gtktreeview.c (gtk_tree_view_get_drop_column) 
1447         (gtk_tree_view_set_column_drag_info): Fix some errors in the
1448         handling of drop columns.  (#143355, John Finlay)
1449
1450         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): 
1451         Remove the no longer needed workaround.
1452
1453         * gtk/gtkwidget.c (widget_add_child_draw_rectangle): Only collect
1454         allocations of mapped children.
1455
1456         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): 
1457         Add a bug reference.
1458
1459 2005-05-18  Tor Lillqvist  <tml@novell.com>
1460
1461         * gdk/win32/gdkevents-win32.c
1462         * gdk/win32/gdkkeys-win32.c
1463         * gdk/win32/gdkprivate-win32.h: Check the KF_EXTENDED bit in
1464         lParam of WM_KEY* messages to distinguish between left and right
1465         Control and Alt keys. Unfortunately, the right Shift key doesnt
1466         set KF_EXTENDED, so to distinguish between left and right Shift
1467         keys, check the scan code. (#304584)
1468
1469 2005-05-18  Matthias Clasen  <mclasen@redhat.com>
1470
1471         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
1472         length overflows.  (#161520, Ian Wienand)
1473
1474         * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name): Fix
1475         parameter names to make gtk-doc happy.
1476
1477         * gtk/gtkscale.c (gtk_scale_class_init): Fix the default
1478         values of draw-value and value-pos to be the values we
1479         actually use in _init. (#304547, Mikael Hallendal)
1480
1481         * gtk/gtkcellrendererpixbuf.c: Support named icons in
1482         cells by adding a icon-name property. (#165777, Anders
1483         Carlsson)
1484
1485         * gtk/gtk.symbols:
1486         * gtk/gtktoolbutton.h: 
1487         * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name) 
1488         (gtk_tool_button_get_icon_name): Support named icons in 
1489         tool buttons by adding a icon-name property. (#116577, 
1490         Christian Neumair)
1491
1492         * gtk/gtk.symbols: 
1493         * gtk/gtkdnd.h: 
1494         * gtk/gtkdnd.c (gtk_drag_source_set_icon_name) 
1495         (gtk_drag_set_icon_name): New functions to support themed 
1496         drag icons.  (#116577, Christian Neumair)
1497
1498 2005-05-17  Owen Taylor  <otaylor@redhat.com>
1499
1500         * gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface): 
1501         Update to changed cairo interface.
1502
1503         * gdk/x11/gdkdrawable-x11.[ch]:
1504         Add _gdk_x11_drawable_update_size()
1505         
1506         * gdk/x11/gdkwindow-x11.c (gdk_window_resize) 
1507         (gdk_window_move_resize)
1508         * gdk/x11/gdkevents-x11.c (gdk_event_translate): 
1509         Call _gdk_x11_drawable_update_size().
1510
1511 2005-05-17  Matthias Clasen  <mclasen@redhat.com>
1512
1513         * gtk/gtktextview.c (cursor_blinks): Don't blink the cursor
1514         if the text view is not editable.  
1515
1516         * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
1517         the popup posted if the button is released over the cellview.
1518         This matches the behaviour of other combo box implementations.  
1519         (#171378)
1520         
1521         * gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
1522         when recursing.  (#153682, Felipe Heidrich)
1523
1524 2005-05-16  Matthias Clasen  <mclasen@redhat.com>
1525
1526         * gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up 
1527         and GDK_Page_Down twice.  (#168333, Hazael Maldonado Torres)
1528
1529         * gtk/gtkentry.c (cursor_blinks): Don't blink the cursor if 
1530         the entry is not editable.  (#304171, Nikos Kouremenos)
1531         
1532         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor): 
1533         Make sure the action of the button and the dialog are in sync,
1534         when the dialog is provided by the app.  (#303987, David A Knight)
1535
1536         * gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo
1537         in the docs.  (#303940, Masao Mutoh)
1538
1539         * configure.in (GTK_DOC_CHECK): Check for gtk-doc 1.4.
1540
1541         * gtk/gtktoggleaction.c (connect_proxy): Be more careful when
1542         casting.  (#304089, Philip Langdale)
1543
1544         * gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
1545         the label if we need to.  (#169390, Felix Riemann)
1546
1547 Sat May 14 00:07:46 2005  Manish Singh  <yosh@gimp.org>
1548
1549         * gdk/gdkdraw.c
1550         * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
1551         declaration.
1552
1553         * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
1554         call gdk_cairo_set_source_color() with a color.
1555
1556         * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
1557
1558         * tests/testiconview.c (main): cast args of drag functions to the
1559         appropriate type.
1560
1561 2005-05-13  Owen Taylor  <otaylor@redhat.com>
1562
1563         * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
1564
1565         * gdk/x11/gdkpixmap-x11.[ch] gdk/gdk.symbols: Export 
1566         gdk_pixmap_impl_x11_get_type(), needed in gdkdrawable-x11.c.
1567         
1568 2005-05-11  Owen Taylor  <otaylor@redhat.com>
1569
1570         * tests/testgtk.c (on_alpha_window_expose): Fix to use
1571         gdk_cairo_create(). (create_alpha_window): Hook up "response"
1572         to close the window.
1573
1574 2005-05-11  Owen Taylor  <otaylor@redhat.com>
1575
1576         * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
1577         to draw the swatch in to avoid having an extraneous window.
1578         
1579         * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
1580         color when !has_opacity.
1581
1582 2005-05-10  Owen Taylor  <otaylor@redhat.com>
1583
1584         * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
1585         files for Cairo convenience functionality.
1586
1587         * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
1588         convenience functions to add GdkRectangle, GdkRegion to a cairo path.
1589
1590         * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c 
1591         gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
1592
1593         * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
1594         gdk_drawable_create_cairo_context() to gdk_cairo_create().
1595
1596         * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
1597         Rename gdk_pixbuf_set_as_cairo_source() to 
1598         gdk_cairo_set_source_pixbuf().
1599
1600         * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
1601         gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
1602         Adjust for renames.
1603
1604         * gdk/gdk.symbols: Update.
1605
1606         * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix 
1607         coordinate system problem that was causing the wrong portions
1608         to be invalidated.
1609
1610         * gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
1611         gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
1612         gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
1613         gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
1614         gtk/gtkcellview.c (gtk_cell_view_expose)
1615         gtk/gtkdnd.c (gtk_drag_highlight_expose)
1616         gtk/gtkentry.c (gtk_entry_draw_text) 
1617         gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
1618
1619         * gtk/gtkcalendar.[ch]: Beat into something roughly resembling
1620         GTK+ style ... use instance-private data and standard names for
1621         private structure, etc. Move function docs inline.
1622
1623         * gtk/gtkcalendar.[ch]: Switch to drawing everything in
1624         expose. Switch drawing to Cairo.
1625
1626         * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
1627         gtk_calendar_freeze/thaw
1628
1629 2005-05-10  Tor Lillqvist  <tml@novell.com>
1630
1631         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
1632         that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
1633         == gdk_screen_get_default(), as that might return NULL when this
1634         function is called.
1635
1636 2005-05-09  Matthias Clasen  <mclasen@redhat.com>
1637
1638         * gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the
1639         padding in RTL mode.  (#303572, Maciej Katafiasz)
1640
1641 2005-05-09  Owen Taylor  <otaylor@redhat.com>
1642
1643         * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br): 
1644         Fill in unused bits so they can be used for the depth-32 target case.
1645         Rewrite so that that gives a marginal speedup rather than a
1646         marginal slowdown. (on x86)
1647
1648         * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
1649         Add gdk_screen_get_rgba_colormap/visual to get a visual for
1650         windows with an alpha channel, if one exists.
1651
1652         * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
1653         Stub out gdk_screen_get_rgba_colormap/visual.
1654
1655         * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
1656         "unused" wasn't right for depth == 32, since it depended on
1657         shifting by 32.
1658
1659         * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
1660         Keith Packard,
1661         http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
1662
1663         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
1664         Implement again, without using Xft.
1665
1666         * tests/testgtk.c: Add a test for windows with an alpha channel.
1667
1668 2005-05-09  Matthias Clasen  <mclasen@redhat.com>
1669
1670         * autogen.sh: Revert accidental commit.
1671
1672 2005-05-08  Matthias Clasen  <mclasen@redhat.com>
1673
1674         * gdk/gdkcolor.c (gdk_cairo_set_source_color): 
1675         * gdk/gdkimage.h: 
1676         * gdk/gdkdraw.c: 
1677         * gdk/gdkcolor.h: 
1678         * gdk/gdkcursor.h: 
1679         * gdk/x11/gdkcolor-x11.c: Small documentation additions.
1680
1681 2005-05-07  Matthias Clasen  <mclasen@redhat.com>
1682
1683         * gtk/gtkscrolledwindow.h: 
1684         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar): 
1685         (gtk_scrolled_window_get_cscrollbar): Change the return 
1686         type to GtkWidget*, proposed by Owen Taylor. 
1687
1688         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_width_mm) 
1689         (gdk_screen_get_height_mm): Fix typos in the docs.  (#303389,
1690         Masao Mutoh)
1691
1692 2005-05-07  Matthias Clasen <mclasen@redhat.com>
1693
1694         * gtk/gtkiconview.c: Fix a copy-and-paste accident, spotted
1695         by Owen Taylor.
1696
1697 2005-05-07  Owen Taylor  <otaylor@redhat.com>
1698
1699         * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
1700         the background color.
1701
1702 2005-05-07  Owen Taylor  <otaylor@redhat.com>
1703
1704         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source): 
1705         Change prototype to match cairo_set_source_surface().
1706
1707         * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
1708         gtk/gtkhsv.c tests/testcairo.c.
1709
1710 2005-05-06  Federico Mena Quintero  <federico@ximian.com>
1711
1712         Merged from gtk-2-6:
1713
1714         * gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
1715         types if this is an AFS directory.
1716         (fill_in_names): If we are in an AFS directory, set the MIME type
1717         blindly to "x-directory/normal".
1718
1719 2005-05-06  Matthias Clasen  <mclasen@redhat.com>
1720
1721         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always
1722         initialize child-visible to FALSE, otherwise we may end up
1723         with the wrong page visible initially.  (#302283, Patrik Fimml)
1724
1725         * gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders
1726         appear insensitive in insensitive treeviews. 
1727
1728 2005-05-05  Matthias Clasen  <mclasen@redhat.com>
1729
1730         * gtk/gtktoolbar.c: Fix a typo in the docs.  (#303024, 
1731         Morten Welinder)
1732
1733 2005-05-06  Matthias Clasen  <mclasen@redhat.com>
1734
1735         * gtk/gtk.symbols:
1736         * gtk/gtkiconview.[hc]: Add DND support similar to the DND
1737         support in the tree view.  (#150270)
1738
1739 2005-05-05  Matthias Clasen  <mclasen@redhat.com>
1740
1741         * gtk/gtktreednd.h: 
1742         * gtk/gtkwidget.h: Small cleanups.
1743
1744         * gtk/gtktreeview.c (gtk_tree_view_get_dest_row_at_pos): Fix
1745         a typo.
1746
1747 2005-05-04  Owen Taylor  <otaylor@redhat.com>
1748
1749         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.h: Fix a bug
1750         in focus tracking when we move between has_pointer_focus and 
1751         has_focus_window directly. (#109246, Billy Biggs, Niko Tyni 
1752         and others)
1753
1754         * gdk/x11/gdkevents-x11.c: Also fix some confusion that could
1755         happen in the case of no window manager + keyboard grabs, by
1756         moving to a more consistent model of when we pay attention to
1757         mode=NotifyGrab/NotifyUngrab events.
1758         
1759         * docs/focus_tracking.txt: Extensive writeup about how to track
1760         focus under X11.
1761
1762 Wed May  4 13:21:41 2005  Søren Sandmann  <sandmann@redhat.com>
1763
1764         * tests/testcairo.c (draw): Replace cairo_show_surface() uses with
1765         cairo_set_source_surface()/cairo_paint();
1766
1767 2005-05-04  Tor Lillqvist  <tml@novell.com>
1768
1769         * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)
1770         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values,
1771         _gdk_win32_gc_new, _gdk_windowing_gc_set_clip_region,
1772         gdk_win32_hdc_get): Minor fixes to make Win32 backend compile
1773         again.
1774
1775 2005-05-03  Matthias Clasen  <mclasen@redhat.com>
1776
1777         * gtk/gtkfilesystem.c: 
1778         * gtk/gtkcelleditable.c: 
1779         * gtk/gtktreemodel.c: Avoid getting the interface struct
1780         twice in the same function.  (#300513, Billy Biggs)
1781
1782         * gtk/gtkscrolledwindow.h:
1783         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar): 
1784         * gtk/gtk.symbols: Add getters for the scrollbars.  (#167181,
1785         Billy Biggs)    
1786
1787         * gtk/gtkdialog.h: 
1788         * gtk/gtkdialog.c (gtk_dialog_get_response_for_widget): 
1789         Make this function public.  (#170748, Morten Welinder)
1790
1791 2005-05-02  Federico Mena Quintero  <federico@ximian.com>
1792
1793         Merged from gtk-2-6:
1794
1795         Fixes #301068:
1796
1797         * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add fields
1798         to store struct stat for /afs and /net, and boolean fields to say
1799         whether these are valid.
1800         (struct _GtkFileFolderUnix): Added a boolean is_network_dir field.
1801         (gtk_file_system_unix_get_folder): Fill in the is_network_dir
1802         field of the folder structure.
1803         (fill_in_names): If the folder is a network directory, create a
1804         fake struct stat for its entries.
1805         (fill_in_stats): Don't stat() the children of network directories.
1806
1807         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): If the mtime
1808         is 0, use "Unknown" for the cell's displayed text.
1809
1810 2005-04-28  Owen Taylor  <otaylor@redhat.com>
1811
1812         * gtk/gtkwidget.c: Add a draw-border style property to allow
1813         themes to draw outside the widget's allocation.
1814
1815         * gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
1816         that were working around the clip-leakage bug in Cairo.
1817
1818         * gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
1819         save/fill/restore.
1820
1821         * gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
1822         That updates a Cairo context to match a GC.
1823
1824         * gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
1825         for tiles/stipples/clipping to gdk_draw_glyphs(), 
1826         gdk_draw_trapezoids().
1827
1828         * gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
1829         implementation of stipples. Use one cairo_t across the entire
1830         drawing operation. Replace cairo_matrix_create() with 
1831         stack-allocated matrices.
1832
1833         * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c 
1834         gdk/win32/gdkgc-win32.c: Save various aspects of the 
1835         GC state (fill, tile, stipple, foreground, background, clip region)
1836         in instance-private-data for future use. Add getters.
1837         Get rid of _gdk_windowing_gc_get_foreground() function implemented 
1838         by the backends.
1839
1840         * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1841         gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
1842         _gdk_gc_init() to do initial setup of the GC from values;
1843         fixes some problems from drawable redirection.
1844
1845         * gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
1846         gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move 
1847         gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into 
1848         the generic code, add _gdk_windowing_gc_copy(), 
1849         _gdk_windowing_gc_set_clip_region() to do backend specific
1850         stuff.
1851
1852         * gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
1853         gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
1854         gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
1855         Don't duplicate state that now is stored by the generic code.
1856
1857         * gdk/gdk.symbols Update
1858
1859 2005-05-02  Matthias Clasen  <mclasen@redhat.com>
1860
1861         * tests/testiconview.c: Test cell renderers.
1862
1863         * gtk/gtk.symbols: Add new functions.
1864
1865         * gtk/gtkiconview.[hc]: Implement GtkCellLayout and use
1866         cell renderers for drawing and editing. (#148144, #160242)
1867
1868 2005-05-02  Matthias Clasen  <mclasen@redhat.com>
1869
1870         * gtk/gtkcellrenderertext.c (get_size): Return a sufficient
1871         width for cases where pango_layout_get_pixel_extents() returns
1872         a rectangle with nonzero x. 
1873
1874         * gtk/gtkselection.c: Small doc fixes.
1875
1876         * gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus): 
1877         (gtk_menu_shell_get_take_focus): Fix up the docs a bit.
1878
1879 2005-05-02  Michael Natterer  <mitch@imendio.com>
1880
1881         * gtk/gtkmain.c (do_post_parse_initialization): return silently if
1882         "gtk_initialized" is TRUE. Re-enables calling GTK's init functions
1883         multiple times when using gtk_get_option_group(), just as one can
1884         call gtk_init() multiple times without doing any harm.
1885
1886 2005-05-01  Matthias Clasen  <mclasen@redhat.com>
1887
1888         * gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
1889         the event to unanchored children in the text window.  
1890         (#302494, Stephen Kennedy)
1891
1892 2005-04-30  Tor Lillqvist  <tml@novell.com>
1893
1894         * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take
1895         multi-monitor offset into account. (#302525)
1896
1897 2005-04-29  Matthias Clasen  <mclasen@redhat.com>
1898
1899         * gtk/gtkradioaction.c: Make the docs build.  (#302230,
1900         Ali Akcaagac)
1901
1902         * gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
1903         function, instead show the bin_window when it is created.
1904
1905         * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't 
1906         grab focus to unrealized widgets.  (#302240, Philip Langdale)
1907
1908         * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
1909         background upon state changes.  (#301651, Billy Biggs)
1910         (gtk_tree_view_get_path_at_pos): Take RTL into account
1911         when iterating over the columns.  (#302163)
1912         
1913         * configure.in: Check for nm.
1914
1915         * gtk/Makefile.am: Use $(NM), not nm directly. (#301299, 
1916         Nguyen Thai Ngoc Duy)
1917
1918         * gtk/gtkiconview.c (gtk_icon_view_move_cursor_start_end): Use
1919         the internal unselect_all function, since we need the unselection
1920         to happen even in browse mode.  (#300995, Mathias Hasselmann)
1921
1922         * gtk/gtkuimanager.c (update_node): Use g_object_notify() instead
1923         of triggering a ::notify by re-setting the property.  (#300982,
1924         Sven Neumann)
1925
1926         * gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().
1927
1928         * gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Also
1929         scroll horizontally when necessary, and keep the northwest
1930         corner of the item visible.  (#300913, Mathias Hasselmann)
1931
1932         * tests/testiconview.c: Add some more tests.
1933
1934         * gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash
1935         if the path does not point to a row in the model.  (#300909,
1936         Mathias Hasselmann)
1937         (gtk_icon_view_rows_reordered): Re-layout here.  (#301009, 
1938         Mathias Hasselmann)
1939
1940         * tests/testtext.c: Add some more attribute tests.
1941
1942         * gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation
1943         of the rise property. String change, but it is more important to
1944         be correct than to be translated.  (#301740)
1945
1946 2005-04-25  Tor Lillqvist  <tml@novell.com>
1947
1948         * gtk/gtkfilesystemwin32.c
1949         (gtk_file_system_win32_volume_get_display_name): Get volume name
1950         also on Win9x. (#301798, Daniel Atallah)
1951         (canonicalize_filename): Add explicit braces to silence compiler
1952         warning.
1953
1954 2005-04-22  Tor Lillqvist  <tml@novell.com>
1955
1956         * gtk/gtkmain.c: Initailize gettext before use. Calling
1957         bindtextdomain() and bind_textdomain_codeset() in
1958         do_post_parse_initialization() is too late. Put the calls in a new
1959         function gettext_initialization(), and call that from
1960         gtk_init_with_args() and gtk_parse_args(). Fixes #170948 for
1961         GTK+'s part, but the same problem occurs also at least in
1962         atk. Thanks to Robert Ögren, Daniel Atallah and Kevin Stange.
1963
1964 2005-04-19  Ivan, Wong Yat Cheung  <email@ivanwong.info>
1965
1966         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
1967         character height instead of cell height. Fix #301228.
1968
1969 2005-04-18  Federico Mena Quintero  <federico@ximian.com>
1970
1971         Merged from gtk-2-6:
1972
1973         * gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): Remove
1974         obsolete assertion that the selected row can't be a volume; this
1975         is handled by the "removable" column now.  Fixes #301017.
1976
1977 2005-04-18  Owen Taylor  <otaylor@redhat.com>
1978
1979         * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
1980         * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
1981         gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
1982         setting color and opacity. (#301066, Vincent Noel)
1983  
1984 2005-04-15  Federico Mena Quintero  <federico@ximian.com>
1985
1986         Merged from gtk-2-6:
1987
1988         * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
1989         Patch from Christian Neumair <chris@gnome-de.org>; only select the
1990         first row if we are in OPEN mode.  The only other case we were
1991         letting pass through was SELECT_FOLDER, but selecting the first
1992         row when changing folders confuses people when folders are
1993         actually being selected.  Fixes #171885.
1994
1995 2005-04-13  Matthias Clasen  <mclasen@redhat.com>
1996
1997         * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose): 
1998         Revert the fix for #169870, adjust the documentation instead. 
1999
2000         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
2001         Revert the fix for #170727.     
2002
2003 2005-04-11  Ivan, Wong Yat Cheung  <email@ivanwong.info>
2004
2005         Fix #300218:
2006
2007         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
2008         C99ism.
2009
2010         * gtk/updateiconcache.c: Guard inclusion of unistd.h and
2011         utime.h.
2012
2013 2005-04-09  Matthias Clasen  <mclasen@redhat.com>
2014
2015         * gdk/x11/gdkinput-xfree.c:
2016         * gdk/x11/gdkinput-none.c:
2017         * gdk/gtk.symbols: Some more fixes necessary to 
2018         make building with gcc 4 work.
2019
2020         Add 16x16 versions of the zoom icons and of 
2021         GTK_STOCK_INDEX. Some of the images were taken from 
2022         the hicolor icon theme, and were originally created 
2023         by Jakub Steiner and Tuomas Kuosmanen.  (#167515, 
2024         Vincent Noel)
2025         
2026         * gtk/stock-icons/stock_index_16.png:
2027         * gtk/stock-icons/stock_zoom_1_16.png:
2028         * gtk/stock-icons/stock_zoom_fit_16.png:
2029         * gtk/stock-icons/stock_zoom_in_16.png:
2030         * gtk/stock-icons/stock_zoom_out_16.png: New images.
2031         
2032         * gtk/stock-icons/Makefile.am: Add the new images. 
2033
2034         * gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose): 
2035         Don't display too many broken images.  (#169870, Roman
2036         Kagan, patch by Ivan Wong)
2037
2038         * gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
2039         output.  (#300013, Tommi Komulainen)
2040
2041 2005-04-08  Matthias Clasen  <mclasen@redhat.com>
2042
2043         * gtk/gtkimage.c (gtk_image_expose, gtk_image_calc_size): 
2044         If a stock_id is unknown, display the missing image. (#169870,
2045         Steven Walter)
2046
2047         * gtk/gtkiconcache.c (icon_name_hash): Use the same function 
2048         as in updateiconcache.c.  (spotted by Morten Welinder)
2049
2050 2005-04-08  Carl Worth  <cworth@cworth.org>
2051
2052         * gdk/gdkpango.c: (emboss_context): Simplify matrix manipulation
2053         now that cairo exposes the cairo_matrix_t structure.
2054         
2055         * gdk/gdkpixbuf-render.c: (gdk_pixbuf_set_as_cairo_source): Track
2056         cairo API change in signedness of data argument.
2057
2058 2005-04-08  Matthias Clasen  <mclasen@redhat.com>
2059
2060         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make this
2061         work when called from gtk_combo_box_destroy().  (#172999,
2062         Christian Persch)
2063
2064 2005-04-08  Matthias Clasen  <mclasen@redhat.com>
2065
2066         Fix double-click to autosize treeview columns. This was
2067         probably broken since 2.2 ! (#169675)
2068         
2069         * gtk/gtktreeview.c (gtk_tree_view_button_press): Leave the
2070         "user-resized" state of the column on a double-click to
2071         autosize.
2072         (gtk_tree_view_button_press, gtk_tree_view_motion_resize_column): 
2073         Enter the "user-resized" state of the column only if a drag
2074         actually changes the column width, not on any click.
2075
2076 2005-04-07  Matthias Clasen  <mclasen@redhat.com>
2077
2078         * gtk/gtkmenu.c (gtk_menu_paint): Allow setting background
2079         images on menus.  (#169532, Benjamin Otte)
2080         
2081         * gtk/updateiconcache.c (write_card16, write_card32): Avoid
2082         unaligned access.  (#172947)
2083
2084         * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): 
2085         Consistently use the term "Bookmarks" in the UI.  (#166906,
2086         Sebastian Bacher)
2087
2088         Some fixes from Morten Welinder (#172947):
2089         
2090         * gtk/updateiconcache.c (icon_name_hash): Make this compiler- 
2091         and platform-independent.
2092         (is_cache_up_to_date): Don't compare mtimes is a stat call failed.
2093         (build_cache): Error out if a stat fails.  
2094
2095 2005-04-07  Matthias Clasen  <mclasen@redhat.com>
2096
2097         * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add 
2098         a hint about hiding expanders.
2099
2100         * gtk/updateiconcache.c (is_cache_up_to_date): Return 
2101         TRUE if the cache is newer than the directory.  (#172852,
2102         Jacob Kroon)
2103
2104         * configure.in: Replace an explicit pkg-config by 
2105         $PKG_CONFIG.  (#168074, Hans-Wolfgang Loidl)
2106         
2107         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
2108         Ignore regions which fall completely outside the line.  
2109         (#165862, Felipe Heidrich)
2110
2111 2005-04-06  Matthias Clasen  <mclasen@redhat.com>
2112
2113         * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Document
2114         -1 as possible value.  
2115         (gtk_tree_view_enable_model_drag_source) 
2116         (gtk_tree_view_enable_model_drag_dest): Pass the target list 
2117         to the underlying dnd implementation, otherwise we miss the 
2118         target info in the drag-data-received signal.  (#164085, Jorn
2119         Baayen)
2120
2121 2005-04-06  Matthias Clasen  <mclasen@redhat.com>
2122
2123         * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column) 
2124         (gtk_tree_view_bin_expose): Avoid a few unnecessary calls
2125         to gdk_window_get_pointer(). (#168015, Billy Biggs)
2126
2127         * po/.cvsignore, po-properties/.cvsignore: Remove
2128         Makefile.in.in.  (#171092, Stepan Kasal)
2129
2130         * gtk/gtkrc.c (gtk_rc_parse_style): Don't modify 
2131         scanner->value, copy it first.  (#165693, Tommi Komulainen)
2132
2133 2005-04-05  Matthias Clasen  <mclasen@redhat.com>
2134
2135         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_grab_focus): 
2136         * gtk/gtkcombobox.c (gtk_combo_box_grab_focus): Implement
2137         grab_focus for GtkComboBox and GtkComboBoxEntry.  (#171912,
2138         Gustavo Carneiro)
2139
2140         * gtk/gtkicontheme.c: Store icon caches along with the
2141         mtimes of the toplevel directories. The previous
2142         mechanism of a hashtable-per-theme caused duplicate icon
2143         caches for the same toplevel directory to be created.  
2144         (#170030)
2145
2146 2005-04-05  Matthias Clasen  <mclasen@redhat.com>
2147
2148         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level): 
2149         Fix a typo in a warning.
2150
2151         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Protect
2152         the license and credits buttons from being affected by 
2153         gtk_widget_show_all().  (#172724)
2154
2155 2005-04-05  Matthias Clasen  <mclasen@redhat.com>
2156
2157         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a 
2158         reference to the item.  (#167920, Hazael Maldonado Torres)
2159
2160         * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
2161         more docs on interactive search.
2162
2163 2005-04-05  Tor Lillqvist  <tml@novell.com>
2164
2165         * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Handle 16 colour
2166         display mode. For some reason, in this mode GetDeviceCaps(BITSPIXEL)
2167         returns 1 (but GetDeviceCaps(NUMCOLORS) does return 16). (#143415)
2168
2169         * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Don't force
2170         24bpp GdkVisual on 32bpp displays. (#140706)
2171
2172 Mon Apr  4 19:13:23 2005  Jonathan Blandford  <jrb@redhat.com>
2173
2174         Fix for #172319, Tristan Van Berkom:
2175         
2176         * gtk/gtktreeview.c (gtk_tree_view_expand_all): change to use
2177         gtk_tree_view_real_expand_row() instead of doing this by hand.
2178
2179 2005-04-04  Johan Dahlin  <johan@gnome.org>
2180
2181         * gtk/gtktextbuffer.c: (gtk_text_buffer_class_init),
2182         (gtk_text_buffer_set_property), (gtk_text_buffer_get_property),
2183         (gtk_text_buffer_set_text): Add GtkTextBuffer::text (#172631)
2184
2185 Mon Apr  4 14:33:55 2005  Manish Singh  <yosh@gimp.org>
2186
2187         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text):
2188         cast combo->priv->entry to GTK_ENTRY()
2189
2190         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
2191         cast completion->priv->tree_view to GTK_TREE_VIEW()
2192
2193 2005-04-04  Matthias Clasen  <mclasen@redhat.com>
2194
2195         * gtk/gtktextbuffer.c: Some trivial doc fixes.
2196
2197         * gtk/gtkwidget.c (gtk_widget_set_redraw_on_allocate): Improve 
2198         the wording of the doc comment.  (#172422, Vincent Untz)
2199
2200 2005-04-04  Owen Taylor  <otaylor@redhat.com>
2201
2202         * gtk/gtkstyle.c (gtk_default_draw_expander): Covert expander
2203         drawing to Cairo. Also always draw the entire triangle instead
2204         of just drawing the center for prelight. (Fixes inconsistent
2205         drawing in GtkTreeView.)
2206
2207 2005-04-04  Johan Dahlin  <johan@gnome.org>
2208
2209         * gtk/gtk.symbols: Remove symbols accidentally added.
2210         * gtk/gtkentryprivate.h: Add boolean property popup_set_width
2211         * gtk/gtktoggletoolbutton.c: (gtk_toggle_tool_button_class_init):
2212         Use object_class instead of gobject_class
2213
2214 Mon Apr  4 12:14:35 2005  Søren Sandmann  <sandmann@redhat.com>
2215
2216         * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Translate x, y into
2217         widget coordinates instead of root coordinates. Patch from Jorn
2218         Baayen. (#172236)
2219
2220 2005-04-04  Matthias Clasen  <mclasen@redhat.com>
2221
2222         * gtk/gtktoolbar.c: Add a tooltips property.
2223
2224         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init): 
2225         * gtk/gtkruler.c (gtk_ruler_class_init): Add docs.
2226
2227         * gtk/gtktoggletoolbutton.c: Add an active property.
2228
2229 2005-04-04  Matthias Clasen  <mclasen@redhat.com>
2230
2231         Allow completion popups to be wider than the entry. (#131916, 
2232         Ross Burton)
2233         
2234         * gtk/gtkentrycompletion.[hc]: Add a boolean popup-set-width property.
2235
2236         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
2237         Don't force the popup to have the same width as the entry if 
2238         popup-set-width is FALSE.
2239
2240         * gtk/gtk.symbols: Add new functions.
2241
2242 2005-04-04  Matthias Clasen  <mclasen@redhat.com>
2243
2244         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
2245         Use gtk_accel_map_change_entry(), so that reusing the same
2246         action name works.  (#170727, Paolo Borelli)
2247
2248 2005-04-04  Tor Lillqvist  <tml@novell.com>
2249
2250         * gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
2251         function, to log a clipboard format name symbolically.
2252         (_gdk_win32_data_to_string): Also new, to log random data bytes.
2253
2254         Implement delayed rendering on Win32, specifically for transfering
2255         images through the clipboard from GTK+ apps to other
2256         apps (#168173, implementation by Ivan Wong):
2257
2258         * gdk/win32/gdkevents-win32.c (gdk_event_translate): 
2259         Handle WM_RENDERFORMAT.
2260
2261         * gdk/win32/gdkprivate-win32.h
2262         * gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
2263         _delayed_rendering_data and _image_bmp.
2264
2265         * gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
2266
2267         * gdk/win32/gdkproperty-win32.c (gdk_property_change):
2268         Accept formats other than GDK_TARGET_STRING or _utf8_string, and
2269         assume they are handled through delayed rendering.
2270
2271         * gdk/win32/gdkselection-win32.c (gdk_selection_convert):
2272         Return all available formats (including those registered by GTK+
2273         apps) on request_targets.
2274         (gdk_selection_property_get): We should append a zero byte like
2275         X11 does.
2276         (gdk_win32_selection_add_targets): New function, for
2277         gtkselection's use. Win32 requires that the clipboard owner
2278         registers all valid formats even if the owner wants delayed
2279         rendering.
2280         (_gdk_win32_selection_convert_to_dib): New function. Convert
2281         images to DIB using gdk-pixbuf.
2282
2283         * gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
2284
2285         * gtk/gtkselection.c (gtk_selection_add_target,
2286         gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
2287         to register target formats.
2288
2289         * gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
2290
2291 2005-04-03  Hans Breuer  <hans@breuer.org>
2292
2293         [merged from gtk-2-6 branch]
2294         * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
2295         the line pattern not the start of the line. Fixes bug #171641.
2296
2297         * gtk/makefile.msc.in : follow .symbols changes
2298
2299         * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
2300         dynamically. (It is not available in _WIN_VER <= 0x0400)
2301
2302         * gdk/win32/makefile.msc : removed gdkpango-win32.obj
2303
2304         * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
2305
2306         [also applied to gtk-2-6 branch]
2307         * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
2308
2309         * gdk/makefile.msc.in : add gtkmnemonichash.obj
2310
2311         * test/testgtk.c(set_parent_signal) : use g_message instead of
2312         g_print to keep the 'testgtk --bench=all' output clean
2313
2314 2005-04-03  Matthias Clasen  <mclasen@redhat.com>
2315
2316         * gtk/gtkruler.c: Add a "metric" property.
2317
2318         * gtk/gtkradiomenuitem.c: Add a "group" property like
2319         the one found in radio buttons.
2320
2321         * gtk/gtkradiobutton.c (gtk_radio_button_class_init): Fix
2322         a typo in the docs.
2323         (gtk_radio_button_set_group): Add change notification.
2324         
2325 2005-04-01  Matthias Clasen  <mclasen@redhat.com>
2326
2327         * gtk/gtkselection.c: Move documentation inline, document
2328         if add_target functions append or prepend.  (#172350, 
2329         Jon-Kare Hellan)
2330
2331 2005-04-01  Matthias Clasen  <mclasen@redhat.com>
2332
2333         Make gtk_combo_box_get_active_text do the right thing for
2334         GtkComboBoxEntry (#171373, Robert Staudinger)
2335         
2336         * gtk/gtkcombobox.h: Add a get_active_text vfunc.
2337         
2338         * gtk/gtkcombobox.c (gtk_combo_box_real_get_active_text): And
2339         implement it here.
2340
2341         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_get_active_text): 
2342         Implement get_active_text by always returning the content of 
2343         the entry.
2344
2345 2005-03-31  Sven Neumann  <sven@gimp.org>
2346
2347         Merged from gtk-2-6:
2348
2349         * gtk/gtkbutton.c
2350         * gtk/gtkiconview.c: fixed gtk-doc comments.
2351
2352 2005-03-31  Michael Natterer  <mitch@gimp.org>
2353
2354         Allow to pop up menus without grabbing the keyboard. Useful for
2355         stuff like virtual keyboards. Fixes bug #159890
2356
2357         * gtk/gtk.symbols
2358         * gtk/gtkmenushell.[ch]: added boolean property "take-focus"
2359         and public API gtk_menu_shell_set/get_take_focus().
2360
2361         * gtk/gtkmenu.c (gtk_menu_popup)
2362         (popup_grab_on_window): don't grab the keyboard if take_focus
2363         is FALSE.
2364
2365         * gtk/gtkmenuitem.c (_gtk_menu_item_popup_submen): propagate the
2366         parent menu_shell's take_focus property to the submenu which is
2367         about to be popped up.
2368
2369 2005-03-30  Federico Mena Quintero  <federico@ximian.com>
2370
2371         Merged from gtk-2-6:
2372
2373         Fix #170755:
2374
2375         * gtk/gtktreeview.c (gtk_tree_view_row_changed): Only stop editing
2376         if the row which changed is the same as the row being edited.
2377
2378 2005-03-30  Matthias Clasen  <mclasen@redhat.com>
2379
2380         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
2381         Make enable_search control only typeahead, not C-f.  (#170435,
2382         Sven Neumann)
2383         (gtk_tree_view_start_interactive_search): Pass keybinding == TRUE.
2384
2385         * gdk/gdkpixbuf.h: Include cairo.h
2386
2387         * gtk/gtkclipboard.c (gtk_clipboard_set_can_store): 
2388         Don't accept n_targets == -1.
2389         (clipboard_unset): unref the old_data, not the
2390         user_data which we have just cleared.  (#172038, Sven
2391         Neumann)
2392
2393         * gtk/gtkcombobox.c (gtk_combo_box_popup): Don't 
2394         segfault if somebody tries to popup an unrealized
2395         combo box.  (#172031, Felipe Heidrich)
2396
2397 2005-03-30  Tor Lillqvist  <tml@novell.com>
2398
2399         * gdk/win32/gdkevents-win32.c (build_pointer_event_state): The
2400         state field should represent the state before the event, like on
2401         X11. (#169753)
2402         (gdk_event_translate): Fix event filter handling. If an event
2403         filter (global, client message filter, of window-specific) returns
2404         GDK_FILTER_CONTINUE, continue as if nothing happened. If it
2405         returns GDK_FILTER_REMOVE or GDK_FILTER_TRANSLATE, return TRUE
2406         from gdk_event_translate() which means that DefWindowProc() will
2407         not be called.
2408         (gdk_event_translate): Fix client message handling. Append a
2409         GDK_CLIENT_EVENT unless there is a filter that matches and returns
2410         something other than GDK_FILTER_CONTINUE. (#135552)
2411
2412 2005-03-29  Matthias Clasen  <mclasen@redhat.com>
2413
2414         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_visible_func): 
2415         Document the need to refilter if parameters of the visibility function
2416         change.  (#169516, Olivier Sessink)     
2417
2418 Mon Mar 28 15:13:42 2005  Søren Sandmann  <sandmann@redhat.com>
2419
2420         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
2421         invalidate areas that are covered by mapped input-output child
2422         windows. Bug 141380.
2423
2424 2005-03-28  Jeroen Zwartepoorte  <jeroen.zwartepoorte@gmail.com>
2425
2426         * gtk/gtkfilechooserdefault.c: (update_preview_widget_visibility): Make
2427         the preview label ellipsize so the dialog layout stays constant.
2428         (#171398)
2429
2430 2005-03-28  Matthias Clasen  <mclasen@redhat.com>
2431
2432         * gtk/gtktreeview.c (gtk_tree_view_key_press): Don't pop up
2433         the context menu of the search entry if it is not visible.
2434         (#169534, Billy Biggs)
2435
2436 2005-03-27  Tor Lillqvist  <tml@novell.com>
2437
2438         * configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
2439         after all, and in fact necessary with HEAD libtool.
2440
2441 2005-03-26  Matthias Clasen  <mclasen@redhat.com>
2442
2443         * gtk/*.c: 
2444         * gdk/gdkdisplaymanager.c: 
2445         Use canonical names for g_object_notify() as well. 
2446
2447 2005-03-24  Tor Lillqvist  <tml@novell.com>
2448
2449         * configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
2450         in GTK_EXTRA_CFLAGS on Win32, so that it gets included in the
2451         gtk+-2.0.pc file and automatically used by dependents. MSVC users
2452         who use pkg-config will have to manually edit it out from
2453         gtk+-2.0.pc, sorry. Maybe pkg-config should be enhanced to support
2454         some kind of conditionals in .pc files?
2455
2456 2005-03-23  Matthias Clasen  <mclasen@redhat.com>
2457
2458         * gtk/gtkfilechooserbutton.c (update_combo_box): Remove
2459         a call whose result was unused and leaked.  (#170776,
2460         Kjartan Maraas)
2461
2462         Some cleanups to the GtkDialog code:  (#170746, 
2463         Morten Welinder)
2464         * gtk/gtkdialog.c (action_widget_activated): Simplify,
2465         use _gtk_dialog_get_response_for_widget.
2466         (gtk_dialog_add_action_widget): Use the correct signal
2467         id for non-buttons.
2468         (gtk_dialog_set_response_sensitive): 
2469         (gtk_dialog_set_default_response): Use get_response_data.
2470         (gtk_dialog_run): Don't disconnect the signals if the
2471         dialog was destroyed while running.
2472
2473 Tue Mar 22 14:16:31 2005  Manish Singh  <yosh@gimp.org>
2474
2475         * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
2476         Use g_return_if_fail, not g_return_val_if_fail.
2477
2478 2005-03-22  Matthias Clasen  <mclasen@redhat.com>
2479
2480         Implement bookmark renaming  (#136216, Sean Middleditch)
2481         
2482         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add 
2483         get_bookmark_label and set_bookmark_label vfuncs.
2484
2485         * gtk/gtkfilesystem.h:
2486         * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label): 
2487         (gtk_file_system_get_bookmark_label): Wrappers for the
2488         vfuncs.
2489
2490         * gtk/gtk.symbols: Add new exported symbols.
2491
2492         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label): 
2493         (gtk_file_system_unix_get_bookmark_label): Implementations
2494         for the Unix backend.
2495
2496         * gtk/gtkfilechooserdefault.c: Add a context menu to
2497         the bookmarks pane, and allow to rename bookmarks.
2498
2499 2005-03-22  Matthias Clasen  <mclasen@redhat.com>
2500
2501         * gtk/gtkpathbar.c (gtk_path_bar_unmap): 
2502         * gtk/gtkspinbutton.c (gtk_spin_button_unmap): 
2503         * gtk/gtknotebook.c (gtk_notebook_unmap): 
2504         * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when
2505         the widget is unmapped.  (#168791, Ryan Lortie)
2506
2507 2005-03-21  Matthias Clasen  <mclasen@redhat.com>
2508
2509         * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE,
2510         GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like
2511         their G_ counterparts, but also mark the name, nick
2512         and blurb as static.
2513
2514         * gtk/*.c: Mark param spec strings as static, using
2515         the new macros.
2516
2517         * gtk/gtkspinbutton.h: Fix a typo.
2518
2519 2005-03-21  Matthias Clasen  <mclasen@redhat.com>
2520
2521         * gtk/gtkcellrendererprogress.c: 
2522         * gtk/gtkcellrendererpixbuf.c: 
2523         * gtk/gtkcellrenderercombo.c: 
2524         * gtk/gtkcellrenderer.c: 
2525         * gtk/gtkcalendar.c: 
2526         * gtk/gtkbutton.c: 
2527         * gtk/gtkbox.c: 
2528         * gtk/gtkbbox.c: 
2529         * gtk/gtkaspectframe.c: 
2530         * gtk/gtkarrow.c: 
2531         * gtk/gtkalignment.c: 
2532         * gtk/gtkactiongroup.c: 
2533         * gtk/gtkaction.c:
2534         * gtk/gtkaccellabel.c: 
2535         * gtk/gtkaboutdialog.c: Mark param spec strings as static.
2536
2537         * gdk/gdkpango.c (gdk_pango_renderer_class_init): 
2538         * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): Mark
2539         param spec strings as static.
2540
2541 2005-03-21  Tor Lillqvist  <tml@novell.com>
2542
2543         * modules/engines/ms-windows/*.c: Silence gcc warnings (unused
2544         variables, unhandled enum value in switch). Use g_object_unref()
2545         instead of deprecated gdk_gc_unref() and gdk_drawable_unref().
2546
2547         * modules/engines/ms-windows/xp_theme.c (xp_theme_map_gtk_state): 
2548         Add missing "case" keyword.
2549
2550         * modules/engines/ms-windows/Makefile.am: Link with -lgdi32
2551         explicitly.
2552
2553 2005-03-20  Tor Lillqvist  <tml@novell.com>
2554
2555         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Return the
2556         Terminal Services session number, window station name (always
2557         "WinSta0" in interactive processes), and desktop name (typically
2558         "Default"), concatenated with backslash separators.
2559         (gdk_display_open): Accept only NULL or the string
2560         gdk_display_get_name() returns as display name.
2561
2562 2005-03-20  Matthias Clasen  <mclasen@redhat.com>
2563
2564         Make PLT-reduction work with gcc4, and don't include
2565         everything in gdkalias.h:
2566         
2567         * gtk/grk.symbols: Group symbols by header and source file.
2568         * gtk/makegtkalias.pl: Protect definitions by the same 
2569         preprocessor symbols used to guard the headers. Move
2570         the alias declarations to a separate file which is 
2571         produced when calling makegtkalias.pl -def
2572         * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate 
2573         this file.
2574         * gtk/*.c: Include gtkalias.h after the other headers, 
2575         include gtkaliasdef.c at the bottom.
2576         * gtk/*.h: Small cleanups.
2577
2578 Fri Mar 18 23:59:49 2005  Soeren Sandmann  <sandmann@redhat.com>
2579
2580         * gtk/gtkmenutoolbutton.c (arrow_button_button_press_event_cb):
2581         Make right-clicks not pop up the menu.
2582
2583 2005-03-18  Owen Taylor  <otaylor@redhat.com>
2584
2585         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_finish): 
2586         Call cairo_surface_finish()
2587
2588         * gdk/gdkinternals.c gdk/x11/gdkdrawable-x11.c: Remoev
2589         _gdk_windowing_set_surface_device_offset().
2590
2591 2005-03-18  Tor Lillqvist  <tml@novell.com>
2592
2593         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
2594         WM_MOUSEMOVE, don't check if this process owns the active
2595         window. This makes cross-application widget embedding work better.
2596         On WM_MOVE, don't bother checking for window visibility.
2597
2598         * gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
2599         unused variables. Add some casts to silence gcc.
2600
2601 2005-02-24  Owen Taylor  <otaylor@redhat.com>
2602
2603         * gdk/gdkwindow.c: Use cairo_set_device_offset().
2604
2605         * gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
2606         gdk/win32/gdkpixmap-win32.c: 
2607         Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the 
2608         drawable. Add _gdk_drawable_win32_finish() to clean up resources
2609         when a drawable is destroyed.
2610
2611         * gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
2612         (blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use 
2613         acquire/release_dc when getting a DC to use with a GC or for 
2614         blitting from a pixmap.
2615
2616         * gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
2617
2618         * gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
2619         Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
2620         implementations.
2621
2622         * gdk/win32/gdkdrawable-win32.c: Remove 
2623         gdk_draw_rectangle_alpha_libgtk_only()
2624
2625 2005-03-17  Owen Taylor  <otaylor@redhat.com>
2626
2627         * gdk/gdkpango.c: Fix get_stipple_surface to actually work, set
2628         EXTEND_REPEAT on the stipple pattern.
2629
2630 2005-03-17  Matthias Clasen  <mclasen@redhat.com>
2631
2632         * gtk/gtklabel.c (gtk_label_set_markup): Fix formatting
2633         in example in the docs.  (#170611, Jianfei Wang)
2634
2635         * gtk/gtkiconview.c (gtk_icon_view_size_allocate): Clamp
2636         adjustment values on resize.  (#170567, Tomislav Jonjic)
2637
2638         * gtk/gtkicontheme.c (theme_lookup_icon): Don't crash
2639         if there is no cache.  (#170652, Diego Gonzalez)
2640         
2641         * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix): 
2642         Make inline completion insert the prefix at the
2643         right spot.  (#170146, Doug Quale)
2644
2645 2005-03-17  Tor Lillqvist  <tml@novell.com>
2646
2647         * gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
2648
2649 2005-03-16  Matthias Clasen  <mclasen@redhat.com>
2650
2651         * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize): 
2652         Typo fix in the docs.
2653         
2654         * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip): 
2655         Typo fix in the docs.
2656
2657         * gtk/gtkiconview.c (gtk_icon_view_set_columns) 
2658         (gtk_icon_view_get_columns, gtk_icon_view_set_item_width) 
2659         (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing) 
2660         (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing) 
2661         (gtk_icon_view_set_column_spacing) 
2662         (gtk_icon_view_get_row_spacing, gtk_icon_view_get_margin) 
2663         (gtk_icon_view_set_margin): Add docs.
2664         
2665         * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row): 
2666         Add docs.
2667
2668 2005-03-15  Owen Taylor  <otaylor@redhat.com>
2669
2670         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c 
2671         gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
2672         gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
2673         ref_cairo_surface()
2674
2675         * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
2676         function to create_cairo_context()
2677
2678         * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
2679
2680         * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
2681         not just the pixel.
2682
2683         * tests/testcairo.c: Update for create_cairo_context()
2684
2685         * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
2686         Reimplement in terms of Cairo, bypass the vtable entries.
2687
2688         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
2689         gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
2690         gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
2691         implementation of draw_trapezoids / draw_glyphs[_transformed].
2692
2693         * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
2694
2695         * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
2696         gdk_pango_context_get_for_screen() into the backend independent code.
2697
2698         * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
2699         for drawing images.
2700
2701         * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
2702         gdk_draw_rectangle_alpha_libgtk_only.
2703
2704         * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add 
2705         gdk_pixbuf_set_as_cairo_source()
2706
2707         * gdk/gdk.symbols: Update
2708
2709         * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
2710         gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
2711
2712         * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
2713         gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
2714         radio button style for now to get something more scalable.
2715
2716         *  gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
2717         antialiasing/dpi settings.
2718
2719 2005-03-16  Matthias Clasen  <mclasen@redhat.com>
2720
2721         * demos/gtk-demo/editable_cells.c: Also demonstrate
2722         GtkCellRenderer::editing-started and separators.
2723
2724 Tue Mar 15 20:34:33 2005  Manish Singh  <yosh@gimp.org>
2725
2726         * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
2727
2728 2005-03-15  Matthias Clasen  <mclasen@redhat.com>
2729
2730         Make PLT-reduction work with gcc4, and don't include
2731         everything in gdkalias.h:
2732
2733         * gdk/gdk.symbols: Group symbols by header and source file.
2734         * gdk/makegdkalias.pl: Protect definitions by the same
2735         preprocessor symbols used to guard the headers. Move
2736         the alias declarations to a separate file which is
2737         produced when calling makegdkalias.pl -def
2738         * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
2739         file.
2740         * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
2741         headers, include gdkaliasdef.c at the bottom.
2742
2743 2005-03-16  Tor Lillqvist  <tml@novell.com>
2744
2745         * gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
2746         debugging output only if asked for, not always.
2747
2748         * gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
2749         debugging printout instead of +%d+%d. Misc other additions and
2750         cosmetic improvements to debugging printouts. Use API_CALL() and
2751         GDI_CALL() macros in more places.
2752
2753         * gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
2754         gdk_window_move_resize): To detect child windows, check whether
2755         the real parent is not the desktop window, instead of relying on
2756         the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
2757         windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
2758         de facto child windows.
2759
2760         * gdk/win32/gdkprivate-win32.h
2761         * gdk/win32/*.c: Drop global variable _gdk_root_window, just call
2762         GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
2763         _gdk_root.
2764
2765         * gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
2766         toplevel_window_type field.
2767
2768         * gdk/win32/gdkwindow-win32.c: As there is only one root window in
2769         GDK on Win32, we can compare directly to _gdk_root instead of
2770         checking the window type.
2771         (gdk_window_reparent): When reparenting a child of the desktop
2772         clear out the window decorations. Correspondingly, when
2773         reparenting to the desktop, add decorations. As in the X11
2774         backend, save the window type of a toplevel window when
2775         reparenting, in case it is reparented back to toplevel.
2776
2777 2005-03-15  Matthias Clasen  <mclasen@redhat.com>
2778
2779         * gtk/gtkradioaction.c (gtk_radio_action_get_group): Add an
2780         example for manually setting up a group of actions.
2781
2782         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
2783         Document that inline completion requires text-column to be set.
2784         (gtk_entry_completion_compute_prefix): Return NULL if text-column
2785         is not set.
2786
2787         * gtk/gtkentry.c (check_completion_callback): Call 
2788         gtk_entry_completion_complete() before inserting the prefix,
2789         otherwise the prefix may depend on (random) state of the
2790         filter model.  
2791
2792 2005-03-15  Anders Carlsson  <andersca@imendio.com>
2793
2794         * docs/iconcache.txt:
2795         Update spec.
2796         
2797         * gtk/gtkiconcache.c: (find_image_offset),
2798         (_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
2799         (_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
2800         * gtk/gtkiconcache.h:
2801         Update to be able to fetch pixbuf data and icon metadata.
2802         
2803         * gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
2804         (icon_info_ensure_scale_and_pixbuf):
2805         Use new cache functions.
2806         
2807         * gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
2808         (maybe_cache_image_data), (scan_directory), (write_pixdata),
2809         (get_image_meta_data_size), (get_image_pixel_data_size),
2810         (get_image_data_size), (get_single_node_size), (get_bucket_size),
2811         (write_bucket), (main):
2812         Update to write pixbuf data as well as information from .icon
2813         files.
2814         
2815 2005-03-15  Tor Lillqvist  <tml@novell.com>
2816
2817         * gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
2818         debugging function. As GetKeyNameText() returns a localized key
2819         name we need to convert it to UTF-8.
2820
2821         * gdk/win32/gdkprivate-win32.h: Declare it.
2822
2823         * gdk/win32/gdkevents-win32.c: Use it.
2824
2825         * gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
2826         handling of children of foreign windows. They should be child
2827         windows from Windows's perspective, even if they are toplevel GDK
2828         windows.
2829
2830 2005-03-13  Ivan, Wong Yat Cheung  <email@ivanwong.info>
2831
2832         * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): A further fix
2833         for big window support. Now also the test in testgtk works.
2834
2835 2005-03-11  Matthias Clasen  <mclasen@redhat.com>
2836
2837         * gtk/gtkaboutdialog.c (add_credits_page): Don't crash on
2838         style changes.  (#169334, Yury Puzis)
2839
2840         * gtk/gtkicontheme.c (gtk_icon_theme_set_custom_theme): Fix
2841         the doc comments.  (#169967, Masao Mutoh)
2842
2843 2005-03-12  Ivan, Wong Yat Cheung  <email@ivanwong.info>
2844
2845         Big window fix for Win32. Big windows are still emulated within
2846         16-bit coordinate limits, though. Big windows now work on NT-based
2847         Windows. (#169989)
2848
2849         * gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
2850         32-bit coordinates.
2851
2852         * gdk/win32/gdkgeometry-win32.c: Largely rewrite.
2853
2854         * gdk/win32/gdkwindow-win32.c: Minor related changes.
2855         
2856 2005-03-10  Matthias Clasen  <mclasen@redhat.com>
2857
2858         * gtk/gtkliststore.c (gtk_list_store_insert_with_valuesv): 
2859         Fix a doc typo.  (#169873, Johan Dahlin)
2860
2861         * gtk/gtkdialog.c (gtk_dialog_map): Don't
2862         try to focus the default_widget if there is 
2863         none.  (#169881, Thomas Leonard)
2864
2865 Wed Mar  9 19:20:44 2005  Manish Singh  <yosh@gimp.org>
2866
2867         * configure.in: Remove inadvertent gail references, require
2868         Pango 1.9.0
2869
2870 2005-03-09  Matthias Clasen  <mclasen@redhat.com>
2871
2872         * configure.in: Require GLib 2.7.0
2873
2874 2005-03-09  Matthias Clasen  <mclasen@redhat.com>
2875
2876         * gtk/gtkwidget.h (struct _GtkWidget): Typo fixes in comments.
2877         (#169728, Morten Welinder, Owen Taylor)
2878
2879         * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): Fix a typo
2880         in the docs.  (#169729, Morten Welinder)
2881
2882         * gtk/gtkimage.c (gtk_image_class_init): Fix a typo.
2883
2884         * gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize 
2885         when the model is unset.  (#169528, Tomislav Jonjic)
2886
2887 2005-03-09  Matthias Clasen  <mclasen@redhat.com>
2888
2889         * gtk/gtkviewport.c (gtk_viewport_class_init): 
2890         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): 
2891         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_class_init): 
2892         * gtk/gtktipsquery.c (gtk_tips_query_class_init): 
2893         * gtk/gtktext.c (gtk_text_class_init): 
2894         * gtk/gtkstatusbar.c (gtk_statusbar_class_init): 
2895         * gtk/gtkspinbutton.c (gtk_spin_button_class_init): 
2896         * gtk/gtktoggleaction.c (gtk_toggle_action_class_init): 
2897         * gtk/gtkoptionmenu.c (gtk_option_menu_class_init): 
2898         * gtk/gtkoldeditable.c (gtk_old_editable_class_init): 
2899         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): 
2900         * gtk/gtktoolbutton.c (gtk_tool_button_class_init): 
2901         * gtk/gtktoolitem.c (gtk_tool_item_class_init): 
2902         * gtk/gtkimage.c (gtk_image_class_init): 
2903         * gtk/gtkruler.c (gtk_ruler_class_init): 
2904         * gtk/gtkiconview.c (gtk_icon_view_class_init): 
2905         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): 
2906         * gtk/gtkprogress.c (gtk_progress_class_init): 
2907         * gtk/gtkmenu.c (gtk_menu_class_init): 
2908         * gtk/gtkscale.c (gtk_scale_class_init): 
2909         * gtk/gtkpaned.c (gtk_paned_class_init): 
2910         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
2911         * gtk/gtkfontbutton.c (gtk_font_button_class_init): 
2912         * gtk/gtkfontsel.c (gtk_font_selection_class_init): 
2913         * gtk/gtkfilesel.c (gtk_file_selection_class_init): 
2914         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
2915         * gtk/gtkcurve.c (gtk_curve_class_init): 
2916         * gtk/gtkcombo.c (gtk_combo_class_init): 
2917         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
2918         * gtk/gtkcolorbutton.c (gtk_color_button_class_init): 
2919         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): 
2920         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): 
2921         * gtk/gtkcheckbutton.c (gtk_check_button_class_init): 
2922         * gtk/gtktogglebutton.c (gtk_toggle_button_class_init): 
2923         * gtk/gtkcellview.c (gtk_cell_view_class_init): 
2924         * gtk/gtktoolbar.c (gtk_toolbar_class_init): 
2925         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): 
2926         * gtk/gtkclist.c (gtk_clist_class_init): 
2927         * gtk/gtkctree.c (gtk_ctree_class_init): 
2928         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): 
2929         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): 
2930         * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init): 
2931         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_class_init): 
2932         * gtk/gtkcalendar.c (gtk_calendar_class_init): 
2933         * gtk/gtkbbox.c (gtk_button_box_class_init): 
2934         * gtk/gtktable.c (gtk_table_class_init): 
2935         * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): 
2936         * gtk/gtkframe.c (gtk_frame_class_init): 
2937         * gtk/gtkaction.c (gtk_action_class_init): 
2938         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): 
2939         * gtk/gtkaboutdialog.c (gtk_about_dialog_class_init): 
2940         * gtk/gtkdialog.c (gtk_dialog_class_init): More of the same.
2941
2942 2005-03-08  Matthias Clasen  <mclasen@redhat.com>
2943
2944         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): 
2945         * gtk/gtkrange.c (gtk_range_class_init): 
2946         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): 
2947         * gtk/gtktexttag.c (gtk_text_tag_class_init): 
2948         * gtk/gtktextview.c (gtk_text_view_class_init): 
2949         * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): 
2950         * gtk/gtknotebook.c (gtk_notebook_class_init): 
2951         * gtk/gtkentry.c (gtk_entry_class_init): 
2952         * gtk/gtkexpander.c (gtk_expander_class_init): 
2953         * gtk/gtkarrow.c (gtk_arrow_class_init): 
2954         * gtk/gtkalignment.c (gtk_alignment_class_init): 
2955         * gtk/gtkbutton.c (gtk_button_class_init): 
2956         * gtk/gtklabel.c (gtk_label_class_init): 
2957         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): 
2958         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
2959         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 
2960         * gtk/gtktreeview.c (gtk_tree_view_class_init): 
2961         * gtk/gtkbox.c (gtk_box_class_init): 
2962         * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init): 
2963         * gtk/gtkcontainer.c (gtk_container_class_init): 
2964         * gtk/gtkwidget.c (gtk_widget_class_init): 
2965         * gtk/gtkobject.c (gtk_object_class_init): Use canonical names
2966         when registering param specs.
2967
2968         * demos/gtk-demo/editable_cells.c: Use GtkCellRendererCombo
2969         (#169607, Mark McLoughlin)
2970         
2971         * gtk/gtk.symbols: Add the new attributes here, too.
2972
2973         * gtk/gtkwidget.h: 
2974         * gtk/gtktreeview.h: 
2975         * gtk/gtktreeviewcolumn.h: 
2976         * gtk/gtktextbuffer.h: 
2977         * gtk/gtkobject.h: 
2978         * gtk/gtkfilechooserdialog.h: 
2979         * gtk/gtkdialog.h: 
2980         * gtk/gtkcontainer.h: 
2981         * gtk/gtkcelllayout.h: 
2982         * gtk/gtkaboutdialog.h: Use G_GNUC_NULL_TERMINATED where
2983         appropriate.  (#165682, Marc Meissner)
2984
2985 2005-03-07  Matthias Clasen  <mclasen@redhat.com>
2986
2987         Convert the gdk keyval-keyname tables to a big string
2988         + offsets. (#168901)
2989         
2990         * gdk/gen-keyname-table.pl: Perl script inspired by
2991         pango/tools/gen-color-table.pl to create the 
2992         gdk_keys_by_keyval and gdk_keys_by_name tables as lists
2993         of offsets pointing into a big const string.
2994         
2995         * gdk/keynames.txt: List of keyval-keyname pairs.
2996         * gdk/keyname-table.h: Generated tables.
2997
2998         * gdk/gdkkeynames.c: Include keyname-table.h and don't
2999         generate the inverse table at runtime.
3000
3001 2005-03-07  Matthias Clasen  <mclasen@redhat.com>
3002
3003         * gtk/gtkstyle.c: Document which parameters may be NULL.  
3004         (#166855, Frank Naumann)
3005
3006 2005-03-07  Matthias Clasen  <mclasen@redhat.com>
3007
3008         * AUTHORS: Add original authors of incorporated software.
3009
3010 Thu Mar  3 16:59:44 2005  Manish Singh  <yosh@gimp.org>
3011
3012         * configure.in: URL escape the '+' in gtk+ in the bugzilla URL.
3013
3014 2005-03-03  Matthias Clasen  <mclasen@redhat.com>
3015
3016         * gtk/gtksettings.c (gtk_settings_get_property): 
3017         * gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak 
3018         the values here.  (#169047, Philip Langdale)
3019
3020         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): 
3021         Don't warn if a stock icon cannot be found.  (#168830,
3022         Sven Neumann)
3023
3024 2005-03-03  Matthias Clasen  <mclasen@redhat.com>
3025
3026         * gtk/gtkwidget.c (gtk_widget_reparent_subwindows): 
3027         Avoid warnings if gtk_widget_reparent() is called at
3028         unusual times.  (#168966, Christian Persch)
3029
3030 Tue Mar  1 14:04:08 2005  Manish Singh  <yosh@gimp.org>
3031
3032         * gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
3033         const warnings on data structure seeding.
3034
3035 Tue Mar  1 13:53:56 2005  Manish Singh  <yosh@gimp.org>
3036
3037         * gtk/xdgmime/xdgmime.[ch]: revert previous change, maintain ABI.
3038
3039 2005-03-01  Matthias Clasen  <mclasen@redhat.com>
3040
3041         * gtk/gtkmenutoolbutton.c (button_state_changed_cb): 
3042         Fix prelighting.  (#157392, Vincent Noel, patch by
3043         Christian Persch)
3044
3045         * gtk/gtkicontheme.c (theme_lookup_icon): Make 
3046         icon data caching work again.  (#168851, Alexander Larsson)
3047
3048         * gdk-pixbuf/gdk-pixbuf.c:
3049         * gdk-pixbuf/gdk-pixbuf-features.h.in:
3050         Revert the previous change, since it breaks
3051         bin compat.
3052
3053 2005-03-01  Matthias Clasen  <mclasen@redhat.com>
3054
3055         * gdk/gdkkeyuni.c
3056         * gdk/gdkpixbuf-drawable.c
3057         * gdk/gdkrgb.c
3058         * gdk/x11/gdkdnd-x11.c
3059         * gdk/x11/gdkevents-x11.c
3060         * gdk/x11/gdkproperty-x11.c
3061         * gdk/x11/gdkvisual-x11.c
3062         * gdk-pixbuf/gdk-pixbuf.c
3063         * gdk-pixbuf/gdk-pixbuf-features.h.in
3064         * gtk/gtkaction.c
3065         * gtk/gtkbindings.c
3066         * gtk/gtkcolorbutton.c
3067         * gtk/gtkcombo.c
3068         * gtk/gtkcontainer.c
3069         * gtk/gtkfilechooserdefault.c
3070         * gtk/gtkfilesel.c
3071         * gtk/gtkgamma.c
3072         * gtk/gtkiconview.c
3073         * gtk/gtkinputdialog.c
3074         * gtk/gtkitemfactory.c
3075         * gtk/gtkmenu.c
3076         * gtk/gtktextview.c
3077         * gtk/gtktooltips.c
3078         * gtk/gtktreedatalist.c
3079         * gtk/gtkuimanager.c
3080         * gtk/tree_minus.xpm
3081         * gtk/tree_plus.xpm
3082         * gtk/xdgmime/xdgmime.c
3083         * gtk/xdgmime/xdgmime.h: 
3084         Move constant data to .rodata.
3085
3086 2005-02-27  Matthias Clasen  <mclasen@redhat.com>
3087
3088         * gtk/gtkaction.c (connect_proxy): Improve the handling
3089         of buttons as action proxys.  (#165534, Milosz Derezynski)
3090
3091         * gtk/gtklabel.c (gtk_label_size_request): Fix a typo.
3092         (#168646, Vincent Untz)
3093
3094         * gtk/gtkfilechooserdefault.c (save_folder_combo_create): 
3095         Unset "focus-on-click" for the save folder combo.  (#168688,
3096         Sven Neumann)
3097
3098 2005-02-25  Matthias Clasen  <mclasen@redhat.com>
3099
3100         * demos/testpixbuf.c (main): Remove a C++ comment.  (#168531, 
3101         Paul Cornett)
3102
3103         * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Don't leak a 
3104         path here.  (#168443, Morten Welinder)
3105
3106 2005-02-24  Robert Ögren  <gtk@roboros.com>
3107
3108         Implement better handling of Wintab tablet context overlap on
3109         Win32. (#167298)
3110
3111         * gdk/win32/gdkinput-win32.c (_gdk_input_set_tablet_active): New
3112         function that brings any tablet contexts to the top of the overlap
3113         order.
3114         * gdk/win32/gdkinput-win32.h: Declare _gdk_input_set_tablet_active ()
3115         * gdk/win32/gdkevents-win32.c (gdk_event_translate):
3116         Call _gdk_input_set_tablet_active when a window is activated (on
3117         WM_ACTIVATE)
3118
3119 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
3120
3121         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_path): 
3122         Don't leak parent_path.  (#168435, Morten Welinder)
3123
3124 Thu Feb 24 14:20:16 2005  Søren Sandmann  <sandmann@redhat.com>
3125
3126         * gtk/gtkstyle.c: Add
3127
3128         g_return_if_fail (style->depth == gdk_drawable_get_depth(window));
3129
3130         all over the place.
3131
3132 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
3133
3134         * gtk/gtkcombobox.c: Consistently use gtk_tree_row_reference_valid().
3135         (gtk_combo_box_model_row_deleted): Update the displayed row in 
3136         the cell_view.  (#167842, Gustavo Carneiro)
3137
3138 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
3139
3140         Fix #167259, reported by  Christian Persch:
3141         
3142         * gtk/gtkwidget.c (gtk_widget_unparent): Unmap the reparented 
3143         widget, even if we avoid the unrealizing. 
3144         (gtk_widget_reparent_subwindows): Make reparenting work for
3145         !NO_WINDOW widgets which have other windows which are siblings
3146         of widget->window (as e.g. GtkSpinButton).
3147
3148 2005-02-24  Matthias Clasen  <mclasen@redhat.com>
3149
3150         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed): 
3151         Don't emit a warning if a parent node is filtered out. (#164726,
3152         Olivier Sessink)
3153
3154 2005-02-23  Matthias Clasen  <mclasen@redhat.com>
3155
3156         * gtk/gtklabel.c (gtk_label_style_set): Revert the last 
3157         change, since gtk_widget_set_style_internal() already
3158         queues a resize.
3159
3160 2005-02-23  Matthias Clasen  <mclasen@redhat.com>
3161
3162         * gtk/gtklabel.c (gtk_label_style_set): Queue a resize, since
3163         fonts may have changed.  (#164128, Phil Blundell)
3164
3165         * gtk/gtkaboutdialog.c (gtk_about_dialog_init) 
3166         (gtk_about_dialog_new): Move initialization code from _new to 
3167         _init.  (#168249, Murray Cumming) 
3168
3169 Wed Feb 23 17:34:01 2005  Jonathan Blandford  <jrb@redhat.com>
3170
3171         * gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
3172         jorn@nl.linux.org (Jorn Baayen) to notice changes to fixed-height
3173         widgets.
3174
3175 2005-02-23  Tor Lillqvist  <tml@novell.com>
3176
3177         * gdk/win32/gdkkeys-win32.c (update_keymap): Workaround for bug in
3178         MapVirtualKey(VK_DIVIDE, 0) in some Windows versions. (#142998)
3179
3180 Tue Feb 22 13:49:09 2005  Manish Singh  <yosh@gimp.org>
3181
3182         * gtk/updateiconcache.c: #include <config.h>
3183
3184 2005-02-22  Federico Mena Quintero  <federico@ximian.com>
3185
3186         Merged from gtk-2-6:
3187
3188         Fix #164940, patch by Ben Maurer and Tommi Komulainen.
3189
3190         * gdk/gdkrgb.c (gdk_rgb_convert_565_d): Constify the "dmp" variable.
3191         (gdk_rgb_convert_565_d): Likewise.
3192         (DM_565): Made a static const precomputed array to avoid
3193         allocating it at runtime.
3194         (gdk_rgb_preprocess_dm_565): #ifdef out.
3195
3196 2005-02-20  Matthias Clasen  <mclasen@redhat.com>
3197
3198         * gtk/gtkwindow.c: 
3199         * gtk/gtkclipboard.c: Fix links to freedesktop.org specs
3200         in the documentation.
3201
3202         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids): 
3203         Set have_render_with_trapezoids to GDK_YES when we have 
3204         a new enough Render extension.  (#167965,Billy Biggs) 
3205
3206         * gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
3207         the last user interaction when focusing the window.  (#166379, 
3208         Elijah Newren)
3209
3210 Thu Feb 17 14:58:16 2005  Manish Singh  <yosh@gimp.org>
3211
3212         * gtk/gtkuimanager.c (start_element_handler): make sure expand
3213         is initialized, cast to GTK_SEPARATOR_TOOL_ITEM.
3214
3215 Thu Feb 17 14:52:57 2005  Manish Singh  <yosh@gimp.org>
3216
3217         * gtk/gtkcombobox.c: Pass gtk_widget_get_toplevel() a GTK_WIDGET.
3218
3219 2005-02-16  Matthias Clasen  <mclasen@redhat.com>
3220
3221         * docs/iconcache.txt: Add some information about the
3222         icon cache format (since I can't locate it at freedesktop.org)
3223
3224         Fixes for #143829, Tommi Komulainen, Christian Persch:
3225         
3226         * gtk/gtktreeview.c (gtk_tree_view_destroy): Remove the
3227         typeselect_flush_timeout when destroying the widgets
3228         it is operating on.  
3229         (gtk_tree_view_ensure_interactive_directory): Add the 
3230         popup to the window group of the toplevel it belongs to.
3231
3232         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget) 
3233         (gtk_combo_box_popup): Do the same here. 
3234
3235 2005-02-14  Matthias Clasen  <mclasen@redhat.com>
3236
3237         * configure.in: Kill --enable-ansi  (#164394)
3238
3239 2005-02-11  Matthias Clasen  <mclasen@redhat.com>
3240
3241         * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling 
3242         when the pathbar goes away.  (#167094, Rodney Dawes)
3243         (change_icon_theme): Use GTK_ICON_SIZE_MENU here as 
3244         well  (Vincent Noel)
3245
3246 2005-02-11  Matthias Clasen  <mclasen@redhat.com>
3247
3248         Support vertical menubars  (#166632): 
3249         
3250         * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack 
3251         directions, with values for left-to-right, right-to-left, 
3252         top-to-bottom and bottom-to-top.
3253
3254         * gtk/gtk.symbols: 
3255         * gtk/gtkmenubar.h: 
3256         * gtk/gtkmenubar.c: Add two properties, pack-direction and
3257         child-pack-direction, which specify how children and 
3258         grandchildren of a menubar are packed, with getters and setters. 
3259
3260         * gtk/gtkmenubar.c (gtk_menu_bar_set_property): 
3261         (gtk_menu_bar_get_property): Implement set_property and get_property.
3262
3263         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): 
3264         (gtk_menu_bar_size_allocate): Take pack direction into account.
3265
3266         * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement 
3267         move_current here move all the menubar-specific direction 
3268         tweaking from the generic menushell implementation here.
3269
3270         * gtk/gtkmenu.c (gtk_menu_move_current): Move  menu-specific 
3271         direction tweaking from the generic menushell implementation here.
3272
3273         * gtk/gtkmenuitem.c (gtk_menu_item_size_request): 
3274         (gtk_menu_bar_size_allocate): Take pack direction into account.
3275
3276         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request) 
3277         (gtk_image_menu_item_size_allocate): 
3278         (gtk_image_menu_item_toggle_size_request): Take child pack 
3279         direction into account and pack the image vertically if
3280         necessary.
3281
3282         * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
3283         Set the submenu direction to left-right for menuitems in 
3284         vertical menubars.
3285         (gtk_real_menu_shell_move_current): Simplify by moving
3286         direction tweaking to menu- and menubar-specific 
3287         implementations. Take pack direction into account when
3288         doing fallbacks.
3289
3290         * tests/testmenubars.c: Test menubars in various packing
3291         direction combinations.
3292
3293         * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
3294
3295 2005-02-11  Matthias Clasen  <mclasen@redhat.com>
3296
3297         Complete the fix for #165770, Vincent Noel:
3298         
3299         * gtk/gtkfilechooserbutton.c (FALLBACK_ICON_SIZE): Make the
3300         fallback size be 16, to be equal to the default for
3301         GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
3302         (gtk_file_chooser_button_init):
3303         (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
3304         GTK_ICON_SIZE_SMALL_TOOLBAR. 
3305
3306 2005-02-09  Matthias Clasen  <mclasen@redhat.com>
3307
3308         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
3309         keynav for going from menubar to menu.
3310
3311 2005-02-08  Christian Rose  <menthos@menthos.com>
3312
3313         * configure.in: Added "xh" to ALL_LINGUAS.
3314
3315 2005-02-08  Matthias Clasen  <mclasen@redhat.com>
3316
3317         * gtk/gtkuimanager.c (start_element_handler): Accept 
3318         the "expand" attribute and set a flag in the node if it
3319         is set to "true".
3320         (update_node): If the expand flag is set, make separator
3321         toolitems non-drawn and expanding.  (#166489, Christian Persch)
3322
3323 2005-02-05  Hans Breuer  <hans@breuer.org>
3324
3325         * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in :
3326         build with Cairo dependency. The patch to acually use Cairo
3327         on win32 will be on gtk-devel-list soon.
3328         * tests/makefile.msc : add testcairo building
3329
3330         * gtk/stock-icons/makefile.msc : split command line into two to
3331         work with the shells default
3332
3333 Fri Feb  4 14:16:31 2005  Manish Singh  <yosh@gimp.org>
3334
3335         * gtk/gtkaccelgroup.c (substitute_underscores): remove unused
3336         function.
3337
3338         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
3339         Add some extra parens for bitop order of operations disambiguiation.
3340
3341         * gtk/gtkstock.c: Fix const confusion, make our own copy of the 
3342         domain when setting a translate function.
3343
3344         * tests/testcombo.c: removed unused variable.
3345
3346 2005-02-04  Matthias Clasen  <mclasen@redhat.com>
3347
3348         * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
3349         being NULL.  (#166179, Diego Gonzalez)
3350
3351 2005-02-04  Owen Taylor  <otaylor@redhat.com>
3352
3353         * configure.in: Revert gtk_binary_version to 2.4.0. Fix
3354         up comment to talk only about backwards compat, not
3355         forward/backwards compat. (#166293, reported by Vincent Noel)
3356
3357 2005-02-04  Matthias Clasen  <mclasen@redhat.com>
3358
3359         * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
3360         when there is not enough space. This avoids a nasty size
3361         allocation loop in the file chooser.  (#154007, reported 
3362         by Milosz Derezynski, patch by Robert Ögren)
3363
3364 2005-02-04  Matthias Clasen  <mclasen@redhat.com>
3365
3366         * gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious
3367         selection of RTL direction if the widget does not have 
3368         focus.  (#164125, Frederic Crozat)
3369
3370 Thu Feb  3 19:15:55 2005  Manish Singh  <yosh@gimp.org>
3371
3372         * gdk/x11/gdkdrawable-x11.c: #include cairo-xlib.h
3373
3374 2005-02-03  Owen Taylor  <otaylor@redhat.com>
3375
3376         * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add
3377         gdk_drawable_set_cairo_target().
3378
3379         * tests/testtreeflow.c (enum): Use grand not rand as a variable
3380         name because one of the cairo headers is pulling in stdlib.h.
3381
3382         * tests/testcairo.c tests/Makefile.am: Add a simple cairo based
3383         example.
3384
3385         * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0.
3386
3387         * Require libpangocairo for all backends.
3388
3389 2005-02-03  Tor Lillqvist  <tml@novell.com>
3390
3391         * modules/input/gtkimcontextime.c (get_pango_attr_list): Use the
3392         wide character version of ImmGetCompositionString() here,
3393         too. (#165278, Takuro Ashie)
3394
3395 2005-02-03  Matthias Clasen  <mclasen@redhat.com>
3396
3397         * gtk/gtkmenu.c (gtk_menu_handle_scrolling): Don't do
3398         one roundtrip per motion event.  (#166173, pointed out
3399         by Chris Lee, patch by Søren Sandmann)
3400
3401         * gtk/gtk.symbols: 
3402         * gtk/gtkstock.h: 
3403         * gtk/gtkstock.c (gtk_stock_set_translate_func): 
3404         New function which allows to change the function used for
3405         translation stock labels, on a per-domain basis. Use this
3406         functionality to switch the GTK+ stock items to use Q_()
3407         prefixed msgids.  (#166179, Funda Wang)
3408         
3409         * gdk/gdkkeynames.c: Make the gdk_key array const (#166075,
3410         Tommi Komulainen)
3411
3412 2005-02-02  Federico Mena Quintero  <federico@ximian.com>
3413
3414         Merged from gtk-2-6:
3415
3416         * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
3417         Don't select the first row if the chooser is not mapped.  This
3418         happens when it's acting on behalf of GtkFileChooserButton.  Also,
3419         don't select the first row if we are in SAVE or CREATE_FOLDER
3420         modes --- I had missed that (see the ChangeLog entry from
3421         2005-01-18).  Fixes #165264.
3422
3423 2005-02-02  Tor Lillqvist  <tml@novell.com>
3424
3425         Implement lazy extended input initialization on Win32, by Robert
3426         Ögren. Fixes #163163, possibly #162334. Lazy initialization would
3427         be a good idea in any case even if it didn't fix any visible
3428         problems, though.
3429
3430         The Wacom tablet driver seems to get confused if Wintab is
3431         initialized but no window is shown before the process exits. This
3432         is the case for some GIMP plug-ins, for instance. 
3433
3434         * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Made
3435         non-static (and renamed).
3436         (_gdk_input_init): Don't call _gdk_input_wintab_init_check().
3437
3438         * gdk/win32/gdkinput-win32.h: Declare _gdk_input_wintab_init_check().
3439
3440         * gdk/win32/gdkinput.c (gdk_devices_list,
3441         gdk_display_list_devices, gdk_input_set_extension_events): Call
3442         _gdk_input_wintab_init_check() here instead.
3443
3444 2005-02-02  Ivan, Wong Yat Cheung  <email@ivanwong.info>
3445
3446         * gdk/win32/gdkselection.c: Use a FIFO list for storing GdkSelProp
3447         of a single window so that gtk_clipboard_request_contents() can be
3448         called inside a GtkClipboardReceivedFunc(). (#163844)
3449
3450 2005-02-01  Matthias Clasen  <mclasen@redhat.com>
3451
3452         * gtk/gtkicontheme.c (gtk_icon_theme_init): Look for icons
3453         in XDG_DATA_DIRS/pixmaps.  (#165950, Thomas Zajic)
3454
3455         * gtk/gtkwindow.c (gtk_window_set_icon_name): Set info->icon_list
3456         to NULL after freeing it.  (#165800, Damon Chaplin)
3457
3458 2005-02-01  Michael Natterer  <mitch@gimp.org>
3459
3460         * configure.in: depend on stable pango-1.8, not unstable 1.7
3461
3462 2005-02-01  Federico Mena Quintero  <federico@ximian.com>
3463
3464         Merged from gtk-2-6:
3465
3466         * gtk/gtkfilechooserdefault.c
3467         (browse_files_model_finished_loading_cb): Don't
3468         g_assert_not_reached() if we are in any other state.  Another code
3469         path may have triggered a folder reload.  Fixes #165556.
3470
3471 2005-02-01  Federico Mena Quintero  <federico@ximian.com>
3472
3473         Merged from gtk-2-6:
3474
3475         Fix #165770:
3476
3477         * gtk/gtkfilechooserdefault.c (FALLBACK_ICON_SIZE): Make the
3478         fallback size be 16, to be equal to the default for
3479         GTK_ICON_SIZE_MENU (in gtkiconfactory.c:init_icon_sizes()).
3480         (change_icon_theme): Use GTK_ICON_SIZE_MENU instead of
3481         GTK_ICON_SIZE_SMALL_TOOLBAR.
3482
3483 2005-02-01  Matthias Clasen  <mclasen@redhat.com>
3484
3485         * */*.c: Fix many instances of "the the" in docs and
3486         comments.  (#165815, Masao Mutoh)
3487
3488         * gtk/updateiconcache.c (main): Add a --quiet option.
3489
3490 2005-02-01  Tor Lillqvist  <tml@novell.com>
3491
3492         * gdk/win32/gdkkeys-win32.c (handle_special, set_shift_vks,
3493         reset_after_dead, handle_dead): New functions, code blocks
3494         refactored out of update_keymap(). No functionality change.
3495
3496         (update_keymap): Use ToUnicodeEx() when available (on NT-based
3497         Windows) instead of ToAsciiEx(). Makes keyboard input work in
3498         Unicode-only input locales that don't have any ANSI codepage, for
3499         instance Hindi and Bengali. Use _gdk_input_codepage only on
3500         Win9x. (#165723)
3501
3502         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
3503         WM_INPUTLANGCHANGE, use GetLocaleInfo() instead of
3504         TranslateCharsetInfo() to get the input locale's corresponding
3505         codepage, if any.
3506
3507 2005-01-31  Matthias Clasen  <mclasen@redhat.com>
3508
3509         * modules/input/gtkimcontextxim.c: Use NULL, not 0 to terminate 
3510         NULL-terminated va lists.  (#165683)
3511
3512 2005-01-29  Matthias Clasen  <mclasen@redhat.com>
3513
3514         * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_set_draw): 
3515         Typo fix.  (#165581, Masao Mutoh)
3516
3517 Thu Jan 27 14:25:45 2005  Manish Singh  <yosh@gimp.org>
3518
3519         * README.cvs-commits: update ancient IRC info.
3520
3521 2005-01-27  Federico Mena Quintero  <federico@ximian.com>
3522
3523         Merged from gtk-2-6:
3524
3525         * gtk/gtkfilechooserdefault.c
3526         (gtk_file_chooser_default_select_path): Oops, don't assert that we
3527         can't reach the end of the function; this happens if we are still
3528         loading but don't need a path change.  Fixes #165213.
3529
3530 2005-01-27  Matthias Clasen  <mclasen@redhat.com>
3531
3532         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
3533         Make wrapping work in RTL mode.  
3534
3535         * gtk/gtkaboutdialog.c: Some visual tweaks to the about dialog,
3536         obey HIG spacing a bit more, add a hand cursor when over the
3537         link button.  (#163979, Jorn Baayen)
3538
3539 2005-01-26  Matthias Clasen  <mclasen@redhat.com>
3540
3541         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): 
3542         Don't allow -1 as minimum-key-length.
3543         (gtk_entry_completion_set_model): Add missing notification.
3544         (gtk_entry_completion_set_minimum_key_length): Add missing
3545         notification, allow setting minimum-key-length to 0.  (#165194,
3546         Vincent Ladeuil)
3547
3548 2005-01-26  Matthias Clasen  <mclasen@redhat.com>
3549
3550         * gtk/gtkaboutdialog.c (display_license_dialog): Make sure
3551         the license dialog is initially displayed without a horizontal
3552         scrollbar.  
3553         (gtk_about_dialog_class_init): Document the fact that the 
3554         license text is not wrapped.  (#165012, Christian Rose)
3555
3556 2005-01-25  Matthias Clasen  <mclasen@redhat.com>
3557
3558         * gtk/gtkbutton.c (gtk_button_set_image): Fix docs.  (#165180,
3559         Jeff Franks)
3560
3561         * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Fix 
3562         docs.  (#165163, Jeff Franks)
3563         
3564         * gtk/gtkimage.c (gtk_image_get_property): Use the correct setter
3565         for a string GValue.  (#165203, Damon Chaplin)
3566
3567 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
3568
3569         * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): 
3570         Initialize user_time from DESKTOP_STARTUP_ID.  (#165131,
3571         Elijah Newren)
3572
3573 2005-01-24  Federico Mena Quintero  <federico@ximian.com>
3574
3575         * gtk/gtkfilechooserdefault.c: Removed leftover comments.
3576
3577 2005-01-24  Federico Mena Quintero  <federico@ximian.com>
3578
3579         Merged from gtk-2-6:
3580
3581         Fix #147785 and clean up the loading code:
3582
3583         * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states
3584         be EMPTY, PRELOAD, LOADING, FINISHED.
3585         (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state.
3586         (struct _GtkFileChooserDefault): Added a pending_select_paths
3587         field.
3588         (load_remove_timer): Add the new states.
3589         (load_setup_timer): Likewise.
3590         (load_timeout_cb): Likewise.  Switch to the LOAD_LOADING state.
3591         (browse_files_model_finished_loading_cb): Switch to the
3592         LOAD_FINISHED state.
3593         (enum PendingOp): Removed.
3594         (struct _GtkFileChooserDefault): Removed the pending_op and
3595         pending_select_path fields.
3596         (pending_select_paths_free): New utility function.
3597         (pending_select_paths_add): New utility function.
3598         (gtk_file_chooser_default_finalize): Call
3599         pending_select_paths_free().
3600         (pending_op_queue): Removed.
3601         (pending_op_process): Removed.
3602         (pending_select_paths_process): New function.
3603         (browse_files_model_finished_loading_cb): Call
3604         pending_select_paths_process().
3605         (center_selected_row_foreach_cb): Handle multiple selection by
3606         only centering the first row.
3607         (get_is_file_filtered): Constify.
3608         (gtk_file_chooser_default_select_path): Queue into a list of paths
3609         to select if we are not finished loading.
3610         (show_and_select_paths): New utility function.
3611         (up_folder_handler): Use pending_select_paths_add().
3612         (gtk_file_chooser_default_should_respond): Do not call
3613         pending_op_queue(); free the pending_selected_paths instead.
3614         (gtk_file_chooser_default_initial_focus): Don't queue a pending
3615         operation, and don't select the first row unconditionally --- this
3616         will happen when the folder is done loading.
3617         (shortcuts_row_activated_cb): Free the pending_select_paths.
3618         (pending_select_paths_store_selection): New utility function.
3619         (gtk_file_chooser_default_map): Call
3620         pending_select_paths_store_selection() to save the selection
3621         before reloading the folder.
3622         (select_func): Umm?  Call gtk_tree_selection_select_iter().  Don't
3623         move the cursor here; it will be done when processing the pending paths.
3624
3625         * tests/testfilechooser.c (main): Add a button to the command
3626         window to unmap and remap the file chooser.
3627
3628 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
3629
3630         * docs/tutorial/gtk-tut.sgml:
3631         * docs/tutorial/gtk_tut.sgml:
3632         * docs/reference/gtk/tmpl/gtkliststore.sgml:
3633         * gtk/gtkactiongroup.c:
3634         * gtk/gtksizegroup.c:
3635         * gtk/gtksizegroup.h:
3636         * gtk/gtktogglebutton.c: Replace "effect" by "affect" where
3637         appropriate.  (#165108, Dan Winship)
3638
3639 2005-01-24  Matthias Clasen  <mclasen@redhat.com>
3640
3641         * gtk/gtkwidget.c (gtk_widget_class_init): Document 
3642         GtkWidget::style-set.  (#164222, Alex Graveley)
3643         
3644 2005-01-22  Matthias Clasen  <mclasen@redhat.com>
3645
3646         * gdk/gdkdisplay.h (gdk_display_add_client_message_filter_full): 
3647         Remove the accidentally added prototype for this unimplemented 
3648         function.  (#164893, Jeff Franks)
3649
3650         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): Avoid spurious
3651         drags.  (#164884)
3652
3653 2005-01-23  Tor Lillqvist  <tml@novell.com>
3654
3655         * gdk/win32/gdkkeys-win32.c (update_keymap): Handle Greek tonos
3656         dead accent key. (#164859, reported and fix verified by Daniel
3657         Atallah.)
3658
3659         * gtk/gtkimcontextsimple.c (gtk_compose_seqs): Handle
3660         GDK_Greek_accentdieresis (tonos and dialytika) combining with iota
3661         and upsilon.
3662
3663         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_volume_get_display_name): 
3664         Don't call GetVolumeInformation() for network drives. They might
3665         be disconnected, and calling GetVolumeInformation() will then
3666         cause long delays. (#164448, reported by Dave Neary.) It seems to
3667         be very hard to reliably find out whether a network drive is
3668         connected or not, so it's easier to just not try getting the
3669         volume name for them. See the bug report for discussion.
3670
3671         Make volume name display formats translatable.
3672
3673         Fix for #163702, from Ivan Wong: 
3674         
3675         * gdk/win32/gdkprivate-win32.h 
3676         * gdk/win32/gdkglobals-win32.c: New flag _ignore_destroy_clipboard.
3677         
3678         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle
3679         WM_DESTROYCLIPBOARD. Unless _ignore_destroy_clipboard, generate a
3680         GDK_SELECTION_CLEAR event.
3681
3682         * gdk/win32/gdkselection-win32.c
3683         (gdk_selection_owner_set_for_display): Set _ignore_destroy_clipboard
3684         when emptying the clipboard ourselves.
3685
3686         (gdk_selection_send_notify_for_display): Remove the artifical
3687         GDK_SELECTION_CLEAR event generation.
3688
3689 2005-01-21  Matthias Clasen  <mclasen@redhat.com>
3690
3691         * gtk/gtkwidget.c (gtk_widget_get_accessible): More details
3692         provided by Bill Haneman.
3693
3694 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
3695
3696         * gtk/gtkwidget.c (gtk_widget_get_accessible): Add docs.  (#164725,
3697         George Kraft IV)
3698
3699         * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
3700         here, even if the only focusable widgets are labels.
3701
3702 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
3703
3704         Support tinting in GtkCellRendererPixbuf (#162903, Jorn Baayen):
3705         
3706         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init) 
3707         Add a follow-state property which when TRUE causes the pixbuf
3708         to be tinted according to state.
3709
3710         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): 
3711         Use follow-state and colorize the pixbuf when appropriate.      
3712         
3713 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
3714
3715         Support wrapping in GtkCellRendererText  (#163608):
3716         
3717         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
3718         Add wrap-mode and wrap-width properties which cause a 
3719         text cell to break to a specified width when set.
3720
3721         * gtk/gtkcellrenderertext.c (get_layout): Use wrap-mode
3722         and wrap-width when they are set.
3723
3724 2005-01-20  Matthias Clasen  <mclasen@redhat.com>
3725
3726         * gtk/gtkmodules.c (load_module): Don't reverse the order
3727         of modules when putting them in gtk_modules.  (#162676, Dennis
3728         Cranston, patch by Remus Draica)
3729
3730         * gtk/gtktreeview.c (gtk_tree_view_search_move): Don't crash 
3731         if the tree is empty.  (#164669, Priit Laes)
3732
3733 Wed Jan 19 18:57:02 2005  Manish Singh  <yosh@gimp.org>
3734
3735         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Call
3736         GDK_DISPLAY_XDISPLAY with a display, not a window. Clean up the
3737         function a bit too.
3738
3739 Wed Jan 19 17:17:31 2005  Manish Singh  <yosh@gimp.org>
3740
3741         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
3742         strict aliasing warning in _NET_VIRTUAL_ROOTS code.
3743
3744 2005-01-19  Tor Lillqvist  <tml@novell.com>
3745
3746         * gdk/win32/gdkkeys-win32.c (update_keymap,
3747         gdk_keymap_translate_keyboard_state): Handle keyboards with
3748         ShiftLock (and not CapsLock) correctly. (#161814)
3749
3750 2005-01-19  Matthias Clasen  <mclasen@redhat.com>
3751
3752         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
3753         In save mode, don't return paths containing nonexisting 
3754         directories.  (#162443, Jean Marie Favreau)
3755
3756         * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit 
3757         macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
3758
3759         * gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
3760         atom.
3761
3762         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): 
3763         Support _NET_VIRTUAL_ROOTS.  (#163910, Carsten Haitzler)
3764         
3765         * gdk/gdk.symbols: 
3766         * gdk/x11/gdkx.h: 
3767         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time): 
3768         Add a function to obtain the last user interaction 
3769         time.  (#163119, Elijah Newren)
3770
3771 Tue Jan 18 13:56:09 2005  Manish Singh  <yosh@gimp.org>
3772
3773         * gtk/gtkfilechooserdefault.c (pending_op_queue): Actually assign
3774         PENDING_OP_NONE.
3775
3776 Tue Jan 18 13:46:46 2005  Manish Singh  <yosh@gimp.org>
3777
3778         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
3779         disambiguate nested if/else.
3780
3781 2005-01-18  Federico Mena Quintero  <federico@ximian.com>
3782
3783         Merged from gtk-2-6:
3784
3785         * gtk/gtkfilechooserdefault.c (pending_op_queue): Don't queue an
3786         operation to select the first file if we are in SAVE or
3787         CREATE_FOLDER modes.  Executing that operation would overwrite the
3788         contents of the save-name entry.
3789
3790 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
3791
3792         * gdk/gdkdisplay.h: 
3793         * gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer): 
3794         * gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
3795         pointer warping to GDK.  (#160437)
3796
3797         * gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
3798
3799 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
3800
3801         * gtk/gtkstyle.c (gtk_default_draw_check) 
3802         (gtk_default_draw_option, gtk_default_draw_handle): Add some
3803         more NULL checks, patch by Michael Natterer.
3804
3805 Tue Jan 18 10:55:47 2005  Søren Sandmann  <sandmann@redhat.com>
3806
3807         * gtk/gtkstyle.c (gtk_default_draw_handle): Check for NULL detail
3808         and NULL widget.
3809
3810         * gtk/gtkstyle.c (gtk_default_draw_box): Check for NULL detail and
3811         NULL widget.  (#164477, Michael Natterer)
3812
3813 2005-01-18  Matthias Clasen  <mclasen@redhat.com>
3814
3815         Avoid X errors when running against servers which
3816         implement XRender < 0.4.  (#164427, Albert Chin)
3817         
3818         * gdk/x11/gdkprivate-x11.h:
3819         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids): 
3820         New function to check for trapezoid support in XRender.
3821         (gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids): 
3822         Use it here.
3823         
3824         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a 
3825         separate have_render_with_trapezoids field.
3826
3827         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
3828
3829 2005-01-17  Matthias Clasen  <mclasen@redhat.com>
3830
3831         * gtk/gtkiconview.c: Remove debug output. (#164376, Jens Finke)
3832
3833 Mon Jan 17 16:44:36 2005  Jonathan Blandford  <jrb@redhat.com>
3834
3835         * docs/Makefile.am (EXTRA_DIST): add tree-column-sizing.png to
3836         dist.
3837
3838 2005-01-17  Matthias Clasen  <mclasen@redhat.com>
3839
3840         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmarks): Save
3841         and restore the selected row in the bookmark list and the
3842         save folder combo.  (#164290)
3843
3844 2005-01-16  Matthias Clasen  <mclasen@redhat.com>
3845
3846         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend):
3847         Fix argument order in docs.  
3848
3849 2005-01-15  Matthias Clasen  <mclasen@redhat.com>
3850
3851         * gtk/gtktextview.c (gtk_text_view_check_keymap_direction): 
3852         * gtk/gtkentry.c (gtk_entry_create_layout): Prefer LTR over RTL 
3853         if the keymap is neutral.  (#164125, Phil Blundell)
3854
3855 2005-01-14  Matthias Clasen  <mclasen@redhat.com>
3856
3857         * gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
3858         reset the property to its default value -1. 
3859         (gtk_tree_view_get_search_column): Return the default value in
3860         the g_return_val_if_fail() check.  (#163864, Richard Hult)
3861
3862         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value): 
3863         Add a translator hint.  (#163889)
3864
3865         * configure.in: Check for _NL_TIME_FIRST_WEEKDAY too, since it
3866         is an enum value, not a define. Pointed out by Tommi Komulainen.
3867         * gtk/gtkcalendar.c (gtk_calendar_init): Adapt.
3868
3869 2005-01-13  Matthias Clasen  <mclasen@redhat.com>
3870
3871         * configure.in: Check for nl_langinfo()
3872         * gtk/gtkcalendar.c (gtk_calendar_init): Use nl_langinfo() when it's
3873         available to determine first day of week   (#163842, Vincent Untz)
3874
3875         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Add hints about 
3876         the lifecycle of widgets.  (#159503, Christian Persch)
3877
3878         * demos/gtk-demo/main.c (create_text): Use monospace for the 
3879         source code view.  (#163526, Theerud Lawtrakul)
3880
3881         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Use R as mnemonic
3882         for the Credits button to avoid duplicate.  (#163465, Tim-Philipp 
3883         Müller)
3884         
3885         * configure.in: Add an OS_LINUX conditional.
3886
3887         * gdk/Makefile.am (TESTS):
3888         * gdk-pixbuf/Makefile.am (TESTS):
3889         * gtk/Makefile.am (TESTS): Only run abicheck on Linux.  (#163917,
3890         Roger Leigh)
3891
3892 2005-01-13  Matthias Clasen <mclasen@redhat.com>
3893
3894         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
3895         (gtk_tree_view_set_headers_clickable): Make the headers-visible
3896         property readwrite instead of just writable, and remove the
3897         g_return_if_fail check that there is a model when setting this
3898         property. Also improve the blurb.  (#163851, Richard Hult)
3899
3900 2005-01-12  Owen Taylor <otaylor@redhat.com>
3901
3902         * configure.in: Remove GLIB_DIVERT_BEFORE_HELP() on
3903         initialization of gdktarget, that was causing it to be
3904         evaluated before host was set. Simplify --with-gdktarget help
3905         message.
3906
3907         * gtk/Makefile.am: Use grep | head -n 1 instead of grep -m 1 
3908         which doesn't work with slightly older versions of GNU grep 
3909         in install-libtool-import-lib rule.
3910         
3911 2005-01-12  Tor Lillqvist  <tlillqvist@novell.com>
3912
3913         Fix for #162790, by Iwan Wong:
3914         
3915         * gdk/win32/gdkdrawable-win32.c: Implement dashed lines
3916         correctly. Simplify the interface to render_line_horizontal() and
3917         render_line_vertical(). Need to draw lines "manually" also on
3918         NT-based Windowses if we have a dash offset or are drawing
3919         double-dashed lines.
3920
3921         * gdk/win32/gdkprivate-win32.h: Keep also the dash offset,
3922         double-dash flag, and a brush for the background colour (used by
3923         the odd dashes in the double-dash line style) in the GdkGCWin32
3924         struct.
3925
3926         * gdk/win32/gdkgc-win32.c: Set up above new fields.
3927
3928 2005-01-10  Federico Mena Quintero  <federico@ximian.com>
3929
3930         Fix #162617.
3931
3932         * gtk/gtkfilesystemunix.c (STAT_NEEDED_MASK): Take out
3933         GTK_FILE_INFO_IS_HIDDEN; we don't need to stat() to know this.
3934         (gtk_file_system_unix_get_folder): Make error reporting more
3935         accurate.  Don't bail out if we can't read the directory.
3936         (fill_in_stats): Don't return an error; just assume we don't have
3937         stat info for this folder's files.
3938         (fill_in_names): Don't create the hash table for the names if we
3939         can't open the directory.
3940         (gtk_file_folder_unix_list_children): Don't emit the
3941         "finished-loading" signal --- we don't do asynchronous loads, so
3942         we are always finished loading.
3943         (gtk_file_folder_unix_get_info): Use helper functions; handle the
3944         case where we can't stat '/'.
3945         (get_icon_type_from_path): Don't call fill_in_stats() here; only
3946         use the info we have.
3947         (fill_in_mime_type): Don't return an error.  Don't do anything if
3948         we don't have the stat info.
3949
3950 2005-01-10  Owen Taylor  <otaylor@redhat.com>
3951
3952         * Makefile.am (EXTRA_DIST): Adding missing ChangeLog.pre*
3953         to EXTRA_DIST.
3954
3955 2005-01-10  Matthias Clasen  <mclasen@redhat.com>
3956
3957         * gtk/gtkaccelgroup.c (gtk_accel_group_class_init): Document
3958         signals.  (#163319, Murray Cumming)
3959
3960 2005-01-09  Tor Lillqvist  <tlillqvist@novell.com>
3961
3962         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Set current
3963         cursor also when changing the cursor of a window that is the first
3964         ancestor of the window containing the pointer that has a cursor
3965         defined. (#163035, Ivan Wong)
3966
3967 2005-01-09  Anders Carlsson <andersca@gnome.org>
3968
3969         * gtk/gtkcellrenderertext.c: (get_size):
3970         * gtk/gtklabel.c: (gtk_label_size_request):
3971         * gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
3972         Don't pass NULL to pango_context_get_metrics. Use 
3973         pango_context_get_language instead, which is way faster.
3974         
3975 2005-01-08  Matthias Clasen  <mclasen@redhat.com>
3976
3977         * configure.in: Bump version
3978
3979         * === Released 2.6.1 ===
3980         
3981         * gdk-pixbuf-2.0.pc.in: Require gmodule-no-export-2.0
3982
3983 2005-01-07  Tor Lillqvist  <tml@iki.fi>
3984
3985         * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
3986         Fix braino. (#163232, Arnaud Charlet)
3987
3988 2005-01-06  Matthias Clasen  <mclasen@redhat.com>
3989
3990         * gtk/gtkiconview.c: Make markup_column work, and fix some
3991         layout issues when either icon or text is missing.  (#163065)
3992
3993 2005-01-06  Federico Mena Quintero  <federico@ximian.com>
3994
3995         * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu): Add an
3996         "Open _Location" item.  Fixes #148839.
3997
3998 2005-01-06  Matthias Clasen  <mclasen@redhat.com>
3999
4000         * README.in: Fix a typo.  (#163128, kentaro fukuchi)
4001
4002 2005-01-06  James M. Cape  <jcape@ignore-your.tv>
4003
4004         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
4005         (gtk_file_chooser_button_new_with_backend): Use default title if
4006         NULL is passed.
4007
4008         * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
4009         match API.
4010
4011 2005-01-05  Federico Mena Quintero  <federico@ximian.com>
4012
4013         Fix #161409:
4014
4015         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Queue
4016         a pending operation to select the first row.
4017
4018 2005-01-05  Federico Mena Quintero  <federico@ximian.com>
4019
4020         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call
4021         button_data_free() explicitly; the button is weak-reffed and the
4022         callback will free the button data.  Fixes #163010.
4023         (_gtk_path_bar_set_path): Don't ref/sink the button.  And for the
4024         failure case, call gtk_widget_destroy() on it.
4025
4026         * gtk/gtkfilechooserdefault.c (check_is_folder): Use
4027         gtk_file_system_get_folder() again (see the ChangeLog entry from
4028         2004-08-25).  We can't first get the parent folder and then
4029         request the info for the path in question, as the parent folder
4030         may not be readable.  See bug #162617.
4031         (gtk_file_chooser_default_set_current_folder): Assert that the
4032         passed-in path is not null.
4033         (shortcuts_find_current_folder): Likewise.
4034         (shortcuts_add_current_folder): Likewise.
4035         (set_list_model): Likewise.
4036         (gtk_file_chooser_default_map): Only reload the current folder if
4037         it exists.
4038         (bookmarks_check_add_sensitivity): Check for the current folder
4039         being NULL.
4040         (browse_files_select_first_row): Don't set the cursor if there is
4041         no model loaded.
4042
4043 2005-01-05  Matthias Clasen  <mclasen@redhat.com>
4044
4045         * gtk/gtkfilechooserdefault.c: Don't construct errors from 
4046         the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911.
4047         (get_file_info, check_is_folder): Translate errors from
4048         the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest
4049         of the fix for #162911, noticed by Murray Cumming.
4050
4051 Wed Jan  5 11:42:49 2005  Søren Sandmann  <sandmann@redhat.com>
4052
4053         * gtk/gtkviewport.c (gtk_viewport_realize):
4054         * gtk/gtktextview.c ((text_window_realize): Set the background of
4055         the windows to None instead of adding EXPOSURE_MASK, as suggested
4056         by Owen in #162112.
4057
4058         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update 
4059         the user time when receiving a WM_DELETE message.  (#162980, 
4060         Elijah Newren)
4061         
4062 Tue Jan  4 16:52:14 2005  Jonathan Blandford  <jrb@redhat.com>
4063
4064         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
4065         only reorder on button 1, part of #141937
4066
4067 Tue Jan  4 11:36:43 2005  Søren Sandmann  <sandmann@redhat.com>
4068
4069         Bug 162112.
4070         
4071         * gtk/gtktextview.c (text_window_realize): Add GDK_EXPOSURE_MASK
4072         to win->window's event_mask
4073
4074         * gtk/gtkviewport.c (gtk_viewport_realize): Add GDK_EXPOSURE_MASK
4075         to viewport->view_window.
4076
4077 2005-01-04  Matthias Clasen  <mclasen@redhat.com>
4078
4079         * demos/testpixbuf.c (main): Remove the size_prepared callback,
4080         to test incremental display.
4081         (new_testrgb_window): Return the drawing area, not the window,
4082         since we want to queue draws on the drawing area.
4083
4084 2005-01-03  Matthias Clasen  <mclasen@redhat.com>
4085
4086         * examples/*: Re-extract.
4087
4088         * docs/tutorial/gtk-tut.sgml: Small corrections.
4089         
4090         * docs/tutorial/gtk-tut.sgml: Some updates for the drawing
4091         section.  (#161414, Robert Ancell)
4092
4093         * docs/tutorial/gtk-tut.sgml: Make it build.
4094
4095         * gtk/gtkdialog.c (gtk_dialog_run): Some clarification
4096         regarding modality.  (#112903, Dave Bordoley)
4097
4098         * gtk/gtkfixed.c (gtk_fixed_set_has_window): 
4099         Add a little motivation.  (#145556, Tommi Komulainen)
4100
4101         * docs/tutorial/gtk-tut.sgml: Clarify section on 
4102         g_signal_connect_swapped.   (#120543, David Bourguignon)
4103
4104         Make gtk_icon_theme_load_icon() work independent of
4105         icon factory initialization.  (#162791, Tristan Van Berkom)
4106         
4107         * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to
4108         _gtk_icon_factory_ensure_default_icons, and make it non-static.
4109
4110         * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
4111
4112 2005-01-02  Matthias Clasen  <mclasen@redhat.com>
4113
4114         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_remove_shortcut_folder): 
4115         Don't add a shortcut here.  (#162752, Tor Lillqvist)
4116
4117 2005-01-02  Tor Lillqvist  <tml@iki.fi>
4118
4119         * gtk/Makefile.am (libgtk_target_ldflags): Add -lole32, needed for
4120         CoTaskMemFree in get_special_folder() below.
4121
4122         * gtk/gtkfilesystem.h: Implement case-insensitive path compare on
4123         Win32 using _gtk_file_system_win32_path_compare().
4124
4125         * gtk/gtk.symbols: Add _gtk_file_system_win32_path_compare.
4126
4127         * gtk/gtkfilechooserbutton.c (model_add_special)
4128         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Use
4129         _gtk_file_system_win32_get_desktop() to get correct Desktop folder
4130         on Win32. (#144003)
4131
4132         * gtk/gtkfilesystemwin32.c: Remove unnecessary includes. Do
4133         consider all drives "mounted", including floppies. Trying to
4134         inspect the contents of a nonexistent floppy will cause errors
4135         later that are handled normally, no need to avoid them
4136         completely. Keep the drive type in the GtkFileSystemVolume.
4137         Support UNC paths. (#161797, #137874) Fix error message
4138         capitalizations as in gtkfilesystemunix.c.
4139
4140         (gtk_file_system_win32_init): Start one timeout per
4141         GtkFileSystemWin32.
4142
4143         (gtk_file_system_win32_finalize): Remove the timeout.
4144
4145         (get_special_folder): Copied from GLib.
4146
4147         (_gtk_file_system_win32_get_desktop): New function, uses
4148         get_special_folder().
4149
4150         (gtk_file_system_win32_list_volumes): Don't start a timeout at
4151         each call to this function. Don't assume A: and B: are floppies.
4152
4153         (gtk_file_system_win32_get_volume_for_path): Don't assume all
4154         volumes are drive roots, i.e. support share roots of UNC paths
4155         (\\server\share).
4156
4157         (gtk_file_system_win32_get_folder): Don't assume errno is set
4158         after g_file_test() returns FALSE. It isn't on Win32 (and even on
4159         Unix I don't think one should assume anything about errno after
4160         g_file_test()).
4161
4162         (gtk_file_system_win32_volume_get_is_mounted): Always return TRUE.
4163
4164         (gtk_file_system_win32_volume_get_display_name): Don't call
4165         GetVolumeInformation() on drives A: or B: if they are removable,
4166         as they might then be floppies, causing an unnecessary
4167         delay. (#157820)
4168
4169         (gtk_file_system_win32_volume_render_icon): Use network icon for
4170         unrecognized drive types.
4171
4172         (canonicalize_filename, gtk_file_system_win32_parse): Don't get
4173         confused by UNC paths.
4174
4175         (bookmarks_serialize): Use _gtk_file_system_win32_path_compare()
4176         for case-insensitive UTF-8 path comparison.
4177
4178         (extract_icon): Use SHGetFileInfo() which is faster than
4179         ExtractAssociatedIcon(). Icon extraction is still slow, though,
4180         needs work.
4181
4182         (win32_pseudo_mime_lookup): Don't use the same icon for all
4183         shortcuts or executables. Cache only other file type icons.
4184
4185         (gtk_file_system_win32_render_icon): Use network stock icon for
4186         remote drives and UNC server share roots. Compare home directory
4187         case-insensitively. Do lookup icons also for executable files,
4188         after all, it's these files that can have individual icons in the
4189         first place. Yes, it can be slow. Needs work.
4190
4191         (filename_is_drive_root): Require also the slash after the colon.
4192
4193         (filename_is_server_share): New function.
4194
4195         (_gtk_file_system_win32_path_compare): New function, does
4196         case-folded UTF-8 comparison.
4197
4198         * gtk/gtkfilesystemwin32.h: Declare
4199         _gtk_file_system_win32_path_compare().
4200
4201 2005-01-01  Matthias Clasen  <mclasen@redhat.com>
4202
4203         * gtk/gtkbutton.c (gtk_button_set_image): Allow unsetting the
4204         custom image by passing NULL.
4205         (gtk_button_init): Initialize image_is_stock to TRUE, fixing
4206         a problem with changing stock labels.  (#162273, Marcin 
4207         Krzyzanowski)
4208
4209 2005-01-01  Tor Lillqvist  <tml@iki.fi>
4210
4211         * gtk/gtkmodules.c (get_module_path)
4212         * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file,
4213         gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With
4214         g_getenv() now returning UTF-8 on Win32, no need to call
4215         g_locale_to_utf8().
4216
4217 2004-12-31  Matthias Clasen  <mclasen@redhat.com>
4218
4219         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup_keyval) 
4220         (_gtk_key_hash_lookup): Don't sort a list of values as if
4221         it was a list of entries. This fixes crashes during mnemonic
4222         activation in the presence of multiple keymaps. (#162488, 
4223         Christian Persch)
4224
4225 2004-12-30  Matthias Clasen  <mclasen@redhat.com>
4226
4227         * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): Fix
4228         state propagation when making an insensitive combo box sensitive
4229         again.  (#162524, Carlos Garnacho Parro)
4230
4231         * gtk/gtkfilechooserdefault.c: Use secondary text for error 
4232         dialogs.
4233
4234         * gtk/gtkfilesystemunix.c: Clean up some cases of errno handling
4235         (#162496, noted by Tor Lillqvist), and use g_filename_display_name()
4236         for error messages. Also mark some error messages for translation,
4237         fix capitalization of error messages.
4238
4239         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property): 
4240         Use g_value_get_boolean() for ellipsize_set.  (#162447, 
4241         Brian Tarricone)
4242
4243 2004-12-30  Tor Lillqvist  <tml@iki.fi>
4244
4245         * gtk/gtkicontheme.c (gtk_icon_theme_init): Use /usr/share/pixmaps
4246         only on Unix.
4247
4248 2004-12-28  Matthias Clasen  <mclasen@redhat.com>
4249
4250         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
4251         submenu direction from the parent menu.
4252
4253         * gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first): 
4254         Return a boolean indicating whether an item in the submenu
4255         was selected.
4256         (gtk_real_menu_shell_move_current): When going in child 
4257         direction, don't get stuck at completely insensitive 
4258         submenus.  (#162055, Billy Biggs)       
4259
4260 2004-12-27  Matthias Clasen  <mclasen@redhat.com>
4261
4262         Make the clipboard image API more robust (#162357, 
4263         Torsten Schoenfeld):
4264         
4265         * gtk/gtkclipboard.c (clipboard_image_received_func): Don't
4266         ref the pixbuf if it is NULL.
4267
4268         * gtk/gtkselection.c (gtk_selection_data_set_pixbuf): 
4269         NULL-terminate the varargs in the call to 
4270         gdk_pixbuf_save_to_buffer(). 
4271         (gtk_selection_data_get_pixbuf): Only use a pixbuf loader 
4272         if there is data to load.
4273
4274 2004-12-27  Matthias Clasen  <mclasen@redhat.com>
4275
4276         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): 
4277         Set x_root and y_root in button and motion events from 
4278         extended input devices.  (#148715, Robert Ögren)
4279
4280         * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a 
4281         typo.  (#162339, Alessio Dessi)
4282
4283         * gtk/gtkadjustment.c (gtk_adjustment_class_init): Document
4284         properties as new since 2.4.  (#156101, Billy Biggs)
4285
4286         * configure.in: Add a warning about the linux-fb 
4287         target.  (#155488, Zeeshan Ali)
4288
4289         * gtk/gtkmain.c (gtk_init_with_args): Typo fix.  (#162278,
4290         Torsten Schoenfeld)
4291
4292 2004-12-26  Matthias Clasen  <mclasen@redhat.com>
4293
4294         * gtk/gtkfilechooser.c (gtk_file_chooser_set_action): 
4295         Typo fix.  (#162219, Masao Mutoh)
4296         (gtk_file_chooser_set_preview_widget_active): 
4297         Another typo.  (#162218, Masao Mutoh)
4298
4299 2004-12-23  Matthias Clasen  <mclasen@redhat.com>
4300
4301         * gtk/gtkliststore.c (gtk_list_store_iter_children): 
4302         Return TRUE if there are children.  (#162134, Iñigo Serna,
4303         patch by John Finlay)
4304
4305         * gtk/gtkcombobox.c (gtk_combo_box_button_state_changed): 
4306         Transfer state from the button to the cell view to get
4307         prelighting right.  (#156327, Ricardo Veguilla)
4308
4309 Wed Dec 22 14:22:19 2004  Søren Sandmann  <sandmann@redhat.com>
4310
4311         * tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
4312         timeout. Written by Christian Persch.
4313
4314 Wed Dec 22 14:14:02 2004  Søren Sandmann  <sandmann@redhat.com>
4315
4316         Bug #161561
4317         
4318         * gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
4319         background for windows that get expose events. 
4320
4321         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
4322         hack to repaint !expose windows.
4323
4324 Wed Dec 22 11:35:41 2004  Søren Sandmann  <sandmann@redhat.com>
4325
4326         Bug #147497, make menu items activate immediately when you release
4327         the button.
4328         
4329         * gtk/gtkmenu.c (gtk_menu_enter_notify, menu_motion_notify): Make
4330         items activate immediately.
4331
4332         * gtk/gtkmenu.c (definitely_within_item): New function
4333         * gtk/gtkmenu.c (check_threshold): New function
4334
4335 2004-12-22  Matthias Clasen  <mclasen@redhat.com>
4336
4337         * gtk/gtklabel.c (gtk_label_setup_mnemonic): Don't forget to
4338         null the mnemonic_menu when unsetting a mnemonic, reported
4339         by Owen Taylor.
4340
4341 2004-12-21  Matthias Clasen  <mclasen@redhat.com>
4342
4343         * gtk/gtkliststore.c (generate_order): Generate the order the
4344         way it is supposed to be, order[new_pos] == old_pos.
4345         (gtk_list_store_reorder): Invert the order before using it.
4346
4347 2004-12-22  Matthias Clasen  <mclasen@redhat.com>
4348
4349         Fix sorting of list stores.  (#161886, Marcin Krzyzanowski)
4350
4351         * gtk/gtkliststore.c (generate_order): Generate the order the
4352         way it is supposed to be, order[new_pos] == old_pos.
4353         (gtk_list_store_reorder): Invert the order before using it.
4354
4355         * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Adapt to the
4356         list store fix.
4357
4358 Wed Dec 22 01:24:01 2004  Jonathan Blandford  <jrb@redhat.com>
4359
4360         * gtk/queryimmodules.c (main): print out the version and binary
4361         name in the header comment.  Problem reported by Seth Nickell.
4362
4363 2004-12-20  Matthias Clasen  <mclasen@redhat.com>
4364
4365         * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
4366         root path to gtk_tree_model_rows_reordered().  (#161720,
4367         Marcin Krzyzanowski)
4368
4369         * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't 
4370         translate NULL messages.  (#161789, Morten Welinder)
4371
4372         * gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
4373         the secondary label on show_all().  (#161707, Christian Persch)
4374
4375 2004-12-19  Tor Lillqvist  <tml@iki.fi>
4376
4377         * gdk/win32/gdkdnd-win32.c (resolve_link, gdk_dropfiles_filter):
4378         Use wide character API when available. Use UTF-8 for filenames.
4379
4380         * gdk/win32/gdkselection-win32.c (_gdk_dropfiles_store): Include
4381         the string's trailing zero byte in the property's length, just for
4382         safety.
4383
4384 2004-12-18  Matthias Clasen  <mclasen@redhat.com>
4385
4386         * gtk/gtkfilechooserentry.c (check_completion_callback) 
4387         (load_directory_callback): Add missing GDK_THREADS_ENTER/LEAVE.
4388
4389         * gtk/gtkfilechooserdefault.c (edited_idle_cb) 
4390         (shortcuts_drag_outside_idle_cb): Add missing 
4391         GDK_THREADS_ENTER/LEAVE.  (#161604)
4392         
4393         * gtk/gtkfilechooserdefault.c (selection_check_foreach_cb): 
4394         (list_select_func): Don't call gtk_file_info_get_is_folder()
4395         on NULL. 
4396
4397         * gtk/gtkaboutdialog.c (gtk_about_dialog_get_logo_icon_name): 
4398         (gtk_about_dialog_init): Add missing initializations.  (#161646,
4399         Torsten Schoenfeld)
4400