2006-05-26  Matthias Clasen  <mclasen@redhat.com>

	* === Released 2.8.18 ===

	* NEWS: Updates

2006-05-26  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_queue_draw_arrow): queue a redraw
	for the full width of the row, not just the width we got allocated.
	(Fixes #333284, reported by Benjamin Berg).

2006-05-26  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_get_cell_area): We shouldn't
	subtract 1 from the depth when calculating the space reserved for
	the expanders.  (#342260, Jorg Schuler).

2006-05-26  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (validate_visible_area): add missing chunk from
	patch in #316689,
	(gtk_tree_view_top_row_to_dy): set dy to page_size + height in the
	event dy + page_size is about to become bigger than height.

2006-05-22  Behdad Esfahbod  <behdad@gnome.org>

	Rollback the following changes, to fix it the proper way in Pango:

	* gdk/gdkinternals.h:
	* gdk/gdkscreen.c (gdk_screen_class_init), (gdk_screen_finalize),
	(update_fontmap_resolution), (gdk_screen_set_resolution_libgtkonly):
	Add new function _gdk_screen_get_font_map() and have one fontmap per
	screen, with the correct resolution set on it.

	* gdk/gdkpango.c (gdk_pango_context_get_for_screen): Use
	_gdk_screen_get_font_map() instead of setting resolution on the
	PangoCairoContext.  (#342529)

2006-05-21  Behdad Esfahbod  <behdad@gnome.org>

	* gdk/gdkinternals.h:
	* gdk/gdkscreen.c (gdk_screen_class_init), (gdk_screen_finalize),
	(update_fontmap_resolution), (gdk_screen_set_resolution_libgtkonly):
	Add new function _gdk_screen_get_font_map() and have one fontmap per
	screen, with the correct resolution set on it.

	* gdk/gdkpango.c (gdk_pango_context_get_for_screen): Use
	_gdk_screen_get_font_map() instead of setting resolution on the
	PangoCairoContext.  (#342529)

2006-05-19  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkpaned.c (gtk_paned_compute_position): Avoid warnings
	if a child is NULL.  (#342007, Patrick Monnerat)

	* gtk/gtknotebook.c (gtk_notebook_pages_allocate): Fix a 
	boundary case in scrolling where a tab was not shown.  (#168105,
	Hiroyuki Ikezoe, patch by Kouhei Sutou)

2006-05-19  Damon Chaplin  <damon@gnome.org>

	* gtk/gtkfontsel.c (gtk_font_selection_init): use
	atk_relation_add_target() to add the targets, since it sets up weak
	references to avoid crashes. (#305530)

2006-05-18  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcalendar.c (gtk_calendar_drag_motion): Don't produce
	a stuck drag if shift is held.  (#341734, Sebastien Bacher)

	* gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display): 
	Always set protocol.  (#342003, Tommi Komulainen)

	* gtk/gtkimage.c (icon_theme_changed): Only unref the pixbuf
	if the image has the appropriate storage type.  (#342096, Tommi
	Komulainen)

	* gtk/gtkentry.c (gtk_entry_drag_data_received): Make drops
	end up at the right spot.  (#342072,  Yevgen Muntyan)

2006-05-15  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_button_press): Fix
	an RTL problem with toggles in expander columns. 
	(#341896, Roozbeh Pournader) 

2006-05-09  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkevents-win32.c (doesnt_want_scroll): Look at both
	GDK_SCROLL_MASK and GDK_BUTTON_PRESS_MASK. (#139628)

2006-05-03  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor):
	don't use non-existing local variables.

2006-04-29  Behdad Esfahbod  <behdad@gnome.org>

	* gtk/gtkwidget.c (gtk_widget_create_pango_layout)
	(gtk_widget_get/create_pango_context): Change colormap to font map in
	docs. (#340093)

2006-04-28  Behdad Esfahbod  <behdad@gnome.org>

	* gtk/gtkwidget.c (gtk_widget_create_pango_layout): Fix typo in
	docs. (#340063)

2006-04-27  Behdad Esfahbod  <behdad@gnome.org>

	* gdk/gdkpango.c (gdk_pango_renderer_draw_glyphs): Cast to double
	before dividing by PANGO_SCALE. (#334582)

2006-04-27  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkdnd.c (gtk_drag_set_icon_window): Handle the case
	of being called after the drag is cancelled.  (#339224,
	Benjamin Otte)

2006-04-19  Murray Cumming  <murrayc@murrayc.com>

	* gtk/gtkfilechooserbutton.c: _GtkFileChooserButtonPrivate:
	Added has_title flag so we can remember whether a title has 
	been set.
	(gtk_file_chooser_button_constructor): If no title has been
	set then set it to the default title. This means that the 
	default title will be used if the dialog was instantiated with 
	g_object_new(), without using the gtk_file_chooser_button_new() 
	convenience function. This helps language bindings.
	(gtk_file_chooser_button_set_property): Set has_title when 
	setting the title.

2006-04-19  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkkeys-win32.c (handle_special): Map VK_NUMPAD[0-9]
	to GDK_KP_[0-9]. (#337562)

2006-04-16  Matthias Clasen <mclasen@redhat.com>

	* gdk/x11/gdkwindow-x11.c (set_initial_hints ): Avoid a
	possible array overrun.  (Coverity)

	* gtk/gtkcalendar.c (gtk_calendar_key_press): Avoid a 
	possible array overrun.  (Coverity)

	* gtk/gtktextbuffer.c (_gtk_text_buffer_remove_all_tags):
	Avoid a NULL dereference.  (Coverity)

2006-04-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_header_focus): Reorganize slightly
	to avoid a possible NULL pointer dereference.  (Coverity)

2006-04-12  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_get_arrow_xrange): Don't
	allow passing NULL for x1 or x2, adjust callers.

	* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_get_neighbor_sizes): 
	Reorganize to avoid a possible NULL pointer dereference.  (Coverity)
	
	* gtk/gtknotebook.c (gtk_notebook_page_allocate): Reorganize
	to avoid a possible NULL dereference.  (Coverity)

	* gdk/x11/gdkimage-x11.c (gdk_image_new_bitmap): Handle
	closed displays correctly.  (Coverity)

	* contrib/gdk-pixbuf-xlib/Makefile.am:
	* modules/engines/pixbuf/Makefile.am
	* gdk-pixbuf/Makefile.am: Build fixes for Cygwin.  (#338262)

	* gdk/x11/gdkselection-x11.c (make_list): Make this work
	for list == NULL.  (Coverity)

	* gtk/gtktextlayout.c (gtk_text_layout_validate_yrange): 
	Handle _gtk_text_line_get_data() returning NULL in all
	cases.  (Coverity)

	* gtk/gtkuimanager.c (start_element_handler): Don't pass
	a negative value as string length to get_child_node().  (Coverity)

2006-04-11  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkkeys-x11.c (get_xkb): Return early in error 
	cases.  (Coverity)

	* gtk/gtktextview.c (selection_motion_event_handler): Remove
	some unused variables.

	* gtk/gtktreeview.c ((gtk_tree_view_search_position_func): Apply
	a patch from David Trowbridge to improve the positioning of the
	search popup.  (#338047)

2006-04-11  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkiconview.c (gtk_icon_view_set_cursor): Handle info
	being NULL better.  (Coverity)

	* gtk/gtkscale.c (gtk_scale_get_layout_offsets): Silence
	compiler warnings.

	* gtk/gtkinputdialog.c (gtk_input_dialog_set_mapping_mode): Don't
	dereference info before checking it for NULL.  (Coverity)