mirror of
https://github.com/ToshioCP/Gtk4-tutorial.git
synced 2025-01-12 20:03:28 +01:00
commit
971879ac68
1 changed files with 3 additions and 3 deletions
|
@ -209,7 +209,7 @@ explain that to you first.</p>
|
|||
<p>A signal is emitted when something happens. For example, a window is
|
||||
created, a window is destroyed and so on. The signal “activate” is
|
||||
emitted when the application is activated. (Activated is a bit different
|
||||
from started, but you can think the both are almost same so far.) If the
|
||||
from started, but you can think of them both as almost the same so far.) If the
|
||||
signal is connected to a function, which is called a signal handler or
|
||||
simply handler, then the function is invoked when the signal emits.</p>
|
||||
<p>The flow is like this:</p>
|
||||
|
@ -292,7 +292,7 @@ are:</p>
|
|||
<li>self is an instance to which the signal belongs.</li>
|
||||
<li>user_data is a data defined in the fourth argument of the
|
||||
<code>g_signal_connect</code> function. If it is NULL, then you can
|
||||
ignore and left out the second parameter.</li>
|
||||
ignore and leave out the second parameter.</li>
|
||||
</ul>
|
||||
<p>API reference manual is very important. You should see and understand
|
||||
it.</p>
|
||||
|
@ -371,7 +371,7 @@ instance, you need to cast it.</p>
|
|||
<p>It works, but isn’t usually used. Instead, <code>GTK_WINDOW</code>
|
||||
macro is used.</p>
|
||||
<div class="sourceCode" id="cb16"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb16-1"><a href="#cb16-1" aria-hidden="true" tabindex="-1"></a>GTK_WINDOW <span class="op">(</span>win<span class="op">)</span></span></code></pre></div>
|
||||
<p>The macro is recommended because it does not only cast but also check
|
||||
<p>The macro is recommended because it does not only cast the pointer but it also checks
|
||||
the type.</p>
|
||||
<h4 id="connect-it-to-gtkapplication.">Connect it to
|
||||
GtkApplication.</h4>
|
||||
|
|
Loading…
Reference in a new issue