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