[gtk+] gtk3-demo: Fix up resource handling
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk3-demo: Fix up resource handling
- Date: Thu, 14 Feb 2013 21:55:52 +0000 (UTC)
commit e89a2f0bfddfcef3ab42110a3812916c407aac1e
Author: Alexander Larsson <alexl redhat com>
Date: Thu Feb 14 23:01:19 2013 +0100
gtk3-demo: Fix up resource handling
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 | 2 +-
demos/gtk-demo/css_basics.css | 2 +-
demos/gtk-demo/css_multiplebgs.css | 4 ++--
demos/gtk-demo/css_pixbufs.css | 22 +++++++++++-----------
demos/gtk-demo/css_shadows.css | 4 ++--
5 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/demos/gtk-demo/css_accordion.css b/demos/gtk-demo/css_accordion.css
index b1d27ad..957999a 100644
--- a/demos/gtk-demo/css_accordion.css
+++ b/demos/gtk-demo/css_accordion.css
@@ -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;
diff --git a/demos/gtk-demo/css_basics.css b/demos/gtk-demo/css_basics.css
index bd6a694..62dba7a 100644
--- a/demos/gtk-demo/css_basics.css
+++ b/demos/gtk-demo/css_basics.css
@@ -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 */
* {
diff --git a/demos/gtk-demo/css_multiplebgs.css b/demos/gtk-demo/css_multiplebgs.css
index 41089c3..b23415d 100644
--- a/demos/gtk-demo/css_multiplebgs.css
+++ b/demos/gtk-demo/css_multiplebgs.css
@@ -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;
diff --git a/demos/gtk-demo/css_pixbufs.css b/demos/gtk-demo/css_pixbufs.css
index 0176256..226525c 100644
--- a/demos/gtk-demo/css_pixbufs.css
+++ b/demos/gtk-demo/css_pixbufs.css
@@ -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%; }
@@ -51,15 +51,15 @@
}
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;
diff --git a/demos/gtk-demo/css_shadows.css b/demos/gtk-demo/css_shadows.css
index b38e229..6e6b21a 100644
--- a/demos/gtk-demo/css_shadows.css
+++ b/demos/gtk-demo/css_shadows.css
@@ -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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]