2006-01-19  Kouhei Sutou  <kou@cozmixng.org>

	* sample/pac.rb: use save instead of Proc.

	* src/rbgp.c (Gnome::Print::BINDING_VERSION): added.
	* src/rbgp.h (RBGP_{MAJOR,MINOR,MICRO}_VERSION): added.

2005-10-17  Kouhei Sutou  <kou@cozmixng.org>

	* sample/gp-pac.rb: Use path not dummy fill.
	* sample/pac.rb: ditto.

2005-10-14  Kouhei Sutou  <kou@cozmixng.org>

	* sample/gp-pac.rb: Add sample GnomePrint-ly version pac.rb.

	* src/lib/gnomeprint2.rb (Gnome::PrintContext#rounded_rect_filled) 
	(Gnome::PrintContext#rounded_rect_stroked) 
	(Gnome::PrintContext#circle_to): Added convenience API.

	* sample/pac.rb:
	- Added sample based on pac.rb in
	  http://www.artima.com/rubycs/articles/pdf_writer3.html.
	- Use above convenience API.

	* sample/to_file.rb: Use Gnome::PrintContext#stroke and
	Gnome::PrintContext#fill with block.

	* src/rbgp-gnome-print.c: Return self instead of nil.
	(gp_fill, gp_eofill, gp_stroke): Accept	block.

2005-10-10  Kouhei Sutou  <kou@cozmixng.org>

	* src: Fixed indentation.

	* extconf.rb: Use make_version_header.

	* src: Revised copyright information.

	* src/rbgp-gnome-print-pango.h: Removed.
	
2005-10-03  Kouhei Sutou  <kou@cozmixng.org>

	* src/rbgp.c (Gnome::Print::BUILD_VERSION): Added.

	* extconf.rb: Generate rbgp-version.h.

2005-09-11  Kouhei Sutou  <kou@cozmixng.org>

	* src/rbgp-gnome-print.c (gp_gsave): Return the result of yield if
	available.
	(gp_gsave): Ensure restore.

	* test/run-test.rb: Support newlly Test::Unit::AutoRunner#run API.

	* src/rbgp.h: Move Init_*() to ...

	* src/rbgp.c: ... here.
	
	* src/rbgp-utils.h: Remove. Move check_return_code() to ...
	
	* src/rbgp.h: ... here. And ...

	* src/rbgp.h, src/rbgp-gnome-print-job.c, src/rbgp-gnome-print.c:
	... Add 'rbgp_' prefix to check_return_code().

	* src/rbgp-gpa-settings.c (gp_gpa_settings_initialize): Fix
	compiling warnings.

2005-07-24  Masao Mutoh  <mutoh@highway.ne.jp>

	* src/src/rbgp-gnome-print-config.c, rbgp-gnome-print-paper.c, 
	rbgp-gnome-print-unit.c, rbgp-gnome-print.c, rbgp-gpa-node.c, 
	rbgp-gpa-printer.c: Fix compiling warnings.

2005-07-18  Kouhei Sutou  <kou@cozmixng.org>

	* sample/to_file.rb (Renderer#draw_line): added filled line
	  sample.

2005-06-10  Kouhei Sutou  <kou@cozmixng.org>

	* src/rbgp.h: showed Gnome::PrintUnitBase <-> Ruby object
	  conversion macro to the public.

	* extconf.rb: added Ruby/Libart2 to depend packages.

	* src/rbgp-gnome-print.c (gp_concat): use Art::Affine instead of
	  an array.
	
	* src/rbgp-gnome-print.c (gp_context_pages): added for convenience.

	* src/rbgp-gnome-print.c (gp_context_new): argument config is
	  optional.

2005-06-09  Kouhei Sutou  <kou@cozmixng.org>

	* sample/to_file.rb (Renderer#draw): use block.

	* src/rbgp-gnome-print-unit.c (gp_convert_distance_full): added
	  `_' between variable name.

	* src/rbgp-gnome-print-paper.c (gp_paper_get_generic): fixed
	  optional argument detecting.

2005-06-08  Kouhei Sutou  <kou@cozmixng.org>

	* src/rbgp-gnome-print-job.c (gp_job_print_to_file): supported nil.

	* src/rbgp-gnome-print-job.c (gp_job_get_page_size, gp_job_new):
	  checked return value.

	* src/rbgp-gnome-print-config.c (gp_config_get_page_size): checked
	  return value of gnome_print_config_get_page_size().

	* sample/to_file.rb (Renderer#draw_image_by_convenience): added
	  sample for Gnome::PrintContext#image.

	* sample/to_file.rb (Renderer#draw_image_by_low_level_api): added
	  sample for Gnome::PrintContext#*_image.

	* src/lib/gnomeprint2.rb (Gnome::PrintContext#image): added
	  callback for customize context.

	* sample/to_file.rb (Renderer#draw_image): use
	  Gnome::PrintContext#image instead of using
	  Gnome::PrintContext#rgb_image and Gnome::PrintContext#rgba_image
	  directory.

	* src/lib/gnomeprint2.rb (Gnome::PrintContext#image): added for
	  convenience.

	* sample/to_file.rb (Renderer#draw_line): added sample of
	  Gnome::PrintContext#set_dash.

	* sample/to_file.rb (Renderer#draw_rectangle, Renderer#draw_line):
	  added sample of Gnome::PrintContext#line_cap= and
	  Gnome::PrintContext#line_join=.

	* src/rbgp-gnome-print.c (gp_setfont, gp_glyphlist, RVAL2CONST_GF):
	  removed. use Pango instead of them.

2005-06-07  Kouhei Sutou  <kou@cozmixng.org>

	* sample/to_file.rb (Renderer#draw_concat): added concat() sample.

	* src/rbgp-gnome-print.c (rb_array_to_gdouble_array): fixed
	  strange conversion bug.

2005-06-07  Kouhei Sutou  <kou@cozmixng.org>

	* src/rbgp-gnome-print.c (gp_path): added generic function
	  for bpath and vpath.
	
	* src/rbgp-gnome-print.c (gp_bpath, gp_vpath):
	  - senconed argument 'append' is optional. default value is true.
	  - use get_art_bpath()/get_arg_vpath() provided by Ruby/Libart
	    instead of my macro.

	* sample/to_file.rb:
	  - added bpath and vpath sample.
	  - added label of sample for easy to find the target sample.

2005-06-05  Kouhei Sutou  <kou@cozmixng.org>

	* src/rbgp-utils.c (check_return_code): alwayes returns nil unless
	  raises an exception.

	* src/rbgp-gnome-print.c (gp_arcto): use boolean instead of 1
	  or 0.

	* sample/to_file.rb (Renderer#draw_arc): followed the above
	  change.

2005-02-01  Kouhei Sutou  <kou@cozmixng.org>

	* extconf.rb: reverted dependency.

2005-01-31  Kouhei Sutou  <kou@cozmixng.org>

	* extconf.rb: updated dependency.

	* README: ditto.

	* src/rbgp-gpa-settings.c (gp_gpa_settings_initialize): `model' is
	  always required because gpa_settings_new_empty()'s
	  implementation doesn't exist.

2005-01-30  Masao Mutoh  <mutoh@highway.ne.jp>

	* extconf.rb: Follow mkmf-gnome2.rb changes. 

2004-12-16  Kouhei Sutou  <kou@cozmixng.org>

	* src/rbgp-gnome-print-config.c (gp_config_get_length): fixed
	  GnomePrintUnit <-> Ruby object bug.
	  (gp_config_set_length): ditto.

	* src/rbgp-gnome-print-unit.c: changed PrintUnit#convert_distance
	  to generic method.

2004-12-12  Kouhei Sutou  <kou@cozmixng.org>

	* src/rbgp-gnome-print-unit.c: added fallbacks.

2004-12-10  Kouhei Sutou  <kou@cozmixng.org>

	* sample/to_file.rb (Renderer#draw_arc): fixed wrong
	  Gnome::PrintContext#set_rbg_color argument.

2004-12-07  Kouhei Sutou  <kou@cozmixng.org>

	* src/lib/gnomeprint2.rb: removed backward compatibility for Rabbit
	  0.0.5. (It wasn't backward compatibility for typo...)

	* src/rbgp-gnome-print-paper.c (gp_paper_get_generic): fixed wrong
	  arg number bug pointed by Kazuhiko <kazuhiko@fdiary.net>. Thanks!

2004-11-13  Kouhei Sutou  <kou@cozmixng.org>

	* src/rbgp-gnome-print.c (Init_gnome_print): Adapted
	  Gnome::PrintReturnCode to GEnum/GFlags policy of Ruby-GNOME2.

	* src/rbgp-gnome-print-unit.c (Init_gnome_print_unit): Adapted
	  Gnome::PrintUnitBase to GEnum/GFlags policy of Ruby-GNOME2.

2004-11-03  Kouhei Sutou  <kou@cozmixng.org>

	* src/lib/gnomeprint2.rb: added backward compatibility for Rabbit
	  0.0.5.

2004-10-24  Kouhei Sutou  <kou@cozmixng.org>

	* src/rbgp-gpa-printer.c: added G_DEF_SETTERS.

	* src/rbgp-gpa-node.c: added G_DEF_SETTERS.

	* src/rbgp-gpa-printer.c (GPAPrinter.list_load: removed.

	* src/rbgp-gpa-state.c: added.

	* src/rbgp-gpa-list.c: added.

	* src/lib/gnomeprint2.rb: added backward compatibility for Rabbit
	  0.0.5.

	* src/* (Init_*): removed mGP.
	
	* src/rbgp-gpa-settings.c: added.

	* src/rbgp-gpa-root.c: added.

	* src/rbgp-gpa-printer.c: added.

	* src/rbgp-gpa-node.c: added.

	* src/rbgp-gpa-model.c: added.
	

2004-10-19  Kouhei Sutou  <kou@cozmixng.org>

	* src/lib/gnomeprint2.rb: called GLib::Log.set_log_domain.

	* extconf.rb: used PKGConfig.have_pacakge instead of
	  PKGConfig.or_newer?.

2004-10-17  Kouhei Sutou  <kou@cozmixng.org>

	* src/rbgp-gnome-print-config.c: PrintConfig.new ->
	  PrintConfig#initialize.

	* src/rbgp-gnome-print-config.c (PrintConfig.new): removed
	  PrintConfig.default function.

	* src/rbgp-gnome-print{,-config,-unit,job}.c: removed G_DEF_SETTERS.

	* src/rbgp-gnome-print-paper.c (PrintPaper#get): added. use
	  instead of PrintPaper#get_*.

	* src/rbgp-gnome-print-paper.c (PrintPaper#get_*): removed. use
	  PrintPaper#get.

	* src/rbgp-gnome-print-config.c (PrintConfig.from_string):
	  removed. Use PrintConfig.new(string).

	* src/*.{c,h}: added copyright header.

	* COPYING.LIB: added.

	* README: added Copying and Project Website.

2004-10-15  Kouhei Sutou  <kou@cozmixng.org>

	* src/rbgp-gpa-root.c: Gnome::PrintGPA::Printer ->
	  Gnome::PrintPrinter.

	* src/rbgp-gnome-print-unit.c: handled base as GnomePrintUnitBase
	  not as integer.

	* src/rbgp-gnome-print-unit.c (PrintUnit#convert_*): added error
	  handling.

	* src/rbgp-utils.c: ADDED: utilities for handing error.

	* src/rbgp-gnome-print.c: added error handling.

	* src/rbgp-gnome-print-job.c: added error handling.

	* src/rbgp-gnome-print-pango.c: wrapper method of function which
	  returns void returns Qnil.

	* src/rbgp-gnome-print-config.c (PrintConfig#to_s,
	  PrintConfig.from_string): changed flags to optional argument
	  because flags isn't used in libgnomeprint.

	* src/rbgp-gnome-print-config.c (PrintConfig#get*): return Qnil if
	  fail.

	* src/rbgp-gnome-print-config.c (PrintConfig#dump): return Qnil.

	* src/rbgp-gnome-print-unit.c:
	  Gnome::PrintUnit.convert_distance*(..., from, ...) ->
	  from.convert_distance*(...)

	* gnomeprint: imported gnomeprint.
