[gnome-devel-docs] platform-demos: Fix a number of typos.



commit 76ebd4bb83aad2235cbad2b7c2837ea5dfb82890
Author: Sebastian Rasmussen <sebras gmail com>
Date:   Wed Jan 4 21:22:09 2017 +0100

    platform-demos: Fix a number of typos.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776878

 platform-demos/C/entry.py.page                 |    2 +-
 platform-demos/C/image-viewer.c.page           |    2 +-
 platform-demos/C/image-viewer.cpp.page         |    2 +-
 platform-demos/C/image-viewer.js.page          |    2 +-
 platform-demos/C/image-viewer.py.page          |    2 +-
 platform-demos/C/image-viewer.vala.page        |    2 +-
 platform-demos/C/label.py.page                 |    4 ++--
 platform-demos/C/magic-mirror.vala.page        |    2 +-
 platform-demos/C/model-view-controller.py.page |    2 +-
 platform-demos/C/strings.py.page               |    2 +-
 platform-demos/C/weatherAppMain.js.page        |    2 +-
 platform-demos/C/weatherAutotools.js.page      |    2 +-
 12 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/platform-demos/C/entry.py.page b/platform-demos/C/entry.py.page
index 0f9fc12..8a3912b 100644
--- a/platform-demos/C/entry.py.page
+++ b/platform-demos/C/entry.py.page
@@ -44,7 +44,7 @@
       <item><p><code>get_text()</code> and <code>set_text("some text")</code> can be used to get and set the 
content for the entry.</p></item>
       <item><p><code>get_text_length()</code> is self-explanatory.</p></item>
       <item><p><code>get_text_area()</code> gets the area where the entry's text is drawn.</p></item>
-      <item><p>If we set <code>set_visibility(False)</code> the characters in the entry are displayed as the 
invisible char. This is the best available in the current font, but it can be changed with 
<code>set_invisible_char(ch)</code>, where <code>ch</code> is a Unicode charcater. The latter method is 
reversed by <code>unset_invisbile_char()</code>.</p></item>
+      <item><p>If we set <code>set_visibility(False)</code> the characters in the entry are displayed as the 
invisible char. This is the best available in the current font, but it can be changed with 
<code>set_invisible_char(ch)</code>, where <code>ch</code> is a Unicode character. The latter method is 
reversed by <code>unset_invisible_char()</code>.</p></item>
       <item><p><code>set_max_length(int)</code>, where <code>int</code> is an integer, truncates every entry 
longer than <code>int</code> to have the desired maximum length.</p></item>
       <item><p>By default, if you press the Entry key the Gtk.Entry emits the signal 
<code>"activate"</code>. If you would like to activate the default widget for the window (set using 
<code>set_default(widget)</code> on the window), then use <code>set_activates_default(True)</code>.</p></item>
       <item><p>To set a frame around the entry: <code>set_has_frame(True)</code>.</p></item>
diff --git a/platform-demos/C/image-viewer.c.page b/platform-demos/C/image-viewer.c.page
index ad3ce49..cee29bc 100644
--- a/platform-demos/C/image-viewer.c.page
+++ b/platform-demos/C/image-viewer.c.page
@@ -242,7 +242,7 @@ on_open_image (GtkButton* button, gpointer user_data)
    </item>
    <item>
    <p>Allow the user to load images from network shares, scanners, and other more complicated sources.</p>
-   <p>You can use <link href="http://library.gnome.org/devel/gio/unstable/";>GIO</link> to handle network 
file tranfers and the like, and <link href="http://library.gnome.org/devel/gnome-scan/unstable/";>GNOME 
Scan</link> to handle scanning.</p>
+   <p>You can use <link href="http://library.gnome.org/devel/gio/unstable/";>GIO</link> to handle network 
file transfers and the like, and <link href="http://library.gnome.org/devel/gnome-scan/unstable/";>GNOME 
Scan</link> to handle scanning.</p>
    </item>
   </list>
 </section>
diff --git a/platform-demos/C/image-viewer.cpp.page b/platform-demos/C/image-viewer.cpp.page
index 9e03fd8..443d337 100644
--- a/platform-demos/C/image-viewer.cpp.page
+++ b/platform-demos/C/image-viewer.cpp.page
@@ -230,7 +230,7 @@ on_open_image ()
    </item>
    <item>
    <p>Allow the user to load images from network shares, scanners, and other more complicated sources.</p>
-   <p>You can use <link href="http://library.gnome.org/devel/gio/unstable/";>GIO</link> to handle network 
file tranfers and the like, and <link href="http://library.gnome.org/devel/gnome-scan/unstable/";>GNOME 
Scan</link> to handle scanning.</p>
+   <p>You can use <link href="http://library.gnome.org/devel/gio/unstable/";>GIO</link> to handle network 
file transfers and the like, and <link href="http://library.gnome.org/devel/gnome-scan/unstable/";>GNOME 
Scan</link> to handle scanning.</p>
    </item>
   </list>
 </section>
diff --git a/platform-demos/C/image-viewer.js.page b/platform-demos/C/image-viewer.js.page
index 43afe81..0c0dc72 100644
--- a/platform-demos/C/image-viewer.js.page
+++ b/platform-demos/C/image-viewer.js.page
@@ -330,7 +330,7 @@ open_button.connect ("clicked", Lang.bind (this, this._openClicked));]]></code>
    </item>
    <item>
    <p>Allow the user to load images from network shares, scanners, and other more complicated sources.</p>
-   <p>You can use <link href="http://library.gnome.org/devel/gio/unstable/";>GIO</link> to handle network 
file tranfers and the like, and <link href="http://library.gnome.org/devel/gnome-scan/unstable/";>GNOME 
Scan</link> to handle scanning.</p>
+   <p>You can use <link href="http://library.gnome.org/devel/gio/unstable/";>GIO</link> to handle network 
file transfers and the like, and <link href="http://library.gnome.org/devel/gnome-scan/unstable/";>GNOME 
Scan</link> to handle scanning.</p>
    </item>
   </list>
 </section>
diff --git a/platform-demos/C/image-viewer.py.page b/platform-demos/C/image-viewer.py.page
index 1213c2c..7c8a45b 100644
--- a/platform-demos/C/image-viewer.py.page
+++ b/platform-demos/C/image-viewer.py.page
@@ -244,7 +244,7 @@ def on_open_clicked (self, button):
    </item>
    <item>
    <p>Allow the user to load images from network shares, scanners, and other more complicated sources.</p>
-   <p>You can use <link href="http://library.gnome.org/devel/gio/unstable/";>GIO</link> to handle network 
file tranfers and the like, and <link href="http://library.gnome.org/devel/gnome-scan/unstable/";>GNOME 
Scan</link> to handle scanning.</p>
+   <p>You can use <link href="http://library.gnome.org/devel/gio/unstable/";>GIO</link> to handle network 
file transfers and the like, and <link href="http://library.gnome.org/devel/gnome-scan/unstable/";>GNOME 
Scan</link> to handle scanning.</p>
    </item>
   </list>
 </section>
diff --git a/platform-demos/C/image-viewer.vala.page b/platform-demos/C/image-viewer.vala.page
index ea43898..edaf0f3 100644
--- a/platform-demos/C/image-viewer.vala.page
+++ b/platform-demos/C/image-viewer.vala.page
@@ -303,7 +303,7 @@ public void on_open_image (Button self) {
    </item>
    <item>
      <p>Allow the user to load images from network shares, scanners, and other more complicated sources.</p>
-     <p>You can use <link href="http://library.gnome.org/devel/gio/unstable/";>GIO</link> to handle network 
file tranfers and the like, and <link href="http://library.gnome.org/devel/gnome-scan/unstable/";>GNOME 
Scan</link> to handle scanning.</p>
+     <p>You can use <link href="http://library.gnome.org/devel/gio/unstable/";>GIO</link> to handle network 
file transfers and the like, and <link href="http://library.gnome.org/devel/gnome-scan/unstable/";>GNOME 
Scan</link> to handle scanning.</p>
    </item>
   </list>
 </section>
diff --git a/platform-demos/C/label.py.page b/platform-demos/C/label.py.page
index 0c29ff8..b855175 100644
--- a/platform-demos/C/label.py.page
+++ b/platform-demos/C/label.py.page
@@ -92,8 +92,8 @@ class MyApplication(Gtk.Application):
       <code mime="text/x-python"><![CDATA[
 label.set_markup("Text can be <small>small</small>, <big>big</big>, "
                  "<b>bold</b>, <i>italic</i> and even point to somewhere "
-                 "in the <a href=\"http://www.gtk.org\"; "
-                 "title=\"Click to find out more\">internets</a>.")]]></code>
+                 "on the <a href=\"http://www.gtk.org\"; "
+                 "title=\"Click to find out more\">internet</a>.")]]></code>
     </item>
   </list>
   </section>
diff --git a/platform-demos/C/magic-mirror.vala.page b/platform-demos/C/magic-mirror.vala.page
index a45be0d..842fe04 100644
--- a/platform-demos/C/magic-mirror.vala.page
+++ b/platform-demos/C/magic-mirror.vala.page
@@ -134,7 +134,7 @@ public class Main : Object
   our use case! With <code>this.camerabin.set_state (Gst.State.PLAYING)</code>
   we tell the GStreamer pipeline we just created to start playing. Easy, no?
   </p>
-  <p>Of course it is also possible to integrate the video more tighly into other
+  <p>Of course it is also possible to integrate the video more tightly into other
   windows but that is an advanced topic that includes some details of the X Window
   System we will omit here.
   </p>
diff --git a/platform-demos/C/model-view-controller.py.page b/platform-demos/C/model-view-controller.py.page
index b1e6378..b70220f 100644
--- a/platform-demos/C/model-view-controller.py.page
+++ b/platform-demos/C/model-view-controller.py.page
@@ -107,7 +107,7 @@
   <item><p><code>get_active_iter()</code> returns a <code>Gtk.TreeIter</code> pointing to the current active 
item. If no active item exists, <code>None</code> is returned.</p></item>
   <item><p><code>set_model(model)</code> sets the model used by this combo box to be <code>model</code>, and 
it will unset a previously set model (if there is any). If <code>model</code> is <code>None</code>, then it 
will unset the model. Note that this function does not clear the cell renderers.</p></item>
   <item><p><code>set_entry_text_column(text_column)</code> sets the model column which this combo box should 
use to get strings from to be <code>text_column</code>. The column <code>text_column</code> in the model of 
this combo box must be of type <code>str</code> (this is only relevant if this combo box has been created 
with the “has-entry” property set to True).</p></item>
-  <item><p><code>set_wrap_width(width)</code> sets the wrap width of this combo box to be 
<code>width</code>. The wrap width is basically the preferred number of columns when you want the popup to be 
layed out in a grid.</p></item>
+  <item><p><code>set_wrap_width(width)</code> sets the wrap width of this combo box to be 
<code>width</code>. The wrap width is basically the preferred number of columns when you want the popup to be 
laid out in a grid.</p></item>
 </list>
 
 <p>Useful methods for a <code>Gtk.ComboBoxText</code>:</p>
diff --git a/platform-demos/C/strings.py.page b/platform-demos/C/strings.py.page
index 5f7b3a0..57f0986 100644
--- a/platform-demos/C/strings.py.page
+++ b/platform-demos/C/strings.py.page
@@ -61,7 +61,7 @@ True]]></code>
 <section id="python-3">
 <title>Strings in Python 3</title>
 
-<p>Since Python 3.0, all strings are stored as Unicode in an instance of the <code>str</code> type. Encoded 
strings on the other hand are represented as binary data in the form of instances of the bytes type. 
Conceptionally, <code>str</code> refers to text, whereas bytes refers to data. Use <code>encode()</code> to 
go from <code>str</code> to <code>bytes</code>, and <code>decode()</code> to go from <code>bytes</code> to 
<code>str</code>.</p>
+<p>Since Python 3.0, all strings are stored as Unicode in an instance of the <code>str</code> type. Encoded 
strings on the other hand are represented as binary data in the form of instances of the bytes type. 
Conceptually, <code>str</code> refers to text, whereas bytes refers to data. Use <code>encode()</code> to go 
from <code>str</code> to <code>bytes</code>, and <code>decode()</code> to go from <code>bytes</code> to 
<code>str</code>.</p>
 
 <p>In addition, it is no longer possible to mix Unicode strings with encoded strings, because it will result 
in a <code>TypeError</code>:</p>
 
diff --git a/platform-demos/C/weatherAppMain.js.page b/platform-demos/C/weatherAppMain.js.page
index 76119b1..39fd506 100644
--- a/platform-demos/C/weatherAppMain.js.page
+++ b/platform-demos/C/weatherAppMain.js.page
@@ -88,7 +88,7 @@ grid.attach_next_to(entry,label4,1,1,1);
 grid.attach_next_to(button1,entry,1,1,1);
 grid.attach_next_to(weatherIcon,label2,1,1,1)
 ]]></code>
-    <p>In this section we create the grid we are going to use for positioning the widgets. All the buttons, 
labels and entrys are initialized and placed on the grid. As seen from the placing of the different widgets, 
they don't need to be related only to one widget. At this point some of the labels don't have any content. 
The content for those widgets is applied later. If you run the application at this stage, you have the UI 
ready, but the widgets are not connected to anything. For this we need to first build the weather searching 
local library, and then get the information we need asynchronously. When we have our local library ready we 
can connect it to the necessary widgets.</p>
+    <p>In this section we create the grid we are going to use for positioning the widgets. All the buttons, 
labels and entries are initialized and placed on the grid. As seen from the placing of the different widgets, 
they don't need to be related only to one widget. At this point some of the labels don't have any content. 
The content for those widgets is applied later. If you run the application at this stage, you have the UI 
ready, but the widgets are not connected to anything. For this we need to first build the weather searching 
local library, and then get the information we need asynchronously. When we have our local library ready we 
can connect it to the necessary widgets.</p>
   </section>
 
      <section id="asynccall">
diff --git a/platform-demos/C/weatherAutotools.js.page b/platform-demos/C/weatherAutotools.js.page
index e3f0e83..7694199 100644
--- a/platform-demos/C/weatherAutotools.js.page
+++ b/platform-demos/C/weatherAutotools.js.page
@@ -126,7 +126,7 @@ install-data-local: install-icons]]></code>
     <p>bin_scripts are the files that are needed to run your application. In thin case they are the first 
two files are the program itself and the third is the script that launches the application.</p>
     <p>EXTRA_DIST are the files that are to be distributed</p>
     <p>do_subst block is bits and pieces that need to be where they are</p>
-    <p>after the comment #icons in the application there are all the icons that are used by the program. For 
them to be useful you need to install the icons in correct places and that is done byt the install-icons: 
bit</p>
+    <p>after the comment #icons in the application there are all the icons that are used by the program. For 
them to be useful you need to install the icons in correct places and that is done by the install-icons: 
bit</p>
 
     <p>configure.ac</p>
     <code mime="text/ac" style="numbered"><![CDATA[


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]