]> Pileus Git - ~andy/gtk/commitdiff
gtk-demo: Move resources into the tests they belong
authorBenjamin Otte <otte@redhat.com>
Fri, 1 Feb 2013 18:02:56 +0000 (19:02 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 1 Feb 2013 20:57:40 +0000 (21:57 +0100)
This also gets rid of the nasty @import("resource:///...") lines in the
css files.

demos/gtk-demo/css_accordion.css
demos/gtk-demo/css_basics.css
demos/gtk-demo/css_multiplebgs.css
demos/gtk-demo/css_pixbufs.css
demos/gtk-demo/css_shadows.css
demos/gtk-demo/demo.gresource.xml

index df01971f198fd6850219a03984dbb0c1a26e3fcd..b1d27ad093352e5b82f9cbe6c5b4d1ca356432c5 100644 (file)
@@ -1,4 +1,4 @@
-@import url("resource:///reset.css");
+@import url("reset.css");
 
 * {
     transition-property: color, background-color, border-color, background-image, padding, border-width;
index 793512daa93e1fa524a704640084304a3bbc158e..bd6a6944b9cafd8e128958d6ebfcd71b3ab39b7e 100644 (file)
@@ -6,7 +6,7 @@
 
 /* This CSS resets all properties to their defaults values
  *    and overrides all user settings and the theme in use */
-@import url("resource:///reset.css");
+@import url("reset.css");
 
 /* Set a very futuristic style by default */
 * {
index 36c1f8c44103075b55e78beabef5b61bfa25f4ef..41089c3ef7d189d54669715ebb40e2e31c5e7c5f 100644 (file)
@@ -6,8 +6,8 @@
 
 /* This CSS resets all properties to their defaults values
  *    and overrides all user settings and the theme in use */
-@import url("resource:///reset.css");
-@import url("resource:///cssview.css");
+@import url("reset.css");
+@import url("cssview.css");
 
 #canvas {
     transition-property: background-color, background-image;
index 8eb21d664f9d2bfe516374a6196f0cbb5fbe0aa1..01762565a5422f1d2e957491925e0d6cc154743f 100644 (file)
@@ -6,8 +6,8 @@
 
 /* This CSS resets all properties to their defaults values
  *    and overrides all user settings and the theme in use */
-@import url("resource:///reset.css");
-@import url("resource:///cssview.css");
+@import url("reset.css");
+@import url("cssview.css");
 
 @keyframes move-the-image {
 0% { background-position: 50.00% 75.00%, 67.68% 67.68%, 75.00% 50.00%, 67.68% 32.32%, 50.00% 25.00%, 32.32% 32.32%, 25.00% 50.00%, 32.32% 67.68%, 0% 0%; }
 }
 
 GtkWindow {
-    background-image: url("resource:///css_pixbufs/apple-red.png"),
-                      url("resource:///css_pixbufs/gnome-applets.png"),
-                      url("resource:///css_pixbufs/gnome-calendar.png"),
-                      url("resource:///css_pixbufs/gnome-foot.png"),
-                      url("resource:///css_pixbufs/gnome-gmush.png"),
-                      url("resource:///css_pixbufs/gnome-gimp.png"),
-                      url("resource:///css_pixbufs/gnome-gsame.png"),
-                      url("resource:///css_pixbufs/gnu-keys.png"),
-                      url("resource:///css_pixbufs/background.jpg");
+    background-image: url("apple-red.png"),
+                      url("gnome-applets.png"),
+                      url("gnome-calendar.png"),
+                      url("gnome-foot.png"),
+                      url("gnome-gmush.png"),
+                      url("gnome-gimp.png"),
+                      url("gnome-gsame.png"),
+                      url("gnu-keys.png"),
+                      url("background.jpg");
     background-position: 50.00% 75.00%, 67.68% 67.68%, 75.00% 50.00%, 67.68% 32.32%, 50.00% 25.00%, 32.32% 32.32%, 25.00% 50.00%, 32.32% 67.68%, 0% 0%;
     background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
     animation: move-the-image infinite linear 3s, size-the-image infinite alternate ease-in-out 0.75s;
index 5fcacfdf0dfbae688f0c22d4143939d033848074..b38e229c0c5e133911799f3a518b140a6a0ae3ed 100644 (file)
@@ -6,8 +6,8 @@
 
 /* This CSS resets all properties to their defaults values
  *    and overrides all user settings and the theme in use */
-@import url("resource:///reset.css");
-@import url("resource:///cssview.css");
+@import url("reset.css");
+@import url("cssview.css");
 
 /* Get a nice background for the window */
 .background {
index f1c19b84ab95d62ce971f5dc753f298244fca547..7e60c3553a1a001f35b265bea9cebaaf7f79fbab 100644 (file)
@@ -1,9 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <gresources>
   <gresource prefix="/">
-    <file>cssview.css</file>
     <file>gtk-logo-rgb.gif</file>
-    <file>reset.css</file>
   </gresource>
   <gresource prefix="/application">
     <file preprocess="to-pixdata">gtk-logo-24.png</file>
   </gresource>
   <gresource prefix="/css_accordion">
     <file>css_accordion.css</file>
+    <file>reset.css</file>
   </gresource>
   <gresource prefix="/css_basics">
     <file>css_basics.css</file>
+    <file>reset.css</file>
   </gresource>
   <gresource prefix="/css_multiplebgs">
     <file>css_multiplebgs.css</file>
     <file>brick.png</file>
+    <file>cssview.css</file>
+    <file>reset.css</file>
   </gresource>
   <gresource prefix="/theming_style_classes">
     <file preprocess="xml-stripblanks">theming.ui</file>
   </gresource>
   <gresource prefix="/css_pixbufs">
     <file alias="gtk.css">css_pixbufs.css</file>
+    <file>cssview.css</file>
+    <file>reset.css</file>
     <file>background.jpg</file>
     <file>apple-red.png</file>
     <file>gnome-applets.png</file>
@@ -44,6 +48,8 @@
   </gresource>
   <gresource prefix="/css_shadows">
     <file alias="gtk.css">css_shadows.css</file>
+    <file>cssview.css</file>
+    <file>reset.css</file>
   </gresource>
   <gresource prefix="/iconview">
     <file preprocess="to-pixdata">gnome-fs-directory.png</file>