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