Skip to content

Commit

Permalink
deploy: e28d2fb
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Jan 21, 2024
1 parent 4b44b8a commit 15d2569
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions stable/latest/book/css.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ <h1 id="css"><a class="header" href="#css">CSS</a></h1>
fn load_css() {
// Load the CSS file and add it to the provider
let provider = CssProvider::new();
provider.load_from_data(include_str!(&quot;style.css&quot;));
provider.load_from_string(include_str!(&quot;style.css&quot;));

// Add the provider to the default screen
gtk::style_context_add_provider_for_display(
Expand Down Expand Up @@ -300,7 +300,7 @@ <h2 id="adding-your-own-style-class"><a class="header" href="#adding-your-own-st
</span><span class="boring">fn load_css() {
</span><span class="boring"> // Load the CSS file and add it to the provider
</span><span class="boring"> let provider = CssProvider::new();
</span><span class="boring"> provider.load_from_data(include_str!(&quot;style.css&quot;));
</span><span class="boring"> provider.load_from_string(include_str!(&quot;style.css&quot;));
</span><span class="boring">
</span><span class="boring"> // Add the provider to the default screen
</span><span class="boring"> gtk::style_context_add_provider_for_display(
Expand Down Expand Up @@ -372,7 +372,7 @@ <h2 id="specifying-name-of-a-widget"><a class="header" href="#specifying-name-of
</span><span class="boring">fn load_css() {
</span><span class="boring"> // Load the CSS file and add it to the provider
</span><span class="boring"> let provider = CssProvider::new();
</span><span class="boring"> provider.load_from_data(include_str!(&quot;style.css&quot;));
</span><span class="boring"> provider.load_from_string(include_str!(&quot;style.css&quot;));
</span><span class="boring">
</span><span class="boring"> // Add the provider to the default screen
</span><span class="boring"> gtk::style_context_add_provider_for_display(
Expand Down
10 changes: 5 additions & 5 deletions stable/latest/book/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ <h3 id="setup-the-gnu-toolchain-for-rust"><a class="header" href="#setup-the-gnu
<pre><code>pkg-config --modversion gtk4
</code></pre>
<p>Use this information to add the <a href="https://crates.io/crates/gtk4">gtk4 crate</a> to your dependencies in <code>Cargo.toml</code>.
At the time of this writing the newest version is <code>4.8</code>.</p>
<pre><code>cargo add gtk4 --rename gtk --features v4_8
At the time of this writing the newest version is <code>4.12</code>.</p>
<pre><code>cargo add gtk4 --rename gtk --features v4_12
</code></pre>
<p>By specifying this feature you opt-in to API that was added with minor releases of GTK 4.</p>
<p>Now, you can run your application by executing:</p>
Expand Down Expand Up @@ -10792,7 +10792,7 @@ <h2 id="saving-and-restoring-tasks"><a class="header" href="#saving-and-restorin
fn load_css() {
// Load the CSS file and add it to the provider
let provider = CssProvider::new();
provider.load_from_data(include_str!(&quot;style.css&quot;));
provider.load_from_string(include_str!(&quot;style.css&quot;));

// Add the provider to the default screen
gtk::style_context_add_provider_for_display(
Expand Down Expand Up @@ -10875,7 +10875,7 @@ <h2 id="adding-your-own-style-class"><a class="header" href="#adding-your-own-st
</span><span class="boring">fn load_css() {
</span><span class="boring"> // Load the CSS file and add it to the provider
</span><span class="boring"> let provider = CssProvider::new();
</span><span class="boring"> provider.load_from_data(include_str!(&quot;style.css&quot;));
</span><span class="boring"> provider.load_from_string(include_str!(&quot;style.css&quot;));
</span><span class="boring">
</span><span class="boring"> // Add the provider to the default screen
</span><span class="boring"> gtk::style_context_add_provider_for_display(
Expand Down Expand Up @@ -10947,7 +10947,7 @@ <h2 id="specifying-name-of-a-widget"><a class="header" href="#specifying-name-of
</span><span class="boring">fn load_css() {
</span><span class="boring"> // Load the CSS file and add it to the provider
</span><span class="boring"> let provider = CssProvider::new();
</span><span class="boring"> provider.load_from_data(include_str!(&quot;style.css&quot;));
</span><span class="boring"> provider.load_from_string(include_str!(&quot;style.css&quot;));
</span><span class="boring">
</span><span class="boring"> // Add the provider to the default screen
</span><span class="boring"> gtk::style_context_add_provider_for_display(
Expand Down
4 changes: 2 additions & 2 deletions stable/latest/book/project_setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ <h1 id="project-setup"><a class="header" href="#project-setup">Project Setup</a>
<pre><code>pkg-config --modversion gtk4
</code></pre>
<p>Use this information to add the <a href="https://crates.io/crates/gtk4">gtk4 crate</a> to your dependencies in <code>Cargo.toml</code>.
At the time of this writing the newest version is <code>4.8</code>.</p>
<pre><code>cargo add gtk4 --rename gtk --features v4_8
At the time of this writing the newest version is <code>4.12</code>.</p>
<pre><code>cargo add gtk4 --rename gtk --features v4_12
</code></pre>
<p>By specifying this feature you opt-in to API that was added with minor releases of GTK 4.</p>
<p>Now, you can run your application by executing:</p>
Expand Down
2 changes: 1 addition & 1 deletion stable/latest/book/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion stable/latest/book/searchindex.json

Large diffs are not rendered by default.

0 comments on commit 15d2569

Please sign in to comment.