]> Pileus Git - ~andy/gtk/commitdiff
gtk-demo: Use explicit resource:// urls in CSS
authorBenjamin Otte <otte@redhat.com>
Mon, 1 Oct 2012 13:51:58 +0000 (15:51 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 1 Oct 2012 13:53:18 +0000 (15:53 +0200)
... because we load the data from a GtkTreeView::changed callback, the
relative directory is cwd. And we want the resources...

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

index ffca895b0836a71666b1d89215a27ac03ed66be1..df01971f198fd6850219a03984dbb0c1a26e3fcd 100644 (file)
@@ -1,4 +1,4 @@
-@import url("reset.css");
+@import url("resource:///reset.css");
 
 * {
     transition-property: color, background-color, border-color, background-image, padding, border-width;
@@ -49,4 +49,4 @@ GtkWindow {
 .button:hover:active,
 .button:active {
     background-color: #993401;
-}
\ No newline at end of file
+}
index bd6a6944b9cafd8e128958d6ebfcd71b3ab39b7e..793512daa93e1fa524a704640084304a3bbc158e 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("reset.css");
+@import url("resource:///reset.css");
 
 /* Set a very futuristic style by default */
 * {
index f950d32f930f543fe939db70947f1c76f4ca44ba..36c1f8c44103075b55e78beabef5b61bfa25f4ef 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("reset.css");
-@import url("cssview.css");
+@import url("resource:///reset.css");
+@import url("resource:///cssview.css");
 
 #canvas {
     transition-property: background-color, background-image;
@@ -56,7 +56,7 @@
 /*
 #bricks-button {
     background-color: #eef;
-    background-image: url('brick.png');
+    background-image: url('resource:///css_multiplebgs/brick.png');
     background-repeat: no-repeat;
     background-position: center;
 }
     background-image: linear-gradient(90deg, transparent 79px, alpha(#999, 0.40) 79px, #999 80px, alpha(#999, 0.40) 81px, transparent 81px),
                       linear-gradient(alpha(#bbb, 0.60), alpha(#bbb, 0.60) 1px, transparent 1px);
 }
-*/
\ No newline at end of file
+*/
index 73d0a166627629f4b62b1a29ffb069b8bf5eaf52..793e2b68311b693bd9d4598e76727dafb73fbbfc 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("reset.css");
-@import url("cssview.css");
+@import url("resource:///reset.css");
+@import url("resource:///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("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-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-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 b38e229c0c5e133911799f3a518b140a6a0ae3ed..5fcacfdf0dfbae688f0c22d4143939d033848074 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("reset.css");
-@import url("cssview.css");
+@import url("resource:///reset.css");
+@import url("resource:///cssview.css");
 
 /* Get a nice background for the window */
 .background {