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