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