oocairo.git
14 months agoMake this compile with lua 5.2 master
Uli Schlachter [Thu, 29 Mar 2012 15:29:27 +0000 (17:29 +0200)]
Make this compile with lua 5.2

Big thanks to Evan McClain <aeroevan@gmail.com> for a preliminary patch on which
I based this! (Sorry, but I like my version more :-P)

Signed-off-by: Uli Schlachter <psychon@znc.in>

14 months agoCache the result of the lua version check
Uli Schlachter [Thu, 29 Mar 2012 15:05:45 +0000 (17:05 +0200)]
Cache the result of the lua version check

Signed-off-by: Uli Schlachter <psychon@znc.in>

14 months agoAdd support for cairo 1.12's map_to_image
Uli Schlachter [Wed, 28 Mar 2012 16:11:01 +0000 (18:11 +0200)]
Add support for cairo 1.12's map_to_image

Signed-off-by: Uli Schlachter <psychon@znc.in>

14 months agoAdd support for cairo 1.12's create_similar_image
Uli Schlachter [Wed, 28 Mar 2012 15:49:27 +0000 (17:49 +0200)]
Add support for cairo 1.12's create_similar_image

Signed-off-by: Uli Schlachter <psychon@znc.in>

14 months agoAdd support for cairo 1.12.0's supports_mime_type
Uli Schlachter [Wed, 28 Mar 2012 15:38:21 +0000 (17:38 +0200)]
Add support for cairo 1.12.0's supports_mime_type

Signed-off-by: Uli Schlachter <psychon@znc.in>

14 months agoTests: Remove an unused variable
Uli Schlachter [Tue, 27 Mar 2012 20:49:17 +0000 (22:49 +0200)]
Tests: Remove an unused variable

Signed-off-by: Uli Schlachter <psychon@znc.in>

14 months agoAdd support for cairo 1.12.0's mesh patterns
Uli Schlachter [Tue, 27 Mar 2012 20:48:29 +0000 (22:48 +0200)]
Add support for cairo 1.12.0's mesh patterns

Signed-off-by: Uli Schlachter <psychon@znc.in>

14 months agoMake sure "make dist" includes obj_region.c
Uli Schlachter [Tue, 20 Mar 2012 22:03:10 +0000 (23:03 +0100)]
Make sure "make dist" includes obj_region.c

This fixes "make distcheck".

Signed-off-by: Uli Schlachter <psychon@znc.in>

16 months agoTests: Fix for cairo 1.12.0
Uli Schlachter [Fri, 10 Feb 2012 17:09:23 +0000 (18:09 +0100)]
Tests: Fix for cairo 1.12.0

cairo recently (and accidentally?) changed its behavior and now the test fails.

Signed-off-by: Uli Schlachter <psychon@znc.in>

20 months agoAPI: Add functions for pushing all kinds of objects
Uli Schlachter [Sat, 8 Oct 2011 13:20:43 +0000 (15:20 +0200)]
API: Add functions for pushing all kinds of objects

Signed-off-by: Uli Schlachter <psychon@znc.in>

20 months agoImplement region_create_rectangles()
Uli Schlachter [Sat, 8 Oct 2011 12:57:44 +0000 (14:57 +0200)]
Implement region_create_rectangles()

Signed-off-by: Uli Schlachter <psychon@znc.in>

20 months ago"Update" the TODO list
Uli Schlachter [Mon, 3 Oct 2011 20:53:09 +0000 (22:53 +0200)]
"Update" the TODO list

Signed-off-by: Uli Schlachter <psychon@znc.in>

20 months agoAdd support for the region API from cairo 1.10
Uli Schlachter [Mon, 3 Oct 2011 20:40:53 +0000 (22:40 +0200)]
Add support for the region API from cairo 1.10

Signed-off-by: Uli Schlachter <psychon@znc.in>

20 months agoAdd support for mime data (added in cairo 1.10)
Uli Schlachter [Mon, 3 Oct 2011 19:19:11 +0000 (21:19 +0200)]
Add support for mime data (added in cairo 1.10)

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoBump version to 1.4 v1.4
Uli Schlachter [Wed, 18 May 2011 18:19:41 +0000 (20:19 +0200)]
Bump version to 1.4

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFix cr_in_clip
Uli Schlachter [Sun, 15 May 2011 20:13:41 +0000 (22:13 +0200)]
Fix cr_in_clip

Instead of calling cairo_in_clip, it was calling cairo_in_fill due to a
copy&paste error. This also caused a wrong test to be written.

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoUse -no-undefined for libtool
Uli Schlachter [Sun, 15 May 2011 12:23:47 +0000 (14:23 +0200)]
Use -no-undefined for libtool

This causes libtool to use -Wl,-no-undefined so that make will fail if there are
any undefined symbols. Additionally, this might (in theory) make all this work
on windows with shared libs.

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd -Wunused properly to the warning flags
Uli Schlachter [Fri, 4 Mar 2011 18:00:52 +0000 (19:00 +0100)]
Add -Wunused properly to the warning flags

Commit 0d65350 tried to add -Wunused, but accidentally disabled all the other
warning flags. This is fixed now.

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFix testsuite failures with cairo 1.8
Uli Schlachter [Fri, 4 Mar 2011 17:58:39 +0000 (18:58 +0100)]
Fix testsuite failures with cairo 1.8

All the version checks for cairo 1.10 that I added to the test suite were
broken. Whoops.

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFix test/path.lua with cairo 1.8
Uli Schlachter [Fri, 4 Mar 2011 17:54:41 +0000 (18:54 +0100)]
Fix test/path.lua with cairo 1.8

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd functions for getting an object's status
Uli Schlachter [Fri, 4 Mar 2011 17:51:32 +0000 (18:51 +0100)]
Add functions for getting an object's status

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd subsurfaces
Uli Schlachter [Sun, 27 Feb 2011 12:46:03 +0000 (13:46 +0100)]
Add subsurfaces

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd new surface types from 1.10.0
Uli Schlachter [Sun, 27 Feb 2011 12:45:37 +0000 (13:45 +0100)]
Add new surface types from 1.10.0

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd more cairo version information
Uli Schlachter [Sun, 27 Feb 2011 12:45:11 +0000 (13:45 +0100)]
Add more cairo version information

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd cairo_pdf_surface_restrict_to_version
Uli Schlachter [Sun, 27 Feb 2011 12:22:29 +0000 (13:22 +0100)]
Add cairo_pdf_surface_restrict_to_version

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd -Wunused to the compiler flags
Uli Schlachter [Sun, 27 Feb 2011 12:22:19 +0000 (13:22 +0100)]
Add -Wunused to the compiler flags

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd cr:in_clip()
Uli Schlachter [Sun, 27 Feb 2011 11:29:16 +0000 (12:29 +0100)]
Add cr:in_clip()

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd support for cairo 1.10's recording surface
Uli Schlachter [Sun, 27 Feb 2011 11:25:28 +0000 (12:25 +0100)]
Add support for cairo 1.10's recording surface

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd a copyright header to all files
Uli Schlachter [Sun, 27 Feb 2011 11:00:07 +0000 (12:00 +0100)]
Add a copyright header to all files

The text is taken from COPYRIGHT.

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFix an invalid test
Uli Schlachter [Tue, 25 Jan 2011 14:27:37 +0000 (15:27 +0100)]
Fix an invalid test

cairo_scaled_font_get_font_face() doesn't necessarily return the font face that
was used for creating the scaled font. This introduced in cairo 1.10.

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agouser-font: Don't try to free() stack variables
Uli Schlachter [Fri, 21 Jan 2011 21:34:01 +0000 (22:34 +0100)]
user-font: Don't try to free() stack variables

The text_to_glyphs callback for user fonts is called via a stack-allocated
variable from cairo. Passing that to free() isn't a good idea. But we don't have
to! The caller will make sure that the glyph array is freed correctly, so we can
just "leak" it.

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoRevert "Add type() functions for identifying classes"
Uli Schlachter [Fri, 21 Jan 2011 18:48:20 +0000 (19:48 +0100)]
Revert "Add type() functions for identifying classes"

This reverts commit 5f5aec50509357f688b227ee274f9cdba645fd5e.

Instead of adding a type() function, we already have ._NAME which should be used
instead. Whooops.

2 years agoError out when we can't find the lua CMOD path
Uli Schlachter [Sat, 8 Jan 2011 10:59:03 +0000 (11:59 +0100)]
Error out when we can't find the lua CMOD path

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoconfigure: Fail if pod2man is not found
Uli Schlachter [Sat, 9 Oct 2010 08:44:25 +0000 (10:44 +0200)]
configure: Fail if pod2man is not found

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd a missing #if
Uli Schlachter [Tue, 5 Oct 2010 15:31:21 +0000 (17:31 +0200)]
Add a missing #if

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFix various #ifs
Uli Schlachter [Tue, 5 Oct 2010 15:31:02 +0000 (17:31 +0200)]
Fix various #ifs

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFix a "make distcheck" failure due to missing file
Uli Schlachter [Sat, 2 Oct 2010 13:18:30 +0000 (15:18 +0200)]
Fix a "make distcheck" failure due to missing file

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoBugfix for finding the lua path
Uli Schlachter [Fri, 1 Oct 2010 23:16:53 +0000 (01:16 +0200)]
Bugfix for finding the lua path

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd an autogen.sh script
Uli Schlachter [Fri, 1 Oct 2010 16:48:13 +0000 (18:48 +0200)]
Add an autogen.sh script

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agopkg-config: Check for lua vs lua5.1
Uli Schlachter [Tue, 14 Sep 2010 15:20:48 +0000 (17:20 +0200)]
pkg-config: Check for lua vs lua5.1

Apparently, debian is the only distro that uses lua5.1 for lua's pkg-config
file. Fix this by checking for both, "lua" and "lua5.1".

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFix manpage section
Julien Danjou [Thu, 2 Sep 2010 19:19:37 +0000 (21:19 +0200)]
Fix manpage section

Signed-off-by: Julien Danjou <julien@danjou.info>
Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoDo not install examples as documentation
Julien Danjou [Thu, 2 Sep 2010 19:02:22 +0000 (21:02 +0200)]
Do not install examples as documentation

Signed-off-by: Julien Danjou <julien@danjou.info>
Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoMove the check for lua's libdir into a seperate file
Uli Schlachter [Wed, 1 Sep 2010 09:41:00 +0000 (11:41 +0200)]
Move the check for lua's libdir into a seperate file

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd some warning flags to configure
Uli Schlachter [Wed, 1 Sep 2010 09:20:22 +0000 (11:20 +0200)]
Add some warning flags to configure

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd type() functions for identifying classes
Uli Schlachter [Tue, 31 Aug 2010 17:54:13 +0000 (19:54 +0200)]
Add type() functions for identifying classes

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoUpdate Changes, add missing dist files v1.3
Uli Schlachter [Tue, 31 Aug 2010 16:02:23 +0000 (18:02 +0200)]
Update Changes, add missing dist files

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoImprovements to configure.ac and bump version
Uli Schlachter [Tue, 31 Aug 2010 16:01:30 +0000 (18:01 +0200)]
Improvements to configure.ac and bump version

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoGet rid of some wrong znc references
Uli Schlachter [Tue, 31 Aug 2010 16:00:02 +0000 (18:00 +0200)]
Get rid of some wrong znc references

2 years agoFix some copyright problem
Uli Schlachter [Tue, 31 Aug 2010 12:10:55 +0000 (14:10 +0200)]
Fix some copyright problem

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoMake sure "make clean" leaves no stuff behind
Uli Schlachter [Tue, 31 Aug 2010 11:49:21 +0000 (13:49 +0200)]
Make sure "make clean" leaves no stuff behind

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoPrefix our defines with OOCAIRO_
Uli Schlachter [Tue, 31 Aug 2010 11:37:56 +0000 (13:37 +0200)]
Prefix our defines with OOCAIRO_

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoMake the doc building nicer
Uli Schlachter [Tue, 31 Aug 2010 11:33:58 +0000 (13:33 +0200)]
Make the doc building nicer

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFix make dist and add docs
Uli Schlachter [Tue, 31 Aug 2010 11:27:11 +0000 (13:27 +0200)]
Fix make dist and add docs

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd .gitignore file
Uli Schlachter [Tue, 31 Aug 2010 11:26:39 +0000 (13:26 +0200)]
Add .gitignore file

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoRemove the generated man pages
Uli Schlachter [Tue, 31 Aug 2010 11:25:35 +0000 (13:25 +0200)]
Remove the generated man pages

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoImport rule for man pages
Uli Schlachter [Tue, 31 Aug 2010 11:04:22 +0000 (13:04 +0200)]
Import rule for man pages

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoRemove some pointless files
Uli Schlachter [Tue, 31 Aug 2010 11:03:56 +0000 (13:03 +0200)]
Remove some pointless files

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoMake the uninstalled .pc file have a rpath
Uli Schlachter [Mon, 23 Aug 2010 09:37:57 +0000 (11:37 +0200)]
Make the uninstalled .pc file have a rpath

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoGet rid of maintainer mode
Uli Schlachter [Sun, 22 Aug 2010 19:19:28 +0000 (21:19 +0200)]
Get rid of maintainer mode

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoSome more minor stuff, more fixes to distcheck
Uli Schlachter [Sun, 22 Aug 2010 19:12:23 +0000 (21:12 +0200)]
Some more minor stuff, more fixes to distcheck

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoMake make distcheck work
Uli Schlachter [Sun, 22 Aug 2010 18:47:30 +0000 (20:47 +0200)]
Make make distcheck work

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoMake tests work
Uli Schlachter [Sun, 22 Aug 2010 18:36:40 +0000 (20:36 +0200)]
Make tests work

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFixups so lua can load this
Uli Schlachter [Sun, 22 Aug 2010 18:30:08 +0000 (20:30 +0200)]
Fixups so lua can load this

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoAdd my copyright
Uli Schlachter [Sun, 22 Aug 2010 15:02:53 +0000 (17:02 +0200)]
Add my copyright

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoFix the INC_PATH in oocairo.pc.in
Uli Schlachter [Sun, 22 Aug 2010 15:02:40 +0000 (17:02 +0200)]
Fix the INC_PATH in oocairo.pc.in

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoMake the IDs of the meta-tables visible
Uli Schlachter [Sun, 22 Aug 2010 14:44:46 +0000 (16:44 +0200)]
Make the IDs of the meta-tables visible

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoWhoops
Uli Schlachter [Sun, 22 Aug 2010 14:44:37 +0000 (16:44 +0200)]
Whoops

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoSome more fun
Uli Schlachter [Sun, 22 Aug 2010 14:21:19 +0000 (16:21 +0200)]
Some more fun

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoSwitch to autofoo for building
Uli Schlachter [Sun, 22 Aug 2010 13:22:22 +0000 (15:22 +0200)]
Switch to autofoo for building

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoSome stuff I need
Uli Schlachter [Fri, 20 Aug 2010 12:38:38 +0000 (14:38 +0200)]
Some stuff I need

Signed-off-by: Uli Schlachter <psychon@znc.in>

2 years agoImport 'lua-oocairo-1.2.tar.gz'
Uli Schlachter [Thu, 19 Aug 2010 18:53:38 +0000 (20:53 +0200)]
Import 'lua-oocairo-1.2.tar.gz'

Signed-off-by: Uli Schlachter <psychon@znc.in>