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