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