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