Merge pull request #45 from jamisonTitan/typosInSec4

Typos in sec4
This commit is contained in:
ToshioCP 2023-03-23 16:43:19 +09:00 committed by GitHub
commit e1a2119d1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -447,7 +447,7 @@ class="sourceCode numberSource C numberLines"><code class="sourceCode c"><span i
<span id="cb9-8"><a href="#cb9-8"></a> <span class="cf">else</span></span> <span id="cb9-8"><a href="#cb9-8"></a> <span class="cf">else</span></span>
<span id="cb9-9"><a href="#cb9-9"></a> gtk_button_set_label <span class="op">(</span>btn<span class="op">,</span> <span class="st">&quot;Hello.&quot;</span><span class="op">);</span></span> <span id="cb9-9"><a href="#cb9-9"></a> gtk_button_set_label <span class="op">(</span>btn<span class="op">,</span> <span class="st">&quot;Hello.&quot;</span><span class="op">);</span></span>
<span id="cb9-10"><a href="#cb9-10"></a><span class="op">}</span></span></code></pre></div> <span id="cb9-10"><a href="#cb9-10"></a><span class="op">}</span></span></code></pre></div>
<p>The function <code>gtk_button_get_lable</code> returns a text from <p>The function <code>gtk_button_get_label</code> returns a text from
the label. The string is owned by the button and you cant modify or the label. The string is owned by the button and you cant modify or
free it. The <code>const</code> qualifier is necessary for the string free it. The <code>const</code> qualifier is necessary for the string
<code>s</code>. If you change the string, your compiler will give you a <code>s</code>. If you change the string, your compiler will give you a
@ -458,8 +458,8 @@ the GTK 4 API reference.</p>
<img src="image/screenshot_lb4.png" alt="Screenshot of the box" /> <img src="image/screenshot_lb4.png" alt="Screenshot of the box" />
<figcaption aria-hidden="true">Screenshot of the box</figcaption> <figcaption aria-hidden="true">Screenshot of the box</figcaption>
</figure> </figure>
<p>The handler corresponds to <code>btn1</code> toggles its label. The <p>The handler corresponding to <code>btn1</code> toggles its label. The
handler corresponds to <code>btn2</code> destroys the top-level window handler corresponding to <code>btn2</code> destroys the top-level window
and the application quits.</p> and the application quits.</p>
</div> </div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>