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