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