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