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