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