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