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