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