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