{"id":15722030,"url":"https://github.com/gagath/gladis","last_synced_at":"2026-01-16T02:20:43.635Z","repository":{"id":48919391,"uuid":"279578625","full_name":"gagath/gladis","owner":"gagath","description":"[Deprecated] Easily import Glade-generated UI files into Rust code.","archived":false,"fork":false,"pushed_at":"2022-05-12T19:47:21.000Z","size":72,"stargazers_count":27,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T06:42:40.628Z","etag":null,"topics":["gtk","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gagath.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSES/Apache-2.0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-14T12:26:40.000Z","updated_at":"2024-05-27T15:58:46.000Z","dependencies_parsed_at":"2022-09-26T20:20:58.176Z","dependency_job_id":null,"html_url":"https://github.com/gagath/gladis","commit_stats":null,"previous_names":["microjoe/gladis"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagath%2Fgladis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagath%2Fgladis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagath%2Fgladis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagath%2Fgladis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gagath","download_url":"https://codeload.github.com/gagath/gladis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253750304,"owners_count":21958281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gtk","rust"],"created_at":"2024-10-03T22:03:16.988Z","updated_at":"2026-01-16T02:20:43.630Z","avatar_url":"https://github.com/gagath.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nSPDX-FileCopyrightText: 2022 Agathe Porte \u003cmicrojoe@microjoe.org\u003e\n\nSPDX-License-Identifier: Apache-2.0 OR MIT\n--\u003e\n\n# gladis\n\n![Maintenance status is \"deprecated\"](https://img.shields.io/badge/maintenance-deprecated-red.svg)\n[![Build](https://github.com/gagath/gladis/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/gagath/gladis/actions/workflows/ci.yml)\n[![Latest version](https://img.shields.io/crates/v/gladis.svg)](https://crates.io/crates/gladis)\n[![Documentation](https://docs.rs/gladis/badge.svg)](https://docs.rs/gladis)\n[![License](https://img.shields.io/crates/l/gladis.svg)](#License)\n\nEasily import Glade-generated UI files into Rust code.\n\n**This crate is DEPRECATED.  \nUse [CompositeTemplate](https://gtk-rs.org/gtk4-rs/stable/latest/book/composite_templates.html)\nfrom [gtk3-macros](https://crates.io/crates/gtk3-macros)\nor [gtk4-macros](https://crates.io/crates/gtk4-macros) official GTK crates.**\n\n## Usage\n\nIn order to use Gladis, you have to add the following dependencies into your\nproject's `Cargo.toml` file:\n\n```toml\n[dependencies]\ngladis = \"2.1.2\"\n```\n\nAfter this is done, you can enjoy the Gladis derive!\n\n```rust\n#[derive(Gladis, Clone)]\npub struct Window {\n    pub window: gtk::ApplicationWindow,\n    pub label: gtk::Label,\n}\n\nimpl Window {\n    pub fn new() -\u003e Self {\n        Self::from_resource(\"/dev/null/hello_builder/window.ui\").unwrap()\n    }\n}\n```\n\nWithout Gladis, you would have to manually parse each of the Glade entries.\n\n```rust\npub struct Window {\n    pub window: gtk::ApplicationWindow,\n    pub label: gtk::Label,\n}\n\nimpl Window {\n    pub fn new() -\u003e Self {\n        let builder = gtk::Builder::from_resource(\"/dev/null/hello_builder/window.ui\");\n        let window: gtk::ApplicationWindow = builder\n            .object(\"window\")\n            .expect(\"Failed to find the window object\");\n\n        let label: gtk::Label = builder\n            .object(\"label\")\n            .expect(\"Failed to find the label object\");\n\n        Self { window, label }\n    }\n}\n```\n\n## Relm support\n\nThis crate is compatible with [Relm](https://github.com/antoyo/relm), a\npopular framework for writing UIs with GTK+. See the `examples/relm` directory,\nand give it a shot!\n\n## License\n\nLicensed under either of [Apache License, Version 2.0](LICENSES/Apache-2.0.txt)\nor [MIT license](LICENSES/MIT.txt) at your option.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this project by you, as defined in the Apache-2.0 license,\nshall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgagath%2Fgladis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgagath%2Fgladis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgagath%2Fgladis/lists"}