]> Pileus Git - ~andy/gtk/blob - ChangeLog
ac222341f476240323a3bb25588d4566f1435ef5
[~andy/gtk] / ChangeLog
1 2007-02-05  Michael Natterer  <mitch@imendio.com>
2
3         * gtk/gtksettings.c: add new boolean settings gtk-enable-accels
4         and gtk-enable-mnemonics which enable/disable accelerators and
5         mnemonics (bug #72375, based on a patch from Tommi Komulainen).
6
7         * gtk/gtkwindow.c (gtk_window_activate_key)
8         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): don't invoke them
9         if the resp. setting is FALSE.
10
11         * gtk/gtkaccellabel.c (gtk_accel_label_refetch)
12         * gtk/gtklabel.c (gtk_label_set_pattern_internal): don't display
13         them if the setting is FALSE.
14
15         * gtk/gtklabel.c: added signal connection to the screen's settings
16         object and traverse all widgets on the screen when the setting
17         changes. It's slightly ugly to also update GtkAccelLabels here,
18         but less ugly than connecting and traversing all widgets twice.
19
20 2007-02-05  Michael Natterer  <mitch@imendio.com>
21
22         * gtk/gtktextbuffer.h (enum GtkTextBufferTargetInfo): changed
23         values from G_MAXUINT-0, -1, -2 to -1, -2, -3 so we stay within
24         ansi C enum value limits. Fixes bug #46757.
25
26 2007-02-03  Soren Sandmann <sandmann@daimi.au.dk>
27
28         * gtk/gtksequence.[ch]: Remove these files since GSequence has
29         been moved into GLib.
30
31         * gtk/gtkliststore.c: Port to GSequence instead of GtkSequence.
32
33         * configure.in: Require glib-2.13.0
34         
35 2007-02-04  Tor Lillqvist  <tml@novell.com>
36
37         * gdk/win32/gdkcursor-win32.c: Don't define BITMAPV5HEADER on
38         mingw with w32api >= 3.8, which has it in wingdi.h. (#403896)
39
40 2007-02-02  Kristian Rietveld  <kris@gtk.org>
41
42         * gtk/gtktreeview.c (gtk_tree_view_row_changed): remove unused
43         style_get of vertical-separator. (#403165, Chris Wilson).
44
45 2007-02-02  Christian Persch  <chpe@svn.gnome.org>
46
47         * gtk/gtkfilechoosersettings.c: (get_config_filename),
48         (ensure_settings_read), (_gtk_file_chooser_settings_init),
49         (_gtk_file_chooser_settings_set_show_hidden),
50         (_gtk_file_chooser_settings_set_expand_folders),
51         (_gtk_file_chooser_settings_save): Use a simple key file instead of a
52         markup file. Bug #399592.
53
54 2007-02-02  Mariano Suárez-Alvarez  <mariano@gnome.org>
55
56         * gtk/gtkcellrenderertext.c(gtk_cell_renderer_text_class_init):
57         be a little more helpful with the docs on GtkCellRendererText:alignment.
58         Bug #403409.
59
60 2007-02-01  Michael Natterer  <mitch@imendio.com>
61
62         * gtk/gtkmenu.c (gtk_menu_paint): pass &event->area to
63         gtk_paint_box() calls.
64
65 2007-02-01  Michael Natterer  <mitch@imendio.com>
66
67         * gtk/gtkmenu.c (gtk_menu_button_press)
68         (gtk_menu_button_release)
69         (gtk_menu_button_scroll): remove redundant and confusing
70         if (GTK_IS_MENU (widget)) checks because "widget" is always a
71         GtkMenu here.
72
73 Thu Feb  1 12:22:06 2007  Tim Janik  <timj@imendio.com>
74
75         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): remove extra reference
76         that gtkcombobox keeps on priv->popup_widget if it's a tree view.
77
78 2007-01-31  Christian Persch  <chpe@svn.gnome.org>
79
80         * gtk/gtkaboutdialog.c: (update_credits_button_visibility),
81         (gtk_about_dialog_set_authors), (gtk_about_dialog_set_documenters),
82         (gtk_about_dialog_set_artists),
83         (gtk_about_dialog_set_translator_credits): Hide the Credits button iff
84         there are no credits to show. Bug #402806.
85
86 2007-01-31  Tor Lillqvist  <tml@novell.com>
87
88         * gdk/win32/gdkinput-win32.c (print_cursor): New debugging
89         function.
90         (_gdk_input_wintab_init_check): Call it when debugging output is
91         requested.
92         (_gdk_input_wintab_init_check): Skip duplicated cursors for Wacom
93         tablets. The Wacom driver reports duplicated cursors with
94         physid==0. Fix verified by Robert Ögren.
95
96 2007-01-30  Felix Riemann  <friemann@svn.gnome.org>
97
98         * modules/printbackends/file/gtkprintbackendfile.c:
99         (file_printer_get_options): Fix leaked string. Fixes bug #402565.
100
101 2007-01-30  Matthias Clasen  <mclasen@redhat.com>
102
103         * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
104         (gdk_x11_window_set_user_time): Be more careful about toplevel
105         possibly being NULL.  (#402453, Sebastian Bacher)
106
107 Tue Jan 30 12:09:56 2007  Tim Janik  <timj@gtk.org>
108
109         * gtk/gtksettings.c: cleaned up ::color-hash registration to not abuse
110         class_n_properties and leave an uninitialized value array behind.
111
112 2007-01-29  Michael Natterer  <mitch@imendio.com>
113
114         * gtk/gtkmenuitem.c (gtk_menu_item_select)
115         (gtk_menu_item_deselect): queue a draw on the parent_menu_item of
116         this menu item's menu, to enable themeing menu items depending on
117         whether something is selected in their submenu (patch taken from
118         maemo-gtk).
119
120 2007-01-28  Matthias Clasen  <mclasen@redhat.com>
121
122         * gtk/gtktoolbar.c: Reinstate gtk_toolbar_content_new_compatibility()
123         that was mistakenly "cleaned up" a while ago. Also
124         revert a problematic change to the screen_changed
125         handler.  (#401598, Søren Sandmann)
126
127 2007-01-28  Matthias Clasen  <mclasen@redhat.com>
128
129         * gtk/gtkframe.c (gtk_frame_size_allocation): Fix a 
130         problem with large y thickness.  (#136592, Xan Lopez)
131
132 2007-01-28  Matthias Clasen  <mclasen@redhat.com>
133
134         * gtk/gtkaction.c (gtk_action_new): Use canonical
135         property names.  
136
137 2007-01-27  Matthias Clasen  <mclasen@redhat.com>
138
139         * gtk/gtknotebook.c (gtk_notebook_draw_arrow):
140         (gtk_notebook_draw_focus): Avoid some unnecessary 
141         gtk_widget_get_style() calls.
142
143 2007-01-27  Matthias Clasen  <mclasen@redhat.com>
144
145         * gtk/gtktoolbar.c:
146         * gtk/gtktoolitem.c:
147         * gtk/gtktoolbutton.c: Rearrange things so that setting
148         multiple properties causes not more than a single 
149         reconstruction of the contents.
150
151         * gtk/gtkaction.c (connect_proxy): Set all tool button 
152         properties in one go.
153
154 2007-01-27  Matthias Clasen  <mclasen@redhat.com>
155
156         * gtk/gtkstatusicon.c:
157         * gtk/gtktrayicon-x11.c: Fix GtkStatusIcon to not
158         take up space on the panel if it is invisible.  (340110, Christian
159         Persch)
160
161         * tests/teststatusicon.c:
162         * tests/Makefile.am: Updates
163
164 2007-01-27  Matthias Clasen  <mclasen@redhat.com>
165
166         * gtk/gtkfilesel.h:
167         * gtk/gtkrc.h:
168         * gtk/gtk.symbols: Add deprecation guards for gtk_rc_style_ref/unref
169         and the old file selector.  (#348256)
170
171 2007-01-26  Matthias Clasen  <mclasen@redhat.com>
172
173         * gtk/gtkiconview.c: Documentation fixes (#400530, Anders Brander)
174
175 2007-01-26  Matthias Clasen  <mclasen@redhat.com>
176
177         * gtk/updateiconcache.c: Check the mtime of all directories,
178         not just the toplevel, if ftw() is available.  (#331671, Behdad
179         Esfahbod)
180
181         * configure.in: Check for ftw.h.
182
183 2007-01-26  Michael Natterer  <mitch@imendio.com>
184
185         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
186         destroy the XIM only if it exists. While the code does look safe
187         in general, there can be corner cases where the "reconnecting"
188         boolean being FALSE does not correspond to the XIM being
189         allocated (fixes #329450, fix taken from maemo-gtk).
190
191 Fri Jan 26 13:07:07 2007  Tim Janik  <timj@imendio.com>
192
193         * gtk/gtkstyle.c (draw_insertion_cursor): clamp cursor coordinates to
194         window bounds (fix from Maemo Gtk).
195
196 2007-01-26  Michael Natterer  <mitch@imendio.com>
197
198         * gtk/gtkentrycompletion.c (gtk_entry_completion_insert_prefix):
199         only block/unblock completion->priv->insert_text_id if it is
200         actually connected. While this can't happen the way GtkEntry
201         itself uses the completion, it's still public API and should not
202         blindly call functions that will spit warnings (fix taken from
203         maemo-gtk).
204
205 2007-01-25  Matthias Clasen  <mclasen@redhat.com>
206
207         * gdk/gdkwindow.c: Reduce locking overhead by not repeatedly getting
208         the paintable iface.  
209
210 2007-01-24  Michael Natterer  <mitch@imendio.com>
211
212         * gtk/gtkwidget.c (gtk_widget_set_state): revert generic disabling
213         of PRELIGHT state for the reasons given in bug #135666. Widget
214         states are sometimes abused or otherwise used wrongly for historic
215         reasons, causing this part of the patch to break e.g. menu items.
216
217 2007-01-24  Roozbeh Pournader  <roozbeh@farsiweb.info>
218
219         * README: Remove mention of no-longer-existing PATCH
220         keyword in bugzilla. (#396899)
221
222 2007-01-23  Carlos Garcia Campos  <carlosgc@gnome.org>
223
224         * gtk/gtkpagesetup.c
225         (gtk_page_setup_set_paper_size_and_default_margins): Fix memory leak.
226         Fixes bug #399907. 
227
228 2007-01-22  Chris Wilson <chris@chris-wilson.co.uk>
229
230         Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
231
232         * gtk/gtkstyle.h:
233                 Cause gcc to issue a warning if the style returned from
234                 gtk_style_attach is not used. Failure to update
235                 widget->style causes some very difficult to reproduce bugs,
236                 eg Bug 353498 – crash in Terminal: changing icon theme.
237
238 2007-01-19  Michael Emmel  <mike.emmel@gmail.com>
239
240         * gdk/directfb/gdkevents-directfb.c: added fixes for window
241         crossing events frm Attilio Fiandrotti<attilio.fiandrotti@gmail.com>
242
243 2007-01-19  Matthias Clasen  <mclasen@redhat.com>
244
245         * gtk/gtkcalendar.c: Fix build breakage.
246
247 2007-01-19  Kristian Rietveld  <kris@imendio.com>
248
249         * gtk/gtktreeview.c (gtk_tree_view_motion_bin_window),
250         (add_scroll_timeout), (gtk_tree_view_drag_motion): factor out
251         add_scroll_timeout().  (taken from maemo-gtk).
252
253 2007-01-18  Matthias Clasen  <mclasen@redhat.com>
254
255         * gtk/gtkcalendar.c: Fix problems with the initial
256         focus in GtkCalendar.  (#397783, Vincent Untz)
257
258 2007-01-19  Robert Ögren  <gtk@roboros.com>
259
260         Fix for bug #143460 - missed tablet clicks on Windows
261
262         * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check):
263         Request absolute reporting of tablet button state, and cut down
264         the packet queue size a bit.
265         (_gdk_input_other_event): Change button state handling
266         accordingly. Also drop the no longer necessary code that detects
267         missed clicks/releases for button 1. The switch to absolute button
268         state should prevent missed events for all buttons. Additionally,
269         swap button 2 and 3.
270         (_gdk_input_grab_pointer): Don't reset button_state, that will only
271         cause a new press event as soon as the next tablet packet arrives.
272
273 2007-01-19  Tor Lillqvist  <tml@novell.com>
274
275         Build Wintab support always on Windows. Don't require the Wintab
276         SDK.
277
278         * configure.in: Drop the --with-wintab option. Drop the
279         HAVE_WINTAB feature test macro and Automake variable.
280
281         * acconfig.h
282         * config.h.win32.in: Drop HAVE_WINTAB.
283
284         * gdk/win32/gdkevents-win32.c
285         * gdk/win32/gdkinput.c
286         * gdk/win32/gdkinput-win32.h
287         * gdk/win32/gdkinput-win32.c
288         * gdk/win32/gdkmain-win32.c: Make HAVE_WINTAB ifdef blocks
289         unconditional.
290
291         * gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Try
292         to load wintab32.dll dynamically here. If it is found look up the
293         handful Wintab functions we use.
294         (rest of file): Use these function pointers instead of calling the
295         functions from wntab32x.lib. The code in wntab32x.lib did the same
296         thing anyway: tried to load wintab32.dll, and looked up the
297         addresses of the actual functions from it.
298
299         * gdk/Makefile.am
300         * gdk/win32/Makefile.am: Drop the libwntab32x hacks.
301
302         * gdk/win32/wintab.h
303         * gdk/win32/pktdef.h: New files. Copied from the Wintab
304         SDK. Copyright blurb says: "The text and information contained in
305         this file may be freely used, copied, or distributed without
306         compensation or licensing restrictions."
307
308         * README.win32: Update a bit. Remove the text about the Wintab
309         SDK.
310
311 2007-01-18  Tor Lillqvist  <tml@novell.com>
312
313         * gdk-pixbuf/Makefile.am
314         * gdk/Makefile.am
315         * gdk/win32/Makefile.am
316         * gtk/Makefile.am: Fixes for building outside srcdir on
317         Win32. (#336819, #340113) Drop distributing the handmade .la
318         libtool wrapper for the wntab32x library. It's too much trouble
319         making it work when building outside srcdir. Just link to the
320         library direcly using -Wl,win32/libwntab32x.a.
321
322 2007-01-18  Michael Natterer  <mitch@imendio.com>
323
324         * gtk/gtkcheckbutton.c
325         * gtk/gtkdnd.c
326         * gtk/gtkentry.c
327         * gtk/gtkmenu.c
328         * gtk/gtktreeview.c
329         * gtk/gtkviewport.c: pass more clip rectangles to gtk_paint_foo()
330         functions. Based on a patch from maemo-gtk (bug #398023).
331
332 2007-01-17  Tor Lillqvist  <tml@novell.com>
333
334         * gtk-zip.sh.in: Include also the COPYING file.
335
336 2007-01-17  Matthias Clasen  <mclasen@redhat.com>
337
338         * modules/printbackends/cups/gtkprintbackendcups.c: Don't use
339         httpGetFd() when building against cups 1.1
340
341 2007-01-17  Tor Lillqvist  <tml@novell.com>
342
343         Proper fix for #396175:
344
345         * gtk/gtkimmulticontext.c: Revert change by Hans Breuer below: Do
346         include gtkprivate.h. On Win32 we do want to use the redefinition
347         of GTK_LOCALEDIR as a call to the function _gtk_get_localedir().
348
349         * gtk/gtkimmodule.c: Instead, correct the prefix also on
350         simple_context_info.domain_dirname. Do the prefix corrections
351         always on Win32, not just when GTK_LIBDIR is defined. i.e., until
352         now they were done only in the autoconfiscated gcc builds. Hans
353         needs to make sure GTK_LIBDIR and GTK_LOCALEDIR are defined also
354         in MSVC builds now.
355         (correct_localedir_prefix): New function, like
356         correct_libdir_prefix(), but for GTK_LOCALEDIR, in case
357         GTK_LOCALEDIR is not a descendant of GTK_LIBDIR.
358         (gtk_im_module_initialize): Thus call correct_localedir_prefix()
359         on the domain_dirname instead of correct_libdir_prefix().
360         (_gtk_im_module_list): Call correct_localedir_prefix() on
361         simple_context_info.domain_dirname.
362
363 2007-01-16  Matthias Clasen  <mclasen@redhat.com>
364
365         * gtk/gtkrange.c (range_grab_remove): Queue a redraw when the
366         grab changes.  (#396470, Benjamin Berg)
367
368 2007-01-15  Emmanuele Bassi  <ebassi@gnome.org>
369
370         * gtk/gtkrecentchoosermenu.c: Ellipsize the menu items label
371         if they grow too much. (#357303)
372
373 2007-01-14  Matthias Clasen  <mclasen@redhat.com>
374
375         * gtk/gtkicontheme.c (theme_lookup_icon): When finding a matching
376         non-scalable dir, keep going and look for a closer match.
377         (#395830, Luca Ferretti)
378
379 2007-01-14  Christian Persch  <chpe@svn.gnome.org>
380
381         * gtk/gtkclipboard.c: (gtk_clipboard_set_text),
382         (gtk_clipboard_set_image): Use gtk_target_table_new_from_list and
383         gtk_target_table_free instead of duplicating the code. Bug #396493.
384
385 2007-01-13  Matthias Clasen  <mclasen@redhat.com>
386
387         * gtk/gtkuimanager.c: Don't crash if menu or toolbar
388         positions can't be found.  (#396161, Hans Breuer)
389
390 2007-01-13  Matthias Clasen  <mclasen@redhat.com>
391
392         * gtk/gtkselection.c (_gtk_selection_request): Plug 
393         memory leaks.  (#396160, Carlos Garcia Campos)
394
395 2007-01-13  Matthias Clasen  <mclasen@redhat.com>
396
397         * configure.in: Link libgtk against Xfixes.  (#396074,
398         Tommi Komulainen)
399
400 2007-01-13  Matthias Clasen  <mclasen@redhat.com>
401
402         * gtk/gtkradiobutton.c (gtk_radio_button_focus): Avoid
403         a compiler warning.  (#395045, Chris Wilson)
404
405 2007-01-13  Hans Breuer <hans@breuer.org>
406
407         * gtk/gtkprintoperation-win32.c : take the custom tab label from
408         gtk_print_operation_set_custom_tab_label() into account (bug #390746).
409
410         * gtk/gtkimmulticontext.c : don't include "gtkprivate.h" to avoid
411         differing definitions of GTK_LOCALEDIR (bug #396175).
412
413         * gtk/gtktreeview.c : use g_snprintf instead of snprintf, which is
414         not available everywhere
415
416         * gtk/makefile.msc.in : updated
417
418 2007-01-12  Michael Natterer  <mitch@imendio.com>
419
420         * gtk/gtkentry.c (gtk_entry_button_press): don't add
421         entry->scroll_offset to entry->drag_start_y. Fixes the entry
422         starting drags after ridiculously small mouse movements.
423
424 2007-01-11  Richard Hult  <richard@imendio.com>
425
426         * demos/gtk-demo/main.c: (load_file): Close the file after it's
427         loaded (bug #395316).
428
429 2007-01-11  Kjartan Maraas  <kmaraas@gnome.org>
430
431         * gtk/gtkfilesystemunix.c: (expand_tilde):
432         Make a single tilde go to $HOME in the location entry.
433         Patch from Yevgen Muntyan. Closes the gtk+ part of
434         bug #334168.
435
436 2007-01-10  Behdad Esfahbod  <behdad@gnome.org>
437
438         * gdk/gdkpango.c (gdk_draw_layout_with_colors):
439         * gtk/gtklabel.c (gtk_label_size_request):
440         Use pango_matrix_transform_rectangle(). (#340141)
441
442         * configure.in: Bump pango requirement to 1.15.3.
443
444 2007-01-10  Kristian Rietveld  <kris@imendio.com>
445
446         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init):
447         refactor to initialize indicator_size to TOGGLE_WIDTH instead
448         of the hardcoded value of 12.
449
450 2007-01-09  Matthias Clasen  <mclasen@redhat.com>
451
452         * configure.in: Fix the directfb cairo test. (#394855, 
453         Josselin Mouette)
454
455 2007-01-09  Behdad Esfahbod  <behdad@gnome.org>
456
457         * configure.in: Fix comment for --with-included-loaders.  That option
458         affects builds with module loading enabled too.
459
460 2006-01-08  Peter Teichman  <peter@novell.com>
461
462         * gtk/gtkfilechooserdefault.c:
463         * gtk/gtkfilechooserprivate.h:
464         * gtk/gtkfilechoosersettings.c:
465         * gtk/gtkfilechoosersettings.h:
466         Save the expanded state of the folder browser with the file
467         chooser settings.  Resolves the expander portions of (#153828,
468         Lemmit Kaplinski)
469
470 2007-01-08  Emmanuele Bassi  <ebassi@gnome.org>
471
472         * gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_create_item):
473         Don't leak the icon pixbuf after setting it to the image menu
474         item.  Found by Paolo Borelli.
475
476 2007-01-08  Matthias Clasen  <mclasen@redhat.com>
477
478         * gtk/gtktreemodel.c (gtk_tree_path_to_string): Don't 
479         corrupt memory when faced with paths with ridiculously
480         large indices. Found by the GTKVTS test suite.  
481
482 2007-01-08  Matthias Clasen  <mclasen@redhat.com>
483
484         * gtk/gtkmodules.c (_gtk_modules_init): Set 
485         default_display_opened before loading modules.  (#393102,
486         Brian Cameron)
487  
488 2007-01-07  Matthias Clasen  <mclasen@redhat.com>
489
490         * gtk/gtktextview.c (gtk_text_view_set_border_window_size):
491         Call text_window_realize() with the correct parameters.
492         (#393813, Yevgen Muntyan)
493
494 2007-01-07  Matthias Clasen  <mclasen@redhat.com>
495
496         * gtk/gtkstatusbar.c: Move docs inline, and expand them 
497         a bit.
498
499 2007-01-06  Matthias Clasen  <mclasen@redhat.com>
500
501         * gtk/gtklabel.c: Make line wrapping work with width-chars
502         and max-width-chars, and simplify the storage of wrap-width.
503         (#322580, Itai Bar-Haim)
504
505 2007-01-06  Tor Lillqvist  <tml@novell.com>
506
507         * gdk/win32/cursor.bdf: New file. Downloaded from
508         freedesktop.org's webcvs. Slighly edited cursors "crosshair",
509         "diamond_cross", "draft_large", "gobbler" and "target" to fix
510         #392504. It is possible that the same end result could have been
511         achieved by tweaking bdfcursor.c instead.
512         
513         * gdk/win32/bdfcursor.c: Add optional debugging output.
514
515         * gdk/win32/xcursors.h: Regenerated.
516
517 2007-01-05  Matthias Clasen  <mclasen@redhat.com>
518
519         * gtk/gtknotebook.c (gtk_notebook_set_menu_label_text): Left-align
520         menu labels.  (#393255, Michail Crayson)
521
522 2007-01-05  Kristian Rietveld  <kris@gtk.org>
523
524         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): handle tree
525         == NULL.  (Fixes #392685, reported by Yevgen Muntyan).
526
527 2007-01-05  Kristian Rietveld  <kris@gtk.org>
528
529         * gtk/gtktreeview.c (gtk_tree_view_row_changed): do allow to
530         invalidate nodes if the tree view is not realized. (#363147,
531         Carlos Garnacho, Miguel Cabrera).
532
533 2007-01-05  Matthias Clasen  <mclasen@redhat.com>
534
535         * gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into
536         account when drawing the background.  (#393166, Benjamin Berg)
537
538 2007-01-05  Behdad Esfahbod  <behdad@gnome.org>
539
540         * gtk/gtklabel.c (get_layout_location): Fix broken width computation,
541         again.
542
543 2007-01-05  Carlos Garnacho  <carlosg@gnome.org>
544
545         * gtk/gtknotebook.c (gtk_notebook_size_request): take into account
546         both scroll arrows when calculating size request in GTK_POS_LEFT or
547         GTK_POS_RIGHT notebooks. (#393124, reported by Christian Persch)
548
549 2007-01-05  Michael Natterer  <mitch@imendio.com>
550
551         * gtk/gtkwindow.c (gtk_window_key_release_event): chain up to
552         the right function (fix taken from maemo-gtk).
553
554 2007-01-05  Behdad Esfahbod  <behdad@gnome.org>
555
556         * gdk/gdkprivate.h:
557         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors),
558         (gdk_draw_layout_with_colors):
559         * gdk/gdkwindow.c (gdk_window_draw_glyphs_transformed):
560         Avoid overflow when converting coordinates to Pango units. (#332266,
561         Jody Goldberg)
562
563 2007-01-04  Matthias Clasen  <mclasen@redhat.com>
564
565         * gtk/gtkcombobox.c (gtk_combo_box_popup): move set_cursor
566         after realization of the popup window, so clamp node doesn't fail.
567         (#346616, Tommi Komulainen, patch by Kristian Rietveld).
568
569 2007-01-04  Behdad Esfahbod  <behdad@gnome.org>
570
571         * gtk/gtklabel.c (get_layout_location): Fix uninitialized width
572         variable.
573
574 2007-01-04  Matthias Clasen  <mclasen@redhat.com>
575
576         * gtk/Makefile.am:
577         * gdk-pixbuf/Makefile.am:
578         * configure.in:
579         * gdk/win32/rc/gdk.rc.in: Cross-compilation fixes.
580         (#392646, Yevgen Muntyan)
581
582 2007-01-04  Matthias Clasen  <mclasen@redhat.com>
583
584         * demos/gtk-demo/textscroll.c:
585         * gtk/gtkhandlebox.c:
586         * gtk/gtkcolorsel.c: Fix some compiler warnings.
587
588 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
589
590         * gtk/gtktextview.c: Rework the beep-on-uninserted-text
591         by calling the input method regardless of editability,
592         and beeping from the commit/preedit-changed handlers.
593         (#390514, Yevgen Muntyan)
594
595 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
596
597         Fix #332604, reported by Joe Wreschnig, patch
598         by Jan Arne Petersen and Behdad Esfahbod.
599
600         * gtk/gtklabel.c (gtk_label_size_allocate): Only
601         set the width of the layout when necessary.
602         (get_layout_location): Use pango_layout_get_pixel_extents()
603         instead of pango_layout_get_width().
604
605 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
606
607         * modules/printbackends/cups/gtkprintbackendcups.c 
608         (available_choices): Don't leak conflicts.
609
610         * gtk/gtkprintoperation.c (gtk_print_operation_finalize):
611         Don't leak the status string.
612
613 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
614
615         * gtk/gtkfilechooserdefault.c (update_chooser_entry):
616         Exit early if we can't get file info - this happens
617         if the iter points to the row where we are editing
618         the name for a newly created folder.  (#392191, Michael
619         Partridge, patch by Kristian Rietveld)
620
621 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
622
623         * gtk/*.c:
624         * gdk/x11/*.c: Apply a patch by Chris Wilson to
625         avoid spurious valgrind warnings from XSendEvent() 
626         calls.  (#392532)
627
628         * modules/printbackends/cups/gtkprintbackendcups.c: Close
629         the http connection after getting the PPD.
630
631         * gtk/gtkprinteroptionwidget.c (filesave_changed_cb):
632         Fix memory leaks.  
633
634 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
635
636         * gtk/gtkassistant.c (remove_page): If the current page
637         is removed, always pick a different one.  (#392457, 
638         Colin Watson)
639
640 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
641
642         * modules/printbackend/cups/*.c: Coding style cleanups.
643
644 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
645
646         * configure.in: Export SED to make sourcing of
647         libtool work. Tighten up the directfb pkgconfig check.
648
649 2007-01-03  Michael Natterer  <mitch@imendio.com>
650
651         * gtk/gtkstyle.c (option_menu_get_props)
652         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Use 
653         gtk_border_free when freeing borders.
654
655 2007-01-03  Matthias Clasen  <mclasen@redhat.com>
656
657         * gtk/gtkentry.c (get_text_area_size): Work when the
658         entry is not realized.  (#392315, Yevgen Muntyan)
659
660         * gtk/gtkentry.c (gtk_entry_queue_draw): Use 
661         GTK_WIDGET_DRAWABLE() here.  (#392227, Chris Wilson)
662
663         * gtk/gtkentry.c (cursor_blinks): Don't get settings
664         unnecessarily.  (#392227)
665
666 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
667
668         * gtk/gtkwindow.c (gtk_window_move_resize): Only process
669         updates on the window at hand, not on all windows, to
670         avoid violating resize/redraw ordering constraints.
671         (#362406, Owen Taylor)
672         
673 2007-01-03  Kristian Rietveld  <kris@gtk.org>
674
675         * gtk/gtkcellrendererprogress.c
676         (gtk_cell_renderer_progress_class_init): fix docs.
677
678 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
679         
680         * gtk/updateiconcache.c: Include locale.h
681
682 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
683
684         * gtk/updateiconcache.c (main): Call setlocale().
685
686         * gtk/gtkfilesel.c:
687         * gtk/gtkfilesystemunix.c:
688         * gtk/gtkfilesystemwin32.c:
689         * gtk/gtkfilechoosersettings.c:
690         * gtk/updateiconcache.c: Consistently use folder instead of
691         directory in translated messages.  (#344584, Javier F. Serrador)
692
693 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
694
695         Try to fix #315732, reported by Luke Hutchinson:
696
697         * gdk/x11/xsettings-client.[hc]:
698         * gdk/x11/gdkdevents-x11.c: Don't assume that ref'ing a GdkWindow
699         will guarantee that it can be looked up in the xid hash later.
700         Also, use the nesting server grab function during the xsettings
701         client initialization. Finally, make xsettings client not
702         eat DestroyNotifys so that GDK can do its regular cleanup. 
703
704 2007-01-02  Michael Natterer  <mitch@imendio.com>
705
706         * gtk/gtkrange.c (gtk_range_scroll) (gtk_range_move_slider): beep
707         when a keybinding didn't change adjustment->value.
708
709 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
710
711         * gtk/gtktextbuffer.c (gtk_text_view_key_press_event):
712         Try harder not to beep on events which are not meant to
713         insert stuff in the buffer.  (#390514, Yevgen Muntyan) 
714
715 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
716
717         * gtk/gtktextbufferrichtext.c: Small documentation fixes.
718
719 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
720
721         * gtk/gtkentry.c (get_text_area_size): Center in the frame.  
722         (#304482, Rob Staudinger, patch by  Richard Stellingwerff)
723
724 2007-01-02  Michael Emmel  <mike.emmel@gmail.com>
725
726         * gdkwindow-directfb.c: fixed leak of dfb resource on destroy 
727
728 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
729
730         * gtk/gtkscrolledwindow.h:
731         * gtk/gtkscrolledwindow.c: Only handle key bindings
732         for scrolling if the scrollbars are visible.
733         (#340135, Christian Persch)
734
735 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
736
737         * gtk/gtktextview.c (gtk_text_view_scroll_hpages):
738         Don't segfault on horizontal scrolling.  
739
740 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
741
742         * gtk/gtknotebook.h:
743         * gtk/gtknotebook.c: Only handle key bindings for
744         tab reordering if the tabs are shown and reorderable. 
745         (#390468, Yevgen Muntyan)
746
747         * gtk/gtkmarshalers.list: Add required marshaler
748
749 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
750
751         * gtk/gtkcontainer.c (gtk_container_class_list_child_properties):
752         Mention in the docs that the return value is
753         NULL-terminated.  (#383373, Christian Neumair)
754
755 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
756
757         * gtk/gtkicontheme.c (load_themes): Waste less time
758         with non-directories.  (#391725, Chris Wilson)
759
760 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
761
762         * gtk/gtkcellrendererprogress.c: Implement activity mode
763         for GtkCellRendererProgress.  (#377851, Brad Taylor)
764
765 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
766
767         Fix some IPP compliance issues.  (#391523, Albrecht Dress)
768
769         * modules/printbackends/cups/gtkcupsutils.c
770         (gtk_cups_request_encode_option): Use IPP_TAG_JOB, not
771         IPP_TAG_OPERATION.
772         * modules/printbackends/cups/gtkprintbackendcups.c
773         (gtk_print_backend_cups_print_stream): Don't add the
774         requesting-user-name attribute a second time. 
775
776 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
777
778         * gtk/gtkimcontextsimple.c: Fix en/em dash confusion.  (#378462)
779
780 2006-12-31  Emmanuele Bassi  <ebassi@gnome.org>
781
782         * gtk/gtkrecentchoosermenu.c (set_recent_manager): Use the
783         right object when disconnecting from the GtkRecentManager::changed
784         signal; save us a few indirections using a variable.
785
786 2006-12-31  Emmanuele Bassi  <ebassi@gnome.org>
787
788         * gtk/gtkrecentchoosermenu.c: Move the signal and idle
789         disconnections into the dispose function, as well as the
790         object unrefs; reset every handler id and the
791         pointers. (suggested by Paolo Borelli, #390873)
792
793 2006-12-31  Matthias Clasen  <mclasen@redhat.com>
794
795         * gtk/gtkprintoperation-win32.c: Include windows.h (#391229,
796         Kazuki Iwamoto)
797
798 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
799
800         * gtk/gtktextview.c (gtk_text_view_destroy): Remove the
801         scroll timeout.  (#390872, Yevgen Muntyan)
802
803 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
804
805         * gtk/gtkprintoperation-unix.c:
806         * gtk/gtkprintbackend.c:
807         * gtk/gtkfilechooserdefault.c:
808         * gtk/gtksettings.c: Move a few settings to gtksettings.c
809         to make sure they show up in the docs.  (#365364, Christian
810         Persch)
811
812 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
813
814         * gtk/gtkassistant.c: Redraw assistant on reallocate
815         to avoid rendering glitches.  (#343956, Christian
816         Persch, Carlos Garnacho)
817
818 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
819
820         * gtk/gtkrange.c: Typo fix.  (#352121, Clytie Siddall)
821
822 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
823
824         * gtk/gtkaction.c: Improve the docs of the "label" 
825         property.  (#341730, Kristof Vansant)
826
827 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
828
829         * gtk/gtkwindow.c (gtk_window_compute_configure_request_size):
830         Correctly handle min size. (#320465, Philipp Langdale)
831
832 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
833
834         * gtk/prop-editor.c: Implement editing of flags.
835
836 2006-12-30  Matthias Clasen  <mclasen@redhat.com>
837
838         * gtk/gtkentry.c:
839         * gtk/gtklabel.c:
840         * gtk/gtkpaned.c:
841         * gtk/gtkstatusbar.c:
842         * gtk/gtktextview.c: Don't install cursors on insensitive
843         widgets.  (#358864, Jan Schampera)
844
845 2006-12-29  Matthias Clasen  <mclasen@redhat.com>
846
847         * gtk/gtkrecentmanager.h:
848         * gtk/gtkprintoperation.c: Fix doc typos.  (#370909,
849         Shiino Yuki)
850
851         * gtk/gtkstyle.c (gtk_style_attach): Clarify docs.  (#353423,
852         Christian Persch)
853
854         * gtk/gtkentry.c (blink_cb):
855         * gtk/gtktextview.c (blink_cb): Don't die in an assertion
856         if focus went missing. Just warn, clean up and continue.
857         (#374378)
858
859 2006-12-29  Carlos Garnacho  <carlosg@gnome.org>
860
861         * gtk/gtknotebook.c (gtk_notebook_scroll): return if the widget that
862         originally received the event is a notebook page. (#315440, reported
863         by Mateusz Stefek)
864
865 2006-12-29  Matthias Clasen  <mclasen@redhat.com>
866
867         * gdk/gdkcolor.c (gdk_color_hash): Fix a typo. (#390613,
868         Paolo Borelli)
869
870 2006-12-29  Matthias Clasen  <mclasen@redhat.com>
871
872         * tests/prop-editor.c: Display children of containers
873         and cell renderers of cell layouts.
874
875         * gtk/gtk.symbols:
876         * gtk/gtkcelllayout.[hc] (gtk_cell_layout_get_cells):
877         New function to get the cell renderers of a cell layout.
878
879         * gtk/gtktreeviewcolumn.c:
880         * gtk/gtkcellview.c:
881         * gtk/gtkiconview.c: Implement get_cells.
882
883 2006-12-28  Matthias Clasen  <mclasen@redhat.com>
884
885         * gtk/gtkiconview.c: Use word wrapping by default, and
886         center multiline labels.  (#318763, Ross Burton)
887
888         * gtk/gtkcellrenderertext.c (get_layout): Remove a special
889         case for single-line layouts.
890
891 2006-12-28  Matthias Clasen  <mclasen@redhat.com>
892
893         * gtk/gtkarrow.c: Fix a typo in the docs.  (#390423,
894         David Lodge)
895
896         * gtk/gtkuimanager.c (update_node): Only use the results
897         of find_menu/toolbar_position() if they succeed. May fix
898         bug #388041.
899
900 2006-12-28  Matthias Clasen  <mclasen@redhat.com>
901
902         * gdk/gdk.c: Fix some formatting errors in docs.  
903
904 2006-12-28  Tor Lillqvist  <tml@novell.com>
905
906         * gtk/gtkstatusicon.c (gtk_status_icon_finalize)
907         (gtk_status_icon_update_image): Don't leak HICONs on
908         Win32. (#364868, Hiroyuki Yamamoto)
909
910 2006-12-28  Carlos Garnacho  <carlosg@gnome.org>
911
912         Make GtkNotebook able to drop detached tabs anywhere. Bug #360225.
913
914         * gtk/gtkwidget.c (gtk_widget_class_init): add "drag-failed" signal.
915         * gtk/gtkmarshalers.list: add new marshaler definition.
916         * gtk/gtkenums.h: add GtkDragResult enum.
917
918         * gtk/gtkdnd.c (gtk_drag_drop_finished): emit "drag-failed" if DND
919         operation wasn't successful.
920         (_gtk_drag_source_handle_event) (gtk_drag_drop)
921         (gtk_drag_selection_get) (gtk_drag_cancel) (gtk_drag_key_cb)
922         (gtk_drag_grab_broken_event_cb) (gtk_drag_grab_notify_cb)
923         (gtk_drag_button_release_cb) (gtk_drag_abort_timeout): tell
924         gtk_drag_drop_finished() the operation result.
925
926         * gtk/gtknotebook.c (gtk_notebook_drag_failed): new function.
927         (gtk_notebook_drag_data_get): do not call window creation hook here.
928         (gtk_notebook_init): do not set "application/x-rootwindow-drop"
929         target, instead connect to "drag-failed".
930         (gtk_notebook_draw_focus): fix potential crasher if cur_page is NULL.
931
932 2006-12-28  Mikael Hallendal  <micke@imendio.com>
933
934         * gdk/quartz/gdkevents-quartz.c: Factored out the event loop 
935         integration into gdkeventloop-quartz.c.
936
937         * gdk/quartz/Makefile.am: Added gdkeventloop-quartz.c
938
939         * gdk/quartz/gdkeventloop-quartz.c: New file containing the event loop 
940         integration.
941
942 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
943
944         * modules/printbackends/lpr/gtkprintbackendlpr.c 
945         (gtk_print_backend_lpr_print_stream): Close the io channel
946         on unref.  (#390159, Joe Markus Clarke)
947
948 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
949
950         * gdk/gdk.h: Remove redundant declarations (#390097,
951         Christian Persch)
952
953 2006-12-27  Kristian Rietveld  <kris@gtk.org>
954
955         Support inverting arrows via XSetting. (#377979, Yevgen Muntyan).
956
957         * gtk/gtksettings.c (gtk_settings_class_init): add new setting
958         gtk-alternative-sort-arrows.
959
960         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): add
961         new setting.
962
963         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: set new
964         gtk-alternative-sort-arrows setting to true.
965
966         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
967         invert direction if gtk-alternative-sort-arrows is TRUE.
968
969 2006-12-27  Tor Lillqvist  <tml@novell.com>
970
971         * gtk/gtk.symbols: Add gtk_status_icon_get_screen and
972         gtk_status_icon_set_screen.
973
974         * gtk/gtkstatusicon.c: Implement gtk_status_icon_position_menu()
975         on Windows. Keep track of where the last button click on the
976         taskbar icon took place, and return that. Obviously not correct if
977         no button has ever been clicked on the icon, or if the geometry of
978         the taskbar has changed since. But for most use cases where a menu
979         is going to be displayed as a direct result of a button click on
980         the status icon, works fine. (#377349)
981
982         Implement getting the orientation property on Windows.
983
984         (gtk_status_icon_embedded_changed)
985         (gtk_status_icon_orientation_changed): Ifdefify these functions
986         that are used only on X11.
987
988 2006-12-27  Tor Lillqvist  <tml@novell.com>
989
990         * gtk/gtkfilesystemwin32.c (execute_callbacks): Fix
991         typo. (#390035, Kazuki Iwamoto)
992
993 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
994
995         * gtk/gtkcellview.c (gtk_cell_view_set_model): Accept NULL.
996
997         * gtk/gtkcombobox.c (gtk_combo_box_set_model):
998         (gtk_combo_box_unset_model): Handle repeated unsetting
999         of models without warnings.  (#367529, Robert Ancell)
1000
1001 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
1002
1003         * modules/printbackends/cups/gtkcupsutils.c: 
1004         * modules/printbackends/cups/gtkprintbackendcups.c: Use
1005         getters for http fields where available.  (#364866, 
1006         Björn Lindqvist)
1007
1008 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
1009
1010         * gtk/gtkwidget.c (gtk_widget_show): Add a g_return_if_fail.
1011         (#362614, Xan Lopez)
1012
1013 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
1014
1015         * gtk/gtkuimanager.c (update_node): If a required action
1016         is missing, don't recurse over the children.  (#349119,
1017         Chris Moller)
1018
1019 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
1020
1021         Fix a few problems with nested menus in comboboxes
1022         (#386694, Yevgen Muntyan)
1023
1024         * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Always
1025         connect the activate callback.
1026         (gtk_combo_box_menu_item_activate): Do nothing if called on
1027         an item with a submenu.
1028         (gtk_combo_box_menu_row_deleted): Remove a submenu when it
1029         is empty.
1030
1031 2006-12-26  Mariano Suárez-Alvarez  <mariano@gnome.org>
1032
1033         * gtk/gtkfilechooserbuuton.[hc]: Add a file-set signal to the
1034         filechooser button. Bug 353196.
1035
1036 2006-12-26  Kristian Rietveld  <kris@gtk.org>
1037
1038         * gtk/gtktreeview.c (gtk_tree_view_search_init): fix typo causing
1039         the search dialog timeout never to be refreshed. (#389581,
1040         Andrzej Szombierski).
1041
1042 2006-12-26  Kristian Rietveld  <kris@gtk.org>
1043
1044         Lots of scrolling fixes.  Made scrolling work properly in not fully
1045         validated tree views; fixed a bunch of corner cases.
1046
1047         * gtk/gtktreeview.c (validate_visible_area): if a row's dy is past
1048         upper - page_size, we know it is located at the end so the test for
1049         dy + height has been dropped.
1050         In the same case if area_below < 0, we know this is the last node
1051         in the tree view so area_above is page_size - height of this row.
1052         (validate_visible_area): got rid of subtracting new_height -
1053         old_height from area_{below,above}, it didn't make any sense at
1054         all and the full height of the row should be subtracted instead.
1055         (validate_visible_area): when scrolling to a given path, set the
1056         top row directly together with the dy offset, then sync that top_row
1057         to the dy.
1058         (gtk_tree_view_set_top_row): new function to directly set a top_row.
1059         (gtk_tree_view_dy_to_top_row): refactored to use
1060         gtk_tree_view_set_top_row().
1061         (gtk_tree_view_top_row_to_dy): make sure dy >= 0 when done.
1062         (gtk_tree_view_adjustment_changed): only update our dy and
1063         top_row if the adjustment's dy actually changed.
1064
1065 2006-12-26  Christian Persch  <chpe@cvs.gnome.org>
1066
1067         * gtk/gtknotebook.c: (gtk_notebook_real_insert_page):
1068         Return the correct value from gtk_notebook_insert_page if the
1069         page-added handler reorders the tabs. Bug #345094.
1070
1071 2006-12-26  Carlos Garnacho  <carlosg@gnome.org>
1072
1073         Fix small regressions in GtkNotebook tab detaching. Bug #378852.
1074
1075         * gtk/gtknotebook.c (gtk_notebook_do_arrow): grab focus to allow tabs
1076         scrolling when hovering with a detached tab.
1077         (gtk_notebook_stop_reorder): Do not deparent the wrong tab if the
1078         focus tab has changed during a tab DND operation.
1079         (gtk_notebook_drag_end): ensure that the dropped tab gets focused.
1080         (gtk_notebook_paint): do not take cur_page as a reference to paint the
1081         box if it's detached.
1082         (gtk_notebook_calculate_tabs_allocation): focus_tab may be different
1083         to the detached tab if we hover the arrows during a tabs detaching 
1084         operation, do not allocate it unconditionally in 0,0.
1085
1086 2006-12-26  Carlos Garnacho  <carlosg@gnome.org>
1087
1088         Expose improvements for GtkNotebook. Bug #383435
1089
1090         * gtk/gtknotebook.c (gtk_notebook_expose): propagate the event to tab
1091         labels.
1092         (gtk_notebook_draw_focus): do not repaint the whole focused tab again.
1093         (gtk_notebook_draw_tab): do not send handmade expose events to tab
1094         labels.
1095
1096 2006-12-26  Matthias Clasen  <mclasen@redhat.com>
1097
1098         * gtk/gtkfilesystemunix.c (execute_callbacks): Return
1099         FALSE.  (#389623, Carlos Garnacho Parro)
1100
1101         * gtk/gtkrange.c (stop_scrolling): Avoid spurious
1102         redraws.
1103
1104 2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
1105
1106         * gtk/gtkplug.c: (gtk_plug_construct_for_display),
1107         (gtk_plug_unrealize): Notify the "embedded" property also on
1108         normal construction and when destroying the socket window.
1109         Bug #388738.
1110
1111 2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
1112
1113         * gtk/gtkaboutdialog.c: (gtk_about_dialog_class_init),
1114         (gtk_about_dialog_init), (display_credits_dialog),
1115         (display_license_dialog):
1116         * gtk/gtkfilechooserdialog.c: (gtk_file_chooser_dialog_class_init),
1117         (gtk_file_chooser_dialog_init),
1118         (gtk_file_chooser_dialog_constructor),
1119         (gtk_file_chooser_dialog_unmap):
1120         * gtk/gtkrecentchooserdefault.c:
1121         (_gtk_recent_chooser_default_init):
1122         * gtk/gtkrecentchooserdialog.c:
1123         (gtk_recent_chooser_dialog_class_init),
1124         (gtk_recent_chooser_dialog_init),
1125         (gtk_recent_chooser_dialog_constructor),
1126         (gtk_recent_chooser_dialog_unmap): Set the HIG spacings directly
1127         instead of using style-set handlers. Fix the filechooser's spacing
1128         between content and action area to 12px. Bug #372447.
1129
1130 2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
1131
1132         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate):
1133         Don't assume statusbar->label is the statusbar's frame's child when
1134         shrinking the size allocation when the grip is shown. Bug #372452.
1135
1136 2006-12-25  Christian Persch  <chpe@cvs.gnome.org>
1137
1138         * gtk/gtkpagesetupunixdialog.c: (printer_status_cb),
1139         (add_custom_paper): Fix mem leaks. Bug #389194.
1140
1141 2006-12-24  Matthias Clasen  <mclasen@redhat.com>
1142
1143         * gtk/gtktextutil.c: Remove debug output.
1144
1145         * gtk/gtktextview.c: Improve the DND scrolling
1146         behaviour.  (#92387, Carlos Garnacho Parro)
1147
1148         * gtk/gtkaccellabel.c: Improve translators comments.  
1149         (#389298, Christian Persch)
1150
1151 2006-12-24  Bastien Nocera  <hadess@hadess.net>
1152
1153         * gtk/gtkrecentmanager.c: Fix typo (s/expansive/expensive)
1154         (#389183)
1155
1156 2006-12-24  Christian Persch  <chpe@cvs.gnome.org>
1157
1158         * docs/reference/gtk/gtk-sections.txt:
1159         * gtk/gtk.symbols:
1160         * gtk/gtkpagesetupunixdialog.c: (fill_paper_sizes_from_printer):
1161         * gtk/gtkprinter-private.h:
1162         * gtk/gtkprinter.c: (gtk_printer_list_papers):
1163         * gtk/gtkprinter.h: Make gtk_printer_list_papers public. Bug #345587.
1164
1165 2006-12-24  Carlos Garcia Campos  <carlosgc@gnome.org>
1166
1167         * gtk/gtkpagesetupunixdialog.c: Don't ignore reverse portrait option
1168         when is selected in page setup dialog. Fixes bug #365047.
1169
1170 2006-12-24  Behdad Esfahbod  <behdad@gnome.org>
1171
1172         * gtk/gtkentry.c (_gtk_entry_effective_inner_border):
1173         Use gtk_border_free when freeing border.
1174
1175 2006-12-24  Matthias Clasen  <mclasen@redhat.com>
1176
1177         * gtk/gtkentry.c (gtk_entry_button_press): When
1178         shift-clicking, keep the larger part of the selection
1179         selected.  (#353709, Benjamin Otte)
1180
1181         * gtk/gtkbutton.c (gtk_button_get_props): Use 
1182         gtk_border_free when freeing borders.
1183
1184         * gtk/gtkbutton.c (gtk_button_grab_notify): Be more
1185         careful when faking a button release.  (#323146,
1186         Travis Abbott)
1187
1188         * gtk/gtkhandlebox.c (draw_textured_frame): Draw the
1189         handle with the right orientation, depending on the
1190         position of the handlebox.  (#159764, Benjamin Berg)
1191
1192 2006-12-24  Behdad Esfahbod  <behdad@gnome.org>
1193
1194         * gtk/gtkstyle.c (gtk_border_copy), (gtk_border_free): Use gslice for
1195         GtkBorder (#383557).
1196
1197 2006-12-24  Behdad Esfahbod  <behdad@gnome.org>
1198
1199         Bug 340141 – Update to Pango 1.16 API
1200
1201         * gdk/gdkpango.c (layout_iter_get_line_clip_region),
1202         (gdk_pango_layout_line_get_clip_region):
1203         * gtk/gtkcalendar.c (gtk_calendar_size_request):
1204         * gtk/gtkentry.c (gtk_entry_get_pixel_ranges),
1205         (get_layout_position), (gtk_entry_find_position),
1206         (gtk_entry_adjust_scroll):
1207         * gtk/gtkiconview.c (get_pango_text_offsets):
1208         * gtk/gtklabel.c (get_cursor_direction):
1209         * gtk/gtkstyle.c (get_insensitive_layout):
1210         * gtk/gtktextdisplay.c (render_para):
1211         * gtk/gtktextlayout.c (allocate_child_widgets),
1212         (find_display_line_below), (find_display_line_above),
1213         (gtk_text_layout_move_iter_to_previous_line),
1214         (gtk_text_layout_move_iter_to_next_line),
1215         (gtk_text_layout_move_iter_to_line_end),
1216         (gtk_text_layout_iter_starts_line),
1217         (gtk_text_layout_move_iter_to_x):
1218         * gtk/gtktextutil.c (limit_layout_lines):
1219         Use the _readonly version of pango_layout_iter_get_line(),
1220         pango_layout_iter_get_run(), pango_layout_get_line(), and
1221         pango_layout_get_lines().
1222
1223         * gtk/gtkmain.c (gtk_get_default_language): Use
1224         pango_get_default_language().
1225
1226 2006-12-24  Matthias Clasen  <mclasen@redhat.com>
1227
1228         * gtk/gtkentry.c (gtk_entry_set_text): Emit changed
1229         and notify:text only once. The same fix was applied
1230         for replacing the selection via DND or copy-and-paste.
1231         (#64998, Damon Chaplin, Sven Herzberg)
1232
1233 2006-12-23  Matthias Clasen  <mclasen@redhat.com>
1234
1235         * gtk/gtkimmulticontext.c: Be careful to not override
1236         GTK+ translations with the translations of the input
1237         method.  (#317080, Tor Lillqvist)
1238
1239         * modules/input/imcedilla.c: Use standard macros
1240         for translation domain and locale dir.
1241
1242         * gtk/gtkimcontextsimple.c: Allow composing l with 
1243         stroke.  (#349638, Daniel Lublin)
1244
1245         * gtk/gen-paper-names.c: Fix a thinko in the suffix
1246         calculation.  (#382369, Christian Persch)
1247
1248         * gtk/paper_names_offsets.c: Regenerated.
1249
1250 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
1251
1252         * modules/engines/pixbuf/pixbuf.h:
1253         * modules/engines/pixbuf/pixbuf-rc-style.h:
1254         * modules/engines/pixbuf/pixbuf-style.h: Move 
1255         G_GNUC_INTERNAL before function declarations.  (#352276,
1256         Damien Carbery)
1257
1258 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
1259
1260         * demos/gtk-demo/*.c: Fix some leaks.  (#348108, Chris
1261         Wilson)
1262
1263 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
1264
1265         * *.c: Replace a lot of idle and timeout calls by
1266         the new gdk_threads api. 
1267
1268         * gdk/gdk.symbols:
1269         * gdk/gdk.h:
1270         * gdk/gdk.c: Add functions to allow threadsafe handling
1271         of idles and timeouts wrt. to the GDK lock.  (#321886,
1272         Chris Wilson)
1273         
1274 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
1275         
1276         * gdk/gdkpango.c: Use pango_cairo_show_error_underline.  
1277         (#340141, Behdad Esfahbod)
1278
1279         * configure.in: Check for getc_unlocked.
1280
1281         * gtk/xdgmime/xdgmimemagic.c: Use getc if getc_unlocked is
1282         unavailable.   (#381499)
1283
1284         * tests/teststatusicon.c: Fix a typo
1285
1286 2006-12-22  Matthias Clasen  <mclasen@redhat.com>
1287
1288         Make it possible to track the embeddedness of
1289         statusicon (#387215, Martyn Russell, patch by Christian
1290         Persch)
1291
1292         * gtk/gtkstatusicon.c: Add orientation and embedded properties.
1293         * gtk/gtkplug.c: 
1294         * gtk/gtkplug-x11.c: Add an embedded property.
1295         * tests/teststatusicon.c: Test the new properties.
1296
1297         * gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): Don't
1298         leak draw_border.  (#387170, Kjartan Maraas)
1299
1300 2006-12-21  Matthias Clasen  <mclasen@redhat.com>
1301
1302          * gtk/gtkfilechooserembed.c (_gtk_file_chooser_embed_set_delegate()):
1303         Typo fix.  (#388123, Murray Cumming)
1304         
1305         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
1306         Generate double-click events.  (#380421, Tommi Komulainen)
1307
1308         * gdk/x1/gdkinput-xfree.c (_gdk_input_configure_event):
1309         (_gdk_input_enter_event): Correct return_if_fail checks.
1310         (#379803, Tommi Komulainen)
1311
1312         * gdk/gdkdisplay.c: Improve the docs of some functions operating
1313         on the default display.  (##353438, Mariano Suárez-Alvarez)
1314
1315 2006-12-21  Matthew Barnes  <mbarnes@redhat.com>
1316
1317         * docs/reference/gdk/gdk-sections.txt:
1318         * gdk/gdkcolor.[ch] (gdk_color_to_string): Add a function for
1319         converting a GdkColor to a string (#373856).
1320
1321         * configure.in: Bump pango requirement to 1.15.2.
1322
1323 2006-12-20  Matthias Clasen  <mclasen@redhat.com>
1324         
1325         * gdk/keynames.txt: Mark arrow keys as translatable.  (#369506,
1326         Bastian Nocera)
1327
1328         * gdk/keyname-table.h: Regenerated
1329
1330         * gtk/gtktextbuffer.c: Add signal documentation.  (#317064,
1331         Søren Wedel Nielsen)
1332
1333         * gtk/gtktextview.c (gtk_text_view_start_selection_drag):
1334         Silently return if a drag is already in progress, rather
1335         than asserting.  (#335622, Li Yuan, testcase by Erwann Chenede)
1336
1337         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new_with_dialog):
1338         Allow any GtkDialog that implements GtkFileChooser as
1339         dialog.  (#335473, Tommi Komulainen)
1340
1341 2006-12-20  Mikael Hallendal  <micke@imendio.com>
1342
1343         * gtk/gtkstatusicon.c: (gtk_status_icon_init): Fixed a last minute
1344         change in the quartz backend.
1345
1346 2006-12-20  Mikael Hallendal  <micke@imendio.com>
1347
1348         * gtk/Makefile.am: Added gtkstatusicon-quartz.c
1349         * gtk/gtkstatusicon-quartz.c: Implements the quartz backend for the
1350         status icon.
1351         * gtk/gtkstatusicon.c: Hooked in the new quartz backend. Bug #387874.
1352
1353 2006-12-19  Matthias Clasen  <mclasen@redhat.com>
1354
1355         * gtk/gtkprintunixdialog.c: Add a tooltip explaining the
1356         format of page ranges, and improve the page sequence icon
1357         for the case of n_copies == 1.
1358  
1359 2006-12-19  Mikael Hallendal  <micke@imendio.com>
1360
1361         * gdk/quartz/gdkcursor-quartz.c: Splitted out the GdkPixbuf to NSImage
1362         routine so that it can be used from libgtk as well (needed for
1363         upcoming GtkStatusIcon support in the Quartz port).
1364         * gdk/quartz/gdkevents-quartz.c: Don't assume that all NSWindows are
1365         created from GDK, this is not true for the status icon.
1366         * gdk/quartz/gdkprivate-quartz.h:
1367         * gdk/quartz/gdkquartz.h: Added 
1368         gdk_quartz_pixbuf_to_ns_image_libgtk_only so that it is available to 
1369         the status icon code.
1370
1371 2006-12-16  Tristan Van Berkom <tvb@gnome.org>
1372
1373         * gtk/gtkmessagedialog.c: Added return_if_fail (image) to
1374         gtk_message_dialog_set_image ()
1375
1376         * gtk/gtkscrolledwindow.c: Fixed a bug in set_property()
1377         (setting "window-placement-set" could result in a crash because
1378         of boolean/enum mixup)
1379
1380 2006-12-15  Federico Mena Quintero  <federico@novell.com>
1381
1382         Merged from gtk-2-10:
1383
1384         * gtk/gtkmenu.c (gtk_menu_set_title): Don't try to optimize for
1385         the case where the new title is the same as the old title, to
1386         preserve the behavior from GTK+ 2.8 (NULL and "" titles are not
1387         equivalent).  Handle the case where title == priv->title.  This
1388         was found by the LSB compatibility tests:
1389         https://bugzilla.novell.com/show_bug.cgi?id=223882
1390
1391 2006-12-15  Dom Lachowicz <domlachowicz@gmail.com>
1392
1393         * gtk/gtkcombobox.c: Make GtkComboBox in "appears-as-list" mode
1394         more closely resemble its Win32 counterpart. Bug #340204.
1395
1396 2006-12-14  Carlos Garnacho  <carlosg@gnome.org>
1397
1398         * gtk/gtkcalendar.c: draw arrows pointing to the right correctly
1399         placed inside their GdkWindow. Bug #385672.
1400
1401 2006-12-14  Christian Persch  <chpe@cvs.gnome.org>
1402
1403         * gtk/gtkiconview.c: Fix docs typo. Bug #385642.
1404
1405 2006-12-13  Dom Lachowicz <domlachowicz@gmail.com>
1406
1407         * src/modules/engines/ms-windows/msw_style.c: Bug 351679 - Notebooks 
1408         drawn with extra line below tab in MS-Windows theme. Patch by 
1409         Cody Russell
1410         
1411 2006-12-13  Matthias Clasen  <mclasen@redhat.com>
1412
1413         * gtk/Makefile.am: Add --unlink-tempfile to the evince call
1414         for print preview.  (#370041, Ghee Teo)
1415
1416 2006-12-11  Matthias Clasen  <mclasen@redhat.com>
1417
1418         * gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): Be more
1419         careful when overdrawing antialiased text.  (#352435, Alex Jones,
1420         patch by Benjamin Otte)
1421
1422         * gtk/gtksettings.c: Change the way in which color scheme information
1423         is merged to correctly handle vanishing colors.  (#374420, 
1424         Benjamin Berg, patch by Callum McKenzie) 
1425         Also allow to separate entries in color schemes by ';' 
1426         instead of newline.  
1427
1428 2006-12-10  Matthias Clasen  <mclasen@redhat.com>
1429
1430         * modules/printbackends/cups/gtkcupsutils.c (gtk_cups_request_encode_option): 
1431         Properly pass multi-value options to cups.  (#355350, Jürg Billeter) 
1432
1433 2006-12-10  Kristian Rietveld  <kris@gtk.org>
1434
1435         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event):
1436         cancel editing (ie. don't accept changes) when the entry loses
1437         focus. (Fixes #164494, reported by Chris Rouch).
1438
1439 2006-12-10  Matthias Clasen  <mclasen@redhat.com>
1440
1441         * configure.in: Correct a misapplied patch. 
1442
1443 2006-12-10  Tor Lillqvist  <tml@novell.com>
1444
1445         * gtk-zip.sh.in: Put gdk-pixbuf-query-loaders.exe and
1446         gtk-query-immodules-2.0.exe in the runtime zipfile instead of
1447         developer zipfile. Users might add pixbuf loaders or immodules
1448         even if they are not interested in developing gtk+-using software.
1449
1450 2006-12-10  Matthias Clasen  <mclasen@redhat.com>
1451
1452         * configure.in: Check for crt_extern.h and _NSGetEnviron.
1453         * gdk/x11/gdkspawn-x11.c: Fix compilation on Darwin where
1454         environ is not available.  (#384168, Min Sik Kim)
1455
1456 2006-12-07  Paolo Maggi  <paolo@gnome.org>
1457
1458         Fixes bug #383407
1459         
1460         * gtk/gtkentry.c (gtk_entry_set_text): check for
1461         completion->priv->changed_id > 0 before calling 
1462         g_signal_handler_[un]block.
1463         (gtk_entry_completion_key_press): does not block/unblock the "changed"
1464         signal before calling gtk_entry_set_text.
1465         
1466 2006-12-07  Carlos Garnacho  <carlosg@gnome.org>
1467
1468         * gtk/gtkcellrendererprogress (compute_dimensions): do not use
1469         xthickness/ythickness, they aren't used any longer for drawing.
1470
1471 2006-12-07  Matthias Clasen  <mclasen@redhat.com>
1472
1473         * gtk/gtkrc.c (_gtk_rc_init): Fix clipping of accelerator
1474         underlines by giving labels a small draw-border.
1475
1476 2006-12-06  Kristian Rietveld  <kris@gtk.org>
1477
1478         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render):
1479         draw progress bar through theme engine instead of using our own
1480         custom cairo drawing code (#377244, patch from Carlos Garnacho).
1481
1482 2006-12-06  Matthias Clasen  <mclasen@redhat.com>
1483
1484         * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities):
1485         Update the sensitivity of the collate checkbutton more frequently,
1486         proposed by Tim Waugh.
1487
1488 2006-12-04  Matthias Clasen  <mclasen@redhat.com>
1489
1490         * gtk/gtkmessagedialog.c (setup_type): Set a11y name and role
1491         since we no longer set window titles.
1492
1493 2006-12-04  Christian Persch  <chpe@cvs.gnome.org>
1494
1495         * gtk/gtkpagesetup.c: (gtk_page_setup_get_paper_size),
1496         (gtk_page_setup_set_paper_size): Don't leak the old page size when
1497         setting a new one. Bug #382314.
1498
1499 2006-12-03  Michael Natterer  <mitch@gimp.org>
1500
1501         * gtk/gtktextview.c: remove FIXME #include that is no longer needed.
1502
1503 2006-12-03  Kristian Rietveld  <kris@gtk.org>
1504
1505         Make sure [xy]_offset are always being initialized, fix pixbuf
1506         renderer padding.  (#108235, Sven Neumann).
1507
1508         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size),
1509         (gtk_cell_renderer_pixbuf_render): add padding in _render instead
1510         of _get_size.
1511
1512         * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
1513         always initialize [xy]_offset.
1514         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto.
1515         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
1516         ditto.
1517
1518 2006-12-03  Kristian Rietveld  <kris@gtk.org>
1519
1520         * gtk/gtktreeview.c (validate_visible_area): when not using an
1521         explicit alignment, use the full area of the row (not just dy)
1522         to determine how to implicitly align it.  (Fixes #363191, reported
1523         by Federico Mena Quintero).
1524
1525 2006-12-02  Matthias Clasen  <mclasen@redhat.com>
1526
1527         * gtk/gtkicontheme.c (insert_theme): Properly clean up
1528         if an icon theme index file has no directories.  (#381236)
1529
1530 2006-12-02  Dom Lachowicz <domlachowicz@gmail.com>
1531
1532         * src/modules/engines/ms-windows/msw_style.c: Bug 351678 - Notebooks 
1533         not with PositionType.Top drawn incorrectly. Patch by Cody Russell
1534         
1535 2006-11-28  Behdad Esfahbod  <behdad@gnome.org>
1536
1537         Remove the broken Thai input method and add a functional Thai and Lao
1538         input method by Theppitak Karoonboonyanan. (#81031)
1539
1540         * modules/input/imthai.c:
1541         * modules/input/gtkimcontextthai.c:
1542         * modules/input/gtkimcontextthai.h:
1543         * modules/input/thai-charprop.c:
1544         * modules/input/thai-charprop.h:
1545         Added.
1546
1547         * modules/input/imthai-broken.c:
1548         Removed.
1549         
1550         * modules/input/Makefile.am:
1551         Updated.
1552
1553 2006-11-27  Christian Persch  <chpe@cvs.gnome.org>
1554
1555         * gtk/gtkstatusicon.c: Notify when the screen changes. Bug #379793.
1556
1557 Mon Nov 27 12:27:06 2006  Tim Janik  <timj@imendio.com>
1558
1559         * gtk/gtktextview.c: applied patch by  Colin Leroy for
1560         Control+GDK_KP_Left to move one word to the left, #356255.
1561
1562 2006-11-26  Benjamin Berg  <benjamin@sipsolutions.net>
1563
1564         * gtk/gtkstyle.c: (gtk_default_draw_flat_box): Protect against NULL
1565           widget. (#379503)
1566
1567 2006-11-25  Matthias Clasen  <mclasen@redhat.com>
1568
1569         * modules/printbackends/cups/gtkprintbackendcups.c: Make
1570         print dialog work when 'BrowseShortNames Off' is specified
1571         in cups configuration. Patch by Tim Waugh.
1572
1573 2006-11-24  Michael Natterer  <mitch@imendio.com>
1574
1575         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): if we
1576         can't go up/down, consult gtk_widget_keynav_failed() and leave the
1577         widget if it returns FALSE (bug #322640).
1578
1579 2006-11-23  Behdad Esfahbod  <behdad@gnome.org>
1580
1581         * gtk/gtkmain.c: Fix minor typo in docs. (#378632, Hannes Mueller)
1582
1583 2006-11-22  Emmanuele Bassi  <ebassi@gnome.org>
1584
1585         * gtk/gtkrecentmanager.c:
1586         (get_uri_shortname_for_display): g_filename_from_uri() might
1587         fail; catch the failure and fall back to the non-local URI
1588         case. (#363437)
1589
1590 2006-11-19  Mark McLoughlin  <mark@skynet.ie>
1591
1592         Fixes bug #376502 - multi-screen support for GtkStatusIcon
1593
1594         * gtk/gtkstatusicon.[ch]:
1595         (gtk_status_icon_set_screen),
1596         (gtk_status_icon_get_screen): add multi-screen API. Allows
1597         an app to display an icon on a non-default screen
1598         (gtk_status_icon_class_init),
1599         (gtk_status_icon_set_property),
1600         (gtk_status_icon_get_property): add a "screen" property
1601         
1602         * tests/teststatusicon.c: update to test on multiple screens
1603
1604 2006-11-17  Matthias Clasen  <mclasen@redhat.com>
1605
1606         Fix problems with drag cancellation. (#376535, Michael Natterer)
1607         
1608         * gtk/gtkdnd.c (gtk_drag_source_info_destroy): Disconnect signal
1609         handlers before emitting drag-end.
1610         (gtk_drag_end): Disconnect signal handlers before removing
1611         the grab.  
1612
1613 2006-11-16  Mariano Suárez-Alvarez <mariano@gnome.org>
1614
1615         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
1616         add gtk-doc blurb on GtkCellRendererText::edited (#376094)
1617
1618 2006-11-16  Michael Natterer  <mitch@imendio.com>
1619
1620         * gtk/gtkradiobutton.c (gtk_radio_button_focus): don't use
1621         gtk_widget_keynav_failed(). Instead, look at gtk-keynav-cursor-only
1622         and gtk-keynav-wrap-around and wrap around, beep or continue outside
1623         the group manually (bug #322640).
1624
1625 2006-11-16  Michael Natterer  <mitch@imendio.com>
1626
1627         Add new infrastructure for notifications of failed keyboard
1628         navigation and navigation with restricted set of keys.
1629
1630         The patch handles configurable beeping, navigating the GUI with
1631         cursor keys only (as in phone environments), and configurable
1632         wrap-around. Fixes bugs #322640, #70986, #318827, #334726, #334742
1633         and #309291.
1634
1635         * gtk/gtksettings.c: added properties gtk-keynav-cursor-only,
1636         gtk-keynav-wrap-around and gtk-error-bell.
1637
1638         * gtk/gtkwidget.[ch]: added new signal "keynav-failed" and public
1639         API to emit it. Added New function gtk_widget_error_bell() which
1640         looks at the gtk-error-bell setting and calls gdk_window_beep()
1641         accordingly.
1642
1643         * gtk/gtk.symbols: add the new widget symbols.
1644
1645         * gtk/gtkcellrendereraccel.c
1646         * gtk/gtkimcontextsimple.c
1647         * gtk/gtkmenu.c
1648         * gtk/gtknotebook.c: use gtk_widget_error_bell() or look at the
1649         gtk-error-bell setting instead of calling gdk_display_beep()
1650         unconditionally.
1651
1652         * gtk/gtkcombobox.c
1653         * gtk/gtkentry.c
1654         * gtk/gtkiconview.c
1655         * gtk/gtklabel.c
1656         * gtk/gtkmenushell.c
1657         * gtk/gtkspinbutton.c
1658         * gtk/gtktextview.c
1659         * gtk/gtktreeview.c: call gtk_widget_error_bell() on failed keynav.
1660
1661         * gtk/gtkentry.c
1662         * gtk/gtklabel.c
1663         * gtk/gtkrange.c
1664         * gtk/gtktextview.c: consult gtk_widget_keynav_failed() on failed
1665         cursor navigation and leave the widget if it returns FALSE.
1666
1667         * gtk/gtkmenushell.c
1668         * gtk/gtknotebook.c: only wrap around if gtk-keynav-wrap-around
1669         is TRUE.
1670
1671         * gtk/gtkradiobutton.c: ask gtk_widget_keynav_failed() to decide
1672         whether to to wrap-around, and don't select active items on cursor
1673         navigation if gtk-keynav-cursor-only is TRUE. Should look at
1674         gtk-keynav-wrap-around too, will look into that.
1675
1676 2006-11-16  Emmanuele Bassi  <ebassi@gnome.org>
1677
1678         * gtk/gtkrecentmanager.c:
1679         (gtk_recent_info_get_uri_display): Return the URI
1680         of the GtkRecentInfo object (upgraded to UTF-8 if
1681         needed) in case of non-local file. (#351945)
1682
1683 2006-11-16  Emmanuele Bassi  <ebassi@gnome.org>
1684         
1685         * gtk/gtkrecentchoosermenu.c:
1686         (gtk_recent_chooser_menu_add_tip): Apply the tip only
1687         if we have a displayable name for the item. (#365031,
1688         patch by padraig.obriain(at)sun.com)
1689
1690 2006-11-16  Emmanuele Bassi  <ebassi@gnome.org>
1691
1692         * gtk/gtkrecentmanager.c: Provide a fast path returning
1693         NULL when the limit is set to 0.
1694
1695         * gtk/gtkrecentchooserdefault.c:
1696         * gtk/gtkrecentchoosermenu.c: Add the same fast path
1697         inside the RecentChooser implementation; add a check
1698         in the list clamping code. (#373466 and duplicates)
1699
1700 2006-11-15  Matthias Clasen  <mclasen@redhat.com>
1701
1702         * modules/printbackends/cups/gtkprintbackendcups.c (cups_printer_get_options): 
1703         Don't pass NULL to strncpy.  (#359537, patch by  Carlos Garcia Campos)
1704
1705 2006-11-15  Michael Natterer  <mitch@imendio.com>
1706
1707         * gtk/gtkrange.[ch]: added properties "fill-level",
1708         "show-fill-level" and "restrict-to-fill-level" and getters/setters
1709         for them. The "fill level" is an additional marker on the range's
1710         trough than can be e.g. used to indicate the amount of
1711         pre-buffering in a range showing the play position of streamed
1712         media. See the embedded API docs for details. Made GtkRangeLayout
1713         a GTypeInstance private struct and removed finalize()
1714         implementation. Fixes bug #349808
1715
1716         * gtk/gtk.symbols: added the new symbols.
1717
1718 2006-11-14  Behdad Esfahbod  <behdad@gnome.org>
1719
1720         * configure.in: Make libtool magic robust. (#352795)
1721
1722 2006-11-13  Paolo Borelli  <pborelli@katamail.com>
1723
1724         * gtk/gtkrc.c (gtk_rc_parse_icon_source): plug small memory
1725         leak (#370395)
1726
1727 2006-11-09  Kristian Rietveld  <kris@imendio.com>
1728
1729         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): disable
1730         don't move cursor case for SELECTION_NONE. (#371756, John Ellis).
1731
1732 2006-11-09  Carlos Garnacho  <carlosg@gnome.org>
1733
1734         * gtk/gtkpathbar.c (on_slider_unmap): Fix parenthesis confusion.
1735
1736 2006-11-08  Carlos Garnacho  <carlosg@gnome.org>
1737
1738         * gtk/gtkpathbar.c (on_slider_unmap): added, do not leave the scroll
1739         timeout running if the slider buttons are hidden. (#372527)
1740
1741 2006-11-08  Christian Persch  <chpe@cvs.gnome.org>
1742
1743         * gtk/gtkfilechooserdefault.c (browse_widgets_create): Don't make
1744         the "Location" label bold. Bug #372449.
1745
1746 2006-11-07  Carlos Garnacho  <carlosg@gnome.org>
1747
1748         * gtk/gtknotebook.c (gtk_notebook_calculate_tabs_allocation): make
1749         non-focused tabs xthickness/ythickness thinner. (#353962)
1750
1751 2006-11-07  Paolo Borelli  <pborelli@katamail.com>
1752
1753         * gtk/gtktextbtree.c (_gtk_text_btree_delete): avoid memory
1754         corruption (#357050).
1755
1756 2006-11-06  Alexander Larsson  <alexl@redhat.com>
1757
1758         * gtk/gtkdnd.c: (gtk_drag_begin_internal),
1759         (gtk_drag_source_info_destroy), (gtk_drag_end),
1760         (gtk_drag_grab_notify_cb):
1761         Cancel drag when the grab is shadowed. (#122688)
1762
1763 2006-11-01  Kristian Rietveld  <kris@imendio.com>
1764
1765         * gtk/gtkcombobox.c (gtk_combo_box_class_init),
1766         (gtk_combo_box_size_request): add arrow-size property to control
1767         the minimum size of the arrow, have the arrow scale up with the
1768         font by default. (#357950).
1769
1770 2006-10-30  Kristian Rietveld  <kris@gtk.org>
1771
1772         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): don't
1773         forget to queue a draw for the new cursor node. (Fixes #366548,
1774         reported by Sven Herzberg).
1775
1776 2006-10-30  Michael Natterer  <mitch@imendio.com>
1777
1778         * gtk/gtkrange.c (gtk_range_key_press): consume the Escape key
1779         only if we actually cancel a drag. Fixes bug #58389.
1780
1781 2006-10-30  Kristian Rietveld  <kris@gtk.org>
1782
1783         * gtk/gtktreeview.c (gtk_tree_view_class_init): change left/right
1784         keybindings to collapse/expand rows instead of moving the focus
1785         cursor. (#105895, Brian Bober and others).
1786
1787 2006-10-29  Kristian Rietveld  <kris@gtk.org>
1788
1789         * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): guard against
1790         child removal in row-expanded callback. (#366782, John Ellis).
1791
1792 2006-10-29  Tor Lillqvist  <tml@novell.com>
1793
1794         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Improve handling
1795         of the small icon of the window class. (#152620, Kazuki Iwamoto)
1796
1797 2006-10-29  Tor Lillqvist  <tml@novell.com>
1798
1799         * gdk/win32/gdkcursor-win32.c
1800         (gdk_win32_icon_to_pixbuf_libgtk_only): Implement for B&W cursors,
1801         for instance the built-in GDK ones.
1802
1803 2006-10-27  Kristian Rietveld  <kris@gtk.org>
1804
1805         * gtk/gtktreeview.c (validate_visible_area): rework the area_above == 0
1806         case to not overwrite the variables in the lower scope (which are
1807         used later on ...), get the path correctly and bail out when there
1808         isn't a node above us. (#359231).
1809
1810 2006-10-26  Christian Persch  <chpe@cvs.gnome.org>
1811
1812         * gtk/gtkaboutdialog.c: Put initial focus on Close button (#337261).
1813
1814 2006-10-25  Johan Dahlin  <jdahlin@async.com.br>
1815
1816         * gtk/gtk.symbols: Add missing symbols to so make check can pass
1817
1818 2006-10-23  Dom Lachowicz <domlachowicz@gmail.com>
1819
1820         * src/modules/engines/ms-windows/msw_style.c (draw_expander): Remember
1821         to free GDI Pen resources, introduced by bug 340201.(#364514)
1822         
1823 2006-10-18  Kristian Rietveld  <kris@imendio.com>
1824
1825         * tests/testcombo.c (main): connect to notify::popup-shown instead of
1826         popup-show (the latter does not exist).
1827
1828 2006-10-15  Paolo Borelli  <pborelli@katamail.com>
1829
1830         * gtk/gtkicontheme.c (pixbuf_supports_svg): plug memory leak.
1831         Fixes bug #362439.
1832
1833 2006-10-12  Michael Natterer  <mitch@imendio.com>
1834
1835         * gtk/gtkcombobox.c (gtk_combo_box_class_init): fix commit below
1836         (committed the wrong patch).
1837
1838 2006-10-12  Michael Natterer  <mitch@imendio.com>
1839
1840         * gtk/gtkcombobox.c: added "move-active" and "popup" signals and
1841         bindings to trigger them. Removed gtk_combo_box_key_press(), it's
1842         obsolete now. Fixes bug #358293.
1843
1844 2006-10-11  Michael Emmel  <mike.emmel@gmail.com>
1845
1846         * gdkpixmap-directfb.c: add missing RGB24 case (#361176) 
1847
1848 2006-10-11  Tor Lillqvist  <tml@novell.com>
1849
1850         * configure.in: Enable having some gdk-pixbuf loaders built-in
1851         even if loading the others dynamically. Define Automake
1852         conditional INCLUDE_FOO for each loader as TRUE if that loader is
1853         built-in. See also gdk-pixbuf/ChangeLog.
1854
1855 Wed Oct 11 14:31:30 2006  Tim Janik  <timj@imendio.com>
1856
1857         * docs/reference/gtk/gtk-sections.txt:
1858         * gtk/gtkbindings.c: document gtk_binding_entry_skip().
1859
1860 2006-10-11  Tor Lillqvist  <tml@novell.com>
1861
1862         * gtk/gtk.symbols: Remove gtk_combo_string_key, which is a static
1863         variable.
1864
1865 2006-10-11  Tor Lillqvist  <tml@novell.com>
1866
1867         Merge from 2.10 branch:
1868
1869         * gtk/gtkmain.c (do_pre_parse_initialization): On Win32, if
1870         environment variable LC_ALL or LANG is set, set the Win32 thread
1871         locale to the corresponding locale. Then call the C library
1872         setlocale() to set the C library locale accordingly. The
1873         inconsistency mentioned below is gone. (#339756) Do some special
1874         casing for Serbia and Montenegro. Handle the Latin and Cyrillic
1875         scripts for Azeri, Uzbek and Serbian.
1876         (enum_locale_proc): Helper function for the above functionality.
1877
1878         * gtk/gtkcalendar.c (gtk_calendar_init): No longer need to check
1879         if the environment variables are set here, as they have already
1880         been taken into account and the Win32 thread locale has been
1881         set.
1882
1883 Tue Oct 10 16:38:23 2006  Tim Janik  <timj@imendio.com>
1884
1885         * gtk/tmpl/gtkbindings.sgml: 
1886         * gtk/gtkbindings.c: applied patch from Michael Natterer to move to 
1887         inline docs. applied wording fixes suggested by Martyn Russell.
1888
1889 2006-10-09  Matthias Clasen  <mclasen@redhat.com>
1890
1891         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
1892         Update the docs to state which out parameters may be NULL.
1893         (#360870, Attilio Fiandrotti)
1894
1895 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
1896
1897         * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities): Fix
1898         a typo.  (#359542, Ghee Teo)
1899
1900 2006-10-08 Matthias Clasen <mclasen@redhat.com>
1901
1902         * gtk/gtknotebook.c (gtk_notebook_reorder_tab): Only
1903         reorder tabs if the focus is in the tab.  (#350342, Carlos
1904         Garnacho Parro)
1905
1906 2006-10-08 Michael Emmel <mike.emmel@gmail.com>
1907
1908         * gdk/directfb/gdkproperty-directfb.c strdup atom name (#357611) 
1909
1910 2006-10-08  Kristian Rietveld  <kris@gtk.org>
1911
1912         * gtk/gtktreeview.[ch] (gtk_tree_view_set_property),
1913         (gtk_tree_view_set_show_expanders),
1914         (gtk_tree_view_get_show_expanders): add getter/setter for
1915         show-expanders property, queue a redraw when this property
1916         is toggled (#351167, Martin Ejdestig),
1917         (gtk_tree_view_set_level_indentation),
1918         (gtk_tree_view_get_level_indentation): also add getter/setter
1919         and docs for level-indentation property.
1920
1921 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
1922
1923         * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't 
1924         leak a list.  (#360350, Benjamin Berg)
1925
1926         * Apply a cleanup patch by Kjartan Maraas  (#341812)
1927
1928 2006-10-07  Tor Lillqvist  <tml@novell.com>
1929
1930         * gtk/gtkcalendar.c (gtk_calendar_init): Use the Win32 thread
1931         locale's first day of week setting on Win32. (#339752, Bogdan
1932         Nicula) Don't do this if one of the environment variables that
1933         affect gettext is set, though. In that case use the week start day
1934         from the corresponding message catalog.
1935
1936         Unfortunately the same logic isn't possible in the weekday and
1937         month name lookup; there even if you have set one of the
1938         aforementioned environment variables, you still get the weekday
1939         and month names from the Win32 thread locale. Yes, this is
1940         inconsistent.
1941
1942         Use only wide-character API in the Win32 code in this file, too.
1943
1944 2006-10-06  Matthias Clasen  <mclasen@redhat.com>
1945
1946         * gtk/gtkfilechooser.c (gtk_file_chooser_set_select_multiple):
1947         Fix the docs.  (#360112)
1948
1949         * gtk/gtkcellview.c: Don't set the background of the
1950         window in a no-window widget.  (#359581, Xan Lopez)
1951
1952
1953 2006-10-05  Behdad Esfahbod  <behdad@gnome.org>
1954
1955         * gtk/Makefile.am, gtk/aliasfilescheck.sh:  Propagate srcdir into the
1956         test correctly. (#359845)
1957
1958 2006-10-05  Michael Natterer  <mitch@imendio.com>
1959
1960         * gtk/gtkrc.[ch]: added new scanner token "unbind" which gets
1961         rid of a key binding (in fact, it only lets it appear unbound).
1962
1963         * gtk/gtkbindings.[ch] (struct GtkBindingEntry): added
1964         "guint marks_unbound : 1"
1965
1966         (gtk_binding_entry_skip): new API which marks the entry as unbound.
1967
1968         Changed code so it returns FALSE when "marks_unbound == TRUE" is
1969         encountered while activating bindings, effectively letting the
1970         binding appear unbound (regardless of still existing bindings in
1971         lower binding priority levels). Fixes bug #358329.
1972
1973         (gtk_binding_entry_add)
1974         (gtk_binding_entry_clear)
1975         (gtk_binding_entry_add_signall)
1976         (gtk_binding_parse_binding): deprected these functions.
1977
1978         (_gtk_binding_parse_binding)
1979         (_gtk_binding_entry_add_signall): new internal API.
1980
1981         * gtk/gtk.symbols: changed accordingly.
1982
1983 2006-10-03  Matthias Clasen  <mclasen@redhat.com>
1984
1985         Fix interaction of GtkEntryCompletion with input
1986         methods.  (#354495, Diego Escalante Urrelo)
1987
1988         * gtk/gtkentry.c (gtk_entry_completion_key_press): Only reset
1989         the im context if we actually handle the key event.
1990
1991         * gtk/gtkentrycompletion.c: Also propagate key release events
1992         to the entry.
1993
1994 2006-10-03  Matthias Clasen  <mclasen@redhat.com>
1995
1996         * gtk/gtkprintsettings.c (gtk_print_settings_get_duplex):
1997         Fix a typo.  (#359052, Ghee Teo)
1998
1999         * gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to
2000         reduce relocations. (#359053)
2001
2002 2006-10-03  Matthias Clasen  <mclasen@redhat.com>
2003
2004         * modules/printbackends/cups/gtkcupsutils.c:
2005         * modules/printbackends/cups/gtkprintbackendcups.c: Complete
2006         the fix for bug 357280.
2007
2008 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
2009
2010         * gdk-pixbuf/Makefile.am:
2011         * gdk/Makefile.am:
2012         * gtk/Makefile.am:
2013         Include pltcheck.sh in EXTRA_DIST.
2014
2015 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
2016
2017         * gdk/x11/gdkevents-x11.c: Move all includes before including
2018         gdkalias.h.
2019
2020 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
2021
2022         * gtk/Makefile.am: Fix typo in file name.  (#358931)
2023
2024 2006-10-02  Matthias Clasen  <mclasen@redhat.com>
2025
2026         * modules/printbackends/cups/gtkprintbackendcups.c (available_choices): 
2027         Only use the group name field if cups is new enough.  (#357280)
2028
2029         * gtk/gtksizegroup.c: Make sure that the quarks are 
2030         initialized before using them.  (#353736)
2031
2032         * gtk/Makefile.am (stamp-icons): Use rm instead of ln -f to
2033         replace existing links.  (#354849, James Evans)
2034
2035 2006-10-01  Matthias Clasen  <mclasen@redhat.com>
2036
2037         * gtk/gtkexpander.c (gtk_expander_realize) 
2038         (gtk_expander_size_allocate): Make the event_window large
2039         enough to cover the full height of the label_widget.  (#358351,
2040         Scott Horowitz)
2041
2042 2006-10-01  Tor Lillqvist  <tml@novell.com>
2043
2044         * gtk/gtkfilesystemwin32.c: Same change as to gtkfilesystemunix.c.
2045
2046 2006-09-30  Matthias Clasen  <mclasen@redhat.com>
2047
2048         * gtk/gtkfilechooserbutton.c (update_combo_box): Protect
2049         against base_path being NULL.  (#358405, many reporters)
2050
2051 2006-09-29  Matthias Clasen  <mclasen@redhat.com>
2052
2053         * gtk/gtkfilesystemunix.c: Apply a patch by Padraig O'Briain
2054         to avoid a deadlock.
2055
2056 2006-09-27  Kristian Rietveld  <kris@imendio.com>
2057
2058         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_free_level),
2059         (gtk_tree_model_filter_ref_node),
2060         (gtk_tree_model_filter_real_unref_node): bring zero ref count loops
2061         in sync with each other and the sort model.
2062
2063 2006-09-27  Kristian Rietveld  <kris@imendio.com>
2064
2065         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_init),
2066         (gtk_tree_model_filter_finalize), (gtk_tree_model_filter_row_deleted),
2067         (gtk_tree_model_filter_new): unref the virtual root path once that
2068         node (or one if its ancestors) is deleted, set virtual_root_deleted
2069         so we only unref it once.
2070
2071 2006-09-27  Kristian Rietveld  <kris@imendio.com>
2072
2073         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_changed),
2074         (gtk_tree_model_sort_sort_level): ref count nodes the proper way,
2075         (gtk_tree_model_sort_ref_node), (gtk_tree_model_sort_real_unref_node),
2076         (gtk_tree_model_sort_free_level): bring zero ref count loops in
2077         sync,
2078         (gtk_tree_model_sort_free_level): free child levels before
2079         decreasing the zero ref count of the current level,
2080         (gtk_tree_model_sort_clear_cache): only clear cache if zero_ref_count
2081         is > 0.
2082
2083 2006-09-25  Matthias Clasen  <mclasen@redhat.com>
2084
2085         * demos/gtk-demo/*.c:
2086         * gtk/gtkeventbox.c:
2087         * gtk/gtkprintoperation.c: Fix typos. String change.
2088
2089 2006-09-25  Kristian Rietveld  <kris@gtk.org>
2090
2091         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): if the tree view
2092         has already been realized; scroll to background area instead of
2093         cell area. (Fixes #330683, Johan Dahlin, Tommi Komulainen).
2094
2095 2006-09-25  Kristian Rietveld  <kris@gtk.org>
2096
2097         * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): only attempt
2098         to create the GCs if the widget is realized. (Fixes #357578).
2099
2100 2006-09-25  Matthias Clasen  <mclasen@redhat.com>
2101
2102         * gtk/gtkuimanager.c (_gtk_menu_is_empty): Don't leak
2103         the list of children (#357454, Paolo Borelli)
2104
2105 2006-09-25  Michael Natterer  <mitch@imendio.com>
2106
2107         * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): free
2108         display->input_windows with g_free(), not g_object_unref()
2109         (#357566, Tommi Komulainen).
2110
2111 2006-09-24  Kristian Rietveld  <kris@gtk.org>
2112
2113         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
2114         (gtk_cell_renderer_text_[sg]et_property): actually add align-set
2115         property to the API (left-over patch from #157439).
2116
2117 2006-09-24  Kristian Rietveld  <kris@gtk.org>
2118
2119         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): draw
2120         the indicator if the column has a sort column id (and the model is
2121         sortable) or if the user explicitly requested the indicator
2122         to be shown.  (Fixes #352738, Chris Vine).
2123
2124 2006-09-23  Tor Lillqvist  <tml@novell.com>
2125
2126         * gtk/Makefile.am: Use EXEEXT.
2127
2128 2006-09-22  Michael Natterer  <mitch@imendio.com>
2129
2130         * gtk/gtkstyle.c (gtk_style_real_copy): also copy icon factories
2131         and color hashes. Fixes bug #357132.
2132
2133 2006-09-22  Matthias Clasen  <mclasen@redhat.com>
2134
2135         Make remote bookmarks work better (#354887)
2136         
2137         * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): 
2138         (shortcuts_insert_path): 
2139         * gtk/gtkfilechooserbutton.c (change_icon_theme): 
2140         (model_add_bookmarks): 
2141         (model_update_current_folder): 
2142         (update_label_and_image): 
2143         If the bookmark points to a remote file, don't call get_info(), 
2144         since that may a) take a long time and b) pop up an auth dialog.
2145         Instead, just use a folder icon and create a display name
2146         from the uri.
2147
2148         * gtk/gtkfilechooserdefault.c (_gtk_file_chooser_label_for_uri): 
2149         New function to create a suitable display name for a remote
2150         uri. This should really be done in GtkFileSystem.
2151         
2152 2006-09-21  Michael Natterer  <mitch@imendio.com>
2153
2154        Implement lots of value setters for GdkGC, based on a heavily
2155        modified patch from Thomas Broyer (bug #328853):
2156
2157         * gdk/quartz/gdkcolor-quartz.c: removed functions which set colors
2158         on the CGContext. Instead, added gdk_quartz_get_rgba_from_pixel()
2159         which simply returns RGBA values from a GdkColor's pixel value.
2160         See gdk_quartz_update_context_from_gc() below.
2161
2162         * gdk/quartz/gdkprivate-quartz.h (struct GdkGCQuartz): added lots
2163         of members for the newly suppored GC values. Added enum
2164         GdkQuartzContextValuesMask which is used for setting up the
2165         CGContext for filling and/or stroking.
2166
2167         * gdk/quartz/gdkgc-quartz.c (gdk_quartz_gc_get_values)
2168         (gdk_quartz_gc_set_values)
2169         (_gdk_windowing_gc_copy): support a lot more GC values.
2170
2171         (gdk_quartz_update_context_from_gc): added
2172         GdkQuartzContextValuesMask parameter and set filling/stroking
2173         parameters accordingly. This function also gained full control
2174         over the FG and BG colors (they can't be set separately any more).
2175
2176         The stipple mask part of the patch doesn't work but seems to take
2177         the right approach and doesn't make things worse, so I applied it.
2178
2179         Did *not* apply the clipping part of the patch since I don't
2180         understand it (I don't understand the version in CVS either, but
2181         it at least works :-)
2182
2183         * gdk/quartz/gdkdrawable-quartz.c: pass the right masks to
2184         gdk_quartz_update_context_from_gc() and removed separate color
2185         setting calls. Some minor fixes.
2186
2187         * gdk/quartz/gdkwindow-quartz.c
2188         (gdk_window_impl_quartz_begin_paint_region): set the CGContext's
2189         fill color manually. We don't have/need a GC here.
2190
2191 2006-09-21  Michael Natterer  <mitch@imendio.com>
2192
2193         * gdk/quartz/gdkwindow-quartz.c
2194         (gdk_window_impl_quartz_begin_paint_region): fix cast: it's
2195         drawable_impl->wrapper that is the GdkWindow, not the
2196         drawable_impl itself.
2197
2198 2006-09-20  Behnam Esfahbod <behnam@zwnj.org>
2199
2200         * gdk/x11/gdkkeys-x11.c:
2201           (get_direction): just check the first shift-level of keyboard
2202         layout for RTL and LTR keysyms() (compliment to #116626)
2203
2204 Wed Sep 20 16:59:38 2006  Tim Janik  <timj@imendio.com>
2205
2206         * gtk/gtkviewport.c: always update the bin_window position and size
2207         in size_allocate, even if we don't have a visible child. this fixes
2208         expose artefacts as described in #313508.
2209
2210         * gtk/gtkscrolledwindow.c: make hiding of automatic scrollbars when we
2211         have no visible child explicit.
2212
2213 2006-09-19  Ryan Lortie  <desrt@desrt.ca>
2214
2215         * docs/reference/gdk/gdk-sections.txt:
2216         * gdk/gdk.symbols:
2217         * gdk/gdkpango.h:
2218         * gdk/gdkpango.c: Bug 355343.  Add a GdkPangoAttrEmbossColor.
2219           (gdk_pango_layout_get_clip_region): Remove an unused variable.
2220           (gdk_pango_attr_embossed_new): Fix documentation.
2221
2222 Tue Sep 19 17:00:04 2006  Tim Janik  <timj@imendio.com>
2223
2224         * gtk/gtkarrow.c: added GtkArrow::arrow-scaling style property to 
2225         control the arrow/border ratio within the allocation.
2226
2227         * tests/testgtk.c: added a GtkArrow to handle box test.
2228
2229         * tests/testgtkrc: test ::arrow-scaling property.
2230
2231 2006-09-19  Matthias Clasen  <mclasen@redhat.com>
2232
2233         * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
2234         Display an error when we come to the root.  
2235
2236 2006-09-16  Matthias Clasen  <mclasen@redhat.com>
2237
2238         * gtk/gtkfilechooserbutton.c: Use bookmark labels in 
2239         the combobox. 
2240
2241         * gtk/gtkfilechooserbutton.c: Don't add remote volumes and 
2242         bookmarks to the model in local-only mode, to avoid 
2243         authentication dialogs pop up for invisible bookmarks, and
2244         to fix issues with separators not being hidden when
2245         they should.  (#354887, Dennis Cranston)
2246
2247 2006-09-16  Matthias Clasen  <mclasen@redhat.com>
2248
2249         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Unref the
2250         treeview use in list mode.  (#355732, Richard Hult)
2251
2252         * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): Send
2253         change notification for the right property.  (#355308,
2254         Torsten Schoenfeld)
2255
2256 2006-09-15  Michael Natterer  <mitch@imendio.com>
2257
2258         * gtk/gtktreeview.c (gtk_tree_view_key_press): refactored column
2259         header navigation/resizing/reordering to be more readable and lose
2260         one level of nesting.
2261
2262 2006-09-15  Kristian Rietveld  <kris@imendio.com>
2263
2264         * gtk/gtktreeview.c (gtk_tree_view_key_press): actually directly
2265         return after handling column button focus; we disable wrap around
2266         with this (which actually happened via a really weird code path).
2267         (Michael Natterer)
2268
2269 2006-09-15  Kristian Rietveld  <kris@imendio.com>
2270
2271         * gtk/gtktreeview.c (gtk_tree_view_key_press): make column resizing
2272         code RTL aware, also break from the loops after we have seen the
2273         focussed column button (Michael Natterer).
2274
2275 Thu Sep 14 12:28:51 2006  Tim Janik  <timj@imendio.com>
2276
2277         * tests/testrichtext.c (main): intialize random number generator state
2278         upon program start, to enable truely random testing.
2279
2280 2006-09-13 Michael Emmel <mike.emmel@gmail.com>
2281
2282         * gdk/directfb/gdkcolor-directfb.c small clean ups include order
2283         * gdk/directfb/gdkwindow-directfb.c fixed beep compile error
2284         * gdk/directfb/Makefile.am removed GDK_PIXBUF_DISABLE_DEPRECATED
2285                 GDK_DISABLE_DEPRECATED to allow compile per Behdad
2286         * gdk/quartz/Makefile.am same change as directfb Makefile
2287         * gtk/Makefile.am fixed typo that cause socket stubs not to compile
2288
2289 2006-09-13 Matthias Clasen <mclasen@redhat.com>
2290
2291         * gtk/gtkcolorsel.c: Use a GtkWindow instead of a GtkInvisible
2292         for the grab widget, to make the color picker work with window
2293         groups.  
2294
2295 2006-09-12 Hong Jen Yee <pcman.tw@gmail.com>
2296
2297         signed off by: Dom Lachowicz
2298         
2299         * modules/engines/ms-windows/msw_style.c: Bug 340201. This contains
2300         a large number of improvements to the Microsoft Windows theme engine
2301         which are fully described in the bug report.
2302         
2303 Mon Sep 11 14:22:39 2006  Tim Janik  <timj@imendio.com>
2304
2305         * tests/testgtk.c: fixed compiler warnings.
2306
2307 2006-09-10  Matthias Clasen  <mclasen@redhat.com>
2308
2309         * gtk/gtkfilechooserbutton.c (model_add_special): Request
2310         the display name too, otherwise "Desktop" does not appear
2311         in the file chooser button. 
2312
2313 2006-09-10  Tor Lillqvist  <tml@novell.com>
2314
2315         * gdk/win32/gdkprivate-win32.h
2316         * gdk/win32/gdkmain-win32.c
2317         * gdk/win32/gdkwindow-win32.c: Define WINVER and _WIN32_WINNT as
2318         0x0500 in gdkprivate-win32.h instead of doing it in two source
2319         files. (#355212, Mike Edenfield)
2320
2321         * gdk/win32/gdkwindow-win32.c: We can also remove the ersatz
2322         GetAncestor() for the _MSC_VER && WINVER < 0x0500 case, I hope.
2323
2324 2006-09-10  Matthias Clasen  <mclasen@redhat.com>
2325
2326         * Commit a patch by Behdad to fix typos, omissions and other
2327         errors in the symbol aliasing, and add checks for local PLT
2328         entries.  (#354687, Behdad Esfahbod)
2329
2330         * gtk/gtktreeview.c (gtk_tree_view_search_scroll_event): Renew
2331         the flush timeout.  (#354043, Nelson Benitez)
2332         
2333         * gtk/gtkfilechoosersettings.c (set_unexpected_element_end_error): 
2334         Improve wording. String change!  (#355126, David Lodge)
2335
2336         * gtk/updateiconcache.c: Improve wording. String change!  (#355128,
2337         David Lodge)
2338
2339         * gtk/paper_names_offsets.c: Fix a typo. String change!  (#355134,
2340         David Lodge)
2341
2342 2006-09-09  Matthias Clasen <mclasen@redhat.com>
2343
2344         * gdk/x11/gdkfonts-x11.c: Fix small theoretical memory leaks.
2345         (#353916, Chris Wilson)
2346
2347         * gtk/gtksettings.c (_gtk_settings_reset_rc_values):
2348         Don't leak the to_reset list.  (#353914, Chris Wilson)
2349
2350         * gtk/gtkwidget.c: Add docs for the parent-set signal.
2351         (#353772, Mariano Suárez-Alvarez)
2352
2353 2006-09-08  Matthias Clasen <mclasen@redhat.com>
2354
2355         * gtk/gtktextbuffer.c (remove_all_selection_clipboards):
2356         Don't clear clipboards here, since we are called from finalize
2357         and can't emit signals.
2358
2359         * configure.in: Set version to 2.11.0
2360
2361 2006-09-06  Richard Hult  <richard@imendio.com>
2362
2363         * gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Special-case 
2364         shift-tab and map it to GDK_ISO_Left_Tab, fixes bug #350806.
2365
2366 2006-09-04  Kristian Rietveld  <kris@imendio.com>
2367
2368         * gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
2369         if setting the given folder failed, try setting the parent folder
2370         until we succeed; display an error box at the end.
2371
2372 2006-09-04  Kristian Rietveld  <kris@imendio.com>
2373
2374         * gtk/gtkpathbar.c (gtk_path_bar_dispose): don't cancel the
2375         operations spawned by buttons here,
2376         (set_button_image_get_info_cb): bail out if button is NULL, but
2377         do free button_data,
2378         (button_data_free): only free the data if non NULL (since this
2379         function can be called multiple times for the same data), cancel
2380         handle if pending but don't free button_data in this case (will
2381         happen in the callback).
2382
2383 2006-09-04  Michael Natterer  <mitch@imendio.com>
2384
2385         * gtk/gtkrc.c (rc_parse_token_or_compound)
2386         (gtk_rc_parse_assignment): serialize floating point values using
2387         locale-independent functions. (#346751, Frederic Crozat)
2388
2389 2006-09-04  Tor Lillqvist  <tml@novell.com>
2390
2391         * gdk/win32/gdkevents-win32.c
2392         * gdk/win32/gdkwindow-win32.c: Use wide-char API for message and
2393         window handling (PeekMessage, PostMessage, SendMessage,
2394         DispatchMessage, DefWindowProc, RegisterClassEx,
2395         CreateWindowEx). (#321597)
2396
2397 2006-09-03  Kristian Rietveld  <kris@imendio.com>
2398
2399         * gtk/gtkfilechooserdefault.c (save_entry_get_info_cb),
2400         (file_exists_get_info_cb), (gtk_file_chooser_default_should_respond):
2401         change file_exists_and_is_not_folder checks to get the file info
2402         for the path directly instead of querying the current file folder
2403         of the save entry.
2404
2405         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault): add
2406         new field.
2407
2408         * tests/autotestfilechooser.c (wait_for_idle_idle), (wait_for_idle),
2409         (test_reload_sequence), (test_button_folder_states_for_action): wait
2410         for idle after setting a folder to ensure the async operations to load
2411         the folder are finished,
2412         (test_confirm_overwrite), (test_confirm_overwrite_for_path):
2413         factor out test_confirm_overwrite code so we can add tests for more
2414         paths more easily.
2415
2416 2006-09-03  Richard Hult  <richard@imendio.com>
2417
2418         * gdk/quartz/GdkQuartzView.c (drawRect): Don't do anything if
2419         exposure isn't in the event mask, plug a leak, and check that the
2420         window isn't destroyed.
2421         (isOpaque): Check that the window isn't destroyed, fixes bug 
2422         #353028.
2423
2424 2006-09-03  Matthias Clasen  <mclasen@redhat.com>
2425
2426         * gtk/gtkwidget.c (gtk_widget_class_init): Fix a typo.  
2427         (#354035, Mariano Suárez-Alvarez)
2428
2429         * gtk/gtkmain.c (post_parse_hook): 
2430         * gdk/gdk.c (gdk_init): Handle display_name being NULL.
2431         (#354004, Chris Wilson)
2432
2433 2006-09-03  Tor Lillqvist  <tml@novell.com>
2434
2435         * gdk/win32/gdkwindow-win32.c (gdk_window_beep): No
2436         GDK_WINDOW_DISPLAY in the Win32 backend.
2437
2438         * gtk/gtkfilesystemwin32.c: Copy what Kris did to
2439         gtkfilesystemunix.c
2440
2441 2006-09-02  Kristian Rietveld  <kris@imendio.com>
2442
2443         First part of file chooser fixes.
2444
2445         * gtk/gtkfilechooserbutton.c (model_add_special): also set the
2446         handle in the model for the desktopdir case.
2447
2448         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder): free
2449         volume in case we retrieved it but don't pass it on to insert_path,
2450         (shortcuts_model_create): change the column type for the handles
2451         to pointer instead of GObject so our handle ref counting is not
2452         disturbed,
2453         (show_and_select_paths_finished_loading): don't forget to unref
2454         the dialog.
2455
2456         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_class_init),
2457         (gtk_file_system_unix_init), (gtk_file_system_unix_dispose):
2458         remove pending execute_callbacks_idle during dispose, also
2459         execute all callbacks waiting to be run in the next idle,
2460         (queue_*callback), (execute_callbacks_idle): refactor to maintain
2461         a list of callbacks to call per file system instead of globally,
2462         guard the file system during callback invocation,
2463         (gtk_file_system_unix_get_folder): only add load folder idle if
2464         none has been added yet.
2465
2466 2006-09-01  Matthias Clasen  <mclasen@redhat.com>
2467
2468         * gtk/gtkentry.c: Don't unnecessarily reset the im context
2469         when deleting the selection.  (#353803, Alex Larsson)
2470
2471 2006-09-01  Abel Cheung  <abel@oaka.org>
2472
2473         * configure.in: Added 'ang' 'dz' to ALL_LINGUAS.
2474
2475 2006-08-31  Matthias Clasen  <mclasen@redhat.com>
2476
2477         Stop cursor blinking after a configurable timeout.
2478         (#353670, #352442, Arjan van de Ven, Manu Cornet)
2479         
2480         * gtk/gtksettings.c (gtk_settings_class_init): Add a 
2481         gtk-cursor-blink-timeout setting, which specifies the number
2482         of seconds that the cursor should blink after a user interaction.
2483         The default value is G_MAXINT to preserve the current behaviour.
2484
2485         * gtk/gtkentry.c (blink_cb): Stop blinking after blink-timeout
2486         seconds.
2487
2488         * gtk/gtkentry.c (gtk_entry_completion_key_press) 
2489         (gtk_entry_button_press, gtk_entry_focus_in): Reset the
2490         blink timer.
2491
2492         * gtk/gtktextview.c (blink_cb): Stop blinking after blink-timeout
2493         seconds. 
2494
2495         * gtk/gtktextview.c (gtk_text_view_key_press_event) 
2496         (gtk_text_view_button_press_event, gtk_text_view_focus_in_event): 
2497         Reset the blink timer.
2498         
2499 2006-08-31  Matthias Clasen  <mclasen@redhat.com>
2500
2501         * gtk/gtkprintoperation-unix.c (get_print_dialog): Don't specify
2502         explicit format capabilities.  (#346505, Christian Persch)
2503
2504         * modules/printbackends/cups/gtkprintbackendcups.c (cups_request_printer_list_cb): Send printer-list-done on error. 
2505
2506 2006-08-31  Michael Natterer  <mitch@imendio.com>
2507
2508         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Fix build.
2509
2510 2006-08-30  Richard Hult  <richard@imendio.com>
2511
2512         * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): Fix build.
2513
2514 2006-08-30  Matthias Clasen  <mclasen@redhat.com>
2515
2516         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Only use XKB
2517         for beeping if we are using XKB.  
2518
2519 2006-08-29  Matthias Clasen  <mclasen@redhat.com>
2520
2521         * gdk/gdkwindow.h: 
2522         * gdk/gdk.symbols: 
2523         * gdk/directfb/gdkwindow-directfb.c (gdk_window_beep): 
2524         * gdk/win32/gdkwindow-win32.c (gdk_window_beep): 
2525         * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): 
2526         * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Add a function
2527         to beep on a window. For X11, implement this with
2528         XkbBell.  (#353455, Mariano Suárez-Alvarez)
2529         
2530 2006-08-29  Tor Lillqvist  <tml@novell.com>
2531
2532         Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x
2533         since 2.6 or 2.8. It's pointless to keep the Win9x code in here as
2534         it isn't being maintained anyway. If somebody is interested, it
2535         can always be found in older GTK+ versions, and in CVS.
2536
2537         * configure.in
2538         * acconfig.h
2539         * gdk/Makefile.am
2540         * gdk/win32/Makefile.am
2541         * gdk/win32/libie55uid.la
2542         * gdk/win32/gdkevents-win32.c: Remove the --with-ie55 configure
2543         switch and associated stuff. Active IMM and the <dimm.h> header
2544         was used for IM support on NT4 and Win9x. Win2k and later have IM
2545         support built-in.
2546
2547         * gdk/win32/gdkcursor-win32.c
2548         * gdk/win32/gdkdnd-win32.c
2549         * gdk/win32/gdkdrawable-win32.c
2550         * gdk/win32/gdkevents-win32.c
2551         * gdk/win32/gdkgc-win32.c
2552         * gdk/win32/gdkglobals-win32.c
2553         * gdk/win32/gdkkeys-win32.c
2554         * gdk/win32/gdkmain-win32.c
2555         * gdk/win32/gdkproperty-win32.c
2556         * gdk/win32/gdkselection-win32.c
2557         * gdk/win32/gdkwindow-win32.c: Remove the G_WIN32_IS_NT_BASED()
2558         and G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
2559         branches, and any variables or static functions used only by the
2560         Win9x branches.
2561
2562         * gdk/win32/gdkprivate-win32.h: Remove backup definitions for
2563         constants that aren't missing from current mingw and MSVC6
2564         headers.
2565
2566         * gdk/win32/gdkmain-win32.c
2567         * gdk/win32/gdkprivate-win32.h: Remove the _gdk_win32_gdi_failed()
2568         function. On NT-based Windows GetLastError() returns error codes
2569         also for failed GDI calls, so we can use _gdk_win32_api_failed()
2570         always.
2571
2572 2006-08-29  Emmanuele Bassi  <ebassi@gnome.org>
2573
2574         * gtk/gtkrecentchoosermenu.c
2575         (gtk_recent_chooser_menu_set_current_uri): Break when an item
2576         is found and activated. (#353449, based on a patch by Jan Arne
2577         Petersen)
2578
2579 Fri Jul 14 16:13:37 2006  Tim Janik  <timj@gtk.org>
2580
2581         * gtk/gtkprogressbar.c: introduced ::xspacing and ::yspacing style 
2582         properties which make all hardcoded padding and spacing values
2583         configurable. properly swap ::text-xalign treatment for RTL widgets.
2584
2585         * gtk/gtkprogress.c: fixed style property blurbs. made alignment 
2586         proeprty more consistent with GtkMisc alignment blurbs. mention
2587         RTL treatment for text-xalign.
2588
2589 Tue Aug 29 11:57:40 2006  Tim Janik  <timj@imendio.com>
2590
2591         * tests/testgtk.c: allow (most) windows to be resizable.
2592         added ellipsization settings to progress bars. 
2593
2594 2006-08-28  Matthias Clasen   <mclasen@redhat.com>
2595
2596         * modules/printbackend/cups/gtkprintbackendcups.c: Use a
2597         resonable timeout of 3 seconds when polling for printer
2598         list updates, instead of 300000 seconds...
2599
2600 2006-08-28  Michael Natterer  <mitch@imendio.com>
2601
2602         * gtk/gtktextbufferserialize.c (serialize_text): don't write out
2603         </apply_tag> for tags that have already been closed by the logic
2604         which turns overlapping spans into XML-able trees. Fixes broken
2605         XML when there are overlapping tags in the buffer. Also free two
2606         leaked GLists and did some cleanup.
2607
2608         * tests/Makefile.am
2609         * tests/testrichtext.c: new test which creates randomly tagged
2610         GtkTextBuffers and serializes/deserializes them.
2611
2612 2006-08-26  Matthias Clasen  <mclasen@redhat.com>
2613
2614         * gtk/gtkstatusicon.c (gtk_status_icon_reset_image_data): 
2615         Don't leak pixbufs.  (#352264, Ross Burton)
2616
2617         * gtk/gtklinkbutton.c (set_link_underline): Don't leak
2618         PangoAttributes.  (#352391, Paolo Borelli)
2619
2620 2006-08-25  Matthias Clasen  <mclasen@redhat.com>
2621
2622         * demos/gtk-demo/Makefile.am:
2623         * demos/gtk-demo/textscroll.c: Add an example of automatic
2624         scrolling, thanks to Yevgen Muntyan.  (#351206)
2625         
2626         * gtk/gtkmodules.c (find_module): Use local binding when
2627         loading modules.  (#351868)
2628
2629 2006-08-24  Michael Natterer  <mitch@imendio.com>
2630
2631         * gdk/quartz/gdkdisplay-quartz.c (gdk_display_get_name): return
2632         the hostname instead of NULL.
2633
2634 2006-08-23  Matthias Clasen  <mclasen@redhat.com>
2635
2636         * gtk/gtkprinteroptionwidget.[hc]: Fix confusion about
2637         names and values in comboboxes, and clean up some
2638         coding style issues.
2639
2640 2006-08-23  Tor Lillqvist  <tml@novell.com>
2641
2642         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
2643         Revert unintended translatable string addition. Use same string
2644         in GError as in gtkfilesystemunix.c.
2645
2646         * gtk/gtkfilesystemwin32.c (_gtk_file_system_win32_path_compare):
2647         Fix logic at the end of strings. 
2648
2649         * gtk/gtkfilesystemwin32.c: Maintain a hash table of live
2650         handles and check that we have no outstanding handles at
2651         finalization time. (Copying what Matthias did for
2652         gtkfilesystemunix.c)
2653
2654 2006-08-23  Matthias Clasen  <mclasen@redhat.com>
2655
2656         * gtk/gtkfilesystemunix.c: Maintain a hash table
2657         of live handles and check that we have no outstanding
2658         handles at finalization time. (Copying what
2659         Federico did for gtkfilesystemgnomevfs.c)
2660
2661 2007-08-22  Matthias Clasen  <mclasen@redhat.com> 
2662
2663         * Branch for 2.10
2664