]> Pileus Git - ~andy/gtk/blob - ChangeLog
Reset the internal response_requested flag, once the response triggered by file_choos...
[~andy/gtk] / ChangeLog
1 2007-05-31  Mathias Hasselmann  <mathias.hasselmann@gmx.de>
2
3         * gtk/gtkfilechooserdialog.c, tests/autotestfilechooser.c: Reset
4         the internal response_requested flag, once the response triggered by
5         file_chooser_widget_response_requested has been processed (#347883).
6
7 2007-05-30  Richard Hult  <richard@imendio.com>
8
9         * gdk/quartz/gdkselection-quartz.c (gdk_free_text_list): Add this
10         function, bug #438440.
11
12 2007-05-30  Tor Lillqvist  <tml@novell.com>
13
14         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Subtract the
15         multi-monitor offset from x and y before setting up the rectangle
16         for ClipCursor(). Fixes #442326.
17
18 2007-05-30  Matthias Clasen  <mclasen@redhat.com>
19
20         * gtk/gtkiconview.c (gtk_icon_view_layout): Queue a resize
21         if the size changed.  (#418047, Alex Graveley)
22
23 2007-05-30  Simos Xenitellis  <simos@gnome.org>
24
25         * gdk/gdkkeysyms-update.pl: Updated script to new upstream 
26         location of keysymdef.h (#442183)
27
28 2007-05-30  Emmanuele Bassi  <ebassi@gnome.org>
29
30         * gtk/gtkfilechooserdefault.c (update_chooser_entry): Return
31         after setting the file chooser entry with the current selection.
32
33 2007-05-30  Matthias Clasen  <mclasen@redhat.com>
34
35         * gtk/gtkiconcachevalidator.c: Correct the handling
36         of display names.  (#441767, Marcin Bachry)
37
38 2007-05-30  Xan Lopez  <xan@gnome.org>
39
40         * gtk/gtknotebook.c (gtk_notebook_set_current_page): Small cleanup.
41         Fixes #442172.
42
43 2007-05-28  Cody Russell  <bratsche@gnome.org>
44
45         * gdk/win32/xcursors.h: Fix initialization of last item. (#440511)
46
47 2007-05-28  Richard Hult  <richard@imendio.com>
48
49         * gdk/quartz/gdkevents-quartz.c (get_child_coordinates_from_ancestor)
50         (get_ancestor_coordinates_from_child): Break out code that was
51         repeated into separate functions and call them instead.
52         (find_window_for_mouse_nsevent): Break out this from
53         find_window_for_nsevent to make the code clearer.
54         (find_window_for_nsevent): Use the above and fix the returned
55         coordinates in the process so that they are always relative the
56         found window, both for the normal case and during grabs. Still
57         needs fixing for the case where we get nsevents for a window other
58         than than grab window during grabs.
59
60 2007-05-28  Richard Hult  <richard@imendio.com>
61
62         * gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Fix typo,
63         we need both press and release in the mask to trigger implicit
64         grabs.
65
66 2007-05-28  Richard Hult  <richard@imendio.com>
67
68         * gdk/quartz/gdkevents-quartz.c (pointer_ungrab_internal): Reset
69         all the grab state, to help debugging.
70         (gdk_event_translate): Use pointer_ungrab_internal instead of
71         duplicating the code here.
72
73 2007-05-28  Richard Hult  <richard@imendio.com>
74
75         * gdk/quartz/gdkprivate-quartz.h:
76         * gdk/quartz/gdkwindow-quartz.c (find_child_window_helper)
77         (_gdk_quartz_window_find_child): Refactored version of
78         _gdk_quartz_window_find_child_by_point, that doesn't return any
79         coordinates as the users of this function already have the
80         coordinates and need to translate them differently.
81         (_gdk_windowing_window_get_pointer): Fixup coordinate translation.
82         (_gdk_windowing_window_at_pointer): Likewise.
83
84 2007-05-28  Richard Hult  <richard@imendio.com>
85
86         * gdk/quartz/gdkevents-quartz.c
87         (find_window_interested_in_event_mask): Don't traverse beyond the
88         toplevel of the passed in window.
89
90 2007-05-28  Richard Hult  <richard@imendio.com>
91
92         * gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_init): Set
93         a size for the root window.
94
95 2007-05-28  Richard Hult  <richard@imendio.com>
96
97         * gdk/quartz/gdkwindow-quartz.c: Add comments about what various
98         coordinates are relative to.
99
100 2007-05-28  Carlos Garnacho  <carlos@imendio.com>
101
102         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed_recurse):
103         Add back variable declaration removed in r17958.
104
105 2007-05-28  Carlos Garcia Campos  <carlosgc@gnome.org>
106
107         * gtk/gtkprinter.[ch]: Add new capability
108         GTK_PRINT_CAPABILITY_NUMBER_UP.
109         * docs/reference/gtk/tmpl/gtkprintunixdialog.sgml: 
110         * gtk/gtkprintunixdialog.c: (update_dialog_from_capabilities):
111         * modules/printbackends/file/gtkprintbackendfile.c:
112         (file_printer_get_options), (file_printer_get_settings_from_options):
113         * modules/printbackends/cups/gtkprintbackendcups.c:
114         (cups_printer_get_capabilities): Add a new print capability to specify
115         whether print dialog will offer printing multiple pages per sheet. (#398414)
116         
117 2007-05-28  Matthias Clasen  <mclasen@redhat.com>
118
119         * gtk/gtktoolbar.h: Actually undeprecate 
120         gtk_toolbar_[un]set_icon_size.  (#314172. Yevgen Muntyan)
121
122 2007-05-28  Matthias Clasen  <mclasen@redhat.com>
123
124         * gtk/gtkwidget.c: Document some more signals
125
126         * gtk/gtktextview.c: Improve docs
127
128 2007-05-27  Tor Lillqvist  <tml@novell.com>
129
130         * configure.in (GDK_EXTRA_LISB): Drop bogus -user32 switch. Was
131         supposed to be -luser32, but he "l" was missing. But nobody has
132         noticed, so presumably unnecessary.
133
134 2007-05-26  Matthias Clasen  <mclasen@redhat.com>
135
136         * gtk/gtkprintoperationpreview.c: Improve docs
137
138 2007-05-26  Matthias Clasen  <mclasen@redhat.com>
139
140         * gtk/gtkentry.c: Move docs inline.
141
142 2007-05-26  Matthias Clasen  <mclasen@redhat.com>
143
144         * gdk/directfb/gdkkeys-directfb.c: Remove duplicate doc comments
145         that cause problems when building the docs.
146
147 2007-05-26  Matthias Clasen  <mclasen@redhat.com>
148         
149         * gdk/x11/gdkdisplay-x11.c: Update docs
150         * gdk/gdk.c: Update docs
151         * gdk/directfb/gdkwindow-directfb.c: Remove duplicate doc comments.
152         * gdk/x11/gdkwindow-x11.c: Fix doc formatting
153
154 2007-05-26  Matthias Clasen  <mclasen@redhat.com>
155
156         * gtk/gtktooltip.c:
157         * gtk/gtkstatusicon.c:
158         * gtk/gtkscalebutton.c:
159         * gtk/gtkrecentaction.c:
160         * gtk/gtkrange.c:
161         * gtk/gtkprinter.c:
162         * gtk/gtkprintsettings.c:
163         * gtk/gtkpapersize.c:
164         * gtk/gtkpagesetup.c:
165         * gtk/gtknotebook.c:
166         * gtk/gtkentrycompletion.c: Document new api
167
168 2007-05-26  Richard Hult  <richard@imendio.com>
169
170         * gtk/gtkprinter.c: (gtk_printer_set_location): Fix typo to get the
171         build working.
172
173 2007-05-26  Matthias Clasen  <mclasen@redhat.com>
174
175         * configure.in: Require gtk-doc 1.6, for signal and property links.
176         * gtk/gtkbox.c:
177         * gtk/gtkbutton.c:
178         * gtk/gtkcontainer.c:
179         * gtk/gtkdialog.c:
180         * gtk/gtkentry.c:
181         * gtk/gtkimage.c:
182         * gtk/gtklabel.c:
183         * gtk/gtkmisc.c:
184         * gtk/gtksettings.c:
185         * gtk/gtkwidget.c: Documentation improvements, link signals
186         and properties where it makes sense.
187
188 2007-05-25  Matthias Clasen  <mclasen@redhat.com>
189
190         * gtk/gtktextmark.c:
191         * gtk/gtktextbuffer.c: Formatting fixes.
192
193 2007-05-25  Matthias Clasen  <mclasen@redhat.com>
194
195         Allow to separate GtkTextMark creation from buffer insertion.
196         (#132818, Gustavo Giráldez, patch by Yevgen Muntyan)
197
198         * gtk/gtktextmarkprivate.h:
199         * gtk/gtktextmark.[hc] (gtk_text_mark_new): New function to 
200         create a GtkTextMark.
201
202         * gtk/gtktextbuffer.[hc] (gtk_text_buffer_add_mark): New 
203         function to add an existing mark to a buffer. 
204
205         * gtk/gtktextbtree.c: Allow adding existing marks.
206
207         * gtk/gtk.symbols: Add new functions.
208
209         * tests/testtextbuffer.c: Add some tests for new mark 
210         functionality.
211
212 2007-05-25  Xan Lopez  <xan@gnome.org>
213
214         * gtk/gtkaction.c: (gtk_action_set_short_label):
215         Use private->data->short_label to update the proxies. (#440780)
216
217 2007-05-25  Richard Hult  <richard@imendio.com>
218
219         * gdk/quartz/gdkimage-quartz.c: (_gdk_quartz_image_copy_to_image):
220         Implement copying from a window, part of bug #348493.
221
222 2007-05-25  Matthias Clasen  <mclasen@redhat.com>
223
224         * gtk/gtkprintoperation-unix.c (unix_end_run): Hold a 
225         refence on the print operation until gtk_print_job_send()
226         is done.  (#440040, Chris Vine)
227
228 2007-05-25  Matthias Clasen  <mclasen@redhat.com>
229
230         * gtk/gtkiconview.c (gtk_icon_view_accessible_ref_child):
231         Don't crash and don't leak.  (#439565, Pedro Villavicencio)
232
233 2007-05-25  Matthias Clasen  <mclasen@redhat.com>
234
235         * gtk/gtkiconfactory.c: Improve a warning
236         * gtk/gtkicontheme.c (gtk_icon_info_load_icon): Always
237         set the error when returning NULL.  (#440982, Carlos Garcia
238         Campos)
239
240 2007-05-25  Michael Natterer  <mitch@imendio.com>
241
242         Merge fix from maemo-gtk:
243
244         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): open submenus
245         also if the menu item we're entering is already selected. Also, it
246         makes no sense to forward the event to the parent menu shell if we
247         are entering a menu item of *this* menu shell.
248
249 2007-05-24  Matthias Clasen  <mclasen@redhat.com>
250
251         * gtk/stock-icons/*: Make sure all svg icons are added
252         as pngs.
253
254 2007-05-24  Matthias Clasen  <mclasen@redhat.com>
255
256         * modules/input/Makefile.am: Fix broken DESTDIR support
257
258 2007-05-24  Michael Natterer  <mitch@imendio.com>
259
260         * gtk/gtktooltip.c (find_widget_under_pointer): apply patch from
261         Bogdan Nicula which fixes a crash on GdkWindows which have no
262         GtkWidget as user_data (bug #440890).
263
264 2007-05-24   Matthias Clasen  <mclasen@redhat.com>
265
266         * configure.in: Bump version
267
268         * === Released 2.11.0 ===
269
270         * NEWS: Updates
271
272 2007-05-23   Matthias Clasen  <mclasen@redhat.com>
273
274         * gtk/gtk.symbols: 
275         * gdk/x11/xsettings-common.h: 
276         * gdk/gdk.symbols: Add some missing symbols.
277
278         * gtk/paper_names_offsets.c:
279         * gtk/gen-paper-names.c: Make variables static.
280
281         * gtk/gtktooltip.[hc]:
282         * gtk/gtkvolumebutton.c:
283         * gtk/gtkscalebutton.c:  Fix up symbol aliasing.
284
285 2007-05-23  Yevgen Muntyan  <muntyan@tamu.edu>
286
287         * gtk/gtkprintunixdialog.c: missing #include <ctype.h>.
288
289         * gtk/gtkhandlebox.c (gtk_handle_box_paint):
290         * gtk/gtkpagesetupunixdialog.c (_gtk_load_custom_papers):
291         * gtk/gtkstatusbar.c (gtk_statusbar_get_context_id):
292         * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path):
293         * gtk/gtktrayicon-x11.c (gtk_tray_icon_send_dock_request):
294         * gtk/gtkpreview.c (gtk_preview_finalize):
295         * gtk/gtknotebook.c (gtk_notebook_set_group_id):
296         * tests/testnotebookdnd.c (window_creation_function):
297         * tests/testiconview.c (do_popup_menu):
298         Fixed some compiler warnings (#440689).
299
300 2007-05-23  Kristian Rietveld  <kris@imendio.com>
301
302         * gtk/gtktooltip.c (find_widget_under_pointer): translate coordinates
303         from the window they were received on to the event widget's window;
304         correct for no-window widgets after that, bail out on failure.  This
305         makes the coordinates given by GtkWidget::query-tooltip truly relative
306         to widget->window.  (#435188).
307
308         * gtk/gtkwidget.c (gtk_widget_class_init): update docs for
309         GtkWidget::query-tooltip.
310
311 2007-05-22  Behdad Esfahbod  <behdad@gnome.org>
312
313         * gtk/gtkprintcontext.c (gtk_print_context_finalize),
314         (_gtk_print_context_new), (_gtk_print_context_get_fontmap),
315         (gtk_print_context_set_cairo_context),
316         (gtk_print_context_get_pango_fontmap),
317         (gtk_print_context_create_pango_context):
318         Don't create new pango fontmaps.  Use the default pangocairo
319         fontmap and set resolution on PangoContext instead. (#417707)
320
321 2007-05-21  Richard Hult  <richard@imendio.com>
322
323         * gdk/quartz/gdkdisplay-quartz.c: (gdk_display_open): Set the
324         resolution.
325         
326         * gdk/quartz/gdkscreen-quartz.c: Use the autorelease pool macros.
327
328 2007-05-21  Michael Natterer  <mitch@imendio.com>
329
330         * gtk/gtkcombobox.c (gtk_combo_box_set_model): revert last change.
331
332 Mon May 21 13:58:32 2007  Tim Janik  <timj@imendio.com>
333
334         * gtk/gtkcombobox.c (gtk_combo_box_set_model): removed redundant check.
335
336 2007-05-21  Tor Lillqvist  <tml@novell.com>
337
338         * gtk/gtkscalebutton.c (gtk_scale_popup): Make it work better with
339         multiple monitors.
340
341 2007-05-20  Attilio Fiandrotti  <attilio.fiandrotti@gmail.com>
342
343         * gdk/directfb/gdkwindow-directfb.c:
344         * gdk/directfb/gdkdirectfb.h: Updated minimum DirectFB version
345         required to enable gdk_directfb_create_child_window.
346         (Closes: #437379)
347
348 2007-05-20  Bastien Nocera  <hadess@hadess.net>
349
350         * gtk/Makefile.am:
351         * gtk/gtk.h:
352         * gtk/gtk.symbols:
353         * gtk/gtkvolumebutton.[ch]: Add the GtkVolumeButton widget,
354         a button that pops up a scale when clicked (Closes: #415775)
355         * tests/Makefile.am:
356         * tests/testvolumebutton.c: Add a test program for the
357         volume button
358
359 2007-05-19  Bastien Nocera  <hadess@hadess.net>
360
361         reviewed by: Matthias Clasen <mclasen@redhat.com>
362
363         * gtk/Makefile.am:
364         * gtk/gtk.h:
365         * gtk/gtk.symbols:
366         * gtk/gtkscalebutton.[ch]: Add the GtkScaleButton widget,
367         a button that pops up a scale when pressed
368
369 2007-05-19  Matthias Clasen  <mclasen@redhat.com>
370
371         * gtk/gtk.symbols:
372         * gtk/gtknotebook.[hc]: Deprecate gtk_notebook_[gs]et_group_id
373         in favour of new functions gtk_notebook_[gs]et_group, which
374         takes a pointer as group identifier and makes it easier to
375         avoid group id collisions.  (#386930, Christian Hammond)
376                 
377         * tests/testnotebookdnd.c: Use new grouping api.
378
379 2007-05-18  Matthias Clasen  <mclasen@redhat.com>
380
381         * gtk/gtkactiongroup.c: Warn and refuse to add actions with
382         duplicate names.  (#150877, Tommi Komulainen, patch by Kalle
383         Vahlman)
384
385 2007-05-18  Matthias Clasen  <mclasen@redhat.com>
386
387         * gtk/gtk.symbols:
388         * gtk/gtkentry.[hc]: Add gtk_entry_[gs]et_cursor_hadjustment()
389         to allow automatic scrolling in response to cursor movements
390         in the entry.  (#438651, Nate Nielsen)
391
392 2007-05-18  Matthias Clasen  <mclasen@redhat.com>
393
394         * gtk/gtktextview.c: Add a toggle-cursor-visibility keybinding
395         signal, and bind F7 to it.  (#380048, Tim Miao)
396
397 2007-05-18  Matthias Clasen  <mclasen@redhat.com>
398
399         * gtk/gtk.symbols:
400         * gtk/gtkicontheme.h:
401         * gtk/gtkicontheme.c: Add a function to look up an icon from
402         a list of icon names.  (#396901, Luca Ferretti)
403
404 2007-05-18  Emmanuele Bassi  <ebassi@gnome.org>
405
406         * gtk/gtkrecentchooserdefault.c:
407         (gtk_recent_chooser_default_dispose): Reset the state on dispose.
408
409         (cleanup_after_load): load_id != 0 && load_state == LOAD_EMPTY
410         is a valid state, if the main loop never had the chance to
411         properly spin at least once. (#438671)
412
413 2007-05-18  Emmanuele Bassi  <ebassi@gnome.org>
414
415         * gtk/gtkrecentchooserdefault.c (recent_meta_data_func): Mark
416         string for translation. (#439437)
417
418 2007-05-18  Matthias Clasen  <mclasen@redhat.com>
419
420         * gtk/gtkwindow.c (gtk_window_set_transient_for): Fix
421         doc typo.  (#438100, Vincent Untz)
422
423 2007-05-18  Michael J. Chudobiak  <mjc@cvs.gnome.org>
424
425         * INSTALL.in:
426         * README.in:
427         * configure.in: Bump libtiff requirement to 3.6.0, by requiring
428           presence of TIFFReadRGBAImageOriented.
429
430         * gdk-pixbuf-scaled-anim.c: (get_scaled_pixbuf):
431         Preserve pixbuf options when generating a new scaled pixbuf.
432
433         * io-jpeg.c: (get_orientation), (gdk_pixbuf__jpeg_image_load),
434         (gdk_pixbuf__jpeg_image_load_increment): Read the exif
435         orientation tag and associate it with the "orientation" pixbuf
436         option. Renders libexif unnecessary in some applications.
437
438         * io-tiff.c: (tiff_image_parse): Read the tiff orientation tag,
439         compensate for the partial rotations performed by libtiff,
440         and generate an "orientation" option for the pixbuf.
441
442 2007-05-18  Carlos Garnacho  <carlos@imendio.com>
443
444         * gtk/gtkexpander.c: remove c++ style comment.
445
446 2007-05-18  Carlos Garnacho  <carlos@imendio.com>
447
448         Make combobox menu popdown keybindable (#433593)
449
450         * gtk/gtkcombobox.c (gtk_combo_box_class_init): Add "popdown" binding
451         signal and keybindings.
452         (gtk_combo_box_real_popdown): Added, "popdown" keybinding signal
453         handler.
454         (gtk_combo_box_menu_key_press):
455         (gtk_combo_box_list_key_press): forward the event to the combobox if
456         it wasn't handled by the menu.
457
458 2007-05-18  Carlos Garnacho  <carlos@imendio.com>
459
460         * gtk/gtknotebook.c (gtk_notebook_init) (gtk_notebook_drag_motion)
461         (gtk_notebook_drag_drop): Allow widgets up in the hierarchy to run
462         their DnD handlers if the target doesn't match with anything the
463         notebook manages. (#350665, Joakim Lundborg).
464
465 2007-05-18  Carlos Garnacho  <carlos@imendio.com>
466
467         Refactor GtkFileChooserDialog sizing.
468
469         * gtkfilechooserembed.[ch] (delegate_get_resizable_hints)
470         (_gtk_file_chooser_embed_get_resizable_hints):
471         s/resizable_hints/resizable/, return just one boolean value to
472         determine whether the filechooser should be resizable or not.
473
474         * gtkfilechooserprivate.h (struct GtkFileChooserDialogPrivate): remove
475         variables related to the GtkFileChooserEmbed get_default_size() and
476         get_resizable() implementations.
477         (struct GtkFileChooserDefault): Move default size management here.
478
479         * gtkfilechooserdefault.c (gtk_file_chooser_default_size_allocate):
480         Added, store currently allocated size to calculate default size later.
481         (gtk_file_chooser_default_get_resizable_hints):
482         s/resizable_hints/resizable/.
483         (gtk_file_chooser_default_set_property): Reload settings if the file
484         chooser action changes, this way the save expander state will be known
485         before mapping the window, avoiding wrong window positioning and
486         flickering. (#424299, #424309)
487         (find_good_size_from_style): Only get size from style if it wasn't set
488         previously.
489         (gtk_file_chooser_default_get_default_size): return default size based
490         on stored default size and preview/extra widget sizes.
491
492         * gtkfilechooserdialog.c (file_chooser_widget_update_hints)
493         (file_chooser_widget_realized_size_changed)
494         (file_chooser_widget_unrealized_size_changed): simplified to
495         (file_chooser_widget_size_changed): set window size and resizability
496         based on the GtkFileChooserEmbed interface implementation. (Bug
497         #420285, Tomeu Vizoso)
498         (gtk_file_chooser_dialog_map): force a dialog size change, so it's
499         clamped for sure to the 75% of the screen size.
500
501 2007-05-18  Carlos Garnacho  <carlos@imendio.com>
502
503         * gtk/gtknotebook.c (gtk_notebook_real_insert_page): Do not unset
504         the brand new current page if there was none set previously. Fixes
505         #425138 (Reported by Michail Crayson). Some code simplifications.
506         (gtk_notebook_draw_arrow): code style fix.
507
508 2007-05-16  Matthias Clasen  <mclasen@redhat.com>
509
510         * gtk/gtkpathbar.c: Add ATK names to the Up, Down, and Root
511         buttons. Keep the focus from vanishing when Up or Down arrows
512         become insensitive or invisible.  (#357005, Patrick Wade)
513
514 2007-05-16  Brian Cameron  <brian.cameron@sun.com>
515
516         * acconfig.h, configure.in, gdk/Makefile.am, gdkprivate.h, gdkrgb.c,
517           gdkdraw.c, gdk-pixbuf/gdk-pixbuf-scale.c,
518           gdk-pixbuf/pixops/Makefile.am, gdk-pixbuf/pixops/pixops.[ch],
519           gdk-pixbuf/pixops/timescale.c:  Add Sun mediaLib support so that
520           hardware acceleration via mediaLib is enabled if mediaLib is
521           detected via configure.  Enhancement request #344813.  I was given
522           permission to commit in the bug report by Matthias Clasen.
523         * gdk/medialib.[ch]: New files added for mediaLib support.
524         * docs/reference/gdk-pixbuf/tmpl/scaling.sgml,
525           docs/reference/gdk/tmpl/rgb.sgml, gdk/gdkdraw.c:  Add docs for
526           mediaLib support.
527
528 2007-05-15  Torsten Schoenfeld  <kaffeetisch@gmx.de>
529
530         * gtk/gtkprintoperation.c (pdf_end_run): Unset priv->platform_data and
531         priv->free_platform_data to prevent gtk_print_operation_finalize()
532         from freeing the cairo surface a second time.
533
534 2007-05-14  Kristian Rietveld  <kris@gtk.org>
535
536         * gtk/gtkfilechooserdefault.c (recent_column_path_sort_func): remove
537         dangling semicolon, fixes the segfault ebassi was seeing earlier today
538         ;)
539
540 2007-05-14  Tristan Van Berkom  <tvb@gnome.org>
541
542         * gtk/gtkaboutdialog.c: Functions: gtk_about_dialog_get/set_name() 
543         were deprecated in favour of gtk_about_dialog_get/set_program_name(), 
544         the GtkAboutDialog now uses the "program-name" property instead of 
545         the conflicting "name" property (fixes bug 345822).
546
547 2007-05-14  Emmanuele Bassi  <ebassi@gnome.org>
548
549         * configure.in: Add check for GNU extensions to ftw()/nftw().
550
551         * gtk/gtksearchenginesimple.c: Fix compilation on systems with
552         only POSIX-compliant ftw(). (#435797, based on a patch by
553         Richard Hult)
554
555 2007-05-14  Emmanuele Bassi  <ebassi@gnome.org>
556
557         * gtk/gtkfilechooserdefault.c:
558         Convert the GtkTreeIter inside the sorting functions for the
559         search and recent modes. This doesn't yet fix the segfault when
560         clicking the 'Name' column in recent mode, though.
561
562 2007-05-14  Behdad Esfahbod  <behdad@gnome.org>
563
564         * modules/input/gtkimcontextthai.c
565         (gtk_im_context_thai_filter_keypress):
566         Fix check for modifier keys. (#438261, Theppitak Karoonboonyanan)
567
568 2007-05-14  Matthias Clasen  <mclasen@redhat.com>
569
570         * gtk/gtkscrolledwindow.c: Document scrollbars-within-bevel
571         as 2.12 addition.  (#438131, Mart Raudsepp)
572
573 2007-05-14  Matthias Clasen  <mclasen@redhat.com>
574
575         * gtk/gtkvseparator.c (gtk_vseparator_size_request): Fix
576         size requisition for wide vertical separators.  (#438113, 
577         Benjamin Berg)
578
579 2007-05-13  Emmanuele Bassi  <ebassi@gnome.org>
580
581         * gtk/gtksearchenginesimple.c: Include <ftw.h> and use nftw() and
582         all the symbols defined in <ftw.h> conditionally.
583
584 2007-05-13  Cody Russell  <bratsche@gnome.org>
585
586         * gdk/win32/gdkevents-win32.c: Only do the configure event context
587         iteration under WM_WINDOWPOSCHANGED instead of inside
588         handle_configure_event().  This fixes a bug that prevented window
589         contents from being redrawn after gtk_window_resize(). (#436721)
590
591 2007-05-12  Behdad Esfahbod  <behdad@gnome.org>
592
593         * gdk/gdkdraw.c (gdk_draw_trapezoids): Fix wrong cairo path
594         generation.  (#437879, Eddie C. Dost)
595
596 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
597
598         GtkFileChooser search fixes and recent files support.  (#435342)
599         
600         * gtk/gtkfilechooserdefault.c: Support drag and drop for
601         adding shortcuts of folders when in search or recent files
602         mode.
603
604 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
605
606         GtkFileChooser search fixes and recent files support.  (#435342)
607
608         * gtk/gtkfilechooserprivate.h:
609         * gtk/gtkfilechooserdefault.c: Follow the sorting order of
610         the GtkTreeView displaying the files list.
611
612         (shortcuts_get_index), (shortcuts_insert_separator),
613         (shortcuts_model_create), (shortcuts_combo_filter_func): Remove
614         the separator between the Search and the Recently Used shortcuts.
615
616         (list_select_func), (list_icon_data_func), (list_name_data_func),
617         (list_mtime_data_func): Update the sensitivity of the row
618         depending on the GtkFileChooserAction used.
619
620 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
621
622         GtkFileChooser search fixes and recent files support.  (#435342)
623
624         * gtk/gtkfilechooserprivate.h:
625         * gtk/gtkfilechooserdefault.c: Update the contents of the
626         files list when changing the filter of the GtkFileChooserDefault
627         widget.
628
629 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
630
631         GtkFileChooser search fixes and recent files support.  (#435342)
632
633         * gtk/gtkfilechooserdefault.c: Update the add bookmark button
634         sensitivity when in search or recent files mode, and allow
635         adding a bookmark for a folder.
636
637 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
638
639         GtkFileChooser search fixes and recent files support.  (#435342)
640
641         * gtk/gtkfilechooserdefault.c: UI fixes in the Search mode: add
642         a mnemonic to the label, de-boldify the label's text and assign
643         focus to the search entry when switching to the search mode.
644
645         (list_name_data_func): Split the text in both search and recent
646         files mode: on the first line use the short name and on the
647         second line use the full path.
648
649 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
650
651         GtkFileChooser search fixes and recent files support.  (#435342)
652
653         * gtk/gtkfilechooserprivate.h:
654         * gtk/gtkfilechooserdefault.c: Add support for showing the
655         recently used files list as a special shortcut item.
656
657 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
658         
659         GtkFileChooser search fixes and recent files support.  (#435342)
660
661         * gtk/gtkfilechooserdefault.c: Overall whitespace fixes and
662         indentation style consistency.
663
664         (list_row_activated): If the search hit is a folder, follow it
665         when activating the row, and switch back to browse mode.
666
667         (search_clear_model), (search_start_query),
668         (search_entry_activate_cb), (search_setup_widgets): Remember
669         the last query when switching between modes.
670
671 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
672
673         GtkFileChooser search fixes and recent files support.  (#435342)
674
675         * gtk/gtkfilechooserdefault.c:
676         (_gtk_file_chooser_default_class_init): Add key binding for
677         the Search shortcut; default to MOD1+S.
678
679         (search_shortcut_handler): Handle the key binding.
680
681         (search_hit_get_info_cb), (search_add_hit), (search_clear_model),
682         (search_setup_model): Retrieve informations on the search hits
683         when adding them to the model.
684
685         (list_icon_data_func): Show the search hit icon.
686
687 2007-05-11  Michael Natterer  <mitch@imendio.com>
688
689         * gtk/gtktextview.c (selection_motion_event_handler): call
690         gdk_event_request_motions(event) so selecting works with
691         XInput devices too. Spotted by Tommi Komulainen.
692
693 2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
694
695         * gtk/gtksearchengine.c (_gtk_search_engine_new): Fall back
696         to GtkSearchEngineSimple only if gthread has already been
697         initialiased; otherwise, disable search support in the file
698         chooser widget.  (#435847)
699
700 2007-05-10  Matthias Clasen <mclasen@redhat.com>
701
702         * gtk/gtkbutton.c (gtk_button_set_image): Unparent the old
703         image before overwriting priv->image.  (#437281, Jochen Baier)
704
705 2007-05-10  Matthias Clasen <mclasen@redhat.com>
706
707         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_child):
708         Correct a confusing warning.  (#437284, Björn Lindqvist)
709
710 2007-05-10  Matthias Clasen <mclasen@redhat.com>
711
712         * gdk/gdkdraw.c (gdk_draw_pixbuf): Don't call into
713         the backend if the region is empty.  (#437081, Sven Neumann)
714
715 2007-05-10  Matthias Clasen <mclasen@redhat.com>
716
717         * gtk/gtksearchenginesimple.c (search_visit_func);
718         Assume Posix nftw behaviour. 
719
720 2007-05-09  Dom Lachowicz <domlachowicz@gmail.com>
721
722         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: GtkTreeView doesn't 
723         expand/collapse with Right/Left cursor keys on Windows
724         (#436269, Daniel Atallah)
725
726 2007-05-09  Cody Russell  <bratsche@gnome.org>
727
728         * gtk/gtkmenu.c:
729         (get_arrows_border): New function to calculate the border sizes needed 
730         for the scroll arrows.
731         (get_arrows_visible_area): New function to calculate the arrows visible 
732         area.
733         (get_arrows_sensitive_area): New function to calculate the arrows
734         sensitive area.
735         (gtk_menu_paint): Refactored code to calculate the border sizes needed
736         for the scroll arrows into get_arrows_border and the code to calculate 
737         the visible area into get_arrows_visible_area.
738         (gtk_menu_handle_scrolling): Refactored arrow sensitive calculations
739         to get_arrows_sensitive_area.
740         (gtk_menu_realize, gtk_menu_size_allocate, gtk_menu_scroll_by,
741         gtk_menu_position, gtk_menu_scroll_to, gtk_menu_scroll_item_visible,
742         get_visible_size, get_menu_height, gtk_menu_real_move_scroll): Update
743         callers.  (From #436533, Tommi Komulainen)
744
745 2007-05-09  Kristian Rietveld  <kris@imendio.com>
746
747         * gtk/gtktreeview.c (gtk_tree_view_key_press),
748         (gtk_tree_view_key_release):
749         * gtk/gtkiconview.c (gtk_icon_view_class_init),
750         (gtk_icon_view_key_press),
751         (gtk_icon_view_key_release): Disable key bindings during rubber
752         banding, make pressing Esc stop rubber banding.  (#405027).
753
754 2007-05-09  Emmanuele Bassi  <ebassi@gnome.org>
755
756         * gtk/gtkrecentmanager.c:
757         (gtk_recent_info_get_icon): Return GTK_STOCK_DIRECTORY for entries
758         with MIME type "x-directory/normal", instead of GTK_STOCK_FILE.
759
760 2007-05-05  Richard Hult  <richard@imendio.com>
761
762         * gdk/quartz/gdkdrawable-quartz.c:
763         (gdk_quartz_drawable_get_context),
764         (gdk_quartz_drawable_release_context): Fix bugs #428733 and #433301.
765         Turns out the lockFocus logic was flawed, now we only lock/unlock 
766         when called outside a real expose event and never flush manually.
767
768 2007-05-03  Behdad Esfahbod  <behdad@gnome.org>
769
770         * gtk/gtklabel.c (gtk_label_ensure_layout):
771         * gtk/gtktextlayout.c (set_para_values): Make GTK_JUSTIFY_FILL work,
772         using pango_layout_set_justify() that works now. (#435675)
773
774 2007-05-03  Emmanuele Bassi  <ebassi@gnome.org>
775
776         * gtk/gtksearchenginesimple.c (search_engine_simple_finalize): Remove
777         spurious g_free() call.
778
779 Thu May  3 16:27:34 2007  Tim Janik  <timj@imendio.com>
780
781         * tests/testgtk.c (create_handle_box): made handle box test non-modal,
782         so other test can interact with handle boxes.
783
784 2007-05-02  Emmanuele Bassi  <ebassi@gnome.org>
785
786         Add search file support in the GtkFileChooser. Original patch
787         by Federico Mena Quintero; patch updated by Matthias Clasen.
788         See bug #344785.
789
790         * gtk/gtksearchengine.[ch]: Private search engine abstraction
791         object.
792
793         * gtk/gtksearchenginebeagle.[ch]: Private search engine
794         implementation using libbeagle (via g_module_open()).
795
796         * gtk/gtksearchenginesimple.[ch]: Private search engine
797         implementation using file tree walking.
798
799         * gtk/gtksearchenginetracker.[ch]: Private earch engine
800         implementation using libtracker (via g_module_open()).
801
802         * gtk/gtkquery.[ch]: Private query object for the search
803         engines.
804
805         * gtk/gtkfilechooserprivate.h:
806         * gtk/gtkfilechooserdefault.c: Use the GtkSearchEngine to
807         query a search engine backend using GtkQuery; create a new
808         operating mode, OPERATION_MODE_SEARCH, and call the common
809         operating mode OPERATION_MODE_BROWSE; add support for virtual
810         shortcuts inside the shortcuts model and create a new "Search"
811         virtual shortcut.
812
813         * gtk/Makefile.am: Update the build with the new files
814
815 2007-05-02  Armin Burgmeier  <armin@openismus.com>
816
817         * gtk/gtkcombobox.c: Destroy the menu in dispose instead of
818         finalize, because the menu might unparent itself from its parent and
819         cause a signal emission on a finalized object. (#430746)
820
821 2007-05-02  Dom Lachowicz <domlachowicz@gmail.com>
822
823         * modules/engines/ms-windows/msw_style.c: MS-Windows Theme top tabs 
824         rendered upside down for non-XP theme (#435053, Daniel Atallah)
825
826 Wed May  2 11:35:45 2007  Tim Janik  <timj@imendio.com>
827
828         * docs/faq/gtkfaq.sgml: removed, since this file is long outdated
829         and fully replaced by docs/faq/gtk-faq.sgml.
830
831 2007-05-02  Kristian Rietveld  <kris@imendio.com>
832
833         * gtk/gtktreeview.c (gtk_tree_view_grab_notify): stop the rubber band
834         if it's active.
835
836 2007-05-01  Matthias Clasen  <mclasen@redhat.com>
837
838         * gtk/gtkiconcachevalidator.c: Don't be too strict when checking
839         icon flags.  (#435062)
840
841 2007-05-01  Matthias Clasen  <mclasen@redhat.com>
842         
843         * gtk/Makefile.am: When generating gtkbuiltincache.h, only copy
844         pngs.
845
846 2007-05-01  Matthias Clasen  <mclasen@redhat.com>
847
848         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_path_do):
849         Don't ignore the fact that gtk_file_system_get_parent() 
850         may return NULL.  (#424042, Jan Martinek)
851
852 2007-05-01  Dan Winship  <danw@novell.com>
853
854         * gdk/x11/gdkwindow-x11.c (setup_toplevel_window): Make sure the
855         leader_window's WM_CLIENT_LEADER points to itself. #435028
856
857 2007-05-02  Christian Persch  <chpe@gnome.org>
858
859         * gtk/gtktreemodel.c: (gtk_tree_iter_copy), (gtk_tree_iter_free): Use
860         GSlice for gtk_tree_iter_copy. Bug #434863.
861
862 2007-05-02  Christian Persch  <chpe@gnome.org>
863
864         * gtk/gtkpapersize.c: (gtk_paper_size_get_paper_sizes): Put only
865         GtkPaperSizes into the list, don't mix it with GtkPageSetups. Bug
866         #434861.
867
868 2007-05-02  Christian Persch  <chpe@gnome.org>
869
870         * gtk/gtkpapersize.c: (gtk_paper_size_new_from_info),
871         (gtk_paper_size_new), (gtk_paper_size_new_custom),
872         (gtk_paper_size_copy), (gtk_paper_size_free): Use GSlice to allocate
873         GtkPaperSize. Bug #434862.
874
875 2007-05-02  Christian Persch  <chpe@gnome.org>
876
877         * gtk/gtkstatusbar.c: (gtk_statusbar_get_context_id),
878         (gtk_statusbar_expose_event): No need to allocate a guint; just stuff
879         the ID into the pointer directly. Bug #434865.
880
881 2007-05-01  Matthias Clasen  <mclasen@redhat.com>
882
883         * gtk/gtkfilechooserdefault.c (struct UpdateCurrentFolderData),
884         (update_current_folder_get_info_cb): add a new struct field to clear
885         the file entry after the current folder has been updated.
886
887         (gtk_file_chooser_default_update_current_folder),
888         (change_folder_and_display_error): Add a new function parameter to
889         trigger file entry clearing.
890
891         (edited_idle_create_folder_cb),
892         (file_list_drag_data_received_get_info_cb),
893         (gtk_file_chooser_default_map),
894         (gtk_file_chooser_default_set_current_folder),
895         (switch_to_selected_folder), (save_entry_get_info_cb),
896         (shortcuts_activate_volume_mount_cb), (shortcuts_activate_volume),
897         (shortcuts_activate_get_info_cb), (list_row_activated),
898         (path_bar_clicked): use new function parameter appropriately.
899
900         (gtk_file_chooser_default_should_respond): trigger file entry clearing
901         after the directory is updated instead of clearing it before, this way 
902         we avoid reloading the completion model with the soon to be old folder, 
903         causing a warning and a glitch in the folder where completion happens. 
904         (#379414, Carlos Garnacho)
905
906 2007-05-01  Matthias Clasen  <mclasen@redhat.com>
907
908         * gtk/gtkiconcachevalidator.[hc]: Add an icon cache validator.
909
910         * gtk/updateiconcache.c: Validate the generated cache before
911         moving it in place. Also add a --validate option to validate
912         an existing icon cache.
913
914         * gtk/gtkiconcache.c: Validate icon caches before using them.
915
916         * gtk/Makefile.am: Integrate it.
917
918 2007-05-01  Michael Emmel  <mike.emmel@gmail.com>
919
920         * gdk/directfb/gdkdisplay-directfb.c:
921         Added stub gdk_notify_startup_complete_with_id to compile
922         * gdk/directfb/gdkwindow-directfb.c:
923         Added gdk_window_set_opacity
924         * gdk/directfb/gdkkeys-directfb.c:
925         Fix menu key handling crash Bug #413328
926
927 2007-05-01  Christian Persch  <chpe@gnome.org>
928
929         * gtk/gtkprinter.h:
930         * gtk/gtkprintjob.h: Also move gtk_print_capabilities_get_type() to
931         the new location. Bug #390437.
932
933 2007-04-30  Matthias Clasen  <mclasen@redhat.com>
934
935         * gtk/gtksettings.c (settings_update_color_scheme):
936         Make sure we always have a color_hash.  (#423916, Jens Granseuer)
937
938 2007-04-30  Christian Persch  <chpe@gnome.org>
939
940         * docs/reference/gtk/gtk-sections.txt:
941         * gtk/gtk.symbols:
942         * gtk/gtkprinter-private.h:
943         * gtk/gtkprinter.c: (gtk_printer_get_capabilities),
944         (gtk_print_capabilities_get_type):
945         * gtk/gtkprinter.h:
946         * gtk/gtkprintjob.c:
947         * gtk/gtkprintjob.h:
948         * gtk/gtkprintunixdialog.c: (selected_printer_changed):
949         Make gtk_printer_get_capabilities public, and move the
950         GtkPrintCapabilities definition to gtkprinter.h. Bug #390437.
951
952 2007-04-30  Matthias Clasen  <mclasen@redhat.com>
953
954         * gtk/gtkexpander.c (gtk_expander_realize): A NO_WINDOW widget
955         must not set the background of its window.  (#433972,
956         Guilherme Polo)
957
958 2007-04-30  Richard Hult  <richard@imendio.com>
959
960         * gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_opacity):
961         Implement.
962
963 2007-04-30  Matthias Clasen  <mclasen@redhat.com>
964
965         * modules/printbackends/cups/gtkprintbackendcups.c: Get all
966         the printer attributes when getting the list of printers,
967         not via separate requests.  (#387889, Krishan Purahoo)
968
969 2007-04-30  Matthias Clasen  <mclasen@redhat.com>
970
971         Some more compiler warning fixes.
972
973         * gdk/directfb/gdkscreen-directfb.c (gdk_screen_is_composited):
974         Fix NULL/FALSE confusion.
975
976 2007-04-30  Matthias Clasen  <mclasen@redhat.com>
977
978         Fix some compiler warnings.  (#433642, Kjartan Maraas)
979
980         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_get_info):
981         (gtk_file_system_win32_create_folder):
982         * gtk/gtkaction.c (gtk_action_create_menu): Fix NULL/FALSE confusion.  
983
984         * gtk/gtklinkbutton.c (gtk_link_button_clicked): Pass
985         the right type to uri_func.  
986         
987         * gtk/gtktext.c (gtk_text_key_press):
988         * gtk/gtkstatusicon.c (gtk_status_icon_get_property): 
989         * gtk/gtkxembed.c (_gtk_xembed_send_message): Add casts.
990
991         * gtk/gtktrayicon-x11.c (gtk_tray_icon_manager_window_destroyed): 
992         (gtk_tray_icon_delete):
993         * gtk/gtkprintunixdialog.c (create_main_page):
994         * gtk/gtkhsv.c (gtk_hsv_motion): Remove unused variables.
995
996         * gtk/gtkliststore.c: Adapt callbacks to GSequence types.
997
998 2007-04-30  Cody Russell  <bratsche@gnome.org>
999
1000         * gdk/win32/gdkwindow-win32.c: Reintroduced erase_background(),
1001         but now we're calling it from _gdk_windowing_window_clear_area()
1002         instead of from the WM_ERASEBKGND event.  Also fixes the area
1003         that is cleared so that it is not an extra row and column too
1004         large.  (Neil Roberts, #415681)
1005
1006 2007-04-30  Matthias Clasen  <mclasen@redhat.com>
1007
1008         * gtk/gtktextview.c: Allow indents to be negative.  (#Bug 434308)
1009
1010 2007-04-30  Michael Natterer  <mitch@imendio.com>
1011
1012         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): pop up the
1013         submenu explicitely only in touchscreen mode since otherwise
1014         selecting the item already pops up the submenu. Restores the
1015         drag-selection timeout (spotted by Søren Sandmann, #128968).
1016
1017 2007-04-30  Michael Natterer  <mitch@imendio.com>
1018
1019         * gtk/gtkpapersize.h: really rename gtk_paper_size_get_builtins()
1020         to gtk_paper_size_get_paper_sizes().
1021
1022 2007-04-30  Tor Lillqvist  <tml@novell.com>
1023
1024         * gtk/gtkpapersize.c (gtk_paper_size_get_paper_sizes):
1025         _gtk_load_custom_papers() exists only on Unix.
1026
1027 2007-04-30  Tor Lillqvist  <tml@novell.com>
1028
1029         Add functionality to set overall opacity of a top-level
1030         window. (#405316)
1031
1032         * gdk/gdk.symbols: Add gdk_window_set_opacity.
1033
1034         * gdk/x11/gdkwindow-x11.c
1035         * gdk/win32/gdkwindow-win32.c: Implement
1036         gdk_window_set_opacity(). On X11 use the _NET_WM_WINDOW_OPACITY
1037         property. On Win32 use SetLayeredWindowAttributes(LWA_ALPHA).
1038
1039         * gdk/gdkwindow.h: Declare gdk_window_set_opacity().
1040
1041         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_rgba_colormap): Document
1042         that this is not implemented in the Windows backend. Add reference
1043         to gdk_window_set_opacity().
1044
1045         * gtk/gtk.symbols: Add gtk_window_set_opacity and
1046         gtk_window_get_opacity.
1047
1048         * gtk/gtkwindow.c (struct _GtkWindowPrivate)
1049         (gtk_window_class_init): Add opacity property, a double in the
1050         range [0, 1].
1051         (gtk_window_set_opacity, gtk_window_get_opacity): Implement.
1052         (gtk_window_realize): If opacity is set, call
1053         gdk_window_set_opacity().
1054
1055         * gtk/gtkwindow.h: Declare gtk_window_set_opacity() and
1056         gtk_window_get_opacity().
1057
1058 2007-04-30  Matthias Clasen <mclasen@redhat.com>
1059
1060         * gtk/gtk.symbols:
1061         * gtk/gtkpapersize.[hc]: Rename gtk_paper_size_get_builtins()
1062         to gtk_paper_size_get_paper_sizes() and optionally include
1063         custom paper sizes.
1064
1065         * gtk/gtkpagesetupunixdialog.c: Internally export a function
1066         to load custom paper sizes.
1067
1068         * modules/printbackends/file/gtkprintbackendfile.c: Implement
1069         printer_list_papers, returning all paper sizes.  (#434329,
1070         Christian Persch)
1071
1072 2007-04-30  Matthias Clasen <mclasen@redhat.com>
1073         
1074         * gtk/gtkprintoperation.c: Translate the default job
1075         name, and don't utf8-validate the job name in the
1076         setter.  (#421993, Morten Welinder)
1077
1078 2007-04-30  Matthias Clasen <mclasen@redhat.com>
1079
1080         * gtk/gtkprintjob.c (gtk_print_job_get_surface): Use
1081         g_unlink.  (#421990, Morten Welinder)
1082
1083 2007-04-29  Matthias Clasen <mclasen@redhat.com>
1084
1085         Fix some issues with reference handling in the printing
1086         code.  (#429902, Mathias Hasselmann)
1087
1088         * gtk/gtkprintoperation.c (gtk_print_operation_finalize):
1089         Unref the print context, if we have one.
1090         (gtk_print_operation_done): Add a default ::done handler 
1091         that unrefs the print context.
1092         (preview_ready): Take a reference on the print operation
1093         preview here.
1094         (print_pages_idle): ...not here,
1095         (preview_print_idle_done): ...and release it here.
1096
1097         * tests/print-editor.c (preview_cb): Take a reference
1098         on the print operation here.
1099
1100 2007-04-29  Matthias Clasen <mclasen@redhat.com>
1101
1102         * gtk/gtkprintoperation.c (print_pages_idle): Don't get
1103         stuck in a recursive mainloop if a synchronous preview
1104         is cancelled.
1105
1106 2007-04-29  Matthias Clasen <mclasen@redhat.com>
1107
1108         Make the emission of ::end-print and ::done consistent
1109         for previews.  (#347567, Yevgen Muntyan)
1110
1111         * gtk/gtkprintoperation.c (preview_iface_end_preview): Set
1112         the finished status here.
1113         (preview_end_run): ...and not here.
1114         (print_pages_idle_done): Emit ::done for a cancelled preview.
1115         (print_pages_idle): If a preview has been cancelled, don't
1116         emit ::ready, but emit ::end-print. 
1117
1118         * tests/print-editor.c: Use ::end-print to undo allocations
1119         from ::begin-print.
1120
1121 2007-04-29  Matthias Clasen <mclasen@redhat.com>
1122
1123         * gtk/gtkpapersize.c (gtk_paper_size_new): Mark paper sizes
1124         in the PWG "custom" namespace as custom. Add a link to 
1125         the spec in the docs.  (#426416, Andreas Guelzow)
1126
1127 2007-04-29  Matthias Clasen <mclasen@redhat.com>
1128
1129         * gtk/gtkprintoperation.c (gtk_print_operation_run): Document
1130         that a print operation can be run only once, and add a 
1131         corresponding g_return_if_fail().   (#379399, Masao Mutoh)
1132
1133 2007-04-29  Dan Winship  <danw@novell.com>
1134
1135         * gdk/x11/gdkdisplay-x11.c
1136         (gdk_x11_display_broadcast_startup_message): New method to
1137         marshall and send a Startup Notification message. (from #415070)
1138         (gdk_notify_startup_complete_with_id): Use that
1139
1140 2007-04-29  Mattthias Clasen  <mclasen@redhat.com>
1141
1142         * gtk/gtkprintoperation-unix.c 
1143         (_gtk_print_operation_platform_backend_launch_preview):
1144         Don't leak a file descriptor, and don't make the error
1145         dialog modal.  (#421985, Morten Welinder, Christian Persch)
1146
1147 2007-04-29  Xan Lopez  <xan@gnome.org>
1148
1149         * docs/faq/gtk-faq.sgml: Fix typo in FAQ (#373706,
1150         Diego Escalante Urrelo).
1151
1152         I'm fixing gtk-faq.sgml as it seems this is the file
1153         we actually use...
1154
1155 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1156
1157         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): 
1158         Only strip parentheses of the form (_x).  (#434261,
1159         Brian Wellington)
1160
1161 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1162
1163         * gtk/gtkprintoperation-unix.c
1164         (_gtk_print_operation_platform_backend_launch_preview):
1165         Support passing a print settings file to the preview 
1166         command.  (#403717, Christian Persch)
1167
1168         * gtk/gtksettings.c: Document %s in the 
1169         gtk-print-preview-command setting.
1170
1171 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1172
1173         * gtk/gtkprintoperation.c (print_pages_idle): Also check
1174         the default handler when deciding whether to emit the
1175         paginate signal.  (#345345, Yevgen Muntyan)
1176
1177 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1178
1179         * gtk/gtkprintoperation.h: Add a new error code
1180
1181         * gtk/gtk.symbols:
1182         * gtk/gtkpagesetup.[hc]:
1183         * gtk/gtkpapersize.[hc]:
1184         * gtk/gtkprintsettings.[hc]: Add functions to serialize 
1185         and deserialize page setups and print settings to files 
1186         and key files.  (#344515, Christian Persch)
1187
1188         * gtk/gtkpagesetupunixdialog.c: Adapt to the new functions.
1189
1190         * tests/print-editor.c: Use the new functions to persist 
1191         page setup and print settings.
1192
1193 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1194
1195         * gtk/gtkpagesetupunixdialog.c (gtk_page_setup_unix_dialog_finalize):
1196         Free the custom paper list.  (#403267, Felix Riemann)
1197
1198 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1199
1200         * gtk/gtkprintjob.c (gtk_print_job_get_surface): Fix a 
1201         small memory leak.  (#403251, Felix Riemann)
1202
1203 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1204
1205         * modules/printbackends/cups/gtkprintbackendcups.c: Fix a
1206         typo. String change !  (#406160, Stephane Raimbault)
1207
1208 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1209
1210         * gtk/gtk.symbols:
1211         * gtk/gtkpapersize.[hc]: Add a function to list the
1212         builtin paper sizes.  (#382355, Christian Persch)
1213
1214 2007-04-29  Matthias Clasen  <mclasen@redhat.com>
1215
1216         * gtk/gtk.symbols:
1217         * gtk/gtkprinter-private.h:
1218         * gtk/gtkprinter.[hc]: Make gtk_printer_has_details() and
1219         gtk_printer_request_details() public.
1220
1221         * gtk/gtkpagesetupunixdialog.c:
1222         * gtk/gtkprintunixdialog.c: Update callers.  (#389203, 
1223         Christian Persch)
1224
1225 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1226
1227         * configure.in: Add --enable-test-print-backend, defaulting
1228         to no.
1229
1230         * modules/printbackends/Makefile.am: Make building the test
1231         print backend conditional.
1232
1233 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1234
1235         * modules/printbackends/lpr/*:
1236         * modules/printbackends/cups/*: Correct some copyright lines.
1237
1238         * configure.in:
1239         * modules/printbackends/Makefile.am:
1240         * modules/printbackends/test/*: Add a test print backend.
1241         (#409089, John Palmieri)
1242
1243 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1244
1245         * gtk/gtktexttag.[hc]: Add a way to specify accumulative
1246         margins.  (#344499, Nate Nielsen)
1247
1248 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1249
1250         * gtk/gtkeventbox.c (gtk_event_box_realize): Fix the offsets
1251         of the input-only window if we also have a visible window. 
1252         (#405089)
1253
1254 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1255
1256         * gtk/gtkliststore.c (gtk_list_store_set_valist_internal):
1257         * gtk/gtktreestore.c (gtk_tree_store_set_valist_internal):
1258         Recognize negative column indices as invalid.  (#415260,
1259         Chris Wilson)
1260
1261 2007-04-28  Ronald Bultje  <rbultje@ronald.bitfreak.net>
1262
1263         * gdk/quartz/gdkeventloop-quartz.c: (select_thread_func),
1264         (poll_func): fix two more potential races that could happen when
1265         an application is polling in the mainloop and a separate thread
1266         tries to wake it up using g_idle_add(). Fixes #425271 comment 5.
1267
1268 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1269
1270         * gtk/gtkentry.c (gtk_entry_grab_focus): 
1271         (gtk_entry_real_insert_text): Only call g_object_get() 
1272         when necessary.  (#373137, Morten Welinder, patch by Xan Lopez)
1273
1274 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1275
1276         * gtk/gtkstatusicon.c (gtk_status_icon_get_size): Add
1277         a note about being embedded.  (#340107, Christian Persch)
1278
1279 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1280
1281         * gtk/gtkdnd.[hc]: Add GTK_TARGET_OTHER_{APP,WIDGET} to
1282         restrict drags within an application/widget.  (#163141, 
1283         Jorn Baayen)
1284
1285 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1286
1287         * docs/tools/Makefile.am:
1288         * gtk/Makefile.am: Make make clean clean.  (#410160, Tommi
1289         Komulainen)
1290
1291 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1292
1293         * gdk/win32/bdfcursor.c (compose_cursors_from_fonts):
1294         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_reorder): 
1295         * gtk/gtkfilesystemmodel.c (got_root_folder_cb):
1296         (get_children_folder_cb): Plug memory leaks caused by wrong 
1297         use of g_slist_remove_link().  (#405515, Nicolas Peninguy)
1298
1299 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
1300         
1301         * demos/gtk-demo/printing.c: Fix the headers in the print
1302         demo.  (#423722, Yevgen Muntyan)
1303
1304 2007-04-28  Xan Lopez  <xan@gnome.org>
1305
1306         * gtk/gtkentrycompletion.c (gtk_entry_completion_insert_completion_text): 
1307         Use strstr instead of g_strstr with -1 for length.
1308
1309 2007-04-28  Xan Lopez  <xan@gnome.org>
1310
1311         * gtk/gtkentry.c:
1312         * gtk/gtkentrycompletion.c:
1313         * gtk/gtkentrycompletion.h:
1314         * gtk/gtkentryprivate.h:
1315
1316         Remember the user input that triggered the completion, add
1317         API to the retrieve it and reset the entry contents to it
1318         if the user cancels the tentative completion during
1319         the inline-selection.
1320         
1321 2007-04-27  Matthias Clasen  <mclasen@redhat.com>
1322
1323         * gdk/x11/gdkgeometry-x11.c: Factor out window movement
1324         functions. (#63820, Tilman Sauerbeck)
1325
1326 2007-04-27  Matthias Clasen  <mclasen@redhat.com>
1327
1328         * gdk/x11/gdkgeometry-x11.c: Factor out translate_pos().
1329         (#63820, Tilman Sauerbeck)
1330
1331 2007-04-27  Matthias Clasen  <mclasen@redhat.com>
1332
1333         * gdk/x11/gdkgeometry-x11.c: Factor out window mapping
1334         and unmapping functions.  (#63820, Tilman Sauerbeck)
1335
1336 2007-04-27  Matthias Clasen  <mclasen@redhat.com>
1337
1338         * gdk/x11/gdkgeometry-x11.c: Make list handling code
1339         easier to read.  (#63820, Tilman Sauerbeck)
1340
1341 2007-04-27  Matthias Clasen  <mclasen@redhat.com>
1342
1343         * gtkassistant.c:
1344         * gtkiconfactory.c:
1345         * gtkiconview.c:
1346         * gtkpapersize.c:
1347         * gtkrecentmanager.c:
1348         * gtktextiter.c: Internalize some strings, pointed out
1349         by Damon Chaplin.
1350
1351 2007-04-27  Xan Lopez  <xan@gnome.org>
1352
1353         Support inline-selection in entries (#318459)
1354         
1355         * gtk/gtkentry.c:
1356         * gtk/gtkentrycompletion.c:
1357         * gtk/gtkentrycompletion.h:
1358         * gtk/gtkentryprivate.h:
1359
1360         When enabled cursor-match is emited when the cursor is on
1361         a possible completion on the list. The default implementation
1362         will replace the contents on the entry with the contents of
1363         the text column in the completion model.
1364
1365         Review and improvements by Matthias Clasen.
1366
1367 2007-04-27  Michael Natterer  <mitch@imendio.com>
1368
1369         Merged heavily modified patch from maemo-gtk which enables opening
1370         and closing submenus on click, and introduces some usability
1371         changes when gtk-touchscreen-mode is enabled (bug #128968):
1372
1373         * gtk/gtkmenushell.c (struct GtkMenuShellPrivate): added boolean
1374         "activated_submenu" to indicate that the current mouse operation
1375         (click or drag) has opened a submenu.
1376
1377         (gtk_menu_shell_button_press): pop up submenus without delay
1378         and record the fact in "activated_submenu".
1379
1380         (gtk_menu_shell_button_release): if a submenu was explicitely
1381         opened, or not opened by this release's button_press, or enough
1382         time has passed since timeout-opening it, close the submenu here.
1383
1384         (gtk_menu_shell_enter_notify): when entering a menu item with
1385         any mouse button pressed, open its submenu.
1386
1387         (gtk_real_menu_shell_move_current): in touchsreen mode, close the
1388         submenu when moving the focus away from it via keyboard-navigation.
1389
1390         * gtk/gtkmenuitem.[ch] (_gtk_menu_item_popup_submenu): added
1391         parameter "gboolean with_delay" so GtkMenuShell can control this
1392         for the different scenarios of submenu showing.
1393
1394         (_gtk_menu_item_popdown_submenu): new function. also needed by
1395         GtkMenuShell for closing submenus on click.
1396
1397         Renamed internal function gtk_menu_item_select_timeout() to
1398         gtk_menu_item_popup_timeout().
1399
1400         (gtk_menu_item_real_popup_submenu): new utility function which
1401         does the actual popup and records the exact time of the popup when
1402         the menu was timeout-opened (using g_get_current_time()).
1403
1404         (gtk_real_menu_item_select): don't add the popup timeout when in
1405         touchscreen mode.
1406
1407         * gtk/gtkmenu.c (gtk_menu_popup): in touchscreen mode, select the
1408         first item of every opened menu.
1409
1410 2007-04-26  Matthias Clasen  <mclasen@redhat.com>
1411
1412         * gtk/gtkfilechooserentry.c: Append a '/' to directory names
1413         in the completion popup.  (#431323, Maarten Maathuis)
1414
1415 2007-04-26  Matthias Clasen  <mclasen@redhat.com>
1416
1417         * demo/gtk-demo/combobox.c: Add a simple validation demo. 
1418         * gtk/gtkcomboboxentry.c: Make it possible to add arbitrary
1419         children to a GtkComboBoxEntry.  (#426401, Paul Pogonyshev)
1420
1421 2007-04-26  Tor Lillqvist  <tml@novell.com>
1422
1423         * gtk/gtkinputdialog.c (gtk_input_dialog_fill_axes)
1424         (gtk_input_dialog_fill_keys): Remove old child of scrolled window
1425         before adding a new one when switching what input device is being
1426         handled. (#399425)
1427
1428 2007-04-26  Matthias Clasen  <mclasen@redhat.com>
1429
1430         * modules/printbackends/lpr/gtkprintbackendlpr.c
1431         (gtk_print_backend_lpr_init): Mark the printer list as done. 
1432         (#428665, Bogdan Gheorghe)
1433
1434 2007-04-26  Matthias Clasen  <mclasen@redhat.com>
1435
1436         * Makefile.am:
1437         * gtk/Makefile.am: Don't install UNIX-printing headers and
1438         support files on non-UNIX platforms.  (#425655, Vincent Geddes)
1439
1440 2007-04-26  Matthias Clasen  <mclasen@redhat.com>
1441
1442         * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Accept
1443         unnamed separators.  (#369112, Christian Persch)
1444
1445 2007-04-26  Matthias Clasen  <mclasen@redhat.com>
1446
1447         * gtk/gtkaccelgroup.c (gtk_accel_group_finalize): Don't access
1448         invalid memory.  (#429732, Armin Burgmeier)
1449
1450 2007-04-26  Cody Russell  <bratsche@gnome.org>
1451
1452         * gdk/win32/xcursors.h:
1453         * gdk/win32/gdkcursor-win32.c:
1454
1455         Use Win32 native cursors instead of the ones built into GTK
1456         where it makes sense. (#128852, Tim Evans)
1457
1458 2007-04-25  Cody Russell  <bratsche@gnome.org>
1459
1460         * gdk/gdkwindow.h:
1461         * gtk/gtkwidget.c:
1462         * gtk/gtkhandlebox.c:
1463         * gdk/directfb/gdkwindow-directfb.c:
1464         * gdk/linux-fb/gdkwindow-fb.c:
1465         * gdk/quartz/gdkwindow-quartz.c:
1466         * gdk/win32/gdkwindow-win32.c:
1467         * gdk/x11/gdkwindow-x11.c:
1468         Added window type hint and implement drop shadows on Win32
1469         for menus, tooltips, etc. (#148535, Tim Evans, Dom Lachowicz)
1470
1471 2007-04-25  Jakub Steiner <jimmac@ximian.com>
1472
1473         * gtk/stock-icons/16/gtk-close.{png,svg}: added 16x16 version of
1474                 gtk-close as per discussion in bug #431740.
1475
1476 2007-04-25  Matthias Clasen  <mclasen@redhat.com>
1477
1478         * gtk/gtktreeview.c (gtk_tree_view_style_set): Set the background
1479         of the header window again.  (#431067, Benjamin Berg)
1480
1481 2007-04-25  Matthias Clasen  <mclasen@redhat.com>
1482
1483         * gtk/gtkicontheme.c (theme_lookup_icon): Set the filename to
1484         NULL for builtin icons, sinc gtk_icon_info_get_builtin_pixbuf()
1485         depends on it. 
1486
1487         * tests/testicontheme.c: Report builtin icons.
1488
1489 2007-04-25  Matthias Clasen  <mclasen@redhat.com>
1490
1491         * gtk/gtkprintoperation.c (preview_iface_end_preview): Don't 
1492         crash if end_run is not set.  (#424168, Matthias Hasselmann)
1493
1494 2007-04-25  Michael Natterer  <mitch@imendio.com>
1495
1496         * gtk/gtkmenu.c (gtk_menu_handle_scrolling): fix ACTIVE state of
1497         scroll buttons (we were setting the state to ACTIVE but
1498         immediately overwriting it with NORMAL or PRELIGHT). Also got rid
1499         of many separate calls to gdk_window_invalidate_rect() by
1500         remembering the old button state and only invalidating the area if
1501         the state has changed (addresses parts of bug #433242, Tommi
1502         Komulainen).
1503
1504         (gtk_menu_scroll_to): change the arrow states only if changing
1505         from or to INSENSITIVE state, so we don't overwrite the ACTIVE
1506         state set by above function.
1507
1508 2007-04-25  Michael Natterer  <mitch@imendio.com>
1509
1510         * gtk/gtkprintoperation.c (preview_iface_is_selected): fix the
1511         build. Dunno if the fix is right, but I think it is.
1512
1513 2007-04-25  Kristian Rietveld  <kris@imendio.com>
1514
1515         * gtk/gtktooltip.c (find_topmost_widget_coords_from_event):
1516         cleanup/refactor some leftover code.
1517
1518 2007-04-24  Matthias Clasen  <mclasen@redhat.com>
1519
1520         * gtk/gtkprintunixdialog.c (dialog_get_page_ranges): Parse
1521         half-open ranges like -2 or 3-, and be a bit more liberal
1522         about whitespace.
1523         (dialog_set_page_ranges): Support half-open ranges.
1524
1525         * gtk/gtkprintoperation.c (print_pages_idle): Substitute the
1526         number of pages in half-open ranges.
1527         (preview_iface_is_selected): Support half-open ranges here, too.
1528
1529 2007-04-24  Chris Wilson  <chris@chris-wilson.co.uk>
1530
1531         * gtk/gtkicontheme.c (scan_directory): Ensure the 
1532         icon_theme->all_icons and dir->icons hash tables use the same string
1533         as their keys. (#418531)
1534
1535 2007-04-23  Cody Russell  <bratsche@gnome.org>
1536         * modules/engines/ms-windows/msw_style.c: Fixed one-pixel drawing error on
1537         left-most tab when notebooks are top-oriented.  Also general cleanup of
1538         notebook tab related code.  (Lieven van der Heide, Cody Russell)
1539
1540 2007-04-23  Matthias Clasen  <mclasen@redhat.com>
1541
1542         * modules/printbackends/cups/gtkprintbackendcups.c: Reduce
1543         the amount of debug spew if we are not debugging.
1544         
1545 2007-04-23  Michael Natterer  <mitch@imendio.com>
1546
1547         * tests/Makefile.am (testtooltips_SOURCES): fix typo:
1548         testtoooltips_SOURCES -> testtooltips_SOURCES.
1549
1550 2007-04-19  Cody Russell <bratsche@gnome.org>
1551
1552         * modules/engines/ms-windows/msw_style.c: Fix menuitem rendering
1553         for Windows Vista.  (#392015, Hiroyuki Yamamoto)
1554
1555 2007-04-19  Dominic Lachowicz <domlachowicz@gmail.com>
1556
1557         * modules/engines/ms-windows/msw_style.c: Fix pixbuf leaks in
1558         non-WinXP rendering paths. From Daniel Atallah (#403470)
1559         
1560 2007-04-19  Matthias Clasen  <mclasen@redhat.com>
1561
1562         * gtk/gtkicontheme.h:
1563         * gtk/gtkicontheme.c: Add GTK_ICON_LOOKUP_GENERIC_FALLBACK
1564         icon lookup flag and implement it.  (#396901, Luca Ferreti)
1565         
1566 2007-04-18  Richard Hult  <richard@imendio.com>
1567
1568         * gdk/quartz/gdkwindow-quartz.c:
1569         (gdk_window_quartz_process_updates_internal),
1570         (gdk_window_quartz_process_all_updates),
1571         (gdk_window_impl_quartz_process_updates): Refactor the process 
1572         updates functions to share code between them. Also fixes bug 
1573         #427660 by not updating larger regions than necessary.
1574
1575 2007-04-18  Matthias Clasen  <mclasen@redhat.com>
1576
1577         * gdk/gdkregion-generic.h (GROWREGION): Handle the case
1578         of nRects == 0 correctly.  
1579         
1580 2007-04-18  Emmanuele Bassi  <ebassi@gnome.org>
1581
1582         * gtk/gtkrecentmanager.c (gtk_recent_manager_lookup_item): Fix
1583         a leak by not increasing the refcount of the GtkRecentInfo
1584         object when returning it (thanks to Matthias Clasen).
1585
1586 2007-04-16  Alexander Larsson  <alexl@redhat.com>
1587
1588         * gtk/gtkprintoperation.c (gtk_print_operation_run):
1589         Make async print preview work by actually starting
1590         the print process in that case (#424168)
1591
1592 2007-04-14  Yevgen Muntyan <muntyan@tamu.edu>
1593
1594         * gtk/gtkselection.c (selection_get_text_plain): fixed
1595         wrong g_convert_with_fallback() call which caused
1596         gtk_selection_data_get_text() return invalid UTF-8 for
1597         non-ASCII text in text/plain selection (#382824).
1598
1599 2007-04-12  Jakub Steiner <jimmac@ximian.com>
1600
1601         * gtk/stock-icons/*: update the stock icons to follow the Tango
1602                 style guidelines
1603
1604 2007-04-11  Chris Wilson  <chris@chris-wilson.co.uk>
1605
1606         * gtk/gtkiconfactory.c (_gtk_icon_factory_list_ids):
1607         * gtk/gtkstock.c (gtk_stock_list_ids):
1608             Switch over to use glib's new g_hash_table_get_keys() rather
1609             than our own static implementation.
1610
1611         * gtk/gtkiconfactory.h: Update to return a GList.
1612
1613         * configure.in: Bump required version to 2.13.1
1614
1615 2007-04-11  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
1616
1617         * gdk/quartz/gdkeventloop-quartz.c: Protect the polling thread
1618           setup and shutdown function by mutexes and read the wakeup
1619           pipe unconditionally and unblocking. This should make the main
1620           loop always be woken up when using g_idle_add() from another
1621           thread in the Quartz backend (#425271).
1622
1623 2007-04-10  Matthias Clasen  <mclasen@redhat.com>
1624
1625         * gdk/x11/xsettings-client.[hc]: Change the XSettingsWatchFunc
1626         to return a Bool to indicate success. Update callers and 
1627         implementors. Based on a patch by Owen Taylor.
1628         
1629         * gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): Don't
1630         leak a reference to gdkwin.
1631
1632 2007-04-07  Xan Lopez  <xan@gnome.org>
1633
1634         * gtk/gtknotebook.c (gtk_notebook_class_init): 
1635         s/arrow-size/arrow-spacing in the arrow-spacing
1636         style property docs.
1637
1638 2007-04-06  Richard Hult  <richard@imendio.com>
1639
1640         * gdk/quartz/: Clean up namespaces to make the code more
1641         maintainable.
1642
1643         * gdk/quartz/gdkdrawable-quartz.c:
1644         * gdk/quartz/gdkgc-quartz.c: Fix bug #418384, alignment of tiled
1645         images, by setting the pattern phase for the CG pattern.
1646
1647 2007-04-04  Kristian Rietveld  <kris@imendio.com>
1648
1649         * gtk/gtktooltip.c (tooltip_browse_mode_expired),
1650         (gtk_tooltip_hide_tooltip), (tooltip_popup_timeout),
1651         (gtk_tooltip_start_delay): use new gdk_threads API.
1652
1653 2007-04-03  Behdad Esfahbod  <behdad@gnome.org>
1654
1655         * gtk/gtksettings.c (settings_update_font_options): Don't set
1656         metrics-hinting font option.  Rely on the default value which is
1657         on for all raster cairo surfaces. (#425985)
1658
1659 2007-04-03  Loïc Minier  <lool@dooz.org>
1660
1661         * gdk/x11/gdkscreen-x11.c: (check_xfree_xinerama): Revert to
1662         non-xinerama mode when XineramaQueryScreens returns NULL; patch from
1663         Simon McVittie; #425786.
1664
1665 2007-04-02  Michael Natterer  <mitch@imendio.com>
1666
1667         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): remove
1668         artifact from the time when type checking casts warned on NULL,
1669         some whitespace cleanup.
1670
1671 2007-04-01  Cody Russell  <bratsche@gnome.org>
1672
1673         * modules/engines/ms-windows/msw_style.c: Fix rendering of
1674         notebook tabs when they are bottom-oriented.  Fixes #399253.
1675
1676 2007-03-31  Elijah Newren  <newren gmail com>
1677
1678         * gdk/x11/gdkwindow-x11.c (setup_toplevel_window,
1679           gdk_x11_window_set_user_time):
1680         Patch from Matthias to add support for the
1681         _NET_WM_USER_TIME_WINDOW EWMH protocol; see #354213.
1682
1683         WARNING: This patch will make metacity <= 2.18.0 freeze on
1684         workspace switch.  This is due to a weird problem that should only
1685         affect window managers using gdk in-process for decoration drawing
1686         and which make an unsafe assumption relating to doing so (i.e. it
1687         should only affect metacity).  Upgrade your version of metacity if
1688         you hit this bug.
1689
1690 2007-03-29  Michael Natterer  <mitch@imendio.com>
1691
1692         Don't close menus on clicks on their border area (bug #423761).
1693         (modified patch from maemo-gtk).
1694
1695         * gtk/gtkmenu.c (gtk_menu_button_press)
1696         (gtk_menu_button_release): bail out early if the click was on the
1697         menu's border (not on any item and not outside the window).
1698
1699         (pointer_in_menu_window): new utility function which checks if
1700         passed root coords are inside the menu_shell or one of its
1701         parent shells.
1702
1703 2007-03-29  Michael Natterer  <mitch@imendio.com>
1704
1705         * gtk/gtkmenu.c: get rid of local GtkSettings variables by moving
1706         gtk_widget_get_settings() into the g_object_get() call. Some small
1707         indentation fixes.
1708
1709 2007-03-28  Matthias Clasen  <mclasen@redhat.com>
1710
1711         * modules/printbackends/cups/gtkcupsutils.[hc]:
1712         * modules/printbackends/cups/gtkprintbackendcups.c: Apply
1713         a patch by John Palmieri to make the cups print backend support
1714         raw printers.  
1715
1716 2007-03-28  Kristian Rietveld  <kris@imendio.com>
1717
1718         * gtk/gtkwidget.c (gtk_widget_set_tooltip_window): don't unref
1719         tooltip_window, since this is handled by set_qdata_full() already.
1720         (#412001, Torsten Schoenfeld).
1721
1722 2007-03-27  Tor Lillqvist  <tml@novell.com>
1723
1724         * modules/input/Makefile.am: Use LDADDS for im-multipress.la, too: 
1725
1726 2007-03-26  Christian Persch  <chpe@gnome.org>
1727
1728         * gtk/gtkrc.c: (gtk_rc_context_get): Initialise variable. Bug #423064.
1729
1730 2007-03-24  Kristian Rietveld  <kris@gtk.org>
1731
1732         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
1733         calculate the depth with the corrected real_cell_area and don't
1734         subtract horizontal_separator/2.
1735
1736 2007-03-24  Andreas Nilsson <andreas@andreasn.se>
1737
1738         * gtk-yes.png
1739         * gtk-no: More Tango love.
1740
1741 2007-03-23  Jakub Steiner <jimmac@ximian.com>
1742
1743         * gtk-dialog-authentication.svg
1744         * gtk-dialog-error.svg
1745         * gtk-dialog-info.svg
1746         * gtk-dialog-question.svg
1747         * gtk-dialog-warning.svg: Start with a Tango face-lift.
1748
1749 2007-03-23  Rodney Dawes  <dobey@novell.com>
1750
1751         * gtk/gtkicontheme.c: Fix a couple of comment typos (#421627)
1752
1753 2007-03-23  Matthias Clasen  <mclasen@redhat.com>
1754
1755         * gtk/gtkfilechooserdefault.c: Add a keybinding (C-h) to
1756         toggle whether to show hidden files.  (#344657, 
1757         Wouter Bolsterlee, Priit Laes, et al)
1758
1759 2007-03-23  Matthias Clasen  <mclasen@redhat.com>
1760
1761         * gtk/gtkfilechooserdefault.c: Add a keybinding (C-l) to
1762         toggle the visibility of the location entry.  (#383354, 
1763         John Pye, patch by Carlos Garnacho)
1764
1765 2007-03-22  Matthias Clasen  <mclasen@redhat.com>
1766
1767         * gtk/gtksettings.c (merge_color_scheme): Freeze property
1768         notification.
1769         * gtk/gtksettings.c (_gtk_settings_handle_event): Handle
1770         the gtk-color-scheme xsetting being unset.
1771
1772         * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Handle
1773         recursion locally.
1774
1775 2007-03-21  Matthias Clasen  <mclasen@redhat.com>
1776
1777         * gtk/gtkprintoperation-unix.c: Remove leftover debug spew.
1778
1779 2007-03-21  Rodney Dawes  <dobey@novell.com>
1780
1781         * gtk/gtk.symbols:
1782         * gtk/gtkicontheme.[ch]:
1783         * docs/reference/gtk/gtk-sections.txt:
1784         * tests/testicontheme.c:
1785         Add a new API call gtk_icon_theme_list_contexts so that one can
1786         choose icons from a theme by context (#420719)
1787         
1788 2007-03-21  Ross Burton  <ross@burtonini.com>
1789
1790         * gtk/gtktexttag.c:
1791         Document the ::event signal (#420703).
1792
1793 2007-03-20  Kristian Rietveld  <kris@gtk.org>
1794
1795         * gtk/gtktreeviewcolumn.c:
1796         * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_focus_area().
1797
1798         * gtk/gtktreeview.c (gtk_tree_view_clamp_column_visible): add
1799         focus_to_cell parameter, rework to handle clamping columns which
1800         are bigger than the available page size better,
1801         (gtk_tree_view_key_press): remove code handling moving the focus
1802         to other column headers,
1803         (gtk_tree_view_header_focus): add clamp_column_visible parameter,
1804         fix RTL support, don't wrap around when moving focus to other
1805         column headers, call gtk_tree_view_clamp_column_visible() instead
1806         of duplicating code,
1807         (gtk_tree_view_focus): only clamp the column visible when we are
1808         explicitly moving to another column header (fixes #399555, Charles
1809         Kerr),
1810         (gtk_tree_view_move_cursor_left_right): update call to
1811         gtk_tree_view_clamp_column_visible().
1812
1813 2007-03-19  Matthias Clasen <mclasen@redhat.com> 
1814
1815         * demos/gtk-demo/appwindow.c: Explicitly set the title on the
1816         about dialog.
1817
1818 2007-03-18  Matthias Clasen <mclasen@redhat.com> 
1819
1820         * gtk/gtkentrycompletion.c (gtk_entry_completion_compute_prefix):
1821         Ensure that the prefix is valid UTF-8.  (#419568, Nickolay V. Shmyrev)
1822
1823 2007-03-18  Matthias Clasen <mclasen@redhat.com> 
1824
1825         * modules/input/gtkimcontextmultipress.[hc]:
1826         * modules/input/im-multipress.conf:
1827         * modules/input/immultipress.c:
1828         * modules/input/README.multipress: Add the multipress input
1829         method.  (#417446, Johannes Schmid, Murray Cumming)
1830
1831         * modules/input/Makefile.am: Glue
1832
1833 2007-03-17  Chris Wilson  <chris@chris-wilson.co.uk>
1834
1835         * gdk/x11/gdkvisual-x11.c (_gdk_visual_init):
1836         Initialise nxvisuals to 0 in order to handle XGetVisualInfo()
1837         failures gracefully. (#419171)
1838
1839 2007-03-17  Emmanuele Bassi  <ebassi@gnome.org>
1840
1841         * gtk/gtkrecentaction.c (recent_chooser_set_property),
1842         (gtk_recent_action_set_property): Remove useless inlined
1843         function and propagate the properties to the GtkRecentChooser
1844         objects we create, instead of all the proxies.
1845
1846         (set_current_filter): Remove 'inline' marker.
1847
1848 2007-03-16  Emmanuele Bassi  <ebassi@gnome.org>
1849
1850         Apply changes suggested by Michael Natterer. (#338843)
1851
1852         * gtk/gtkaction.h:
1853         * gtk/gtkaction.c: Rename get_submenu() to create_menu();
1854         rename gtk_action_get_submenu() to gtk_action_create_menu().
1855
1856         * gtk/gtkrecentaction.c: Update for GtkAction change.
1857
1858         * gtk/gtkuimanager.c (update_node): Update for GtkAction change;
1859         also, use the menu from the GtkAction for both menuitem and
1860         toolitem nodes.
1861
1862 2007-03-16  Xan Lopez  <xan@gnome.org>
1863
1864         * gtk/gtkwidget.c: Fix documentation error in
1865         gtk_widget_set_redraw_on_allocate.
1866
1867 2007-03-16  Matthias Clasen  <mclasen@redhat.com>
1868
1869         * gtk/gtkprintunixdialog.c (printer_added_cb): Scroll to
1870         make the selected printer visible.  (#418403, Nickolay V. Shmyrev,
1871         patch by Christian Persch)
1872
1873 2007-03-15  Federico Mena Quintero  <federico@novell.com>
1874
1875         Merged from gtk-2-10:
1876
1877         * gtk/gtkfilechooserdefault.c (find_good_size_from_style):
1878         PANGO_PIXELS() gives us device units, which are *points* in
1879         pangocairo's parlance, but we want actual pixels.  So, get the
1880         screen's resolution to compute the actual number of pixels.
1881         Fixes bug #418585.
1882
1883 2007-03-15  Emmanuele Bassi  <ebassi@gnome.org>
1884
1885         * gtk/gtkrecentmanager.c (gtk_recent_manager_add_item): Remove
1886         unused GError; do not allocate GtkRecentData and use a variable
1887         on the stack. (#418673, Morten Welinder)
1888
1889 2007-03-15  Emmanuele Bassi  <ebassi@gnome.org>
1890
1891         * gtk/gtkaction.[ch]: Add GtkActionClass::get_submenu() vfunc:
1892         actions providing a menu item or a menu tool button with already
1893         a submenu should return the GtkMenu widget.
1894
1895         * gtk/gtkuimanager.c (update_node): If an action provides its
1896         own submenu, use it instead of adding an empty one
1897
1898         * gtk/gtkrecentaction.[ch]: Add GtkRecentAction, an action
1899         implementing the GtkRecentChooser interface for displaying the
1900         list of recently used files into menus and toolbars generated
1901         using GtkUIManager. (#338843)
1902
1903         * gtk/Makefile.am:
1904         * gtk/gtk.h:
1905         * gtk/gtk.symbols: Add GtkRecentAction API to the build.
1906
1907         * tests/testactions.c: Exercise the GtkRecentAction API.
1908
1909 2007-03-15  Chris Wilson  <chris@chris-wilson.co.uk>
1910
1911         * gtk/gtkicontheme.c (ensure_valid_themes), (rescan_themes),
1912         (gtk_icon_theme_rescan_if_needed): Protect ensure_valid_themes()
1913         from recursion, which can happen for example if the app tries to
1914         reload an icon from within a theme-changed handler. (#418531)
1915
1916 2007-03-15  Richard Hult  <richard@imendio.com>
1917
1918         * gdk/quartz/gdkmain-quartz.c: Add stubs for
1919         gdk_notify_startup_complete_with_id and gdk_window_set_startup_id
1920         here too.
1921
1922 2007-03-15  Emmanuele Bassi  <ebassi@gnome.org>
1923
1924         * gtk/gtkrecentmanager.c: Fix documentation errors. (Morten
1925         Welinder)
1926
1927 2007-03-15  Tor Lillqvist  <tml@novell.com>
1928
1929         * gdk/gdk.symbols: Add gdk_notify_startup_complete_with_id and
1930         gdk_window_set_startup_id.
1931
1932         * gdk/win32/gdkmain-win32.c: Add dummy implementations of the above.
1933
1934 2007-03-15  Emmanuele Bassi  <ebassi@gnome.org>
1935
1936         * gtk/gtkrecentchooserprivate.h:
1937         * gtk/gtkrecentchooserutils.c: Move filtering of the recent
1938         files list into the shared implementation; do the filtering
1939         before the sorting, so that we always clamp on the desired
1940         size. (#418219)
1941
1942         * gtk/gtkrecentchoosermenu.c: Remove the filtering of the
1943         list, as it's already been done.
1944
1945         * gtk/gtkrecentchooserdefault.c: Ditto; also remove the
1946         GtkTreeModelFilter: just reload the view if the sorting and
1947         filtering properties change.
1948
1949         * gtk/testrecentchoosermenu.c: Exercise the limit property.
1950
1951 2007-03-14  Michael Natterer  <mitch@imendio.com>
1952
1953         Make gtk_widget_set_extension_events() work on already realized
1954         widgets (bug #379550, Tommi Komulainen)
1955
1956         * gdk/x11/gdkinput.c (gdk_input_set_extension_events): allow to be
1957         called multiple times without leaking and work correctly when
1958         already realized (don't rely on a configure event following).
1959
1960         * gtk/gtkwidget.c (gtk_widget_set_extension_events_internal): new
1961         internal function which walks the GdkWindow tree and sets the
1962         extension events on all windows that belong to the widget.
1963
1964         (gtk_widget_realize)
1965         (gtk_widget_set_extension_events): use the new function.
1966
1967 2007-03-14  Emmanuele Bassi  <ebassi@gnome.org>
1968
1969         Various clean ups in the GtkRecent code. (see #338843)
1970
1971         * gtk/gtkrecentchooserdefault.c:
1972         * gtk/gtkrecentchoosermenu.c:
1973         * gtk/gtkrecentchooserprivate.h:
1974         * gtk/gtkrecentchooserutils.c: Move the recent chooser function
1975         for getting the sorted and clamped list of recent files from the
1976         manager outside the implementations.
1977
1978         * gtk/gtkrecentchooserdefault.c (chooser_set_sort_type): Repopulate
1979         the list when the sorting order changes.
1980
1981         (gtk_recent_chooser_default_dispose),
1982         (gtk_recent_chooser_default_finalize): Move object unref and
1983         source removal from finalize to dispose.
1984
1985         * gtk/gtkrecentchooser.c (gtk_recent_chooser_type_init): Relax the
1986         prerequisite for the GtkRecentChooser interface implementations,
1987         from GtkObject to GObject.
1988
1989         (gtk_recent_chooser_class_init): Use GTK_PARAM_* instead of
1990         G_PARAM_*
1991
1992 2007-03-13  Emmanuele Bassi  <ebassi@gnome.org>
1993
1994         Apply patch by Vytautas Liuolia for changing the startup
1995         notification id on a window in the X11 backend. (#347375)
1996
1997         * gdk/gdk.h:
1998         * gdk/gdkx.h:
1999         * gdk/x11/gdkdisplay-x11.c: Add gdk_notify_startup_complete_with_id()
2000         and gdk_x11_display_get_startup_notification_id().
2001
2002         * gdk/gdkwindow.h:
2003         * gdk/x11/gdkwindow-x11.c: Add gdk_window_set_startup_id().
2004
2005         * gtk/gtkwindow.h:
2006         * gtk/gtkwindow.c: Add gtk_window_set_startup_id(), used to
2007         change the startup notification id.
2008         
2009         (gtk_window_class_init), (gtk_window_init),
2010         (gtk_window_set_property): Add write-only "startup-id" property
2011         to GtkWindow.
2012
2013         (gtk_window_realize): Set the startup notification id
2014         on a GtkWindow if it's valid.
2015
2016         (gtk_window_map): If we have another valid startup notification
2017         id then finish the notification process.
2018
2019 2007-03-13  Matthias Clasen  <mclasen@redhat.com>
2020
2021         * gtk/gtknotebook.c (gtk_notebook_real_insert_page):
2022         Fix tabbed browsing in epiphany.  (#413664, Christian Persch)
2023
2024 2007-03-12  Matthias Clasen  <mclasen@redhat.com>
2025
2026         * gtk/gtksizegroup.c (gtk_size_group_add_widget): Clarify
2027         docs.  (#345844, Torsten Schoenfeld)
2028
2029         * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
2030         * gdk/gdkwindow.c (gdk_window_add_filter): Add
2031         cross-references.  (#351252, Vincent Untz)
2032
2033         * gtk/gtkprintoperation.c: Fix an oversight in an
2034         example.  (#381083, Ian Puleston)
2035
2036         * gtk/gtkcombobox.c: Clean up and clarify docs.  (#412484)
2037
2038 2007-03-12  Matthias Clasen  <mclasen@redhat.com>
2039
2040         * gtk/gtkspinbutton.c (gtk_spin_button_style_set): Set
2041         the background of the panel window on style changes. (#402144,
2042         Benjamin Berg)
2043
2044 2007-03-12  Matthias Clasen  <mclasen@redhat.com>
2045
2046         * gtk/gtkbindings.c (gtk_binding_entry_add_signal): Remove
2047         an obsolete comment.  (#402169, Xan Lopez)
2048
2049 2007-03-12  Matthias Clasen  <mclasen@redhat.com>
2050
2051         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
2052         Don't copy PangoLanguage.  (#340031, Morten Welinder)
2053
2054 2007-03-12  Matthias Clasen  <mclasen@redhat.com>
2055
2056         * gtk/gtkfilechooserbutton.c (change_icon_theme_get_info_cb):
2057         Handle the row reference path being NULL.  (#410565, Joe Markus
2058         Clarke, patch by Chris Wilson)
2059
2060 2007-03-11  Matthias Clasen  <mclasen@redhat.com>
2061
2062         * tests/testiconview.c: Handle Menu key presses without
2063         crash.  (#385637, Christian Persch)
2064
2065 2007-03-11  Matthias Clasen  <mclasen@redhat.com>
2066
2067         * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window):
2068         Don't crash if active_tips_data is NULL.  (#382904, Li Yuan)
2069
2070 2007-03-11  Matthias Clasen  <mclasen@redhat.com>
2071
2072         * gtk/gtktextview.c (gtk_text_view_set_buffer): Set first_para_mark
2073         to NULL.  (#396805, Colin Leroy, patch by Mariano Suárez-Alvarez)
2074         
2075 2007-03-12  Kristian Rietveld  <kris@gtk.org>
2076
2077         * gtk/gtkfilechooserdefault.c (check_save_entry): immediately
2078         bail out if current_folder is NULL. (#350988, lots of reporters,
2079         modified patch by Jan Darmochwal).
2080
2081 2007-03-10  Kristian Rietveld  <kris@gtk.org>
2082
2083         * gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): only
2084         hide the search dialog and send focus events if the search dialog
2085         is currently visible.
2086
2087 2007-03-10  Richard Hult  <richard@imendio.com>
2088
2089         * gdk/quartz/gdkdrawable-quartz.c:
2090         (gdk_quartz_ref_cairo_surface): Reuse the surface during its lifetime.
2091         (gdk_quartz_drawable_get_context): Update for the new quartz cairo 
2092         surface API (#410442). Don't lock focus unless called outside of an 
2093         expose event.
2094         (gdk_quartz_drawable_release_context): Only flush the CG context and 
2095         unlock focus if called outside of expose.
2096         (_gdk_quartz_drawable_finish): New function, used to free the cached
2097         cairo surface.
2098
2099         * gdk/quartz/gdkwindow-quartz.c:
2100         (gdk_window_impl_quartz_begin_paint_region): A few small style changes.
2101         (_gdk_window_impl_quartz_get_type): No need to make the type info
2102         static.
2103         (gdk_window_quartz_process_all_updates): Move the autorelease pool
2104         allocation and freeing outside the loop.
2105         (_gdk_windowing_window_destroy): Finish the drawable.
2106         (move_resize_window_internal): Small cleanup and remove comment.
2107
2108         * gdk/quartz/gdkpixmap-quartz.c: Finish the drawable.
2109
2110 2007-03-10  Richard Hult  <richard@imendio.com>
2111
2112         * gdk/quartz/gdkprivate-quartz.h: Add missing function signature to fix
2113         a build warning.
2114
2115 2007-03-10  Richard Hult  <richard@imendio.com>
2116
2117         * gdk/quartz/gdkdisplay-quartz.c: (gdk_display_get_name): Plug a leak.
2118
2119 2007-03-10  Richard Hult  <richard@imendio.com>
2120
2121         * gdk/quartz/GdkQuartzView.c: Remove unneccesary exposure mask check.
2122
2123 2007-03-10  Richard Hult  <richard@imendio.com>
2124
2125         * gdk/quartz/gdkevents-quartz.c: (gdk_screen_get_setting): Don't set
2126         the font name here, leave that to themes, fixes #387508.
2127
2128 2007-03-10  Kristian Rietveld  <kris@gtk.org>
2129
2130         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_ref_node),
2131         (gtk_tree_model_sort_real_unref_node): when (un)reffing an
2132         element, also (un)ref its parent elements. (Fixes #364946,
2133         reported by many, testcase by Andreas Koehler).
2134
2135 2007-03-10  Matthias Clasen <mclasen@redhat.com>
2136
2137         * gtk/gtkprintoperation-unix.c: Initialize the do_preview
2138         field of PrintResponseData.  (#396703, Christian Persch)
2139
2140         * tests/print-editor.c: Plug some leaks.
2141
2142 2007-03-09  Matthias Clasen <mclasen@redhat.com>
2143
2144         * gtk/gtktextview.c (gtk_text_view_end_selection_drag):
2145         Get rid of the unused event argument. Update all callers.
2146
2147         * gtk/gtktextview.c (gtk_text_view_focus_out): Call
2148         gtk_text_view_end_selection_drag.  (#351671, Boyd Timothy)
2149
2150 2007-03-09  Matthias Clasen <mclasen@redhat.com>
2151
2152         * modules/input/gtkimcontextxim.c 
2153         (gtk_im_context_xim_filter_keypress): Don't commit
2154         modifier-adorned characters.  (#331369, #335796, Lin Ma
2155         and others)
2156
2157 2007-03-09  Matthias Clasen <mclasen@redhat.com>
2158
2159         * Everywhere: Remove unnecessary NULL checks before
2160         g_free().  (#369666, Morten Welinder, Djihed Afifi)
2161
2162         * configure.in: Check for ftw.h
2163
2164 2007-03-09  Matthias Clasen <mclasen@redhat.com>
2165
2166         * gtk/gtkfilesystemwin32.c (get_icon_path): Remove
2167         C99isms.  (#416525, Kazuki Iwamoto)
2168
2169 2007-03-09  Tor Lillqvist  <tml@novell.com>
2170
2171         * README.win32: Update.
2172
2173 2007-03-08  Matthias Clasen <mclasen@redhat.com>
2174
2175         * gdk/x11/gdkasync.c (send_event_handler): Defer the callbacks
2176         to an idle to avoid deadlock with xcb-ified libX11.  (#413032,
2177         Sebastian Dröge)
2178
2179 2007-03-08  Matthias Clasen <mclasen@redhat.com>
2180
2181         * gtk/gtknotebook.c (gtk_notebook_real_insert_page):
2182         Set child visibility to FALSE here; it will be turned
2183         back on in switch_page.  (#413664, Carlos Garnacho)
2184         
2185 2007-03-08  Mathias Hasselmann <mathias.hasselmann@gmx.de>
2186
2187         * modules/engines/ms-windows/msw_style.c: Use proper border style
2188         when drawing shadow of scrolled windows on Windows XP (#168326)
2189         * modules/engines/ms-windows/xp_theme.c: Explicitly set size of
2190         element_part_map array to ensure it always is large enough.
2191         
2192 2007-03-08  Mathias Hasselmann <mathias.hasselmann@gmx.de>      
2193
2194         * gtk/gtkcombobox.c: Add shadow-type style property, set shadow-type
2195         property of GtkEntry accordingly, unify size-allocation of toggle
2196         button (#411123, patch from Mathias Hasselmann).
2197         * gtk/gtkentry.c: Add shadow-type property. Query style properties
2198         on style changes only (#411123, patch from Mathias Hasselmann).
2199         * modules/engines/ms-windows/msw_style.c: Drop combo_box_draw_box
2200         hack as GtkComboBox emits drawing requests now (#411123, patch 
2201         from Mathias Hasselmann).
2202         
2203 2007-03-08  Mathias Hasselmann <mathias.hasselmann@gmx.de>
2204
2205         * gtk/gtkscrolledindow.c: Improve look of GtkScrolledWindow on Windows
2206         by implementing a scrollbars-within-bevel style property. (#168326)
2207         
2208 2007-03-08  Mathias Hasselmann <mathias.hasselmann@gmx.de>
2209
2210         * gtk/gtkfilesystemwin32.c: Use Windows shell icons. Icons are
2211         stored in the current theme with the name
2212         "gtk-win32-shell-icon;PATH;INDEX". PATH and INDEX reference shell
2213         icons as reported by SHGetFileInfoW. (#412221)
2214
2215 2007-03-07  Matthias Clasen <mclasen@redhat.com>
2216
2217         * gtk/gtkexpander.c (gtk_expander_paint_focus): Draw the
2218         focus around the arrow if there is no label widget.  
2219         (#124045, Cody Russell)
2220
2221 2007-03-07  Matthias Clasen <mclasen@redhat.com>
2222
2223         * gtk/gtkcombo.c: (gtk_combo_init):
2224         * gtk/gtkcombobox.c: (gtk_combo_box_set_popup_widget),
2225         (gtk_combo_box_menu_setup):
2226         Set names on the popup widgets to make them themable. (#414975, 
2227         Benjamin Berg)
2228
2229 2007-03-07  Michael Natterer  <mitch@imendio.com>
2230
2231         * gtk/gtkcellrendereraccel.c: use multihead safe ungrab functions
2232         instead of gdk_keyboard_ungrab() and gdk_pointer_ungrab(), remove
2233         empty finalize() implementation, some cosmetic cleanup
2234         (bug #415645).
2235
2236 2007-03-06  Chris Wilson  <chris@chris-wilson.co.uk>
2237
2238         * gtk/gtkicontheme.c (update_current_theme), (gtk_icon_theme_init),
2239         (do_theme_change), (gtk_icon_theme_set_custom_theme),
2240         (load_themes):
2241         Be careful not to trigger a style reset before we have loaded
2242         the icon theme. (#414875).
2243
2244 2007-03-06  Tor Lillqvist  <tml@novell.com>
2245
2246         * gdk/Makefile.am
2247         * gtk/Makefile.am: Further fixes for building on Win32 outside
2248         srcdir. (#413492, Mathias Hasselmann)
2249
2250 2007-03-04  Ihar Hrachyshka <iharh@gnome.org>
2251
2252         * configure.in: Added be@latin to ALL_LINGUAS. Problems seems to be
2253         fixed.
2254
2255 2007-03-04  Claudio Saavedra  <csaavedra@alumnos.utalca.cl>
2256
2257         * configure.in: Removed be@latin from ALL_LINGUAS, as it's currently
2258         breaking the build.
2259
2260 2007-03-04  Ihar Hrachyshka <iharh@gnome.org>
2261
2262         * configure.in: Added be@latin to ALL_LINGUAS
2263
2264 2007-03-03  Guillaume Savaton <llumeao@gmail.com>
2265
2266         * configure.in: Added Esperanto (eo) to ALL_LINGUAS
2267
2268 2007-03-01  Matthias Clasen <mclasen@redhat.com>
2269
2270         * gtk/gtksettings.c: Always store gtk-color-scheme
2271         values from all sources in the ColorSchemeData struct
2272         and ignore the property_value for gtk-color-scheme.
2273         This fixes #412596, reported by Thomas Wood.
2274
2275 2007-02-28  Matthias Clasen <mclasen@redhat.com>
2276
2277         * gtk/gtksettings.c: Make color scheme update properly
2278         when changing themes.  (#402131, Benjamin Berg)
2279
2280 2007-02-28  Matthias Clasen <mclasen@redhat.com>
2281
2282         * gtk/gtkrc.c: Don't leak references to the color-hash 
2283         gotten from GtkSettings.  (#409357, Benjamin Berg)
2284
2285 2007-02-28  Tristan Van Berkom <tvb@gnome.org>
2286
2287         * gtk/gtkradiobutton.c: Fixed a warning from
2288         g_object_set (radiobutton, "group", NULL, NULL).
2289
2290 2007-02-26  Matthias Clasen <mclasen@redhat.com>
2291
2292         Apply a patch by Carlos Garnacho to fix several problems
2293         with filechooser size handling (#325477, #151169, 143213,
2294         #153785)
2295
2296         * gtk/gtkfilechooserdefault.c: Increase NUM_LINES slightly.
2297         (browse_widgets_create): Don't force the paned position to 200.
2298         (find_good_size_from_style): Take the size of the extra widget
2299         into account.
2300
2301         * gtk/gtkfilechooserdialog.c (file_chooser_widget_update_hints):
2302         Accept a minimal width parameter. Update all callers.
2303
2304 2007-02-26  Matthias Clasen <mclasen@redhat.com>
2305
2306         * gtk/gtkprintunixdialog.c: Change the label to "Pages per side",
2307         which is more accurate, suggested by Tim Waugh. String change! 
2308
2309 2007-02-26  Matthias Clasen <mclasen@redhat.com>
2310
2311         * gtk/gtkprinteroptionwidget.c: Make the folder selection for
2312         print-to-file work. Reported by Ian Collier.
2313
2314 2007-02-26  Chris Wilson  <chris@chris-wilson.co.uk>
2315
2316         Bug 409101 – invalid read to gtkicontheme.c insert_theme(), might cause gnome-panel crash
2317
2318         * gtk/gtkicontheme.c: (scan_directory):
2319                 Reorder the replacement of the shared base_name key, so that we
2320                 avoid dereferencing the string in the icon_theme->all_icon
2321                 hash table after freeing it from the dir->icons hash table.
2322
2323 2007-02-26  Tor Lillqvist  <tml@novell.com>
2324
2325         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon_name): Add
2326         comment clarifying that "icon name" here is not related to the
2327         freedesktop.org icon naming stuff.
2328
2329 2007-02-23  Dom Lachowicz  <domlachowicz@gmail.com>
2330
2331         * modules/engines/ms-windows/msw_style.c: Bug 411118 - bad bevel for
2332         progress bar on windows classic. Match from Mathias Hasselmann.
2333         
2334 2007-02-19  Tor Lillqvist  <tml@novell.com>
2335
2336         * gdk/win32/gdkinput.c
2337         (gdk_device_finalize, gdk_device_class_init): Remove.
2338         (gdk_device_get_type): Drop class init function. The X11 version
2339         doesn't have one either.
2340         (gdk_devices_list): Call gdk_display_list_devices() on _gdk_display.
2341         (gdk_display_list_devices): Check that the argument is
2342         _gdk_display.
2343
2344         * gdk/win32/gdkinput-win32.h (GdkAxisInfo, GdkDevicePrivate):
2345         Cleanup: remove unused fields.
2346         * gdk/win32/gdkinput-win32.c: Corresponding changes. Fix function
2347         names in a few debugging printouts.
2348
2349 2007-02-18  Matthias Clasen  <mclasen@redhat.com>
2350
2351         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
2352         Ignore invisible text when going to end of the previous line.
2353         (#382565)
2354
2355 2007-02-18  Richard Hult  <richard@imendio.com>
2356
2357         * gdk/quartz/gdkwindow-quartz.c:
2358         (gdk_window_quartz_process_all_updates),
2359         (_gdk_windowing_window_destroy): Setup release pools to plug two leaks,
2360         patch from Erik van Pienbroek, fixes bug #396649.
2361
2362 2007-02-18  Richard Hult  <richard@imendio.com>
2363
2364         * gdk/quartz/gdkevents-quartz.c: Add stub for 
2365         gdk_display_add_client_message_filter, patch from Taybin Rutkin. Fixes
2366         bug #405870.
2367
2368         * gdk/quartz/gdkprivate-quartz.h: Add prototypes to fix build warnings.
2369
2370 2007-02-18  Richard Hult  <richard@imendio.com>
2371
2372         * gdk/quartz/GdkQuartzView.h:
2373         * gdk/quartz/GdkQuartzWindow.h:
2374         * gdk/quartz/gdkquartz.h: Import AppKit.h instead of Quartz.h.
2375         * gdk/quartz/gdkscreen-quartz.c: (get_mm_from_pixels): Don't use 
2376         userSpaceScaleFactor for 10.3. Those changes bring us closer to working
2377         on panther, patch from Mathias Hasselmann.
2378         
2379         * gdk/quartz/gdkeventloop-quartz.c: Add includes to fix build warnings.
2380
2381 2007-02-16  Behdad Esfahbod  <behdad@gnome.org>
2382
2383         * gdk/gdkpango.c (gdk_pango_layout_get_clip_region): Use PANGO_PIXELS
2384         instead of division. (#334617)
2385
2386 2007-02-16  Kristian Rietveld  <kris@gtk.org>
2387
2388         * gtk/gtktreeprivate.h: add cursor_offset field.
2389
2390         * gtk/gtktreeview.c (gtk_tree_view_init),
2391         (gtk_tree_view_move_cursor_page_up_down): fix off by one error
2392         in page up/down handling by memorizing the offset into the cursor
2393         row.  (Fixes #399809, reported by Bruce Bowler).
2394
2395 2007-02-16  Kristian Rietveld  <kris@gtk.org>
2396
2397         * gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): send
2398         a focus-in event to the tree view after hiding the search dialog.
2399         (#356515, Rich Burridge, Peter Parente).
2400
2401 2007-02-16  Kristian Rietveld  <kris@imendio.com>
2402
2403         * tests/testtooltips.c (query_tooltip_text_view_cb): also handle
2404         keyboard tooltips. (#408325, Matthias Clasen).
2405
2406 2007-02-16  Xan Lopez  <xan@gnome.org>
2407
2408         * gtk/gtkcombobox.c (gtk_combo_box_expose_event): Cleanup the logic
2409         in expose event handler. Reviewed by Matthias Clasen, #406112
2410
2411 2007-02-16  Matthias Clasen  <mclasen@redhat.com>
2412
2413         * gtk/gtkmain.c: Run pre_parse_hook only once.  (#403139, Kjartan
2414         Maraas)
2415
2416 2007-02-15  Matthias Clasen  <mclasen@redhat.com>
2417
2418         * gdk/x11/gdmain-x11.c (_gdk_xgrab_check_button_event): Be more
2419         careful when checking for ButtonRelease events that end implicit
2420         grabs.  (#386618, Christof Krüger)
2421
2422 2007-02-15  Matthias Clasen  <mclasen@redhat.com>
2423
2424         * gtk/gtktextbtree.c (_gtk_text_btree_delete): Free the lines
2425         even if there are no views.  (#408018, Albert Huang)
2426
2427 2007-02-15  Cody Russell  <bratsche@gnome.org>
2428
2429         * gdk/win32/gdkevents-win32.c: Make sure we get enough main context 
2430         iterations while we're resizing so that the window contents are resized 
2431         more smoothly (#389765).
2432
2433         * gdk/win32/gdkevents-win32.c: Fix flickering widgets when window contents
2434         are resized (#310522).
2435
2436 2007-02-15  Matthias Clasen  <mclasen@redhat.com>
2437
2438         * gtk/updateiconcache.c: Handle symlinked .icon files 
2439         intelligently; also avoid storing duplicate strings.
2440
2441 2007-02-15  Michael Natterer  <mitch@imendio.com>
2442
2443         * gtk/gtkmenushell.c: remove two antique function typedefs that
2444         are probably obsolete for ages.
2445
2446 2007-02-14  Stefan Kost  <ensonic@users.sf.net>
2447
2448         reviewed by: Matthias Clasen  <mclasen@redhat.com>
2449
2450         * configure.in: determine installation prefixes of dependent libs to
2451         crossreference docs (#407146).
2452
2453 2007-02-14  Kristian Rietveld  <kris@imendio.com>
2454
2455         * gtk/gtktooltip.c (child_location_foreach): check return value
2456         of gtk_widget_translate_coordinates() so we cannot end up
2457         using uninitialized x, y values.  (#407863, patch from Carlos
2458         Garnacho).
2459
2460 2007-02-14  Kristian Rietveld  <kris@imendio.com>
2461
2462         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
2463         use TREE_VIEW_DRAG_WIDTH/2 when calculating the drag window
2464         position instead of a hardcoded value.  (Taken from maemo-gtk).
2465
2466 2007-02-14  Michael Natterer  <mitch@imendio.com>
2467
2468         * gtk/gtkmenu.c (gtk_menu_motion_notify): don't forget to set the
2469         state of the synthesized GDK_ENTER_NOTIFY event. Fix taken from
2470         maemo-gtk.
2471
2472 2007-02-13  Kristian Rietveld  <kris@imendio.com>
2473
2474         * gtk/gtktooltip.c (gtk_tooltip_hide_tooltip): stop any
2475         pending tooltip timeout. (Fixes #406110, Carlos Garnacho).
2476
2477 2007-02-10  Emmanuele Bassi  <ebassi@gnome.org>
2478
2479         * gtk/gtkrecentchoosermenu.c: Fix the english of the comment;
2480         remove some type checking; use better variable naming for the
2481         internal menu item markers.
2482
2483 2007-02-09  Emmanuele Bassi  <ebassi@gnome.org>
2484
2485         * gtk/gtkrecentchoosermenu.c: Add support for both prepending
2486         and appending custom menu items.
2487
2488         (gtk_recent_chooser_menu_constructor): Add a placeholder menu
2489         item for the empty menu case, and for giving us a starting
2490         point for the recent items populating process.
2491
2492         (gtk_recent_chooser_menu_insert_item),
2493         (gtk_recent_chooser_menu_dispose_items): Insert an item at
2494         the position following the placeholder (and find that position
2495         if needed).
2496
2497         (idle_populate_func), (idle_populate_clean_up): Show the
2498         placeholder menu item, instead of creating one each time.
2499
2500         (gtk_recent_chooser_menu_populate): Kill some indirections
2501         and hide the placeholder before populating the menu.
2502
2503         (set_recent_manager): Remember to remove the idle population
2504         source if the manager changes.
2505
2506         * tests/testrecentchoosermenu.c: Test the appending and
2507         prepending of the menu items to the recent chooser menu
2508         widget.
2509
2510 2007-02-08  Emmanuele Bassi  <ebassi@gnome.org>
2511
2512         * gtk/gtkrecentchoosermenu.c (idle_populate_func): Keep count
2513         of the displayed items to build the menu items mnemonic instead
2514         of the overall item count. (#377164)
2515
2516         (idle_populate_clean_up): Append a menu item if all the items
2517         got filtered in the idle populate function. (#405696)
2518
2519         * tests/Makefile.am:
2520         * tests/testrecentchoosermenu.c: Add a test for the
2521         GtkRecentChooserMenu widget.
2522
2523 Thu Feb  8 13:07:08 2007  Tim Janik  <timj@imendio.com>
2524
2525         * applied patch from Xan Lopez which adds GTK_BUTTONBOX_CENTER to
2526         GtkButtonBox (bug #336159).
2527
2528         * gtk/gtkenums.h:
2529         * gtk/gtkvbbox.c, gtk/gtkhbbox.c, gtk/gtkbbox.c:
2530         support GTK_BUTTONBOX_CENTER.
2531
2532         * tests/testbbox.c: new button box test, which allows testing of 
2533         the various button box properties.
2534
2535         * tests/testgtk.c: added GTK_BUTTONBOX_CENTER. to button box test.
2536
2537 2007-02-07  Cody Russell  <bratsche@gnome.org>
2538
2539         * gdk/gdk.symbols: Add gdk_event_request_motions
2540
2541 Wed Feb  7 19:03:28 2007  Tim Janik  <timj@gtk.org>
2542
2543         * gtk/gtkentry.c (gtk_entry_motion_notify): fixed motion request 
2544         condition which was wrongly ported with my last commit.
2545
2546 Tue Feb  6 15:53:59 2007  Tim Janik  <timj@imendio.com>
2547
2548         * gtk/gtktextview.c (gtk_text_view_motion_event):
2549         * gtk/gtkspinbutton.c (gtk_spin_button_motion_notify):
2550         * gtk/gtkaboutdialog.c (credits_motion_notify_event):
2551         * gtk/gtkhruler.c (gtk_hruler_motion_notify):
2552         * gtk/gtkvruler.c (gtk_vruler_motion_notify): 
2553         * gtk/gtkentry.c (gtk_entry_motion_notify):
2554         * gtk/gtktooltip.c (_gtk_tooltip_handle_event):
2555         * gtk/gtkhsv.c (gtk_hsv_motion): call gdk_event_request_motions()
2556         for new motion events after receiving motion hints.
2557
2558         * gdk/gdkevents.[hc]: added gdk_event_request_motions().
2559
2560 2007-02-06  Kristian Rietveld  <kris@imendio.com>
2561
2562         * gtk/gtktooltip.c (find_topmost_widget_coords_from_event):
2563         remove unused get of has_tooltip.
2564
2565         * tests/testtooltips.c (query_tooltip_tree_view_cb): use the
2566         portable g_snprintf instead of snprintf.
2567
2568 2007-02-06  Michael Natterer  <mitch@imendio.com>
2569
2570         * gtk/gtktooltip.c (gtk_tooltip_finalize): chain up.
2571
2572         (gtk_tooltip_show_tooltip): move variables and code to local
2573         scope. Fixes warnings about maybe uninitialized variables.
2574
2575 2007-02-06  Kristian Rietveld  <kris@imendio.com>
2576
2577         New tooltips API.
2578
2579         * gtk/Makefile.am
2580         * gtk/gtk.h
2581         * gtk/gtk.symbols: build system foo.
2582
2583         * gtk/gtkmain.c (gtk_main_do_event): call tooltip event handler
2584         hook for appropriate events.
2585
2586         * gtk/gtkmarshalers.list: add BOOLEAN:INT,INT,BOOLEAN,OBJECT.
2587
2588         * gtk/gtkrc.c: add style for gtk-tooltip.
2589
2590         * gtk/gtksettings.c (gtk_settings_class_init): make the
2591         different tooltip timeouts configurable.
2592
2593         * gtk/gtkwidget.[ch]: add new properties, signals, make sure
2594         tooltips are hidden on unmap, destroy, update window event
2595         mask on realize, hook into focus change and show help
2596         handlers.
2597
2598         * gtk/gtkwindow.h: move GtkWindow typdef to gtkwidget.h ...
2599
2600         * gtk/gtktooltip.[ch]: new files.
2601
2602         * tests/Makefile.am
2603         * tests/testtooltips.c: add test application.
2604
2605 2007-02-05  Dom Lachowicz <domlachowicz@gmail.com>
2606
2607         * modules/engines/ms-windows/msw_style.c: Fix bug 404506, caused
2608         by prematurely releasing a DC. By Hiroyuki Yamamoto
2609         * modules/engines/ms-windows/msw_style.c: Fix bug 403470 - leaking 
2610         pixbufs when drawing rotated tabs. By Daniel Atallah
2611         
2612 2007-02-05  Michael Natterer  <mitch@imendio.com>
2613
2614         * gtk/gtksettings.c: add new boolean settings gtk-enable-accels
2615         and gtk-enable-mnemonics which enable/disable accelerators and
2616         mnemonics (bug #72375, based on a patch from Tommi Komulainen).
2617
2618         * gtk/gtkwindow.c (gtk_window_activate_key)
2619         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): don't invoke them
2620         if the resp. setting is FALSE.
2621
2622         * gtk/gtkaccellabel.c (gtk_accel_label_refetch)
2623         * gtk/gtklabel.c (gtk_label_set_pattern_internal): don't display
2624         them if the setting is FALSE.
2625
2626         * gtk/gtklabel.c: added signal connection to the screen's settings
2627         object and traverse all widgets on the screen when the setting
2628         changes. It's slightly ugly to also update GtkAccelLabels here,
2629         but less ugly than connecting and traversing all widgets twice.
2630
2631 2007-02-05  Michael Natterer  <mitch@imendio.com>
2632
2633         * gtk/gtktextbuffer.h (enum GtkTextBufferTargetInfo): changed
2634         values from G_MAXUINT-0, -1, -2 to -1, -2, -3 so we stay within
2635         ansi C enum value limits. Fixes bug #46757.
2636
2637 2007-02-03  Soren Sandmann <sandmann@daimi.au.dk>
2638
2639         * gtk/gtksequence.[ch]: Remove these files since GSequence has
2640         been moved into GLib.
2641
2642         * gtk/gtkliststore.c: Port to GSequence instead of GtkSequence.
2643
2644         * configure.in: Require glib-2.13.0
2645         
2646 2007-02-04  Tor Lillqvist  <tml@novell.com>
2647
2648         * gdk/win32/gdkcursor-win32.c: Don't define BITMAPV5HEADER on
2649         mingw with w32api >= 3.8, which has it in wingdi.h. (#403896)
2650
2651 2007-02-02  Kristian Rietveld  <kris@gtk.org>
2652
2653         * gtk/gtktreeview.c (gtk_tree_view_row_changed): remove unused
2654         style_get of vertical-separator. (#403165, Chris Wilson).
2655
2656 2007-02-02  Christian Persch  <chpe@svn.gnome.org>
2657
2658         * gtk/gtkfilechoosersettings.c: (get_config_filename),
2659         (ensure_settings_read), (_gtk_file_chooser_settings_init),
2660         (_gtk_file_chooser_settings_set_show_hidden),
2661         (_gtk_file_chooser_settings_set_expand_folders),
2662         (_gtk_file_chooser_settings_save): Use a simple key file instead of a
2663         markup file. Bug #399592.
2664
2665 2007-02-02  Mariano Suárez-Alvarez  <mariano@gnome.org>
2666
2667         * gtk/gtkcellrenderertext.c(gtk_cell_renderer_text_class_init):
2668         be a little more helpful with the docs on GtkCellRendererText:alignment.
2669         Bug #403409.
2670
2671 2007-02-01  Michael Natterer  <mitch@imendio.com>
2672
2673         * gtk/gtkmenu.c (gtk_menu_paint): pass &event->area to
2674         gtk_paint_box() calls.
2675
2676 2007-02-01  Michael Natterer  <mitch@imendio.com>
2677
2678         * gtk/gtkmenu.c (gtk_menu_button_press)
2679         (gtk_menu_button_release)
2680         (gtk_menu_button_scroll): remove redundant and confusing
2681         if (GTK_IS_MENU (widget)) checks because "widget" is always a
2682         GtkMenu here.
2683
2684 Thu Feb  1 12:22:06 2007  Tim Janik  <timj@imendio.com>
2685
2686         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): remove extra reference
2687         that gtkcombobox keeps on priv->popup_widget if it's a tree view.
2688
2689 2007-01-31  Christian Persch  <chpe@svn.gnome.org>
2690
2691         * gtk/gtkaboutdialog.c: (update_credits_button_visibility),
2692         (gtk_about_dialog_set_authors), (gtk_about_dialog_set_documenters),
2693         (gtk_about_dialog_set_artists),
2694         (gtk_about_dialog_set_translator_credits): Hide the Credits button iff
2695         there are no credits to show. Bug #402806.
2696
2697 2007-01-31  Tor Lillqvist  <tml@novell.com>
2698
2699         * gdk/win32/gdkinput-win32.c (print_cursor): New debugging
2700         function.
2701         (_gdk_input_wintab_init_check): Call it when debugging output is
2702         requested.
2703         (_gdk_input_wintab_init_check): Skip duplicated cursors for Wacom
2704         tablets. The Wacom driver reports duplicated cursors with
2705         physid==0. Fix verified by Robert Ögren.
2706
2707 2007-01-30  Felix Riemann  <friemann@svn.gnome.org>
2708
2709         * modules/printbackends/file/gtkprintbackendfile.c:
2710         (file_printer_get_options): Fix leaked string. Fixes bug #402565.
2711
2712 2007-01-30  Matthias Clasen  <mclasen@redhat.com>
2713
2714         * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
2715         (gdk_x11_window_set_user_time): Be more careful about toplevel
2716         possibly being NULL.  (#402453, Sebastian Bacher)
2717
2718 Tue Jan 30 12:09:56 2007  Tim Janik  <timj@gtk.org>
2719
2720         * gtk/gtksettings.c: cleaned up ::color-hash registration to not abuse
2721         class_n_properties and leave an uninitialized value array behind.
2722
2723 2007-01-29  Michael Natterer  <mitch@imendio.com>
2724
2725         * gtk/gtkmenuitem.c (gtk_menu_item_select)
2726         (gtk_menu_item_deselect): queue a draw on the parent_menu_item of
2727         this menu item's menu, to enable themeing menu items depending on
2728         whether something is selected in their submenu (patch taken from
2729         maemo-gtk).
2730
2731 2007-01-28  Matthias Clasen  <mclasen@redhat.com>
2732
2733         * gtk/gtktoolbar.c: Reinstate gtk_toolbar_content_new_compatibility()
2734         that was mistakenly "cleaned up" a while ago. Also
2735         revert a problematic change to the screen_changed
2736         handler.  (#401598, Søren Sandmann)
2737
2738 2007-01-28  Matthias Clasen  <mclasen@redhat.com>
2739
2740         * gtk/gtkframe.c (gtk_frame_size_allocation): Fix a 
2741         problem with large y thickness.  (#136592, Xan Lopez)
2742
2743 2007-01-28  Matthias Clasen  <mclasen@redhat.com>
2744
2745         * gtk/gtkaction.c (gtk_action_new): Use canonical
2746         property names.  
2747
2748 2007-01-27  Matthias Clasen  <mclasen@redhat.com>
2749
2750         * gtk/gtknotebook.c (gtk_notebook_draw_arrow):
2751         (gtk_notebook_draw_focus): Avoid some unnecessary 
2752         gtk_widget_get_style() calls.
2753
2754 2007-01-27  Matthias Clasen  <mclasen@redhat.com>
2755
2756         * gtk/gtktoolbar.c:
2757         * gtk/gtktoolitem.c:
2758         * gtk/gtktoolbutton.c: Rearrange things so that setting
2759         multiple properties causes not more than a single 
2760         reconstruction of the contents.
2761
2762         * gtk/gtkaction.c (connect_proxy): Set all tool button 
2763         properties in one go.
2764
2765 2007-01-27  Matthias Clasen  <mclasen@redhat.com>
2766
2767         * gtk/gtkstatusicon.c:
2768         * gtk/gtktrayicon-x11.c: Fix GtkStatusIcon to not
2769         take up space on the panel if it is invisible.  (340110, Christian
2770         Persch)
2771
2772         * tests/teststatusicon.c:
2773         * tests/Makefile.am: Updates
2774
2775 2007-01-27  Matthias Clasen  <mclasen@redhat.com>
2776
2777         * gtk/gtkfilesel.h:
2778         * gtk/gtkrc.h:
2779         * gtk/gtk.symbols: Add deprecation guards for gtk_rc_style_ref/unref
2780         and the old file selector.  (#348256)
2781
2782 2007-01-26  Matthias Clasen  <mclasen@redhat.com>
2783
2784         * gtk/gtkiconview.c: Documentation fixes (#400530, Anders Brander)
2785
2786 2007-01-26  Matthias Clasen  <mclasen@redhat.com>
2787
2788         * gtk/updateiconcache.c: Check the mtime of all directories,
2789         not just the toplevel, if ftw() is available.  (#331671, Behdad
2790         Esfahbod)
2791
2792         * configure.in: Check for ftw.h.
2793
2794 2007-01-26  Michael Natterer  <mitch@imendio.com>
2795
2796         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
2797         destroy the XIM only if it exists. While the code does look safe
2798         in general, there can be corner cases where the "reconnecting"
2799         boolean being FALSE does not correspond to the XIM being
2800         allocated (fixes #329450, fix taken from maemo-gtk).
2801
2802 Fri Jan 26 13:07:07 2007  Tim Janik  <timj@imendio.com>
2803
2804         * gtk/gtkstyle.c (draw_insertion_cursor): clamp cursor coordinates to
2805         window bounds (fix from Maemo Gtk).
2806
2807 2007-01-26  Michael Natterer  <mitch@imendio.com>
2808
2809         * gtk/gtkentrycompletion.c (gtk_entry_completion_insert_prefix):
2810         only block/unblock completion->priv->insert_text_id if it is
2811         actually connected. While this can't happen the way GtkEntry
2812         itself uses the completion, it's still public API and should not
2813         blindly call functions that will spit warnings (fix taken from
2814         maemo-gtk).
2815
2816 2007-01-25  Matthias Clasen  <mclasen@redhat.com>
2817
2818         * gdk/gdkwindow.c: Reduce locking overhead by not repeatedly getting
2819         the paintable iface.  
2820
2821 2007-01-24  Michael Natterer  <mitch@imendio.com>
2822
2823         * gtk/gtkwidget.c (gtk_widget_set_state): revert generic disabling
2824         of PRELIGHT state for the reasons given in bug #135666. Widget
2825         states are sometimes abused or otherwise used wrongly for historic
2826         reasons, causing this part of the patch to break e.g. menu items.
2827
2828 2007-01-24  Roozbeh Pournader  <roozbeh@farsiweb.info>
2829
2830         * README: Remove mention of no-longer-existing PATCH
2831         keyword in bugzilla. (#396899)
2832
2833 2007-01-23  Carlos Garcia Campos  <carlosgc@gnome.org>
2834
2835         * gtk/gtkpagesetup.c
2836         (gtk_page_setup_set_paper_size_and_default_margins): Fix memory leak.
2837         Fixes bug #399907. 
2838
2839 2007-01-22  Chris Wilson <chris@chris-wilson.co.uk>
2840
2841         Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
2842
2843         * gtk/gtkstyle.h:
2844                 Cause gcc to issue a warning if the style returned from
2845                 gtk_style_attach is not used. Failure to update
2846                 widget->style causes some very difficult to reproduce bugs,
2847                 eg Bug 353498 – crash in Terminal: changing icon theme.
2848
2849 2007-01-19  Michael Emmel  <mike.emmel@gmail.com>
2850
2851         * gdk/directfb/gdkevents-directfb.c: added fixes for window
2852         crossing events frm Attilio Fiandrotti<attilio.fiandrotti@gmail.com>
2853
2854 2007-01-19  Matthias Clasen  <mclasen@redhat.com>
2855
2856         * gtk/gtkcalendar.c: Fix build breakage.
2857
2858 2007-01-19  Kristian Rietveld  <kris@imendio.com>
2859
2860         * gtk/gtktreeview.c (gtk_tree_view_motion_bin_window),
2861         (add_scroll_timeout), (gtk_tree_view_drag_motion): factor out
2862         add_scroll_timeout().  (taken from maemo-gtk).
2863
2864 2007-01-18  Matthias Clasen  <mclasen@redhat.com>
2865
2866         * gtk/gtkcalendar.c: Fix problems with the initial
2867         focus in GtkCalendar.  (#397783, Vincent Untz)
2868
2869 2007-01-19  Robert Ögren  <gtk@roboros.com>
2870
2871         Fix for bug #143460 - missed tablet clicks on Windows
2872
2873         * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check):
2874         Request absolute reporting of tablet button state, and cut down
2875         the packet queue size a bit.
2876         (_gdk_input_other_event): Change button state handling
2877         accordingly. Also drop the no longer necessary code that detects
2878         missed clicks/releases for button 1. The switch to absolute button
2879         state should prevent missed events for all buttons. Additionally,
2880         swap button 2 and 3.
2881         (_gdk_input_grab_pointer): Don't reset button_state, that will only
2882         cause a new press event as soon as the next tablet packet arrives.
2883
2884 2007-01-19  Tor Lillqvist  <tml@novell.com>
2885
2886         Build Wintab support always on Windows. Don't require the Wintab
2887         SDK.
2888
2889         * configure.in: Drop the --with-wintab option. Drop the
2890         HAVE_WINTAB feature test macro and Automake variable.
2891
2892         * acconfig.h
2893         * config.h.win32.in: Drop HAVE_WINTAB.
2894
2895         * gdk/win32/gdkevents-win32.c
2896         * gdk/win32/gdkinput.c
2897         * gdk/win32/gdkinput-win32.h
2898         * gdk/win32/gdkinput-win32.c
2899         * gdk/win32/gdkmain-win32.c: Make HAVE_WINTAB ifdef blocks
2900         unconditional.
2901
2902         * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Try
2903         to load wintab32.dll dynamically here. If it is found look up the
2904         handful Wintab functions we use.
2905         (rest of file): Use these function pointers instead of calling the
2906         functions from wntab32x.lib. The code in wntab32x.lib did the same
2907         thing anyway: tried to load wintab32.dll, and looked up the
2908         addresses of the actual functions from it.
2909
2910         * gdk/Makefile.am
2911         * gdk/win32/Makefile.am: Drop the libwntab32x hacks.
2912
2913         * gdk/win32/wintab.h
2914         * gdk/win32/pktdef.h: New files. Copied from the Wintab
2915         SDK. Copyright blurb says: "The text and information contained in
2916         this file may be freely used, copied, or distributed without
2917         compensation or licensing restrictions."
2918
2919         * README.win32: Update a bit. Remove the text about the Wintab
2920         SDK.
2921
2922 2007-01-18  Tor Lillqvist  <tml@novell.com>
2923
2924         * gdk-pixbuf/Makefile.am
2925         * gdk/Makefile.am
2926         * gdk/win32/Makefile.am
2927         * gtk/Makefile.am: Fixes for building outside srcdir on
2928         Win32. (#336819, #340013) Drop distributing the handmade .la
2929         libtool wrapper for the wntab32x library. It's too much trouble
2930         making it work when building outside srcdir. Just link to the
2931         library direcly using -Wl,win32/libwntab32x.a.
2932
2933 2007-01-18  Michael Natterer  <mitch@imendio.com>
2934
2935         * gtk/gtkcheckbutton.c
2936         * gtk/gtkdnd.c
2937         * gtk/gtkentry.c
2938         * gtk/gtkmenu.c
2939         * gtk/gtktreeview.c
2940         * gtk/gtkviewport.c: pass more clip rectangles to gtk_paint_foo()
2941         functions. Based on a patch from maemo-gtk (bug #398023).
2942
2943 2007-01-17  Tor Lillqvist  <tml@novell.com>
2944
2945         * gtk-zip.sh.in: Include also the COPYING file.
2946
2947 2007-01-17  Matthias Clasen  <mclasen@redhat.com>
2948
2949         * modules/printbackends/cups/gtkprintbackendcups.c: Don't use
2950         httpGetFd() when building against cups 1.1
2951
2952 2007-01-17  Tor Lillqvist  <tml@novell.com>
2953
2954         Proper fix for #396175:
2955
2956         * gtk/gtkimmulticontext.c: Revert change by Hans Breuer below: Do
2957         include gtkprivate.h. On Win32 we do want to use the redefinition
2958         of GTK_LOCALEDIR as a call to the function _gtk_get_localedir().
2959
2960         * gtk/gtkimmodule.c: Instead, correct the prefix also on
2961         simple_context_info.domain_dirname. Do the prefix corrections
2962         always on Win32, not just when GTK_LIBDIR is defined. i.e., until
2963         now they were done only in the autoconfiscated gcc builds. Hans
2964         needs to make sure GTK_LIBDIR and GTK_LOCALEDIR are defined also
2965         in MSVC builds now.
2966         (correct_localedir_prefix): New function, like
2967         correct_libdir_prefix(), but for GTK_LOCALEDIR, in case
2968         GTK_LOCALEDIR is not a descendant of GTK_LIBDIR.
2969         (gtk_im_module_initialize): Thus call correct_localedir_prefix()
2970         on the domain_dirname instead of correct_libdir_prefix().
2971         (_gtk_im_module_list): Call correct_localedir_prefix() on
2972         simple_context_info.domain_dirname.
2973
2974 2007-01-16  Matthias Clasen  <mclasen@redhat.com>
2975
2976         * gtk/gtkrange.c (range_grab_remove): Queue a redraw when the
2977         grab changes.  (#396470, Benjamin Berg)
2978
2979 2007-01-15  Emmanuele Bassi  <ebassi@gnome.org>
2980
2981         * gtk/gtkrecentchoosermenu.c: Ellipsize the menu items label
2982         if they grow too much. (#357303)
2983
2984 2007-01-14  Matthias Clasen  <mclasen@redhat.com>
2985
2986         * gtk/gtkicontheme.c (theme_lookup_icon): When finding a matching
2987         non-scalable dir, keep going and look for a closer match.
2988         (#395830, Luca Ferretti)
2989
2990 2007-01-14  Christian Persch  <chpe@svn.gnome.org>
2991
2992         * gtk/gtkclipboard.c: (gtk_clipboard_set_text),
2993         (gtk_clipboard_set_image): Use gtk_target_table_new_from_list and
2994         gtk_target_table_free instead of duplicating the code. Bug #396493.
2995
2996 2007-01-13  Matthias Clasen  <mclasen@redhat.com>
2997
2998         * gtk/gtkuimanager.c: Don't crash if menu or toolbar
2999         positions can't be found.  (#396161, Hans Breuer)
3000
3001 2007-01-13  Matthias Clasen  <mclasen@redhat.com>
3002
3003         * gtk/gtkselection.c (_gtk_selection_request): Plug 
3004         memory leaks.  (#396160, Carlos Garcia Campos)
3005
3006 2007-01-13  Matthias Clasen  <mclasen@redhat.com>
3007
3008         * configure.in: Link libgtk against Xfixes.  (#396074,
3009         Tommi Komulainen)
3010
3011 2007-01-13  Matthias Clasen  <mclasen@redhat.com>
3012
3013         * gtk/gtkradiobutton.c (gtk_radio_button_focus): Avoid
3014         a compiler warning.  (#395045, Chris Wilson)
3015
3016 2007-01-13  Hans Breuer <hans@breuer.org>
3017
3018         * gtk/gtkprintoperation-win32.c : take the custom tab label from
3019         gtk_print_operation_set_custom_tab_label() into account (bug #390746).
3020
3021         * gtk/gtkimmulticontext.c : don't include "gtkprivate.h" to avoid
3022         differing definitions of GTK_LOCALEDIR (bug #396175).
3023
3024         * gtk/gtktreeview.c : use g_snprintf instead of snprintf, which is
3025         not available everywhere
3026
3027         * gtk/makefile.msc.in : updated
3028
3029 2007-01-12  Michael Natterer  <mitch@imendio.com>
3030
3031         * gtk/gtkentry.c (gtk_entry_button_press): don't add
3032         entry->scroll_offset to entry->drag_start_y. Fixes the entry
3033         starting drags after ridiculously small mouse movements.
3034
3035 2007-01-11  Richard Hult  <richard@imendio.com>
3036
3037         * demos/gtk-demo/main.c: (load_file): Close the file after it's
3038         loaded (bug #395316).
3039
3040 2007-01-11  Kjartan Maraas  <kmaraas@gnome.org>
3041
3042         * gtk/gtkfilesystemunix.c: (expand_tilde):
3043         Make a single tilde go to $HOME in the location entry.
3044         Patch from Yevgen Muntyan. Closes the gtk+ part of
3045         bug #334168.
3046
3047 2007-01-10  Behdad Esfahbod  <behdad@gnome.org>
3048
3049         * gdk/gdkpango.c (gdk_draw_layout_with_colors):
3050         * gtk/gtklabel.c (gtk_label_size_request):
3051         Use pango_matrix_transform_rectangle(). (#340141)
3052
3053         * configure.in: Bump pango requirement to 1.15.3.
3054
3055 2007-01-10  Kristian Rietveld  <kris@imendio.com>
3056
3057         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init):
3058         refactor to initialize indicator_size to TOGGLE_WIDTH instead
3059         of the hardcoded value of 12.
3060
3061 2007-01-09  Matthias Clasen  <mclasen@redhat.com>
3062
3063         * configure.in: Fix the directfb cairo test. (#394855, 
3064         Josselin Mouette)
3065
3066 2007-01-09  Behdad Esfahbod  <behdad@gnome.org>
3067
3068         * configure.in: Fix comment for --with-included-loaders.  That option
3069         affects builds with module loading enabled too.
3070
3071 2006-01-08  Peter Teichman  <peter@novell.com>
3072
3073         * gtk/gtkfilechooserdefault.c:
3074         * gtk/gtkfilechooserprivate.h:
3075         * gtk/gtkfilechoosersettings.c:
3076         * gtk/gtkfilechoosersettings.h:
3077         Save the expanded state of the folder browser with the file
3078         chooser settings.  Resolves the expander portions of (#153828,
3079         Lemmit Kaplinski)
3080
3081 2007-01-08  Emmanuele Bassi  <ebassi@gnome.org>
3082
3083         * gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_create_item):
3084         Don't leak the icon pixbuf after setting it to the image menu
3085         item.  Found by Paolo Borelli.
3086
3087 2007-01-08  Matthias Clasen  <mclasen@redhat.com>
3088
3089         * gtk/gtktreemodel.c (gtk_tree_path_to_string): Don't 
3090         corrupt memory when faced with paths with ridiculously
3091         large indices. Found by the GTKVTS test suite.  
3092
3093 2007-01-08  Matthias Clasen  <mclasen@redhat.com>
3094
3095         * gtk/gtkmodules.c (_gtk_modules_init): Set 
3096         default_display_opened before loading modules.  (#393102,
3097         Brian Cameron)
3098  
3099 2007-01-07  Matthias Clasen  <mclasen@redhat.com>
3100
3101         * gtk/gtktextview.c (gtk_text_view_set_border_window_size):
3102         Call text_window_realize() with the correct parameters.
3103         (#393813, Yevgen Muntyan)
3104
3105 2007-01-07  Matthias Clasen  <mclasen@redhat.com>
3106
3107         * gtk/gtkstatusbar.c: Move docs inline, and expand them 
3108         a bit.
3109
3110 2007-01-06  Matthias Clasen  <mclasen@redhat.com>
3111
3112         * gtk/gtklabel.c: Make line wrapping work with width-chars
3113         and max-width-chars, and simplify the storage of wrap-width.
3114         (#322580, Itai Bar-Haim)
3115
3116 2007-01-06  Tor Lillqvist  <tml@novell.com>
3117
3118         * gdk/win32/cursor.bdf: New file. Downloaded from
3119         freedesktop.org's webcvs. Slighly edited cursors "crosshair",
3120         "diamond_cross", "draft_large", "gobbler" and "target" to fix
3121         #392504. It is possible that the same end result could have been
3122         achieved by tweaking bdfcursor.c instead.
3123         
3124         * gdk/win32/bdfcursor.c: Add optional debugging output.
3125
3126         * gdk/win32/xcursors.h: Regenerated.
3127
3128 2007-01-05  Matthias Clasen  <mclasen@redhat.com>
3129
3130         * gtk/gtknotebook.c (gtk_notebook_set_menu_label_text): Left-align
3131         menu labels.  (#393255, Michail Crayson)
3132
3133 2007-01-05  Kristian Rietveld  <kris@gtk.org>
3134
3135         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): handle tree
3136         == NULL.  (Fixes #392685, reported by Yevgen Muntyan).
3137
3138 2007-01-05  Kristian Rietveld  <kris@gtk.org>
3139
3140         * gtk/gtktreeview.c (gtk_tree_view_row_changed): do allow to
3141         invalidate nodes if the tree view is not realized. (#363147,
3142         Carlos Garnacho, Miguel Cabrera).
3143
3144 2007-01-05  Matthias Clasen  <mclasen@redhat.com>
3145
3146         * gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into
3147         account when drawing the background.  (#393166, Benjamin Berg)
3148
3149 2007-01-05  Behdad Esfahbod  <behdad@gnome.org>
3150
3151         * gtk/gtklabel.c (get_layout_location): Fix broken width computation,
3152         again.
3153
3154 2007-01-05  Carlos Garnacho  <carlosg@gnome.org>
3155
3156         * gtk/gtknotebook.c (gtk_notebook_size_request): take into account
3157         both scroll arrows when calculating size request in GTK_POS_LEFT or
3158         GTK_POS_RIGHT notebooks. (#393124, reported by Christian Persch)
3159
3160 2007-01-05  Michael Natterer  <mitch@imendio.com>
3161
3162         * gtk/gtkwindow.c (gtk_window_key_release_event): chain up to
3163         the right function (fix taken from maemo-gtk).
3164
3165 2007-01-05  Behdad Esfahbod  <behdad@gnome.org>
3166
3167         * gdk/gdkprivate.h:
3168         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors),
3169         (gdk_draw_layout_with_colors):
3170         * gdk/gdkwindow.c (gdk_window_draw_glyphs_transformed):
3171         Avoid overflow when converting coordinates to Pango units. (#332266,
3172         Jody Goldberg)
3173
3174 2007-01-04  Matthias Clasen  <mclasen@redhat.com>
3175
3176         * gtk/gtkcombobox.c (gtk_combo_box_popup): move set_cursor
3177         after realization of the popup window, so clamp node doesn't fail.
3178         (#346616, Tommi Komulainen, patch by Kristian Rietveld).
3179
3180 2007-01-04  Behdad Esfahbod  <behdad@gnome.org>
3181
3182         * gtk/gtklabel.c (get_layout_location): Fix uninitialized width
3183         variable.
3184
3185 2007-01-04  Matthias Clasen  <mclasen@redhat.com>
3186
3187         * gtk/Makefile.am:
3188         * gdk-pixbuf/Makefile.am:
3189         * configure.in:
3190         * gdk/win32/rc/gdk.rc.in: Cross-compilation fixes.
3191         (#392646, Yevgen Muntyan)
3192
3193 2007-01-04  Matthias Clasen  <mclasen@redhat.com>
3194
3195         * demos/gtk-demo/textscroll.c:
3196         * gtk/gtkhandlebox.c:
3197         * gtk/gtkcolorsel.c: Fix some compiler warnings.
3198
3199 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3200
3201         * gtk/gtktextview.c: Rework the beep-on-uninserted-text
3202         by calling the input method regardless of editability,
3203         and beeping from the commit/preedit-changed handlers.
3204         (#390514, Yevgen Muntyan)
3205
3206 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3207
3208         Fix #332604, reported by Joe Wreschnig, patch
3209         by Jan Arne Petersen and Behdad Esfahbod.
3210
3211         * gtk/gtklabel.c (gtk_label_size_allocate): Only
3212         set the width of the layout when necessary.
3213         (get_layout_location): Use pango_layout_get_pixel_extents()
3214         instead of pango_layout_get_width().
3215
3216 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3217
3218         * modules/printbackends/cups/gtkprintbackendcups.c 
3219         (available_choices): Don't leak conflicts.
3220
3221         * gtk/gtkprintoperation.c (gtk_print_operation_finalize):
3222         Don't leak the status string.
3223
3224 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3225
3226         * gtk/gtkfilechooserdefault.c (update_chooser_entry):
3227         Exit early if we can't get file info - this happens
3228         if the iter points to the row where we are editing
3229         the name for a newly created folder.  (#392191, Michael
3230         Partridge, patch by Kristian Rietveld)
3231
3232 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3233
3234         * gtk/*.c:
3235         * gdk/x11/*.c: Apply a patch by Chris Wilson to
3236         avoid spurious valgrind warnings from XSendEvent() 
3237         calls.  (#392532)
3238
3239         * modules/printbackends/cups/gtkprintbackendcups.c: Close
3240         the http connection after getting the PPD.
3241
3242         * gtk/gtkprinteroptionwidget.c (filesave_changed_cb):
3243         Fix memory leaks.  
3244
3245 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3246
3247         * gtk/gtkassistant.c (remove_page): If the current page
3248         is removed, always pick a different one.  (#392457, 
3249         Colin Watson)
3250
3251 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3252
3253         * modules/printbackend/cups/*.c: Coding style cleanups.
3254
3255 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3256
3257         * configure.in: Export SED to make sourcing of
3258         libtool work. Tighten up the directfb pkgconfig check.
3259
3260 2007-01-03  Michael Natterer  <mitch@imendio.com>
3261
3262         * gtk/gtkstyle.c (option_menu_get_props)
3263         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Use 
3264         gtk_border_free when freeing borders.
3265
3266 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
3267
3268         * gtk/gtkentry.c (get_text_area_size): Work when the
3269         entry is not realized.  (#392315, Yevgen Muntyan)
3270
3271         * gtk/gtkentry.c (gtk_entry_queue_draw): Use 
3272         GTK_WIDGET_DRAWABLE() here.  (#392227, Chris Wilson)
3273
3274         * gtk/gtkentry.c (cursor_blinks): Don't get settings
3275         unnecessarily.  (#392227)
3276
3277 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
3278
3279         * gtk/gtkwindow.c (gtk_window_move_resize): Only process
3280         updates on the window at hand, not on all windows, to
3281         avoid violating resize/redraw ordering constraints.
3282         (#362406, Owen Taylor)
3283         
3284 2007-01-03  Kristian Rietveld  <kris@gtk.org>
3285
3286         * gtk/gtkcellrendererprogress.c
3287         (gtk_cell_renderer_progress_class_init): fix docs.
3288
3289 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
3290         
3291         * gtk/updateiconcache.c: Include locale.h
3292
3293 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
3294
3295         * gtk/updateiconcache.c (main): Call setlocale().
3296
3297         * gtk/gtkfilesel.c:
3298         * gtk/gtkfilesystemunix.c:
3299         * gtk/gtkfilesystemwin32.c:
3300         * gtk/gtkfilechoosersettings.c:
3301         * gtk/updateiconcache.c: Consistently use folder instead of
3302         directory in translated messages.  (#344584, Javier F. Serrador)
3303
3304 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
3305
3306         Try to fix #315732, reported by Luke Hutchinson:
3307
3308         * gdk/x11/xsettings-client.[hc]:
3309         * gdk/x11/gdkdevents-x11.c: Don't assume that ref'ing a GdkWindow
3310         will guarantee that it can be looked up in the xid hash later.
3311         Also, use the nesting server grab function during the xsettings
3312         client initialization. Finally, make xsettings client not
3313         eat DestroyNotifys so that GDK can do its regular cleanup. 
3314
3315 2007-01-02  Michael Natterer  <mitch@imendio.com>
3316
3317         * gtk/gtkrange.c (gtk_range_scroll) (gtk_range_move_slider): beep
3318         when a keybinding didn't change adjustment->value.
3319
3320 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
3321
3322         * gtk/gtktextbuffer.c (gtk_text_view_key_press_event):
3323         Try harder not to beep on events which are not meant to
3324         insert stuff in the buffer.  (#390514, Yevgen Muntyan) 
3325
3326 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
3327
3328         * gtk/gtktextbufferrichtext.c: Small documentation fixes.
3329
3330 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
3331
3332         * gtk/gtkentry.c (get_text_area_size): Center in the frame.  
3333         (#304482, Rob Staudinger, patch by  Richard Stellingwerff)
3334
3335 2007-01-02  Michael Emmel  <mike.emmel@gmail.com>
3336
3337         * gdkwindow-directfb.c: fixed leak of dfb resource on destroy 
3338
3339 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3340
3341         * gtk/gtkscrolledwindow.h:
3342         * gtk/gtkscrolledwindow.c: Only handle key bindings
3343         for scrolling if the scrollbars are visible.
3344         (#340135, Christian Persch)
3345
3346 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3347
3348         * gtk/gtktextview.c (gtk_text_view_scroll_hpages):
3349         Don't segfault on horizontal scrolling.  
3350
3351 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3352
3353         * gtk/gtknotebook.h:
3354         * gtk/gtknotebook.c: Only handle key bindings for
3355         tab reordering if the tabs are shown and reorderable. 
3356         (#390468, Yevgen Muntyan)
3357
3358         * gtk/gtkmarshalers.list: Add required marshaler
3359
3360 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3361
3362         * gtk/gtkcontainer.c (gtk_container_class_list_child_properties):
3363         Mention in the docs that the return value is
3364         NULL-terminated.  (#383373, Christian Neumair)
3365
3366 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3367
3368         * gtk/gtkicontheme.c (load_themes): Waste less time
3369         with non-directories.  (#391725, Chris Wilson)
3370
3371 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3372
3373         * gtk/gtkcellrendererprogress.c: Implement activity mode
3374         for GtkCellRendererProgress.  (#377851, Brad Taylor)
3375
3376 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3377
3378         Fix some IPP compliance issues.  (#391523, Albrecht Dress)
3379
3380         * modules/printbackends/cups/gtkcupsutils.c
3381         (gtk_cups_request_encode_option): Use IPP_TAG_JOB, not
3382         IPP_TAG_OPERATION.
3383         * modules/printbackends/cups/gtkprintbackendcups.c
3384         (gtk_print_backend_cups_print_stream): Don't add the
3385         requesting-user-name attribute a second time. 
3386
3387 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
3388
3389         * gtk/gtkimcontextsimple.c: Fix en/em dash confusion.  (#378462)
3390
3391 2006-12-31  Emmanuele Bassi  <ebassi@gnome.org>
3392
3393         * gtk/gtkrecentchoosermenu.c (set_recent_manager): Use the
3394         right object when disconnecting from the GtkRecentManager::changed
3395         signal; save us a few indirections using a variable.
3396
3397 2006-12-31  Emmanuele Bassi  <ebassi@gnome.org>
3398
3399         * gtk/gtkrecentchoosermenu.c: Move the signal and idle
3400         disconnections into the dispose function, as well as the
3401         object unrefs; reset every handler id and the
3402         pointers. (suggested by Paolo Borelli, #390873)
3403
3404 2006-12-31  Matthias Clasen  <mclasen@redhat.com>
3405
3406         * gtk/gtkprintoperation-win32.c: Include windows.h (#391229,
3407         Kazuki Iwamoto)
3408
3409 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3410
3411         * gtk/gtktextview.c (gtk_text_view_destroy): Remove the
3412         scroll timeout.  (#390872, Yevgen Muntyan)
3413
3414 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3415
3416         * gtk/gtkprintoperation-unix.c:
3417         * gtk/gtkprintbackend.c:
3418         * gtk/gtkfilechooserdefault.c:
3419         * gtk/gtksettings.c: Move a few settings to gtksettings.c
3420         to make sure they show up in the docs.  (#365364, Christian
3421         Persch)
3422
3423 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3424
3425         * gtk/gtkassistant.c: Redraw assistant on reallocate
3426         to avoid rendering glitches.  (#343956, Christian
3427         Persch, Carlos Garnacho)
3428
3429 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3430
3431         * gtk/gtkrange.c: Typo fix.  (#352121, Clytie Siddall)
3432
3433 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3434
3435         * gtk/gtkaction.c: Improve the docs of the "label" 
3436         property.  (#341730, Kristof Vansant)
3437
3438 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3439
3440         * gtk/gtkwindow.c (gtk_window_compute_configure_request_size):
3441         Correctly handle min size. (#320465, Philipp Langdale)
3442
3443 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3444
3445         * gtk/prop-editor.c: Implement editing of flags.
3446
3447 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
3448
3449         * gtk/gtkentry.c:
3450         * gtk/gtklabel.c:
3451         * gtk/gtkpaned.c:
3452         * gtk/gtkstatusbar.c:
3453         * gtk/gtktextview.c: Don't install cursors on insensitive
3454         widgets.  (#358864, Jan Schampera)
3455
3456 2006-12-29  Matthias Clasen  <mclasen@redhat.com>
3457
3458         * gtk/gtkrecentmanager.h:
3459         * gtk/gtkprintoperation.c: Fix doc typos.  (#370909,
3460         Shiino Yuki)
3461
3462         * gtk/gtkstyle.c (gtk_style_attach): Clarify docs.  (#353423,
3463         Christian Persch)
3464
3465         * gtk/gtkentry.c (blink_cb):
3466         * gtk/gtktextview.c (blink_cb): Don't die in an assertion
3467         if focus went missing. Just warn, clean up and continue.
3468         (#374378)
3469
3470 2006-12-29  Carlos Garnacho  <carlosg@gnome.org>
3471
3472         * gtk/gtknotebook.c (gtk_notebook_scroll): return if the widget that
3473         originally received the event is a notebook page. (#315440, reported
3474         by Mateusz Stefek)
3475
3476 2006-12-29  Matthias Clasen  <mclasen@redhat.com>
3477
3478         * gdk/gdkcolor.c (gdk_color_hash): Fix a typo. (#390613,
3479         Paolo Borelli)
3480
3481 2006-12-29  Matthias Clasen  <mclasen@redhat.com>
3482
3483         * tests/prop-editor.c: Display children of containers
3484         and cell renderers of cell layouts.
3485
3486         * gtk/gtk.symbols:
3487         * gtk/gtkcelllayout.[hc] (gtk_cell_layout_get_cells):
3488         New function to get the cell renderers of a cell layout.
3489
3490         * gtk/gtktreeviewcolumn.c:
3491         * gtk/gtkcellview.c:
3492         * gtk/gtkiconview.c: Implement get_cells.
3493
3494 2006-12-28  Matthias Clasen  <mclasen@redhat.com>
3495
3496         * gtk/gtkiconview.c: Use word wrapping by default, and
3497         center multiline labels.  (#318763, Ross Burton)
3498
3499         * gtk/gtkcellrenderertext.c (get_layout): Remove a special
3500         case for single-line layouts.
3501
3502 2006-12-28  Matthias Clasen  <mclasen@redhat.com>
3503
3504         * gtk/gtkarrow.c: Fix a typo in the docs.  (#390423,
3505         David Lodge)
3506
3507         * gtk/gtkuimanager.c (update_node): Only use the results
3508         of find_menu/toolbar_position() if they succeed. May fix
3509         bug #388041.
3510
3511 2006-12-28  Matthias Clasen  <mclasen@redhat.com>
3512
3513         * gdk/gdk.c: Fix some formatting errors in docs.  
3514
3515 2006-12-28  Tor Lillqvist  <tml@novell.com>
3516
3517         * gtk/gtkstatusicon.c (gtk_status_icon_finalize)
3518         (gtk_status_icon_update_image): Don't leak HICONs on
3519         Win32. (#364868, Hiroyuki Yamamoto)
3520
3521 2006-12-28  Carlos Garnacho  <carlosg@gnome.org>
3522
3523         Make GtkNotebook able to drop detached tabs anywhere. Bug #360225.
3524
3525         * gtk/gtkwidget.c (gtk_widget_class_init): add "drag-failed" signal.
3526         * gtk/gtkmarshalers.list: add new marshaler definition.
3527         * gtk/gtkenums.h: add GtkDragResult enum.
3528
3529         * gtk/gtkdnd.c (gtk_drag_drop_finished): emit "drag-failed" if DND
3530         operation wasn't successful.
3531         (_gtk_drag_source_handle_event) (gtk_drag_drop)
3532         (gtk_drag_selection_get) (gtk_drag_cancel) (gtk_drag_key_cb)
3533         (gtk_drag_grab_broken_event_cb) (gtk_drag_grab_notify_cb)
3534         (gtk_drag_button_release_cb) (gtk_drag_abort_timeout): tell
3535         gtk_drag_drop_finished() the operation result.
3536
3537         * gtk/gtknotebook.c (gtk_notebook_drag_failed): new function.
3538         (gtk_notebook_drag_data_get): do not call window creation hook here.
3539         (gtk_notebook_init): do not set "application/x-rootwindow-drop"
3540         target, instead connect to "drag-failed".
3541         (gtk_notebook_draw_focus): fix potential crasher if cur_page is NULL.
3542
3543 2006-12-28  Mikael Hallendal  <micke@imendio.com>
3544
3545         * gdk/quartz/gdkevents-quartz.c: Factored out the event loop 
3546         integration into gdkeventloop-quartz.c.
3547
3548         * gdk/quartz/Makefile.am: Added gdkeventloop-quartz.c
3549
3550         * gdk/quartz/gdkeventloop-quartz.c: New file containing the event loop 
3551         integration.
3552
3553 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
3554
3555         * modules/printbackends/lpr/gtkprintbackendlpr.c 
3556         (gtk_print_backend_lpr_print_stream): Close the io channel
3557         on unref.  (#390159, Joe Markus Clarke)
3558
3559 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
3560
3561         * gdk/gdk.h: Remove redundant declarations (#390097,
3562         Christian Persch)
3563
3564 2006-12-27  Kristian Rietveld  <kris@gtk.org>
3565
3566         Support inverting arrows via XSetting. (#377979, Yevgen Muntyan).
3567
3568         * gtk/gtksettings.c (gtk_settings_class_init): add new setting
3569         gtk-alternative-sort-arrows.
3570
3571         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): add
3572         new setting.
3573
3574         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: set new
3575         gtk-alternative-sort-arrows setting to true.
3576
3577         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
3578         invert direction if gtk-alternative-sort-arrows is TRUE.
3579
3580 2006-12-27  Tor Lillqvist  <tml@novell.com>
3581
3582         * gtk/gtk.symbols: Add gtk_status_icon_get_screen and
3583         gtk_status_icon_set_screen.
3584
3585         * gtk/gtkstatusicon.c: Implement gtk_status_icon_position_menu()
3586         on Windows. Keep track of where the last button click on the
3587         taskbar icon took place, and return that. Obviously not correct if
3588         no button has ever been clicked on the icon, or if the geometry of
3589         the taskbar has changed since. But for most use cases where a menu
3590         is going to be displayed as a direct result of a button click on
3591         the status icon, works fine. (#377349)
3592
3593         Implement getting the orientation property on Windows.
3594
3595         (gtk_status_icon_embedded_changed)
3596         (gtk_status_icon_orientation_changed): Ifdefify these functions
3597         that are used only on X11.
3598
3599 2006-12-27  Tor Lillqvist  <tml@novell.com>
3600
3601         * gtk/gtkfilesystemwin32.c (execute_callbacks): Fix
3602         typo. (#390035, Kazuki Iwamoto)
3603
3604 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
3605
3606         * gtk/gtkcellview.c (gtk_cell_view_set_model): Accept NULL.
3607
3608         * gtk/gtkcombobox.c (gtk_combo_box_set_model):
3609         (gtk_combo_box_unset_model): Handle repeated unsetting
3610         of models without warnings.  (#367529, Robert Ancell)
3611
3612 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
3613
3614         * modules/printbackends/cups/gtkcupsutils.c: 
3615         * modules/printbackends/cups/gtkprintbackendcups.c: Use
3616         getters for http fields where available.  (#364866, 
3617         Björn Lindqvist)
3618
3619 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
3620
3621         * gtk/gtkwidget.c (gtk_widget_show): Add a g_return_if_fail.
3622         (#362614, Xan Lopez)
3623
3624 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
3625
3626         * gtk/gtkuimanager.c (update_node): If a required action
3627         is missing, don't recurse over the children.  (#349119,
3628         Chris Moller)
3629
3630 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
3631
3632         Fix a few problems with nested menus in comboboxes
3633         (#386694, Yevgen Muntyan)
3634
3635         * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Always
3636         connect the activate callback.
3637         (gtk_combo_box_menu_item_activate): Do nothing if called on
3638         an item with a submenu.
3639         (gtk_combo_box_menu_row_deleted): Remove a submenu when it
3640         is empty.
3641
3642 2006-12-26  Mariano Suárez-Alvarez  <mariano@gnome.org>
3643
3644         * gtk/gtkfilechooserbuuton.[hc]: Add a file-set signal to the
3645         filechooser button. Bug 353196.
3646
3647 2006-12-26  Kristian Rietveld  <kris@gtk.org>
3648
3649         * gtk/gtktreeview.c (gtk_tree_view_search_init): fix typo causing
3650         the search dialog timeout never to be refreshed. (#389581,
3651         Andrzej Szombierski).
3652
3653 2006-12-26  Kristian Rietveld  <kris@gtk.org>
3654
3655         Lots of scrolling fixes.  Made scrolling work properly in not fully
3656         validated tree views; fixed a bunch of corner cases.
3657
3658         * gtk/gtktreeview.c (validate_visible_area): if a row's dy is past
3659         upper - page_size, we know it is located at the end so the test for
3660         dy + height has been dropped.
3661         In the same case if area_below < 0, we know this is the last node
3662         in the tree view so area_above is page_size - height of this row.
3663         (validate_visible_area): got rid of subtracting new_height -
3664         old_height from area_{below,above}, it didn't make any sense at
3665         all and the full height of the row should be subtracted instead.
3666         (validate_visible_area): when scrolling to a given path, set the
3667         top row directly together with the dy offset, then sync that top_row
3668         to the dy.
3669         (gtk_tree_view_set_top_row): new function to directly set a top_row.
3670         (gtk_tree_view_dy_to_top_row): refactored to use
3671         gtk_tree_view_set_top_row().
3672         (gtk_tree_view_top_row_to_dy): make sure dy >= 0 when done.
3673         (gtk_tree_view_adjustment_changed): only update our dy and
3674         top_row if the adjustment's dy actually changed.
3675
3676 2006-12-26  Christian Persch  <chpe@cvs.gnome.org>
3677
3678         * gtk/gtknotebook.c: (gtk_notebook_real_insert_page):
3679         Return the correct value from gtk_notebook_insert_page if the
3680         page-added handler reorders the tabs. Bug #345094.
3681
3682 2006-12-26  Carlos Garnacho  <carlosg@gnome.org>
3683
3684         Fix small regressions in GtkNotebook tab detaching. Bug #378852.
3685
3686         * gtk/gtknotebook.c (gtk_notebook_do_arrow): grab focus to allow tabs
3687         scrolling when hovering with a detached tab.
3688         (gtk_notebook_stop_reorder): Do not deparent the wrong tab if the
3689         focus tab has changed during a tab DND operation.
3690         (gtk_notebook_drag_end): ensure that the dropped tab gets focused.
3691         (gtk_notebook_paint): do not take cur_page as a reference to paint the
3692         box if it's detached.
3693         (gtk_notebook_calculate_tabs_allocation): focus_tab may be different
3694         to the detached tab if we hover the arrows during a tabs detaching 
3695         operation, do not allocate it unconditionally in 0,0.
3696
3697 2006-12-26  Carlos Garnacho  <carlosg@gnome.org>
3698
3699         Expose improvements for GtkNotebook. Bug #383435
3700
3701         * gtk/gtknotebook.c (gtk_notebook_expose): propagate the event to tab
3702         labels.
3703         (gtk_notebook_draw_focus): do not repaint the whole focused tab again.
3704         (gtk_notebook_draw_tab): do not send handmade expose events to tab
3705         labels.
3706
3707 2006-12-26  Matthias Clasen  <mclasen@redhat.com>
3708
3709         * gtk/gtkfilesystemunix.c (execute_callbacks): Return
3710         FALSE.  (#389623, Carlos Garnacho Parro)
3711
3712         * gtk/gtkrange.c (stop_scrolling): Avoid spurious
3713         redraws.
3714
3715 2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
3716
3717         * gtk/gtkplug.c: (gtk_plug_construct_for_display),
3718         (gtk_plug_unrealize): Notify the "embedded" property also on
3719         normal construction and when destroying the socket window.
3720         Bug #388738.
3721
3722 2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
3723
3724         * gtk/gtkaboutdialog.c: (gtk_about_dialog_class_init),
3725         (gtk_about_dialog_init), (display_credits_dialog),
3726         (display_license_dialog):
3727         * gtk/gtkfilechooserdialog.c: (gtk_file_chooser_dialog_class_init),
3728         (gtk_file_chooser_dialog_init),
3729         (gtk_file_chooser_dialog_constructor),
3730         (gtk_file_chooser_dialog_unmap):
3731         * gtk/gtkrecentchooserdefault.c:
3732         (_gtk_recent_chooser_default_init):
3733         * gtk/gtkrecentchooserdialog.c:
3734         (gtk_recent_chooser_dialog_class_init),
3735         (gtk_recent_chooser_dialog_init),
3736         (gtk_recent_chooser_dialog_constructor),
3737         (gtk_recent_chooser_dialog_unmap): Set the HIG spacings directly
3738         instead of using style-set handlers. Fix the filechooser's spacing
3739         between content and action area to 12px. Bug #372447.
3740
3741 2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
3742
3743         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate):
3744         Don't assume statusbar->label is the statusbar's frame's child when
3745         shrinking the size allocation when the grip is shown. Bug #372452.
3746
3747 2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
3748
3749         * gtk/gtkpagesetupunixdialog.c: (printer_status_cb),
3750         (add_custom_paper): Fix mem leaks. Bug #389194.
3751
3752 2006-12-24  Matthias Clasen  <mclasen@redhat.com>
3753
3754         * gtk/gtktextutil.c: Remove debug output.
3755
3756         * gtk/gtktextview.c: Improve the DND scrolling
3757         behaviour.  (#92387, Carlos Garnacho Parro)
3758
3759         * gtk/gtkaccellabel.c: Improve translators comments.  
3760         (#389298, Christian Persch)
3761
3762 2006-12-24  Bastien Nocera  <hadess@hadess.net>
3763
3764         * gtk/gtkrecentmanager.c: Fix typo (s/expansive/expensive)
3765         (#389183)
3766
3767 2006-12-24  Christian Persch  <chpe@cvs.gnome.org>
3768
3769         * docs/reference/gtk/gtk-sections.txt:
3770         * gtk/gtk.symbols:
3771         * gtk/gtkpagesetupunixdialog.c: (fill_paper_sizes_from_printer):
3772         * gtk/gtkprinter-private.h:
3773         * gtk/gtkprinter.c: (gtk_printer_list_papers):
3774         * gtk/gtkprinter.h: Make gtk_printer_list_papers public. Bug #345587.
3775
3776 2006-12-24  Carlos Garcia Campos  <carlosgc@gnome.org>
3777
3778         * gtk/gtkpagesetupunixdialog.c: Don't ignore reverse portrait option
3779         when is selected in page setup dialog. Fixes bug #365047.
3780
3781 2006-12-24  Behdad Esfahbod  <behdad@gnome.org>
3782
3783         * gtk/gtkentry.c (_gtk_entry_effective_inner_border):
3784         Use gtk_border_free when freeing border.
3785
3786 2006-12-24  Matthias Clasen  <mclasen@redhat.com>
3787
3788         * gtk/gtkentry.c (gtk_entry_button_press): When
3789         shift-clicking, keep the larger part of the selection
3790         selected.  (#353709, Benjamin Otte)
3791
3792         * gtk/gtkbutton.c (gtk_button_get_props): Use 
3793         gtk_border_free when freeing borders.
3794
3795         * gtk/gtkbutton.c (gtk_button_grab_notify): Be more
3796         careful when faking a button release.  (#323146,
3797         Travis Abbott)
3798
3799         * gtk/gtkhandlebox.c (draw_textured_frame): Draw the
3800         handle with the right orientation, depending on the
3801         position of the handlebox.  (#159764, Benjamin Berg)
3802
3803 2006-12-24  Behdad Esfahbod  <behdad@gnome.org>
3804
3805         * gtk/gtkstyle.c (gtk_border_copy), (gtk_border_free): Use gslice for
3806         GtkBorder (#383557).
3807
3808 2006-12-24  Behdad Esfahbod  <behdad@gnome.org>
3809
3810         Bug 340141 – Update to Pango 1.16 API
3811
3812         * gdk/gdkpango.c (layout_iter_get_line_clip_region),
3813         (gdk_pango_layout_line_get_clip_region):
3814         * gtk/gtkcalendar.c (gtk_calendar_size_request):
3815         * gtk/gtkentry.c (gtk_entry_get_pixel_ranges),
3816         (get_layout_position), (gtk_entry_find_position),
3817         (gtk_entry_adjust_scroll):
3818         * gtk/gtkiconview.c (get_pango_text_offsets):
3819         * gtk/gtklabel.c (get_cursor_direction):
3820         * gtk/gtkstyle.c (get_insensitive_layout):
3821         * gtk/gtktextdisplay.c (render_para):
3822         * gtk/gtktextlayout.c (allocate_child_widgets),
3823         (find_display_line_below), (find_display_line_above),
3824         (gtk_text_layout_move_iter_to_previous_line),
3825         (gtk_text_layout_move_iter_to_next_line),
3826         (gtk_text_layout_move_iter_to_line_end),
3827         (gtk_text_layout_iter_starts_line),
3828         (gtk_text_layout_move_iter_to_x):
3829         * gtk/gtktextutil.c (limit_layout_lines):
3830         Use the _readonly version of pango_layout_iter_get_line(),
3831         pango_layout_iter_get_run(), pango_layout_get_line(), and
3832         pango_layout_get_lines().
3833
3834         * gtk/gtkmain.c (gtk_get_default_language): Use
3835         pango_get_default_language().
3836
3837 2006-12-24  Matthias Clasen  <mclasen@redhat.com>
3838
3839         * gtk/gtkentry.c (gtk_entry_set_text): Emit changed
3840         and notify:text only once. The same fix was applied
3841         for replacing the selection via DND or copy-and-paste.
3842         (#64998, Damon Chaplin, Sven Herzberg)
3843
3844 2006-12-23  Matthias Clasen  <mclasen@redhat.com>
3845
3846         * gtk/gtkimmulticontext.c: Be careful to not override
3847         GTK+ translations with the translations of the input
3848         method.  (#317080, Tor Lillqvist)
3849
3850         * modules/input/imcedilla.c: Use standard macros
3851         for translation domain and locale dir.
3852
3853         * gtk/gtkimcontextsimple.c: Allow composing l with 
3854         stroke.  (#349638, Daniel Lublin)
3855
3856         * gtk/gen-paper-names.c: Fix a thinko in the suffix
3857         calculation.  (#382369, Christian Persch)
3858
3859         * gtk/paper_names_offsets.c: Regenerated.
3860
3861 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
3862
3863         * modules/engines/pixbuf/pixbuf.h:
3864         * modules/engines/pixbuf/pixbuf-rc-style.h:
3865         * modules/engines/pixbuf/pixbuf-style.h: Move 
3866         G_GNUC_INTERNAL before function declarations.  (#352276,
3867         Damien Carbery)
3868
3869 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
3870
3871         * demos/gtk-demo/*.c: Fix some leaks.  (#348108, Chris
3872         Wilson)
3873
3874 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
3875
3876         * *.c: Replace a lot of idle and timeout calls by
3877         the new gdk_threads api. 
3878
3879         * gdk/gdk.symbols:
3880         * gdk/gdk.h:
3881         * gdk/gdk.c: Add functions to allow threadsafe handling
3882         of idles and timeouts wrt. to the GDK lock.  (#321886,
3883         Chris Wilson)
3884         
3885 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
3886         
3887         * gdk/gdkpango.c: Use pango_cairo_show_error_underline.  
3888         (#340141, Behdad Esfahbod)
3889
3890         * configure.in: Check for getc_unlocked.
3891
3892         * gtk/xdgmime/xdgmimemagic.c: Use getc if getc_unlocked is
3893         unavailable.   (#381499)
3894
3895         * tests/teststatusicon.c: Fix a typo
3896
3897 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
3898
3899         Make it possible to track the embeddedness of
3900         statusicon (#387215, Martyn Russell, patch by Christian
3901         Persch)
3902
3903         * gtk/gtkstatusicon.c: Add orientation and embedded properties.
3904         * gtk/gtkplug.c: 
3905         * gtk/gtkplug-x11.c: Add an embedded property.
3906         * tests/teststatusicon.c: Test the new properties.
3907
3908         * gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): Don't
3909         leak draw_border.  (#387170, Kjartan Maraas)
3910
3911 2006-12-21  Matthias Clasen  <mclasen@redhat.com>
3912
3913          * gtk/gtkfilechooserembed.c (_gtk_file_chooser_embed_set_delegate()):
3914         Typo fix.  (#388123, Murray Cumming)
3915         
3916         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
3917         Generate double-click events.  (#380421, Tommi Komulainen)
3918
3919         * gdk/x1/gdkinput-xfree.c (_gdk_input_configure_event):
3920         (_gdk_input_enter_event): Correct return_if_fail checks.
3921         (#379803, Tommi Komulainen)
3922
3923         * gdk/gdkdisplay.c: Improve the docs of some functions operating
3924         on the default display.  (##353438, Mariano Suárez-Alvarez)
3925
3926 2006-12-21  Matthew Barnes  <mbarnes@redhat.com>
3927
3928         * docs/reference/gdk/gdk-sections.txt:
3929         * gdk/gdkcolor.[ch] (gdk_color_to_string): Add a function for
3930         converting a GdkColor to a string (#373856).
3931
3932         * configure.in: Bump pango requirement to 1.15.2.
3933
3934 2006-12-20  Matthias Clasen  <mclasen@redhat.com>
3935         
3936         * gdk/keynames.txt: Mark arrow keys as translatable.  (#369506,
3937         Bastian Nocera)
3938
3939         * gdk/keyname-table.h: Regenerated
3940
3941         * gtk/gtktextbuffer.c: Add signal documentation.  (#317064,
3942         Søren Wedel Nielsen)
3943
3944         * gtk/gtktextview.c (gtk_text_view_start_selection_drag):
3945         Silently return if a drag is already in progress, rather
3946         than asserting.  (#335622, Li Yuan, testcase by Erwann Chenede)
3947
3948         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new_with_dialog):
3949         Allow any GtkDialog that implements GtkFileChooser as
3950         dialog.  (#335473, Tommi Komulainen)
3951
3952 2006-12-20  Mikael Hallendal  <micke@imendio.com>
3953
3954         * gtk/gtkstatusicon.c: (gtk_status_icon_init): Fixed a last minute
3955         change in the quartz backend.
3956
3957 2006-12-20  Mikael Hallendal  <micke@imendio.com>
3958
3959         * gtk/Makefile.am: Added gtkstatusicon-quartz.c
3960         * gtk/gtkstatusicon-quartz.c: Implements the quartz backend for the
3961         status icon.
3962         * gtk/gtkstatusicon.c: Hooked in the new quartz backend. Bug #387874.
3963
3964 2006-12-19  Matthias Clasen  <mclasen@redhat.com>
3965
3966         * gtk/gtkprintunixdialog.c: Add a tooltip explaining the
3967         format of page ranges, and improve the page sequence icon
3968         for the case of n_copies == 1.
3969  
3970 2006-12-19  Mikael Hallendal  <micke@imendio.com>
3971
3972         * gdk/quartz/gdkcursor-quartz.c: Splitted out the GdkPixbuf to NSImage
3973         routine so that it can be used from libgtk as well (needed for
3974         upcoming GtkStatusIcon support in the Quartz port).
3975         * gdk/quartz/gdkevents-quartz.c: Don't assume that all NSWindows are
3976         created from GDK, this is not true for the status icon.
3977         * gdk/quartz/gdkprivate-quartz.h:
3978         * gdk/quartz/gdkquartz.h: Added 
3979         gdk_quartz_pixbuf_to_ns_image_libgtk_only so that it is available to 
3980         the status icon code.
3981
3982 2006-12-16  Tristan Van Berkom <tvb@gnome.org>
3983
3984         * gtk/gtkmessagedialog.c: Added return_if_fail (image) to
3985         gtk_message_dialog_set_image ()
3986
3987         * gtk/gtkscrolledwindow.c: Fixed a bug in set_property()
3988         (setting "window-placement-set" could result in a crash because
3989         of boolean/enum mixup)
3990
3991 2006-12-15  Federico Mena Quintero  <federico@novell.com>
3992
3993         Merged from gtk-2-10:
3994
3995         * gtk/gtkmenu.c (gtk_menu_set_title): Don't try to optimize for
3996         the case where the new title is the same as the old title, to
3997         preserve the behavior from GTK+ 2.8 (NULL and "" titles are not
3998         equivalent).  Handle the case where title == priv->title.  This
3999         was found by the LSB compatibility tests:
4000         https://bugzilla.novell.com/show_bug.cgi?id=223882
4001
4002 2006-12-15  Dom Lachowicz <domlachowicz@gmail.com>
4003
4004         * gtk/gtkcombobox.c: Make GtkComboBox in "appears-as-list" mode
4005         more closely resemble its Win32 counterpart. Bug #340204.
4006
4007 2006-12-14  Carlos Garnacho  <carlosg@gnome.org>
4008
4009         * gtk/gtkcalendar.c: draw arrows pointing to the right correctly
4010         placed inside their GdkWindow. Bug #385672.
4011
4012 2006-12-14  Christian Persch  <chpe@cvs.gnome.org>
4013
4014         * gtk/gtkiconview.c: Fix docs typo. Bug #385642.
4015
4016 2006-12-13  Dom Lachowicz <domlachowicz@gmail.com>
4017
4018         * src/modules/engines/ms-windows/msw_style.c: Bug 351679 - Notebooks 
4019         drawn with extra line below tab in MS-Windows theme. Patch by 
4020         Cody Russell
4021         
4022 2006-12-13  Matthias Clasen  <mclasen@redhat.com>
4023
4024         * gtk/Makefile.am: Add --unlink-tempfile to the evince call
4025         for print preview.  (#370041, Ghee Teo)
4026
4027 2006-12-11  Matthias Clasen  <mclasen@redhat.com>
4028
4029         * gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): Be more
4030         careful when overdrawing antialiased text.  (#352435, Alex Jones,
4031         patch by Benjamin Otte)
4032
4033         * gtk/gtksettings.c: Change the way in which color scheme information
4034         is merged to correctly handle vanishing colors.  (#374420, 
4035         Benjamin Berg, patch by Callum McKenzie) 
4036         Also allow to separate entries in color schemes by ';' 
4037         instead of newline.  
4038
4039 2006-12-10  Matthias Clasen  <mclasen@redhat.com>
4040
4041         * modules/printbackends/cups/gtkcupsutils.c (gtk_cups_request_encode_option): 
4042         Properly pass multi-value options to cups.  (#355350, Jürg Billeter) 
4043
4044 2006-12-10  Kristian Rietveld  <kris@gtk.org>
4045
4046         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event):
4047         cancel editing (ie. don't accept changes) when the entry loses
4048         focus. (Fixes #164494, reported by Chris Rouch).
4049
4050 2006-12-10  Matthias Clasen  <mclasen@redhat.com>
4051
4052         * configure.in: Correct a misapplied patch. 
4053
4054 2006-12-10  Tor Lillqvist  <tml@novell.com>
4055
4056         * gtk-zip.sh.in: Put gdk-pixbuf-query-loaders.exe and
4057         gtk-query-immodules-2.0.exe in the runtime zipfile instead of
4058         developer zipfile. Users might add pixbuf loaders or immodules
4059         even if they are not interested in developing gtk+-using software.
4060
4061 2006-12-10  Matthias Clasen  <mclasen@redhat.com>
4062
4063         * configure.in: Check for crt_extern.h and _NSGetEnviron.
4064         * gdk/x11/gdkspawn-x11.c: Fix compilation on Darwin where
4065         environ is not available.  (#384168, Min Sik Kim)
4066
4067 2006-12-07  Paolo Maggi  <paolo@gnome.org>
4068
4069         Fixes bug #383407
4070         
4071         * gtk/gtkentry.c (gtk_entry_set_text): check for
4072         completion->priv->changed_id > 0 before calling 
4073         g_signal_handler_[un]block.
4074         (gtk_entry_completion_key_press): does not block/unblock the "changed"
4075         signal before calling gtk_entry_set_text.
4076         
4077 2006-12-07  Carlos Garnacho  <carlosg@gnome.org>
4078
4079         * gtk/gtkcellrendererprogress (compute_dimensions): do not use
4080         xthickness/ythickness, they aren't used any longer for drawing.
4081
4082 2006-12-07  Matthias Clasen  <mclasen@redhat.com>
4083
4084         * gtk/gtkrc.c (_gtk_rc_init): Fix clipping of accelerator
4085         underlines by giving labels a small draw-border.
4086
4087 2006-12-06  Kristian Rietveld  <kris@gtk.org>
4088
4089         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render):
4090         draw progress bar through theme engine instead of using our own
4091         custom cairo drawing code (#377244, patch from Carlos Garnacho).
4092
4093 2006-12-06  Matthias Clasen  <mclasen@redhat.com>
4094
4095         * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities):
4096         Update the sensitivity of the collate checkbutton more frequently,
4097         proposed by Tim Waugh.
4098
4099 2006-12-04  Matthias Clasen  <mclasen@redhat.com>
4100
4101         * gtk/gtkmessagedialog.c (setup_type): Set a11y name and role
4102         since we no longer set window titles.
4103
4104 2006-12-04  Christian Persch  <chpe@cvs.gnome.org>
4105
4106         * gtk/gtkpagesetup.c: (gtk_page_setup_get_paper_size),
4107         (gtk_page_setup_set_paper_size): Don't leak the old page size when
4108         setting a new one. Bug #382314.
4109
4110 2006-12-03  Michael Natterer  <mitch@gimp.org>
4111
4112         * gtk/gtktextview.c: remove FIXME #include that is no longer needed.
4113
4114 2006-12-03  Kristian Rietveld  <kris@gtk.org>
4115
4116         Make sure [xy]_offset are always being initialized, fix pixbuf
4117         renderer padding.  (#108235, Sven Neumann).
4118
4119         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size),
4120         (gtk_cell_renderer_pixbuf_render): add padding in _render instead
4121         of _get_size.
4122
4123         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
4124         always initialize [xy]_offset.
4125         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto.
4126         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
4127         ditto.
4128
4129 2006-12-03  Kristian Rietveld  <kris@gtk.org>
4130
4131         * gtk/gtktreeview.c (validate_visible_area): when not using an
4132         explicit alignment, use the full area of the row (not just dy)
4133         to determine how to implicitly align it.  (Fixes #363191, reported
4134         by Federico Mena Quintero).
4135
4136 2006-12-02  Matthias Clasen  <mclasen@redhat.com>
4137
4138         * gtk/gtkicontheme.c (insert_theme): Properly clean up
4139         if an icon theme index file has no directories.  (#381236)
4140
4141 2006-12-02  Dom Lachowicz <domlachowicz@gmail.com>
4142
4143         * src/modules/engines/ms-windows/msw_style.c: Bug 351678 - Notebooks 
4144         not with PositionType.Top drawn incorrectly. Patch by Cody Russell
4145         
4146 2006-11-28  Behdad Esfahbod  <behdad@gnome.org>
4147
4148         Remove the broken Thai input method and add a functional Thai and Lao
4149         input method by Theppitak Karoonboonyanan. (#81031)
4150
4151         * modules/input/imthai.c:
4152         * modules/input/gtkimcontextthai.c:
4153         * modules/input/gtkimcontextthai.h:
4154         * modules/input/thai-charprop.c:
4155         * modules/input/thai-charprop.h:
4156         Added.
4157
4158         * modules/input/imthai-broken.c:
4159         Removed.
4160         
4161         * modules/input/Makefile.am:
4162         Updated.
4163
4164 2006-11-27  Christian Persch  <chpe@cvs.gnome.org>
4165
4166         * gtk/gtkstatusicon.c: Notify when the screen changes. Bug #379793.
4167
4168 Mon Nov 27 12:27:06 2006  Tim Janik  <timj@imendio.com>
4169
4170         * gtk/gtktextview.c: applied patch by  Colin Leroy for
4171         Control+GDK_KP_Left to move one word to the left, #356255.
4172
4173 2006-11-26  Benjamin Berg  <benjamin@sipsolutions.net>
4174
4175         * gtk/gtkstyle.c: (gtk_default_draw_flat_box): Protect against NULL
4176           widget. (#379503)
4177
4178 2006-11-25  Matthias Clasen  <mclasen@redhat.com>
4179
4180         * modules/printbackends/cups/gtkprintbackendcups.c: Make
4181         print dialog work when 'BrowseShortNames Off' is specified
4182         in cups configuration. Patch by Tim Waugh.
4183
4184 2006-11-24  Michael Natterer  <mitch@imendio.com>
4185
4186         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): if we
4187         can't go up/down, consult gtk_widget_keynav_failed() and leave the
4188         widget if it returns FALSE (bug #322640).
4189
4190 2006-11-23  Behdad Esfahbod  <behdad@gnome.org>
4191
4192         * gtk/gtkmain.c: Fix minor typo in docs. (#378632, Hannes Mueller)
4193
4194 2006-11-22  Emmanuele Bassi  <ebassi@gnome.org>
4195
4196         * gtk/gtkrecentmanager.c:
4197         (get_uri_shortname_for_display): g_filename_from_uri() might
4198         fail; catch the failure and fall back to the non-local URI
4199         case. (#363437)
4200
4201 2006-11-19  Mark McLoughlin  <mark@skynet.ie>
4202
4203         Fixes bug #376502 - multi-screen support for GtkStatusIcon
4204
4205         * gtk/gtkstatusicon.[ch]:
4206         (gtk_status_icon_set_screen),
4207         (gtk_status_icon_get_screen): add multi-screen API. Allows
4208         an app to display an icon on a non-default screen
4209         (gtk_status_icon_class_init),
4210         (gtk_status_icon_set_property),
4211         (gtk_status_icon_get_property): add a "screen" property
4212         
4213         * tests/teststatusicon.c: update to test on multiple screens
4214
4215 2006-11-17  Matthias Clasen  <mclasen@redhat.com>
4216
4217         Fix problems with drag cancellation. (#376535, Michael Natterer)
4218         
4219         * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Disconnect signal
4220         handlers before emitting drag-end.
4221         (gtk_drag_end): Disconnect signal handlers before removing
4222         the grab.  
4223
4224 2006-11-16  Mariano Suárez-Alvarez <mariano@gnome.org>
4225
4226         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
4227         add gtk-doc blurb on GtkCellRendererText::edited (#376094)
4228
4229 2006-11-16  Michael Natterer  <mitch@imendio.com>
4230
4231         * gtk/gtkradiobutton.c (gtk_radio_button_focus): don't use
4232         gtk_widget_keynav_failed(). Instead, look at gtk-keynav-cursor-only
4233         and gtk-keynav-wrap-around and wrap around, beep or continue outside
4234         the group manually (bug #322640).
4235
4236 2006-11-16  Michael Natterer  <mitch@imendio.com>
4237
4238         Add new infrastructure for notifications of failed keyboard
4239         navigation and navigation with restricted set of keys.
4240
4241         The patch handles configurable beeping, navigating the GUI with
4242         cursor keys only (as in phone environments), and configurable
4243         wrap-around. Fixes bugs #322640, #70986, #318827, #334726, #334742
4244         and #309291.
4245
4246         * gtk/gtksettings.c: added properties gtk-keynav-cursor-only,
4247         gtk-keynav-wrap-around and gtk-error-bell.
4248
4249         * gtk/gtkwidget.[ch]: added new signal "keynav-failed" and public
4250         API to emit it. Added New function gtk_widget_error_bell() which
4251         looks at the gtk-error-bell setting and calls gdk_window_beep()
4252         accordingly.
4253
4254         * gtk/gtk.symbols: add the new widget symbols.
4255
4256         * gtk/gtkcellrendereraccel.c
4257         * gtk/gtkimcontextsimple.c
4258         * gtk/gtkmenu.c
4259         * gtk/gtknotebook.c: use gtk_widget_error_bell() or look at the
4260         gtk-error-bell setting instead of calling gdk_display_beep()
4261         unconditionally.
4262
4263         * gtk/gtkcombobox.c
4264         * gtk/gtkentry.c
4265         * gtk/gtkiconview.c
4266         * gtk/gtklabel.c
4267         * gtk/gtkmenushell.c
4268         * gtk/gtkspinbutton.c
4269         * gtk/gtktextview.c
4270         * gtk/gtktreeview.c: call gtk_widget_error_bell() on failed keynav.
4271
4272         * gtk/gtkentry.c
4273         * gtk/gtklabel.c
4274         * gtk/gtkrange.c
4275         * gtk/gtktextview.c: consult gtk_widget_keynav_failed() on failed
4276         cursor navigation and leave the widget if it returns FALSE.
4277
4278         * gtk/gtkmenushell.c
4279         * gtk/gtknotebook.c: only wrap around if gtk-keynav-wrap-around
4280         is TRUE.
4281
4282         * gtk/gtkradiobutton.c: ask gtk_widget_keynav_failed() to decide
4283         whether to to wrap-around, and don't select active items on cursor
4284         navigation if gtk-keynav-cursor-only is TRUE. Should look at
4285         gtk-keynav-wrap-around too, will look into that.
4286
4287 2006-11-16  Emmanuele Bassi  <ebassi@gnome.org>
4288
4289         * gtk/gtkrecentmanager.c:
4290         (gtk_recent_info_get_uri_display): Return the URI
4291         of the GtkRecentInfo object (upgraded to UTF-8 if
4292         needed) in case of non-local file. (#351945)
4293
4294 2006-11-16  Emmanuele Bassi  <ebassi@gnome.org>
4295         
4296         * gtk/gtkrecentchoosermenu.c:
4297         (gtk_recent_chooser_menu_add_tip): Apply the tip only
4298         if we have a displayable name for the item. (#365031,
4299         patch by padraig.obriain(at)sun.com)
4300
4301 2006-11-16  Emmanuele Bassi  <ebassi@gnome.org>
4302
4303         * gtk/gtkrecentmanager.c: Provide a fast path returning
4304         NULL when the limit is set to 0.
4305
4306         * gtk/gtkrecentchooserdefault.c:
4307         * gtk/gtkrecentchoosermenu.c: Add the same fast path
4308         inside the RecentChooser implementation; add a check
4309         in the list clamping code. (#373466 and duplicates)
4310
4311 2006-11-15  Matthias Clasen  <mclasen@redhat.com>
4312
4313         * modules/printbackends/cups/gtkprintbackendcups.c (cups_printer_get_options): 
4314         Don't pass NULL to strncpy.  (#359537, patch by  Carlos Garcia Campos)
4315
4316 2006-11-15  Michael Natterer  <mitch@imendio.com>
4317
4318         * gtk/gtkrange.[ch]: added properties "fill-level",
4319         "show-fill-level" and "restrict-to-fill-level" and getters/setters
4320         for them. The "fill level" is an additional marker on the range's
4321         trough than can be e.g. used to indicate the amount of
4322         pre-buffering in a range showing the play position of streamed
4323         media. See the embedded API docs for details. Made GtkRangeLayout
4324         a GTypeInstance private struct and removed finalize()
4325         implementation. Fixes bug #349808
4326
4327         * gtk/gtk.symbols: added the new symbols.
4328
4329 2006-11-14  Behdad Esfahbod  <behdad@gnome.org>
4330
4331         * configure.in: Make libtool magic robust. (#352795)
4332
4333 2006-11-13  Paolo Borelli  <pborelli@katamail.com>
4334
4335         * gtk/gtkrc.c (gtk_rc_parse_icon_source): plug small memory
4336         leak (#370395)
4337
4338 2006-11-09  Kristian Rietveld  <kris@imendio.com>
4339
4340         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): disable
4341         don't move cursor case for SELECTION_NONE. (#371756, John Ellis).
4342
4343 2006-11-09  Carlos Garnacho  <carlosg@gnome.org>
4344
4345         * gtk/gtkpathbar.c (on_slider_unmap): Fix parenthesis confusion.
4346
4347 2006-11-08  Carlos Garnacho  <carlosg@gnome.org>
4348
4349         * gtk/gtkpathbar.c (on_slider_unmap): added, do not leave the scroll
4350         timeout running if the slider buttons are hidden. (#372527)
4351
4352 2006-11-08  Christian Persch  <chpe@cvs.gnome.org>
4353
4354         * gtk/gtkfilechooserdefault.c (browse_widgets_create): Don't make
4355         the "Location" label bold. Bug #372449.
4356
4357 2006-11-07  Carlos Garnacho  <carlosg@gnome.org>
4358
4359         * gtk/gtknotebook.c (gtk_notebook_calculate_tabs_allocation): make
4360         non-focused tabs xthickness/ythickness thinner. (#353962)
4361
4362 2006-11-07  Paolo Borelli  <pborelli@katamail.com>
4363
4364         * gtk/gtktextbtree.c (_gtk_text_btree_delete): avoid memory
4365         corruption (#357050).
4366
4367 2006-11-06  Alexander Larsson  <alexl@redhat.com>
4368
4369         * gtk/gtkdnd.c: (gtk_drag_begin_internal),
4370         (gtk_drag_source_info_destroy), (gtk_drag_end),
4371         (gtk_drag_grab_notify_cb):
4372         Cancel drag when the grab is shadowed. (#122688)
4373
4374 2006-11-01  Kristian Rietveld  <kris@imendio.com>
4375
4376         * gtk/gtkcombobox.c (gtk_combo_box_class_init),
4377         (gtk_combo_box_size_request): add arrow-size property to control
4378         the minimum size of the arrow, have the arrow scale up with the
4379         font by default. (#357950).
4380
4381 2006-10-30  Kristian Rietveld  <kris@gtk.org>
4382
4383         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): don't
4384         forget to queue a draw for the new cursor node. (Fixes #366548,
4385         reported by Sven Herzberg).
4386
4387 2006-10-30  Michael Natterer  <mitch@imendio.com>
4388
4389         * gtk/gtkrange.c (gtk_range_key_press): consume the Escape key
4390         only if we actually cancel a drag. Fixes bug #58389.
4391
4392 2006-10-30  Kristian Rietveld  <kris@gtk.org>
4393
4394         * gtk/gtktreeview.c (gtk_tree_view_class_init): change left/right
4395         keybindings to collapse/expand rows instead of moving the focus
4396         cursor. (#105895, Brian Bober and others).
4397
4398 2006-10-29  Kristian Rietveld  <kris@gtk.org>
4399
4400         * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): guard against
4401         child removal in row-expanded callback. (#366782, John Ellis).
4402
4403 2006-10-29  Tor Lillqvist  <tml@novell.com>
4404
4405         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Improve handling
4406         of the small icon of the window class. (#152620, Kazuki Iwamoto)
4407
4408 2006-10-29  Tor Lillqvist  <tml@novell.com>
4409
4410         * gdk/win32/gdkcursor-win32.c
4411         (gdk_win32_icon_to_pixbuf_libgtk_only): Implement for B&W cursors,
4412         for instance the built-in GDK ones.
4413
4414 2006-10-27  Kristian Rietveld  <kris@gtk.org>
4415
4416         * gtk/gtktreeview.c (validate_visible_area): rework the area_above == 0
4417         case to not overwrite the variables in the lower scope (which are
4418         used later on ...), get the path correctly and bail out when there
4419         isn't a node above us. (#359231).
4420
4421 2006-10-26  Christian Persch  <chpe@cvs.gnome.org>
4422
4423         * gtk/gtkaboutdialog.c: Put initial focus on Close button (#337261).
4424
4425 2006-10-25  Johan Dahlin  <jdahlin@async.com.br>
4426
4427         * gtk/gtk.symbols: Add missing symbols to so make check can pass
4428
4429 2006-10-23  Dom Lachowicz <domlachowicz@gmail.com>
4430
4431         * src/modules/engines/ms-windows/msw_style.c (draw_expander): Remember
4432         to free GDI Pen resources, introduced by bug 340201.(#364514)
4433         
4434 2006-10-18  Kristian Rietveld  <kris@imendio.com>
4435
4436         * tests/testcombo.c (main): connect to notify::popup-shown instead of
4437         popup-show (the latter does not exist).
4438
4439 2006-10-15  Paolo Borelli  <pborelli@katamail.com>
4440
4441         * gtk/gtkicontheme.c (pixbuf_supports_svg): plug memory leak.
4442         Fixes bug #362439.
4443
4444 2006-10-12  Michael Natterer  <mitch@imendio.com>
4445
4446         * gtk/gtkcombobox.c (gtk_combo_box_class_init): fix commit below
4447         (committed the wrong patch).
4448
4449 2006-10-12  Michael Natterer  <mitch@imendio.com>
4450
4451         * gtk/gtkcombobox.c: added "move-active" and "popup" signals and
4452         bindings to trigger them. Removed gtk_combo_box_key_press(), it's
4453         obsolete now. Fixes bug #358293.
4454
4455 2006-10-11  Michael Emmel  <mike.emmel@gmail.com>
4456
4457         * gdkpixmap-directfb.c: add missing RGB24 case (#361176) 
4458
4459 2006-10-11  Tor Lillqvist  <tml@novell.com>
4460
4461         * configure.in: Enable having some gdk-pixbuf loaders built-in
4462         even if loading the others dynamically. Define Automake
4463         conditional INCLUDE_FOO for each loader as TRUE if that loader is
4464         built-in. See also gdk-pixbuf/ChangeLog.
4465
4466 Wed Oct 11 14:31:30 2006  Tim Janik  <timj@imendio.com>
4467
4468         * docs/reference/gtk/gtk-sections.txt:
4469         * gtk/gtkbindings.c: document gtk_binding_entry_skip().
4470
4471 2006-10-11  Tor Lillqvist  <tml@novell.com>
4472
4473         * gtk/gtk.symbols: Remove gtk_combo_string_key, which is a static
4474         variable.
4475
4476 2006-10-11  Tor Lillqvist  <tml@novell.com>
4477
4478         Merge from 2.10 branch:
4479
4480         * gtk/gtkmain.c (do_pre_parse_initialization): On Win32, if
4481         environment variable LC_ALL or LANG is set, set the Win32 thread
4482         locale to the corresponding locale. Then call the C library
4483         setlocale() to set the C library locale accordingly. The
4484         inconsistency mentioned below is gone. (#339756) Do some special
4485         casing for Serbia and Montenegro. Handle the Latin and Cyrillic
4486         scripts for Azeri, Uzbek and Serbian.
4487         (enum_locale_proc): Helper function for the above functionality.
4488
4489         * gtk/gtkcalendar.c (gtk_calendar_init): No longer need to check
4490         if the environment variables are set here, as they have already
4491         been taken into account and the Win32 thread locale has been
4492         set.
4493
4494 Tue Oct 10 16:38:23 2006  Tim Janik  <timj@imendio.com>
4495
4496         * gtk/tmpl/gtkbindings.sgml: 
4497         * gtk/gtkbindings.c: applied patch from Michael Natterer to move to 
4498         inline docs. applied wording fixes suggested by Martyn Russell.
4499
4500 2006-10-09  Matthias Clasen  <mclasen@redhat.com>
4501
4502         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
4503         Update the docs to state which out parameters may be NULL.
4504         (#360870, Attilio Fiandrotti)
4505
4506 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
4507
4508         * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities): Fix
4509         a typo.  (#359542, Ghee Teo)
4510
4511 2006-10-08 Matthias Clasen <mclasen@redhat.com>
4512
4513         * gtk/gtknotebook.c (gtk_notebook_reorder_tab): Only
4514         reorder tabs if the focus is in the tab.  (#350342, Carlos
4515         Garnacho Parro)
4516
4517 2006-10-08 Michael Emmel <mike.emmel@gmail.com>
4518
4519         * gdk/directfb/gdkproperty-directfb.c strdup atom name (#357611) 
4520
4521 2006-10-08  Kristian Rietveld  <kris@gtk.org>
4522
4523         * gtk/gtktreeview.[ch] (gtk_tree_view_set_property),
4524         (gtk_tree_view_set_show_expanders),
4525         (gtk_tree_view_get_show_expanders): add getter/setter for
4526         show-expanders property, queue a redraw when this property
4527         is toggled (#351167, Martin Ejdestig),
4528         (gtk_tree_view_set_level_indentation),
4529         (gtk_tree_view_get_level_indentation): also add getter/setter
4530         and docs for level-indentation property.
4531
4532 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
4533
4534         * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't 
4535         leak a list.  (#360350, Benjamin Berg)
4536
4537         * Apply a cleanup patch by Kjartan Maraas  (#341812)
4538
4539 2006-10-07  Tor Lillqvist  <tml@novell.com>
4540
4541         * gtk/gtkcalendar.c (gtk_calendar_init): Use the Win32 thread
4542         locale's first day of week setting on Win32. (#339752, Bogdan
4543         Nicula) Don't do this if one of the environment variables that
4544         affect gettext is set, though. In that case use the week start day
4545         from the corresponding message catalog.
4546
4547         Unfortunately the same logic isn't possible in the weekday and
4548         month name lookup; there even if you have set one of the
4549         aforementioned environment variables, you still get the weekday
4550         and month names from the Win32 thread locale. Yes, this is
4551         inconsistent.
4552
4553         Use only wide-character API in the Win32 code in this file, too.
4554
4555 2006-10-06  Matthias Clasen  <mclasen@redhat.com>
4556
4557         * gtk/gtkfilechooser.c (gtk_file_chooser_set_select_multiple):
4558         Fix the docs.  (#360112)
4559
4560         * gtk/gtkcellview.c: Don't set the background of the
4561         window in a no-window widget.  (#359581, Xan Lopez)
4562
4563
4564 2006-10-05  Behdad Esfahbod  <behdad@gnome.org>
4565
4566         * gtk/Makefile.am, gtk/aliasfilescheck.sh:  Propagate srcdir into the
4567         test correctly. (#359845)
4568
4569 2006-10-05  Michael Natterer  <mitch@imendio.com>
4570
4571         * gtk/gtkrc.[ch]: added new scanner token "unbind" which gets
4572         rid of a key binding (in fact, it only lets it appear unbound).
4573
4574         * gtk/gtkbindings.[ch] (struct GtkBindingEntry): added
4575         "guint marks_unbound : 1"
4576
4577         (gtk_binding_entry_skip): new API which marks the entry as unbound.
4578
4579         Changed code so it returns FALSE when "marks_unbound == TRUE" is
4580         encountered while activating bindings, effectively letting the
4581         binding appear unbound (regardless of still existing bindings in
4582         lower binding priority levels). Fixes bug #358329.
4583
4584         (gtk_binding_entry_add)
4585         (gtk_binding_entry_clear)
4586         (gtk_binding_entry_add_signall)
4587         (gtk_binding_parse_binding): deprected these functions.
4588
4589         (_gtk_binding_parse_binding)
4590         (_gtk_binding_entry_add_signall): new internal API.
4591
4592         * gtk/gtk.symbols: changed accordingly.
4593
4594 2006-10-03  Matthias Clasen  <mclasen@redhat.com>
4595
4596         Fix interaction of GtkEntryCompletion with input
4597         methods.  (#354495, Diego Escalante Urrelo)
4598
4599         * gtk/gtkentry.c (gtk_entry_completion_key_press): Only reset
4600         the im context if we actually handle the key event.
4601
4602         * gtk/gtkentrycompletion.c: Also propagate key release events
4603         to the entry.
4604
4605 2006-10-03  Matthias Clasen  <mclasen@redhat.com>
4606
4607         * gtk/gtkprintsettings.c (gtk_print_settings_get_duplex):
4608         Fix a typo.  (#359052, Ghee Teo)
4609
4610         * gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to
4611         reduce relocations. (#359053)
4612
4613 2006-10-03  Matthias Clasen  <mclasen@redhat.com>
4614
4615         * modules/printbackends/cups/gtkcupsutils.c:
4616         * modules/printbackends/cups/gtkprintbackendcups.c: Complete
4617         the fix for bug 357280.
4618
4619 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
4620
4621         * gdk-pixbuf/Makefile.am:
4622         * gdk/Makefile.am:
4623         * gtk/Makefile.am:
4624         Include pltcheck.sh in EXTRA_DIST.
4625
4626 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
4627
4628         * gdk/x11/gdkevents-x11.c: Move all includes before including
4629         gdkalias.h.
4630
4631 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
4632
4633         * gtk/Makefile.am: Fix typo in file name.  (#358931)
4634
4635 2006-10-02  Matthias Clasen  <mclasen@redhat.com>
4636
4637         * modules/printbackends/cups/gtkprintbackendcups.c (available_choices): 
4638         Only use the group name field if cups is new enough.  (#357280)
4639
4640         * gtk/gtksizegroup.c: Make sure that the quarks are 
4641         initialized before using them.  (#353736)
4642
4643         * gtk/Makefile.am (stamp-icons): Use rm instead of ln -f to
4644         replace existing links.  (#354849, James Evans)
4645
4646 2006-10-01  Matthias Clasen  <mclasen@redhat.com>
4647
4648         * gtk/gtkexpander.c (gtk_expander_realize) 
4649         (gtk_expander_size_allocate): Make the event_window large
4650         enough to cover the full height of the label_widget.  (#358351,
4651         Scott Horowitz)
4652
4653 2006-10-01  Tor Lillqvist  <tml@novell.com>
4654
4655         * gtk/gtkfilesystemwin32.c: Same change as to gtkfilesystemunix.c.
4656
4657 2006-09-30  Matthias Clasen  <mclasen@redhat.com>
4658
4659         * gtk/gtkfilechooserbutton.c (update_combo_box): Protect
4660         against base_path being NULL.  (#358405, many reporters)
4661
4662 2006-09-29  Matthias Clasen  <mclasen@redhat.com>
4663
4664         * gtk/gtkfilesystemunix.c: Apply a patch by Padraig O'Briain
4665         to avoid a deadlock.
4666
4667 2006-09-27  Kristian Rietveld  <kris@imendio.com>
4668
4669         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_free_level),
4670         (gtk_tree_model_filter_ref_node),
4671         (gtk_tree_model_filter_real_unref_node): bring zero ref count loops
4672         in sync with each other and the sort model.
4673
4674 2006-09-27  Kristian Rietveld  <kris@imendio.com>
4675
4676         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_init),
4677         (gtk_tree_model_filter_finalize), (gtk_tree_model_filter_row_deleted),
4678         (gtk_tree_model_filter_new): unref the virtual root path once that
4679         node (or one if its ancestors) is deleted, set virtual_root_deleted
4680         so we only unref it once.
4681
4682 2006-09-27  Kristian Rietveld  <kris@imendio.com>
4683
4684         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_changed),
4685         (gtk_tree_model_sort_sort_level): ref count nodes the proper way,
4686         (gtk_tree_model_sort_ref_node), (gtk_tree_model_sort_real_unref_node),
4687         (gtk_tree_model_sort_free_level): bring zero ref count loops in
4688         sync,
4689         (gtk_tree_model_sort_free_level): free child levels before
4690         decreasing the zero ref count of the current level,
4691         (gtk_tree_model_sort_clear_cache): only clear cache if zero_ref_count
4692         is > 0.
4693
4694 2006-09-25  Matthias Clasen  <mclasen@redhat.com>
4695
4696         * demos/gtk-demo/*.c:
4697         * gtk/gtkeventbox.c:
4698         * gtk/gtkprintoperation.c: Fix typos. String change.
4699
4700 2006-09-25  Kristian Rietveld  <kris@gtk.org>
4701
4702         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): if the tree view
4703         has already been realized; scroll to background area instead of
4704         cell area. (Fixes #330683, Johan Dahlin, Tommi Komulainen).
4705
4706 2006-09-25  Kristian Rietveld  <kris@gtk.org>
4707
4708         * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): only attempt
4709         to create the GCs if the widget is realized. (Fixes #357578).
4710
4711 2006-09-25  Matthias Clasen  <mclasen@redhat.com>
4712
4713         * gtk/gtkuimanager.c (_gtk_menu_is_empty): Don't leak
4714         the list of children (#357454, Paolo Borelli)
4715
4716 2006-09-25  Michael Natterer  <mitch@imendio.com>
4717
4718         * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): free
4719         display->input_windows with g_free(), not g_object_unref()
4720         (#357566, Tommi Komulainen).
4721
4722 2006-09-24  Kristian Rietveld  <kris@gtk.org>
4723
4724         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
4725         (gtk_cell_renderer_text_[sg]et_property): actually add align-set
4726         property to the API (left-over patch from #157439).
4727
4728 2006-09-24  Kristian Rietveld  <kris@gtk.org>
4729
4730         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): draw
4731         the indicator if the column has a sort column id (and the model is
4732         sortable) or if the user explicitly requested the indicator
4733         to be shown.  (Fixes #352738, Chris Vine).
4734
4735 2006-09-23  Tor Lillqvist  <tml@novell.com>
4736
4737         * gtk/Makefile.am: Use EXEEXT.
4738
4739 2006-09-22  Michael Natterer  <mitch@imendio.com>
4740
4741         * gtk/gtkstyle.c (gtk_style_real_copy): also copy icon factories
4742         and color hashes. Fixes bug #357132.
4743
4744 2006-09-22  Matthias Clasen  <mclasen@redhat.com>
4745
4746         Make remote bookmarks work better (#354887)
4747         
4748         * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): 
4749         (shortcuts_insert_path): 
4750         * gtk/gtkfilechooserbutton.c (change_icon_theme): 
4751         (model_add_bookmarks): 
4752         (model_update_current_folder): 
4753         (update_label_and_image): 
4754         If the bookmark points to a remote file, don't call get_info(), 
4755         since that may a) take a long time and b) pop up an auth dialog.
4756         Instead, just use a folder icon and create a display name
4757         from the uri.
4758
4759         * gtk/gtkfilechooserdefault.c (_gtk_file_chooser_label_for_uri): 
4760         New function to create a suitable display name for a remote
4761         uri. This should really be done in GtkFileSystem.
4762         
4763 2006-09-21  Michael Natterer  <mitch@imendio.com>
4764
4765        Implement lots of value setters for GdkGC, based on a heavily
4766        modified patch from Thomas Broyer (bug #328853):
4767
4768         * gdk/quartz/gdkcolor-quartz.c: removed functions which set colors
4769         on the CGContext. Instead, added gdk_quartz_get_rgba_from_pixel()
4770         which simply returns RGBA values from a GdkColor's pixel value.
4771         See gdk_quartz_update_context_from_gc() below.
4772
4773         * gdk/quartz/gdkprivate-quartz.h (struct GdkGCQuartz): added lots
4774         of members for the newly suppored GC values. Added enum
4775         GdkQuartzContextValuesMask which is used for setting up the
4776         CGContext for filling and/or stroking.
4777
4778         * gdk/quartz/gdkgc-quartz.c (gdk_quartz_gc_get_values)
4779         (gdk_quartz_gc_set_values)
4780         (_gdk_windowing_gc_copy): support a lot more GC values.
4781
4782         (gdk_quartz_update_context_from_gc): added
4783         GdkQuartzContextValuesMask parameter and set filling/stroking
4784         parameters accordingly. This function also gained full control
4785         over the FG and BG colors (they can't be set separately any more).
4786
4787         The stipple mask part of the patch doesn't work but seems to take
4788         the right approach and doesn't make things worse, so I applied it.
4789
4790         Did *not* apply the clipping part of the patch since I don't
4791         understand it (I don't understand the version in CVS either, but
4792         it at least works :-)
4793
4794         * gdk/quartz/gdkdrawable-quartz.c: pass the right masks to
4795         gdk_quartz_update_context_from_gc() and removed separate color
4796         setting calls. Some minor fixes.
4797
4798         * gdk/quartz/gdkwindow-quartz.c
4799         (gdk_window_impl_quartz_begin_paint_region): set the CGContext's
4800         fill color manually. We don't have/need a GC here.
4801
4802 2006-09-21  Michael Natterer  <mitch@imendio.com>
4803
4804         * gdk/quartz/gdkwindow-quartz.c
4805         (gdk_window_impl_quartz_begin_paint_region): fix cast: it's
4806         drawable_impl->wrapper that is the GdkWindow, not the
4807         drawable_impl itself.
4808
4809 2006-09-20  Behnam Esfahbod <behnam@zwnj.org>
4810
4811         * gdk/x11/gdkkeys-x11.c:
4812           (get_direction): just check the first shift-level of keyboard
4813         layout for RTL and LTR keysyms() (compliment to #116626)
4814
4815 Wed Sep 20 16:59:38 2006  Tim Janik  <timj@imendio.com>
4816
4817         * gtk/gtkviewport.c: always update the bin_window position and size
4818         in size_allocate, even if we don't have a visible child. this fixes
4819         expose artefacts as described in #313508.
4820
4821         * gtk/gtkscrolledwindow.c: make hiding of automatic scrollbars when we
4822         have no visible child explicit.
4823
4824 2006-09-19  Ryan Lortie  <desrt@desrt.ca>
4825
4826         * docs/reference/gdk/gdk-sections.txt:
4827         * gdk/gdk.symbols:
4828         * gdk/gdkpango.h:
4829         * gdk/gdkpango.c: Bug 355343.  Add a GdkPangoAttrEmbossColor.
4830           (gdk_pango_layout_get_clip_region): Remove an unused variable.
4831           (gdk_pango_attr_embossed_new): Fix documentation.
4832
4833 Tue Sep 19 17:00:04 2006  Tim Janik  <timj@imendio.com>
4834
4835         * gtk/gtkarrow.c: added GtkArrow::arrow-scaling style property to 
4836         control the arrow/border ratio within the allocation.
4837
4838         * tests/testgtk.c: added a GtkArrow to handle box test.
4839
4840         * tests/testgtkrc: test ::arrow-scaling property.
4841
4842 2006-09-19  Matthias Clasen  <mclasen@redhat.com>
4843
4844         * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
4845         Display an error when we come to the root.  
4846
4847 2006-09-16  Matthias Clasen  <mclasen@redhat.com>
4848
4849         * gtk/gtkfilechooserbutton.c: Use bookmark labels in 
4850         the combobox. 
4851
4852         * gtk/gtkfilechooserbutton.c: Don't add remote volumes and 
4853         bookmarks to the model in local-only mode, to avoid 
4854         authentication dialogs pop up for invisible bookmarks, and
4855         to fix issues with separators not being hidden when
4856         they should.  (#354887, Dennis Cranston)
4857
4858 2006-09-16  Matthias Clasen  <mclasen@redhat.com>
4859
4860         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Unref the
4861         treeview use in list mode.  (#355732, Richard Hult)
4862
4863         * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): Send
4864         change notification for the right property.  (#355308,
4865         Torsten Schoenfeld)
4866
4867 2006-09-15  Michael Natterer  <mitch@imendio.com>
4868
4869         * gtk/gtktreeview.c (gtk_tree_view_key_press): refactored column
4870         header navigation/resizing/reordering to be more readable and lose
4871         one level of nesting.
4872
4873 2006-09-15  Kristian Rietveld  <kris@imendio.com>
4874
4875         * gtk/gtktreeview.c (gtk_tree_view_key_press): actually directly
4876         return after handling column button focus; we disable wrap around
4877         with this (which actually happened via a really weird code path).
4878         (Michael Natterer)
4879
4880 2006-09-15  Kristian Rietveld  <kris@imendio.com>
4881
4882         * gtk/gtktreeview.c (gtk_tree_view_key_press): make column resizing
4883         code RTL aware, also break from the loops after we have seen the
4884         focussed column button (Michael Natterer).
4885
4886 Thu Sep 14 12:28:51 2006  Tim Janik  <timj@imendio.com>
4887
4888         * tests/testrichtext.c (main): intialize random number generator state
4889         upon program start, to enable truely random testing.
4890
4891 2006-09-13 Michael Emmel <mike.emmel@gmail.com>
4892
4893         * gdk/directfb/gdkcolor-directfb.c small clean ups include order
4894         * gdk/directfb/gdkwindow-directfb.c fixed beep compile error
4895         * gdk/directfb/Makefile.am removed GDK_PIXBUF_DISABLE_DEPRECATED
4896                 GDK_DISABLE_DEPRECATED to allow compile per Behdad
4897         * gdk/quartz/Makefile.am same change as directfb Makefile
4898         * gtk/Makefile.am fixed typo that cause socket stubs not to compile
4899
4900 2006-09-13 Matthias Clasen <mclasen@redhat.com>
4901
4902         * gtk/gtkcolorsel.c: Use a GtkWindow instead of a GtkInvisible
4903         for the grab widget, to make the color picker work with window
4904         groups.  
4905
4906 2006-09-12 Hong Jen Yee <pcman.tw@gmail.com>
4907
4908         signed off by: Dom Lachowicz
4909         
4910         * modules/engines/ms-windows/msw_style.c: Bug 340201. This contains
4911         a large number of improvements to the Microsoft Windows theme engine
4912         which are fully described in the bug report.
4913         
4914 Mon Sep 11 14:22:39 2006  Tim Janik  <timj@imendio.com>
4915
4916         * tests/testgtk.c: fixed compiler warnings.
4917
4918 2006-09-10  Matthias Clasen  <mclasen@redhat.com>
4919
4920         * gtk/gtkfilechooserbutton.c (model_add_special): Request
4921         the display name too, otherwise "Desktop" does not appear
4922         in the file chooser button. 
4923
4924 2006-09-10  Tor Lillqvist  <tml@novell.com>
4925
4926         * gdk/win32/gdkprivate-win32.h
4927         * gdk/win32/gdkmain-win32.c
4928         * gdk/win32/gdkwindow-win32.c: Define WINVER and _WIN32_WINNT as
4929         0x0500 in gdkprivate-win32.h instead of doing it in two source
4930         files. (#355212, Mike Edenfield)
4931
4932         * gdk/win32/gdkwindow-win32.c: We can also remove the ersatz
4933         GetAncestor() for the _MSC_VER && WINVER < 0x0500 case, I hope.
4934
4935 2006-09-10  Matthias Clasen  <mclasen@redhat.com>
4936
4937         * Commit a patch by Behdad to fix typos, omissions and other
4938         errors in the symbol aliasing, and add checks for local PLT
4939         entries.  (#354687, Behdad Esfahbod)
4940
4941         * gtk/gtktreeview.c (gtk_tree_view_search_scroll_event): Renew
4942         the flush timeout.  (#354043, Nelson Benitez)
4943         
4944         * gtk/gtkfilechoosersettings.c (set_unexpected_element_end_error): 
4945         Improve wording. String change!  (#355126, David Lodge)
4946
4947         * gtk/updateiconcache.c: Improve wording. String change!  (#355128,
4948         David Lodge)
4949
4950         * gtk/paper_names_offsets.c: Fix a typo. String change!  (#355134,
4951         David Lodge)
4952
4953 2006-09-09  Matthias Clasen <mclasen@redhat.com>
4954
4955         * gdk/x11/gdkfonts-x11.c: Fix small theoretical memory leaks.
4956         (#353916, Chris Wilson)
4957
4958         * gtk/gtksettings.c (_gtk_settings_reset_rc_values):
4959         Don't leak the to_reset list.  (#353914, Chris Wilson)
4960
4961         * gtk/gtkwidget.c: Add docs for the parent-set signal.
4962         (#353772, Mariano Suárez-Alvarez)
4963
4964 2006-09-08  Matthias Clasen <mclasen@redhat.com>
4965
4966         * gtk/gtktextbuffer.c (remove_all_selection_clipboards):
4967         Don't clear clipboards here, since we are called from finalize
4968         and can't emit signals.
4969
4970         * configure.in: Set version to 2.11.0
4971
4972 2006-09-06  Richard Hult  <richard@imendio.com>
4973
4974         * gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Special-case 
4975         shift-tab and map it to GDK_ISO_Left_Tab, fixes bug #350806.
4976
4977 2006-09-04  Kristian Rietveld  <kris@imendio.com>
4978
4979         * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
4980         if setting the given folder failed, try setting the parent folder
4981         until we succeed; display an error box at the end.
4982
4983 2006-09-04  Kristian Rietveld  <kris@imendio.com>
4984
4985         * gtk/gtkpathbar.c (gtk_path_bar_dispose): don't cancel the
4986         operations spawned by buttons here,
4987         (set_button_image_get_info_cb): bail out if button is NULL, but
4988         do free button_data,
4989         (button_data_free): only free the data if non NULL (since this
4990         function can be called multiple times for the same data), cancel
4991         handle if pending but don't free button_data in this case (will
4992         happen in the callback).
4993
4994 2006-09-04  Michael Natterer  <mitch@imendio.com>
4995
4996         * gtk/gtkrc.c (rc_parse_token_or_compound)
4997         (gtk_rc_parse_assignment): serialize floating point values using
4998         locale-independent functions. (#346751, Frederic Crozat)
4999
5000 2006-09-04  Tor Lillqvist  <tml@novell.com>
5001
5002         * gdk/win32/gdkevents-win32.c
5003         * gdk/win32/gdkwindow-win32.c: Use wide-char API for message and
5004         window handling (PeekMessage, PostMessage, SendMessage,
5005         DispatchMessage, DefWindowProc, RegisterClassEx,
5006         CreateWindowEx). (#321597)
5007
5008 2006-09-03  Kristian Rietveld  <kris@imendio.com>
5009
5010         * gtk/gtkfilechooserdefault.c (save_entry_get_info_cb),
5011         (file_exists_get_info_cb), (gtk_file_chooser_default_should_respond):
5012         change file_exists_and_is_not_folder checks to get the file info
5013         for the path directly instead of querying the current file folder
5014         of the save entry.
5015
5016         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault): add
5017         new field.
5018
5019         * tests/autotestfilechooser.c (wait_for_idle_idle), (wait_for_idle),
5020         (test_reload_sequence), (test_button_folder_states_for_action): wait
5021         for idle after setting a folder to ensure the async operations to load
5022         the folder are finished,
5023         (test_confirm_overwrite), (test_confirm_overwrite_for_path):
5024         factor out test_confirm_overwrite code so we can add tests for more
5025         paths more easily.
5026
5027 2006-09-03  Richard Hult  <richard@imendio.com>
5028
5029         * gdk/quartz/GdkQuartzView.c (drawRect): Don't do anything if
5030         exposure isn't in the event mask, plug a leak, and check that the
5031         window isn't destroyed.
5032         (isOpaque): Check that the window isn't destroyed, fixes bug 
5033         #353028.
5034
5035 2006-09-03  Matthias Clasen  <mclasen@redhat.com>
5036
5037         * gtk/gtkwidget.c (gtk_widget_class_init): Fix a typo.  
5038         (#354035, Mariano Suárez-Alvarez)
5039
5040         * gtk/gtkmain.c (post_parse_hook): 
5041         * gdk/gdk.c (gdk_init): Handle display_name being NULL.
5042         (#354004, Chris Wilson)
5043
5044 2006-09-03  Tor Lillqvist  <tml@novell.com>
5045
5046         * gdk/win32/gdkwindow-win32.c (gdk_window_beep): No
5047         GDK_WINDOW_DISPLAY in the Win32 backend.
5048
5049         * gtk/gtkfilesystemwin32.c: Copy what Kris did to
5050         gtkfilesystemunix.c
5051
5052 2006-09-02  Kristian Rietveld  <kris@imendio.com>
5053
5054         First part of file chooser fixes.
5055
5056         * gtk/gtkfilechooserbutton.c (model_add_special): also set the
5057         handle in the model for the desktopdir case.
5058
5059         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder): free
5060         volume in case we retrieved it but don't pass it on to insert_path,
5061         (shortcuts_model_create): change the column type for the handles
5062         to pointer instead of GObject so our handle ref counting is not
5063         disturbed,
5064         (show_and_select_paths_finished_loading): don't forget to unref
5065         the dialog.
5066
5067         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_class_init),
5068         (gtk_file_system_unix_init), (gtk_file_system_unix_dispose):
5069         remove pending execute_callbacks_idle during dispose, also
5070         execute all callbacks waiting to be run in the next idle,
5071         (queue_*callback), (execute_callbacks_idle): refactor to maintain
5072         a list of callbacks to call per file system instead of globally,
5073         guard the file system during callback invocation,
5074         (gtk_file_system_unix_get_folder): only add load folder idle if
5075         none has been added yet.
5076
5077 2006-09-01  Matthias Clasen  <mclasen@redhat.com>
5078
5079         * gtk/gtkentry.c: Don't unnecessarily reset the im context
5080         when deleting the selection.  (#353803, Alex Larsson)
5081
5082 2006-09-01  Abel Cheung  <abel@oaka.org>
5083
5084         * configure.in: Added 'ang' 'dz' to ALL_LINGUAS.
5085
5086 2006-08-31  Matthias Clasen  <mclasen@redhat.com>
5087
5088         Stop cursor blinking after a configurable timeout.
5089         (#353670, #352442, Arjan van de Ven, Manu Cornet)
5090         
5091         * gtk/gtksettings.c (gtk_settings_class_init): Add a 
5092         gtk-cursor-blink-timeout setting, which specifies the number
5093         of seconds that the cursor should blink after a user interaction.
5094         The default value is G_MAXINT to preserve the current behaviour.
5095
5096         * gtk/gtkentry.c (blink_cb): Stop blinking after blink-timeout
5097         seconds.
5098
5099         * gtk/gtkentry.c (gtk_entry_completion_key_press) 
5100         (gtk_entry_button_press, gtk_entry_focus_in): Reset the
5101         blink timer.
5102
5103         * gtk/gtktextview.c (blink_cb): Stop blinking after blink-timeout
5104         seconds. 
5105
5106         * gtk/gtktextview.c (gtk_text_view_key_press_event) 
5107         (gtk_text_view_button_press_event, gtk_text_view_focus_in_event): 
5108         Reset the blink timer.
5109         
5110 2006-08-31  Matthias Clasen  <mclasen@redhat.com>
5111
5112         * gtk/gtkprintoperation-unix.c (get_print_dialog): Don't specify
5113         explicit format capabilities.  (#346505, Christian Persch)
5114
5115         * modules/printbackends/cups/gtkprintbackendcups.c (cups_request_printer_list_cb): Send printer-list-done on error. 
5116
5117 2006-08-31  Michael Natterer  <mitch@imendio.com>
5118
5119         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Fix build.
5120
5121 2006-08-30  Richard Hult  <richard@imendio.com>
5122
5123         * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): Fix build.
5124
5125 2006-08-30  Matthias Clasen  <mclasen@redhat.com>
5126
5127         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Only use XKB
5128         for beeping if we are using XKB.  
5129
5130 2006-08-29  Matthias Clasen  <mclasen@redhat.com>
5131
5132         * gdk/gdkwindow.h: 
5133         * gdk/gdk.symbols: 
5134         * gdk/directfb/gdkwindow-directfb.c (gdk_window_beep): 
5135         * gdk/win32/gdkwindow-win32.c (gdk_window_beep): 
5136         * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): 
5137         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Add a function
5138         to beep on a window. For X11, implement this with
5139         XkbBell.  (#353455, Mariano Suárez-Alvarez)
5140         
5141 2006-08-29  Tor Lillqvist  <tml@novell.com>
5142
5143         Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x
5144         since 2.6 or 2.8. It's pointless to keep the Win9x code in here as
5145         it isn't being maintained anyway. If somebody is interested, it
5146         can always be found in older GTK+ versions, and in CVS.
5147
5148         * configure.in
5149         * acconfig.h
5150         * gdk/Makefile.am
5151         * gdk/win32/Makefile.am
5152         * gdk/win32/libie55uid.la
5153         * gdk/win32/gdkevents-win32.c: Remove the --with-ie55 configure
5154         switch and associated stuff. Active IMM and the <dimm.h> header
5155         was used for IM support on NT4 and Win9x. Win2k and later have IM
5156         support built-in.
5157
5158         * gdk/win32/gdkcursor-win32.c
5159         * gdk/win32/gdkdnd-win32.c
5160         * gdk/win32/gdkdrawable-win32.c
5161         * gdk/win32/gdkevents-win32.c
5162         * gdk/win32/gdkgc-win32.c
5163         * gdk/win32/gdkglobals-win32.c
5164         * gdk/win32/gdkkeys-win32.c
5165         * gdk/win32/gdkmain-win32.c
5166         * gdk/win32/gdkproperty-win32.c
5167         * gdk/win32/gdkselection-win32.c
5168         * gdk/win32/gdkwindow-win32.c: Remove the G_WIN32_IS_NT_BASED()
5169         and G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
5170         branches, and any variables or static functions used only by the
5171         Win9x branches.
5172
5173         * gdk/win32/gdkprivate-win32.h: Remove backup definitions for
5174         constants that aren't missing from current mingw and MSVC6
5175         headers.
5176
5177         * gdk/win32/gdkmain-win32.c
5178         * gdk/win32/gdkprivate-win32.h: Remove the _gdk_win32_gdi_failed()
5179         function. On NT-based Windows GetLastError() returns error codes
5180         also for failed GDI calls, so we can use _gdk_win32_api_failed()
5181         always.
5182
5183 2006-08-29  Emmanuele Bassi  <ebassi@gnome.org>
5184
5185         * gtk/gtkrecentchoosermenu.c
5186         (gtk_recent_chooser_menu_set_current_uri): Break when an item
5187         is found and activated. (#353449, based on a patch by Jan Arne
5188         Petersen)
5189
5190 Fri Jul 14 16:13:37 2006  Tim Janik  <timj@gtk.org>
5191
5192         * gtk/gtkprogressbar.c: introduced ::xspacing and ::yspacing style 
5193         properties which make all hardcoded padding and spacing values
5194         configurable. properly swap ::text-xalign treatment for RTL widgets.
5195
5196         * gtk/gtkprogress.c: fixed style property blurbs. made alignment 
5197         proeprty more consistent with GtkMisc alignment blurbs. mention
5198         RTL treatment for text-xalign.
5199
5200 Tue Aug 29 11:57:40 2006  Tim Janik  <timj@imendio.com>
5201
5202         * tests/testgtk.c: allow (most) windows to be resizable.
5203         added ellipsization settings to progress bars. 
5204
5205 2006-08-28  Matthias Clasen   <mclasen@redhat.com>
5206
5207         * modules/printbackend/cups/gtkprintbackendcups.c: Use a
5208         resonable timeout of 3 seconds when polling for printer
5209         list updates, instead of 300000 seconds...
5210
5211 2006-08-28  Michael Natterer  <mitch@imendio.com>
5212
5213         * gtk/gtktextbufferserialize.c (serialize_text): don't write out
5214         </apply_tag> for tags that have already been closed by the logic
5215         which turns overlapping spans into XML-able trees. Fixes broken
5216         XML when there are overlapping tags in the buffer. Also free two
5217         leaked GLists and did some cleanup.
5218
5219         * tests/Makefile.am
5220         * tests/testrichtext.c: new test which creates randomly tagged
5221         GtkTextBuffers and serializes/deserializes them.
5222
5223 2006-08-26  Matthias Clasen  <mclasen@redhat.com>
5224
5225         * gtk/gtkstatusicon.c (gtk_status_icon_reset_image_data): 
5226         Don't leak pixbufs.  (#352264, Ross Burton)
5227
5228         * gtk/gtklinkbutton.c (set_link_underline): Don't leak
5229         PangoAttributes.  (#352391, Paolo Borelli)
5230
5231 2006-08-25  Matthias Clasen  <mclasen@redhat.com>
5232
5233         * demos/gtk-demo/Makefile.am:
5234         * demos/gtk-demo/textscroll.c: Add an example of automatic
5235         scrolling, thanks to Yevgen Muntyan.  (#351206)
5236         
5237         * gtk/gtkmodules.c (find_module): Use local binding when
5238         loading modules.  (#351868)
5239
5240 2006-08-24  Michael Natterer  <mitch@imendio.com>
5241
5242         * gdk/quartz/gdkdisplay-quartz.c (gdk_display_get_name): return
5243         the hostname instead of NULL.
5244
5245 2006-08-23  Matthias Clasen  <mclasen@redhat.com>
5246
5247         * gtk/gtkprinteroptionwidget.[hc]: Fix confusion about
5248         names and values in comboboxes, and clean up some
5249         coding style issues.
5250
5251 2006-08-23  Tor Lillqvist  <tml@novell.com>
5252
5253         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
5254         Revert unintended translatable string addition. Use same string
5255         in GError as in gtkfilesystemunix.c.
5256
5257         * gtk/gtkfilesystemwin32.c (_gtk_file_system_win32_path_compare):
5258         Fix logic at the end of strings. 
5259
5260         * gtk/gtkfilesystemwin32.c: Maintain a hash table of live
5261         handles and check that we have no outstanding handles at
5262         finalization time. (Copying what Matthias did for
5263         gtkfilesystemunix.c)
5264
5265 2006-08-23  Matthias Clasen  <mclasen@redhat.com>
5266
5267         * gtk/gtkfilesystemunix.c: Maintain a hash table
5268         of live handles and check that we have no outstanding
5269         handles at finalization time. (Copying what
5270         Federico did for gtkfilesystemgnomevfs.c)
5271
5272 2007-08-22  Matthias Clasen  <mclasen@redhat.com> 
5273
5274         * Branch for 2.10
5275