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