[gnome-devel-docs] tutorials <javascript>: Resized switch.js pictures and uploaded to live.gnome.org
- From: Tiffany Antopolski <antopolski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] tutorials <javascript>: Resized switch.js pictures and uploaded to live.gnome.org
- Date: Sun, 24 Jun 2012 22:06:08 +0000 (UTC)
commit 2a2210b4792500236d60ccfde5d8593fa56e02f5
Author: Taryn Fox <jewelfox fursona net>
Date: Sat Jun 23 03:13:46 2012 -0400
tutorials <javascript>: Resized switch.js pictures and uploaded to live.gnome.org
platform-demos/C/samples/fruitbat.png | Bin 0 -> 122141 bytes
platform-demos/C/samples/gentoopenguin.png | Bin 0 -> 82475 bytes
platform-demos/C/samples/muteswan.png | Bin 0 -> 93018 bytes
platform-demos/C/samples/redfox.png | Bin 0 -> 128263 bytes
platform-demos/C/samples/switch.js | 5 ++---
platform-demos/C/switch.js.page | 2 +-
6 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/platform-demos/C/samples/fruitbat.png b/platform-demos/C/samples/fruitbat.png
new file mode 100644
index 0000000..119ed48
Binary files /dev/null and b/platform-demos/C/samples/fruitbat.png differ
diff --git a/platform-demos/C/samples/gentoopenguin.png b/platform-demos/C/samples/gentoopenguin.png
new file mode 100644
index 0000000..3df22b7
Binary files /dev/null and b/platform-demos/C/samples/gentoopenguin.png differ
diff --git a/platform-demos/C/samples/muteswan.png b/platform-demos/C/samples/muteswan.png
new file mode 100644
index 0000000..539291c
Binary files /dev/null and b/platform-demos/C/samples/muteswan.png differ
diff --git a/platform-demos/C/samples/redfox.png b/platform-demos/C/samples/redfox.png
new file mode 100644
index 0000000..0fa0e9e
Binary files /dev/null and b/platform-demos/C/samples/redfox.png differ
diff --git a/platform-demos/C/samples/switch.js b/platform-demos/C/samples/switch.js
index c54f806..d27b42b 100644
--- a/platform-demos/C/samples/switch.js
+++ b/platform-demos/C/samples/switch.js
@@ -10,8 +10,7 @@ const SwitchExample = new Lang.Class({
// Create the application itself
_init: function() {
this.application = new Gtk.Application({
- application_id: 'org.example.jsswitch',
- flags: Gio.ApplicationFlags.FLAGS_NONE
+ application_id: 'org.example.jsswitch'
});
// Connect 'activate' and 'startup' signals to the callback functions
@@ -145,7 +144,7 @@ const SwitchExample = new Lang.Class({
_showAbout: function () {
// String arrays of the names of the people involved in the project
- var artists = ['Rob Lee http://en.wikipedia.org/wiki/File:Fuzzy_Freddy.jpg', 'Ken Funakoshi http://en.wikipedia.org/wiki/File:Pygoscelis_papua_-Nagasaki_Penguin_Aquarium_-swimming_underwater-8a.jpg', 'Shek Graham http://www.flickr.com/photos/shekgraham/127431519/in/photostream/', 'Mindaugas Urbonas http://commons.wikimedia.org/wiki/File:Mute_Swan-Mindaugas_Urbonas.jpg'];
+ var artists = ['Rob Lee http://en.wikipedia.org/wiki/File:Fuzzy_Freddy.png', 'Ken Funakoshi http://en.wikipedia.org/wiki/File:Pygoscelis_papua_-Nagasaki_Penguin_Aquarium_-swimming_underwater-8a.png', 'Shek Graham http://www.flickr.com/photos/shekgraham/127431519/in/photostream/', 'Mindaugas Urbonas http://commons.wikimedia.org/wiki/File:Mute_Swan-Mindaugas_Urbonas.png'];
var authors = ["GNOME Documentation Team"];
var documenters = ["GNOME Documentation Team"];
diff --git a/platform-demos/C/switch.js.page b/platform-demos/C/switch.js.page
index 884c1fb..2fdcd2d 100644
--- a/platform-demos/C/switch.js.page
+++ b/platform-demos/C/switch.js.page
@@ -18,7 +18,7 @@
<title>Switch</title>
<media type="image" mime="image/png" src="media/switchanimals.png"/>
- <p>A Switch has two positions, on and off. This example shows how you can use multiple switches together to control which <link xref="image.js">Image</link> is shown in the window.</p>
+ <p>A Switch has two positions, on and off. This example shows how you can use multiple switches together to control which <link xref="image.js">Image</link> is shown in the window. The pictures used in this example <link href="https://live.gnome.org/TarynFox?action=AttachFile&do=get&target=Animal+Photos.zip">can be downloaded here.</link></p>
<note><p>The window will contain a "broken image" icon instead of a picture if picture files named <file>redfox.png</file>, <file>muteswan.png</file>, <file>fruitbat.png</file>, and <file>gentoopenguin.png</file> aren't in the same directory. You can change the code and the pictures around as you like, but the Creative Commons-licensed photos used in this example were taken from the following sources and cropped to 640x425:</p>
<list>
<item><p><link href="http://en.wikipedia.org/wiki/File:Fuzzy_Freddy.jpg">Red fox photo</link> by Rob Lee, licensed <link href="http://creativecommons.org/licenses/by/2.0/deed.en">CC-By</link></p></item>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]