gtk-demo: Move resources into the tests they belong

This also gets rid of the nasty @import("resource:///...") lines in the
css files.
This commit is contained in:
Benjamin Otte
2013-02-01 19:02:56 +01:00
parent ba24f39d95
commit b3d1121d78
6 changed files with 25 additions and 19 deletions

View 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; transition-property: color, background-color, border-color, background-image, padding, border-width;

View File

@ -6,7 +6,7 @@
/* This CSS resets all properties to their defaults values /* This CSS resets all properties to their defaults values
* and overrides all user settings and the theme in use */ * 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 */ /* Set a very futuristic style by default */
* { * {

View File

@ -6,8 +6,8 @@
/* This CSS resets all properties to their defaults values /* This CSS resets all properties to their defaults values
* and overrides all user settings and the theme in use */ * and overrides all user settings and the theme in use */
@import url("resource:///reset.css"); @import url("reset.css");
@import url("resource:///cssview.css"); @import url("cssview.css");
#canvas { #canvas {
transition-property: background-color, background-image; transition-property: background-color, background-image;

View File

@ -6,8 +6,8 @@
/* This CSS resets all properties to their defaults values /* This CSS resets all properties to their defaults values
* and overrides all user settings and the theme in use */ * and overrides all user settings and the theme in use */
@import url("resource:///reset.css"); @import url("reset.css");
@import url("resource:///cssview.css"); @import url("cssview.css");
@keyframes move-the-image { @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%; } 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 { GtkWindow {
background-image: url("resource:///css_pixbufs/apple-red.png"), background-image: url("apple-red.png"),
url("resource:///css_pixbufs/gnome-applets.png"), url("gnome-applets.png"),
url("resource:///css_pixbufs/gnome-calendar.png"), url("gnome-calendar.png"),
url("resource:///css_pixbufs/gnome-foot.png"), url("gnome-foot.png"),
url("resource:///css_pixbufs/gnome-gmush.png"), url("gnome-gmush.png"),
url("resource:///css_pixbufs/gnome-gimp.png"), url("gnome-gimp.png"),
url("resource:///css_pixbufs/gnome-gsame.png"), url("gnome-gsame.png"),
url("resource:///css_pixbufs/gnu-keys.png"), url("gnu-keys.png"),
url("resource:///css_pixbufs/background.jpg"); 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-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; 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; animation: move-the-image infinite linear 3s, size-the-image infinite alternate ease-in-out 0.75s;

View File

@ -6,8 +6,8 @@
/* This CSS resets all properties to their defaults values /* This CSS resets all properties to their defaults values
* and overrides all user settings and the theme in use */ * and overrides all user settings and the theme in use */
@import url("resource:///reset.css"); @import url("reset.css");
@import url("resource:///cssview.css"); @import url("cssview.css");
/* Get a nice background for the window */ /* Get a nice background for the window */
.background { .background {

View File

@ -1,9 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<gresources> <gresources>
<gresource prefix="/"> <gresource prefix="/">
<file>cssview.css</file>
<file>gtk-logo-rgb.gif</file> <file>gtk-logo-rgb.gif</file>
<file>reset.css</file>
</gresource> </gresource>
<gresource prefix="/application"> <gresource prefix="/application">
<file preprocess="to-pixdata">gtk-logo-24.png</file> <file preprocess="to-pixdata">gtk-logo-24.png</file>
@ -19,19 +17,25 @@
</gresource> </gresource>
<gresource prefix="/css_accordion"> <gresource prefix="/css_accordion">
<file>css_accordion.css</file> <file>css_accordion.css</file>
<file>reset.css</file>
</gresource> </gresource>
<gresource prefix="/css_basics"> <gresource prefix="/css_basics">
<file>css_basics.css</file> <file>css_basics.css</file>
<file>reset.css</file>
</gresource> </gresource>
<gresource prefix="/css_multiplebgs"> <gresource prefix="/css_multiplebgs">
<file>css_multiplebgs.css</file> <file>css_multiplebgs.css</file>
<file>brick.png</file> <file>brick.png</file>
<file>cssview.css</file>
<file>reset.css</file>
</gresource> </gresource>
<gresource prefix="/theming_style_classes"> <gresource prefix="/theming_style_classes">
<file preprocess="xml-stripblanks">theming.ui</file> <file preprocess="xml-stripblanks">theming.ui</file>
</gresource> </gresource>
<gresource prefix="/css_pixbufs"> <gresource prefix="/css_pixbufs">
<file alias="gtk.css">css_pixbufs.css</file> <file alias="gtk.css">css_pixbufs.css</file>
<file>cssview.css</file>
<file>reset.css</file>
<file>background.jpg</file> <file>background.jpg</file>
<file>apple-red.png</file> <file>apple-red.png</file>
<file>gnome-applets.png</file> <file>gnome-applets.png</file>
@ -44,6 +48,8 @@
</gresource> </gresource>
<gresource prefix="/css_shadows"> <gresource prefix="/css_shadows">
<file alias="gtk.css">css_shadows.css</file> <file alias="gtk.css">css_shadows.css</file>
<file>cssview.css</file>
<file>reset.css</file>
</gresource> </gresource>
<gresource prefix="/iconview"> <gresource prefix="/iconview">
<file preprocess="to-pixdata">gnome-fs-directory.png</file> <file preprocess="to-pixdata">gnome-fs-directory.png</file>