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