Commit eda1b5b9 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

Correctly position the icons per line

parent f0001e40
Pipeline #113613 passed with stages
in 6 minutes and 49 seconds
......@@ -7,7 +7,7 @@ variables:
BUNDLE: "icon-library-nightly.flatpak"
flatpak:
image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:master"
image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:3.32"
stage: "test"
variables:
MANIFEST_PATH: "build-aux/org.gnome.design.IconLibraryDevel.json"
......
......@@ -322,7 +322,7 @@ dependencies = [
"libhandy 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)",
"pretty_env_logger 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"search-provider 0.1.0 (git+https://gitlab.gnome.org/bilelmoussaoui/search-provider.git?branch=bilelmoussaoui/update)",
"search-provider 0.1.0 (git+https://gitlab.gnome.org/World/Rust/search-provider.git)",
"serde 1.0.97 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_derive 1.0.97 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)",
......@@ -523,7 +523,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "search-provider"
version = "0.1.0"
source = "git+https://gitlab.gnome.org/bilelmoussaoui/search-provider.git?branch=bilelmoussaoui/update#e50436d274f96ad775605f9230a9b03337dd7637"
source = "git+https://gitlab.gnome.org/World/Rust/search-provider.git#2ad3e1ad712a72ea2de0cc8a05a5dceec073b99c"
dependencies = [
"dbus 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",
"glib 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
......@@ -693,7 +693,7 @@ dependencies = [
"checksum regex 1.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "d9d8297cc20bbb6184f8b45ff61c8ee6a9ac56c156cec8e38c3e5084773c44ad"
"checksum regex-syntax 0.6.8 (registry+https://github.com/rust-lang/crates.io-index)" = "9b01330cce219c1c6b2e209e5ed64ccd587ae5c67bed91c0b49eecf02ae40e21"
"checksum ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c92464b447c0ee8c4fb3824ecc8383b81717b9f1e74ba2e72540aef7b9f82997"
"checksum search-provider 0.1.0 (git+https://gitlab.gnome.org/bilelmoussaoui/search-provider.git?branch=bilelmoussaoui/update)" = "<none>"
"checksum search-provider 0.1.0 (git+https://gitlab.gnome.org/World/Rust/search-provider.git)" = "<none>"
"checksum serde 1.0.97 (registry+https://github.com/rust-lang/crates.io-index)" = "d46b3dfedb19360a74316866cef04687cd4d6a70df8e6a506c63512790769b72"
"checksum serde_derive 1.0.97 (registry+https://github.com/rust-lang/crates.io-index)" = "c22a0820adfe2f257b098714323563dd06426502abbbce4f51b72ef544c5027f"
"checksum serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)" = "051c49229f282f7c6f3813f8286cc1e3323e8051823fce42c7ea80fe13521704"
......
......@@ -83,11 +83,13 @@ impl IconsViewContext {
}
fn init(&self) {
self.icons_container.set_row_spacing(12);
self.icons_container.set_column_spacing(12);
self.icons_container.set_homogeneous(false);
self.icons_container.set_row_spacing(24);
self.icons_container.set_column_spacing(24);
self.icons_container.set_homogeneous(true);
self.icons_container.set_max_children_per_line(14);
self.icons_container.set_min_children_per_line(6);
self.icons_container.set_halign(gtk::Align::Center);
self.icons_container.set_valign(gtk::Align::Start);
self.icons_container.set_selection_mode(gtk::SelectionMode::None);
let context_label = gtk::Label::new(Some(self.context.as_str()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment