]> Pileus Git - ~andy/gtk/commitdiff
gtk-demo: Use preprocessing for resources
authorMatthias Clasen <mclasen@redhat.com>
Thu, 9 Feb 2012 13:05:47 +0000 (08:05 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 9 Feb 2012 13:08:23 +0000 (08:08 -0500)
Strip blanks from ui files, and convert pngs into pixdata.
This is useful and serves as a test of these preprocessing
options at the same time.

demos/gtk-demo/application.gresource.xml

index ed5c81e9ad95322bbc70460d9a5dc874b7cc82ab..485053532e97a904b6a00f7e835e20819a8f12ec 100644 (file)
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <gresources>
   <gresource prefix="/logos">
-    <file>gtk-logo-24.png</file>
-    <file>gtk-logo-48.png</file>
+    <file preprocess="to-pixdata">gtk-logo-24.png</file>
+    <file preprocess="to-pixdata">gtk-logo-48.png</file>
   </gresource>
   <gresource prefix="/ui">
-    <file>application.ui</file>
-    <file>menus.ui</file>
+    <file preprocess="xml-stripblanks">application.ui</file>
+    <file preprocess="xml-stripblanks">menus.ui</file>
   </gresource>
 </gresources>