]> Pileus Git - ~andy/gtk/commitdiff
gtk3-demo: Fix up resource handling
authorAlexander Larsson <alexl@redhat.com>
Thu, 14 Feb 2013 22:01:19 +0000 (23:01 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 14 Feb 2013 22:01:19 +0000 (23:01 +0100)
We're not loading css files via resouce uris, as we want
to support editing, so we need to use absolute references
to any included 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 b1d27ad093352e5b82f9cbe6c5b4d1ca356432c5..957999a110ad6846687d23d904dff7266f8acbf4 100644 (file)
@@ -1,4 +1,4 @@
-@import url("reset.css");
+@import url("resource://css_accordion/reset.css");
 
 * {
     transition-property: color, background-color, border-color, background-image, padding, border-width;
index bd6a6944b9cafd8e128958d6ebfcd71b3ab39b7e..62dba7a30a4cb846bc7f61b668d3294a4d12453d 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://css_basics/reset.css");
 
 /* Set a very futuristic style by default */
 * {
index 41089c3ef7d189d54669715ebb40e2e31c5e7c5f..b23415d12ee0ebdfe2d9bbdd59d3e5be6e969a5f 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://css_multiplebgs/reset.css");
+@import url("resource://css_multiplebgs/cssview.css");
 
 #canvas {
     transition-property: background-color, background-image;
index 01762565a5422f1d2e957491925e0d6cc154743f..226525c7e0ea63cf75de893e0b693d3f213745ca 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://css_pixbufs/reset.css");
+@import url("resource://css_pixbufs/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..6e6b21a4562c75e0a79b243faf3403c1f1a9aa92 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://css_shadows/reset.css");
+@import url("resource://css_shadows/cssview.css");
 
 /* Get a nice background for the window */
 .background {