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