]> git.cworth.org Git - grrobot/commitdiff
* configure.in:
authorKeith Packard <keithp@keithp.com>
Thu, 25 Dec 2003 21:17:29 +0000 (21:17 +0000)
committerKeith Packard <keithp@keithp.com>
Thu, 25 Dec 2003 21:17:29 +0000 (21:17 +0000)
* ltmain.sh:
* src/grr_board_view.c:
* src/grr_icon.c: (_grr_icon_init), (grr_icon_draw):
* src/grr_icon.h:
* src/grrobot.c:
Switch from xsvg to svg-cairo

ChangeLog
configure.in
ltmain.sh
src/grr_board_view.c
src/grr_icon.c
src/grr_icon.h
src/grrobot.c

index 1cd8b52c229725364bdb8e1da1db3e03f5f199ae..ae5a43b74235ac8a337682ac1fafba09b886e22c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2003-12-25  Keith Packard  <keithp@keithp.com>
+
+       * configure.in:
+       * ltmain.sh:
+       * src/grr_board_view.c:
+       * src/grr_icon.c: (_grr_icon_init), (grr_icon_draw):
+       * src/grr_icon.h:
+       * src/grrobot.c:
+       Switch from xsvg to svg-cairo
+
 2003-11-11  Carl Worth  <cworth@isi.edu>
 
        * src/grrobot.c (grr_game_read_notices): Exit cleanly: need to
index 0983fd71810ac1420cd7cd8cee049e561a0b0549..0761830d455ad55eb6b9928112ab84706eb3db9e 100644 (file)
@@ -18,7 +18,7 @@ AC_STDC_HEADERS
 
 dnl ===========================================================================
 
-PKG_CHECK_MODULES(GRROBOT, gtk+-2.0 libxsvg librr cairo >= 0.1.1)
+PKG_CHECK_MODULES(GRROBOT, gtk+-2.0 libsvg-cairo librr cairo >= 0.1.1)
 AC_SUBST(GRROBOT_CFLAGS)
 AC_SUBST(GRROBOT_LIBS)
 
index b0f592c5b5c553082355dec3d7eb463d6733c465..fe83ff4fb744d4df1f566c9b054e692a12026438 100644 (file)
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -24,8 +24,6 @@
 # configuration script generated by Autoconf, you may include it under
 # the same distribution terms that you use for the rest of that program.
 
-max_cmd_len=2049
-
 # Check that we have a working $echo.
 if test "X$1" = X--no-reexec; then
   # Discard the --no-reexec flag, and continue.
index 6a184419eb2254ace5420815701ec6e1f90ad2ea..1c918f2a23744594ad850227890edcdaeff17fe9 100644 (file)
@@ -30,7 +30,7 @@
 #include <string.h>
 
 #include <cairo.h>
-#include <xsvg.h>
+#include <svg-cairo.h>
 
 #include <gtk/gtkmain.h>
 #include <gtk/gtksignal.h>
index f4515fe581deb04ce6ebcf96cbb61440fc5c024c..c1076b9c6ebdfa874a5d65c8a466734a2cad482f 100644 (file)
@@ -127,7 +127,7 @@ grr_icon_create (char *name)
 static rr_status_t
 _grr_icon_init (grr_icon_t *icon, char *name)
 {
-    xsvg_status_t status;
+    svg_cairo_status_t status;
     char *file, *buf;
     int buflen;
 
@@ -135,15 +135,15 @@ _grr_icon_init (grr_icon_t *icon, char *name)
     icon->surface_width = 0;
     icon->surface_height = 0;
 
-    status = xsvg_create (&icon->xsvg);
+    status = svg_cairo_create (&icon->svg_cairo);
     if (status)
        return RR_STATUS_NO_MEMORY;
 
     file = _grr_icon_find_file (name);
 
     if (file) {
-       status = xsvg_parse_file (icon->xsvg, file);
-       if (status == XSVG_STATUS_SUCCESS) {
+       status = svg_cairo_parse (icon->svg_cairo, file);
+       if (status == SVG_CAIRO_STATUS_SUCCESS) {
            free (file);
            return RR_STATUS_SUCCESS;
        }
@@ -152,7 +152,7 @@ _grr_icon_init (grr_icon_t *icon, char *name)
     }
 
     _grr_icon_find_buffer (name, &buf, &buflen);
-    status = xsvg_parse_buffer (icon->xsvg, buf, buflen);
+    status = svg_cairo_parse_buffer (icon->svg_cairo, buf, buflen);
     if (status) {
        fprintf (stderr, "Error parsing built-in SVG icon for: %s\n", name);
        return RR_STATUS_PARSE_ERROR;
@@ -225,11 +225,11 @@ grr_icon_target_name (rr_target_t target)
 void
 grr_icon_draw (grr_icon_t *icon, cairo_t *xrs)
 {
-    xsvg_status_t status;
+    svg_cairo_status_t status;
 
-    status =  xsvg_render (icon->xsvg, xrs);
+    status =  svg_cairo_render (icon->svg_cairo, xrs);
     if (status) {
-       fprintf (stderr, "xsvg_render error\n");
+       fprintf (stderr, "svg_cairo_render error\n");
        return;
     }
 }
index e3d0579326019c0abcc0cca198689a721f3b7efd..c2d832c1c995a48da0c60d76ee2539ca6b6809de 100644 (file)
 #define GRR_ICON_H
 
 #include <rr.h>
-#include <xsvg.h>
+#include <svg-cairo.h>
 
 typedef struct grr_icon {
-    xsvg_t *xsvg;
+    svg_cairo_t *svg_cairo;
 
     cairo_surface_t *surface;
     int surface_width;
index 386a1637956a275586cdb1dfd502349c2729534f..8c42f26106111b4738b1936e832ad0f549d8b055 100644 (file)
@@ -1,4 +1,4 @@
-/* grrobot - Ricochet Robot using GTK+, libxsvg, and Cairo
+/* grrobot - Ricochet Robot using GTK+, libsvg-cairo, and cairo
  *
  * Copyright © 2003 Carl Worth
  *