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