[gnome-devel-docs] Added note to image.c.page and image.py.page
- From: Tiffany Antopolski <antopolski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] Added note to image.c.page and image.py.page
- Date: Wed, 30 May 2012 17:13:42 +0000 (UTC)
commit 0c31bcf28077f91543109a112afb3dd84c67bb1b
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date: Wed May 30 13:13:00 2012 -0400
Added note to image.c.page and image.py.page
platform-demos/C/image.c.page | 13 +++++--------
platform-demos/C/image.py.page | 3 +++
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/platform-demos/C/image.c.page b/platform-demos/C/image.c.page
index 5ff011a..a454bfd 100644
--- a/platform-demos/C/image.c.page
+++ b/platform-demos/C/image.c.page
@@ -17,14 +17,11 @@
</info>
<title>Image</title>
-<table>
- <tr>
- <td>
- <media type="image" mime="image/png" src="media/image.png"/>
- <p>This GtkApplication displays an image file from the current directory.</p>
- </td>
- </tr>
-</table>
+ <media type="image" mime="image/png" src="media/image.png"/>
+ <p>This GtkApplication displays an image file from the current directory.</p>
+ <note><p>
+ If the image file isn't loaded successfully, the image will contain a "broken image" icon. The <file>filename.png</file> needs to be in the current directory for this code to work. Use your favorite picture!
+ </p></note>
<code mime="text/x-csrc" style="numbered"><xi:include href="samples/image.c" parse="text"><xi:fallback/></xi:include></code>
<p>
diff --git a/platform-demos/C/image.py.page b/platform-demos/C/image.py.page
index c09523f..2de7315 100644
--- a/platform-demos/C/image.py.page
+++ b/platform-demos/C/image.py.page
@@ -19,6 +19,9 @@
<title>Image</title>
<media type="image" mime="image/png" src="media/image.png"/>
<p>This GtkApplication displays an image file from the current directory.</p>
+ <note><p>
+ If the image file isn't loaded successfully, the image will contain a "broken image" icon. The <file>filename.png</file> needs to be in the current directory for this code to work. Use your favorite picture!
+ </p></note>
<code mime="text/x-python" style="numbered"><xi:include href="samples/image.py" parse="text"><xi:fallback/></xi:include></code>
</page>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]