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