New upstream version 3.24.18
This commit is contained in:
@ -162,8 +162,8 @@
|
||||
<code class="literal">gtk_render_*()</code> calls.
|
||||
</p>
|
||||
<p>
|
||||
The most distinctive changes are the use of <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkStateFlags"><span class="type">GtkStateFlags</span></a> to
|
||||
represent the widget state and the lack of <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkShadowType"><span class="type">GtkShadowType</span></a>. Note
|
||||
The most distinctive changes are the use of <a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> to
|
||||
represent the widget state and the lack of <a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="type">GtkShadowType</span></a>. Note
|
||||
that widget state is now passed implicitly via the context, so
|
||||
to render in a certain state, you have to temporarily set the
|
||||
state on the context, as in the following example:
|
||||
@ -190,9 +190,9 @@
|
||||
</div>
|
||||
<br class="example-break"><p>
|
||||
For <a class="link" href="GtkStyleContext.html#gtk-render-check" title="gtk_render_check ()"><code class="function">gtk_render_check()</code></a> and <a class="link" href="GtkStyleContext.html#gtk-render-option" title="gtk_render_option ()"><code class="function">gtk_render_option()</code></a>, the <em class="parameter"><code>shadow_type</code></em>
|
||||
parameter is replaced by the <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GTK-STATE-FLAG-ACTIVE:CAPS"><span class="type">GTK_STATE_FLAG_ACTIVE</span></a> and
|
||||
<a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GTK-STATE-FLAG-INCONSISTENT:CAPS"><span class="type">GTK_STATE_FLAG_INCONSISTENT</span></a> state flags. For things such as
|
||||
pressed/unpressed button states, <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GTK-STATE-FLAG-ACTIVE:CAPS"><span class="type">GTK_STATE_FLAG_ACTIVE</span></a> is used,
|
||||
parameter is replaced by the <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-ACTIVE:CAPS"><span class="type">GTK_STATE_FLAG_ACTIVE</span></a> and
|
||||
<a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-INCONSISTENT:CAPS"><span class="type">GTK_STATE_FLAG_INCONSISTENT</span></a> state flags. For things such as
|
||||
pressed/unpressed button states, <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-ACTIVE:CAPS"><span class="type">GTK_STATE_FLAG_ACTIVE</span></a> is used,
|
||||
and the CSS may style normal/active states differently to render
|
||||
outset/inset borders, respectively.
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user