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