Merge pull request #52 from ryonakano/fix-typo

sec29: Fix a doc typo
This commit is contained in:
ToshioCP 2024-02-03 16:34:48 +08:00 committed by GitHub
commit d91eaf0581
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -153,7 +153,7 @@ list. Because GListModel is a list of GObject objects and strings arent
GObject objects. The word “GObject” here means “GObject class or its GObject objects. The word “GObject” here means “GObject class or its
descendant class”. So, you need a wrapper which is a GObject and descendant class”. So, you need a wrapper which is a GObject and
contains a string. GtkStringObject is the wrapper object and contains a string. GtkStringObject is the wrapper object and
GStringList, implements GListModel, is a list of GtkStringObject.</p> GtkStringList, implements GListModel, is a list of GtkStringObject.</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode C"><code class="sourceCode c"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="dt">char</span> <span class="op">*</span>array<span class="op">[]</span> <span class="op">=</span> <span class="op">{</span><span class="st">&quot;one&quot;</span><span class="op">,</span> <span class="st">&quot;two&quot;</span><span class="op">,</span> <span class="st">&quot;three&quot;</span><span class="op">,</span> <span class="st">&quot;four&quot;</span><span class="op">,</span> NULL<span class="op">};</span></span> <div class="sourceCode" id="cb1"><pre class="sourceCode C"><code class="sourceCode c"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="dt">char</span> <span class="op">*</span>array<span class="op">[]</span> <span class="op">=</span> <span class="op">{</span><span class="st">&quot;one&quot;</span><span class="op">,</span> <span class="st">&quot;two&quot;</span><span class="op">,</span> <span class="st">&quot;three&quot;</span><span class="op">,</span> <span class="st">&quot;four&quot;</span><span class="op">,</span> NULL<span class="op">};</span></span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a>GtkStringList <span class="op">*</span>stringlist <span class="op">=</span> gtk_string_list_new <span class="op">((</span><span class="dt">const</span> <span class="dt">char</span> <span class="op">*</span> <span class="dt">const</span> <span class="op">*)</span> array<span class="op">);</span></span></code></pre></div> <span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a>GtkStringList <span class="op">*</span>stringlist <span class="op">=</span> gtk_string_list_new <span class="op">((</span><span class="dt">const</span> <span class="dt">char</span> <span class="op">*</span> <span class="dt">const</span> <span class="op">*)</span> array<span class="op">);</span></span></code></pre></div>
<p>The function <code>gtk_string_list_new</code> creates a GtkStringList <p>The function <code>gtk_string_list_new</code> creates a GtkStringList

View file

@ -40,7 +40,7 @@ If you want to make a list of strings with GListModel, for example, "one", "two"
Because GListModel is a list of GObject objects and strings aren't GObject objects. Because GListModel is a list of GObject objects and strings aren't GObject objects.
The word "GObject" here means "GObject class or its descendant class". The word "GObject" here means "GObject class or its descendant class".
So, you need a wrapper which is a GObject and contains a string. So, you need a wrapper which is a GObject and contains a string.
GtkStringObject is the wrapper object and GStringList, implements GListModel, is a list of GtkStringObject. GtkStringObject is the wrapper object and GtkStringList, implements GListModel, is a list of GtkStringObject.
~~~C ~~~C
char *array[] = {"one", "two", "three", "four", NULL}; char *array[] = {"one", "two", "three", "four", NULL};

View file

@ -38,7 +38,7 @@ If you want to make a list of strings with GListModel, for example, "one", "two"
Because GListModel is a list of GObject objects and strings aren't GObject objects. Because GListModel is a list of GObject objects and strings aren't GObject objects.
The word "GObject" here means "GObject class or its descendant class". The word "GObject" here means "GObject class or its descendant class".
So, you need a wrapper which is a GObject and contains a string. So, you need a wrapper which is a GObject and contains a string.
GtkStringObject is the wrapper object and GStringList, implements GListModel, is a list of GtkStringObject. GtkStringObject is the wrapper object and GtkStringList, implements GListModel, is a list of GtkStringObject.
@@@if gfm @@@if gfm
~~~C ~~~C