[aisleriot] cards: Don't use SVGZ for the slot image



commit b7ffa140d9e4fe438ffd7bc0628f1f67f28f5eea
Author: Christian Persch <chpe gnome org>
Date:   Wed Oct 5 21:41:59 2011 +0200

    cards: Don't use SVGZ for the slot image

 data/Makefile.am                 |   15 +--------------
 src/lib/ar-card-theme-preimage.c |    2 +-
 2 files changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 954c829..128908a 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -6,16 +6,9 @@ if ENABLE_SOUND
 SUBDIRS += sounds
 endif
 
-XMLLINT_FLAGS = --nonet --noblanks
-GZIP_FLAGS = -9
-
-SVGS = \
-	slot.svg \
-	$(NULL)
-
 if HAVE_RSVG
 slotdir = $(pkgdatadir)/pixmaps
-nodist_slot_DATA = $(SVGS:.svg=.svgz)
+dist_slot_DATA = slot.svg
 endif # HAVE_RSVG
 
 themeinstalldir = $(pkgdatadir)
@@ -31,22 +24,16 @@ desktop_DATA = $(desktop_in_files:.desktop.in.in=.desktop)
 
 EXTRA_DIST = \
 	aisleriot.supp \
-	$(SVGS)
 	$(NULL)
 
 CLEANFILES = \
 	$(desktop_DATA) \
-	$(nodist_slot_DATA) \
 	$(NULL)
 
 DISTCLEANFILES = \
 	$(desktop_DATA) \
-	$(nodist_slot_DATA) \
 	$(NULL)
 
-%.svgz: %.svg
-	$(AM_V_GEN)$(XMLLINT) $(XMLLINT_FLAGS) $< | $(GZIP) $(GZIP_FLAGS) > $@
-
 @INTLTOOL_DESKTOP_RULE@
 
 -include $(top_srcdir)/git.mk
diff --git a/src/lib/ar-card-theme-preimage.c b/src/lib/ar-card-theme-preimage.c
index f937612..226b242 100644
--- a/src/lib/ar-card-theme-preimage.c
+++ b/src/lib/ar-card-theme-preimage.c
@@ -67,7 +67,7 @@ ar_card_theme_preimage_load (ArCardTheme *card_theme,
   /* First the slot image */
   /* FIXMEchpe: use uninstalled data dir for rendering the card theme! */
   slot_dir = ar_runtime_get_directory (AR_RUNTIME_PIXMAP_DIRECTORY);
-  path = g_build_filename (slot_dir, "slot.svgz", NULL);
+  path = g_build_filename (slot_dir, "slot.svg", NULL);
   theme->slot_preimage = ar_svg_new_from_filename_sync (path, NULL, error);
   g_free (path);
   if (!theme->slot_preimage)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]