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