summaryrefslogtreecommitdiff
path: root/schist_gtk4_gui/src/balances_view.rs
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2025-02-23 15:45:10 +0000
committerJoe Carstairs <me@joeac.net>2025-02-23 15:45:10 +0000
commitbfa9ba1f680bb9a7c2c9555d89e57a76c02f47b8 (patch)
tree8e0e23b9ee597c1462bdf4a35041ec0c10b948cf /schist_gtk4_gui/src/balances_view.rs
parent10759bb88331141b1586c9e6fa6cf6ce1683b964 (diff)
Remove gtk-rs front end
Diffstat (limited to 'schist_gtk4_gui/src/balances_view.rs')
-rw-r--r--schist_gtk4_gui/src/balances_view.rs64
1 files changed, 0 insertions, 64 deletions
diff --git a/schist_gtk4_gui/src/balances_view.rs b/schist_gtk4_gui/src/balances_view.rs
deleted file mode 100644
index 28dfba1..0000000
--- a/schist_gtk4_gui/src/balances_view.rs
+++ /dev/null
@@ -1,64 +0,0 @@
-use gtk::{
- glib::{
- self,
- subclass::{
- object::{ObjectImpl, ObjectImplExt},
- types::ObjectSubclass,
- InitializingObject,
- },
- Object,
- },
- subclass::{
- box_::BoxImpl,
- widget::{
- CompositeTemplateClass, CompositeTemplateInitializingExt, WidgetClassExt, WidgetImpl,
- },
- },
- TemplateChild,
-};
-
-use crate::balances_histogram::SchistBalancesHistogram;
-
-glib::wrapper! {
- pub struct SchistBalancesView(ObjectSubclass<SchistBalancesViewImpl>)
- @extends gtk::Box, gtk::Widget,
- @implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget, gtk::Orientable;
-}
-
-impl SchistBalancesView {
- pub fn new() -> Self {
- Object::builder().build()
- }
-}
-
-#[derive(gtk::CompositeTemplate, Default)]
-#[template(resource = "/net/joeac/schist/ui/balances_view.ui")]
-pub struct SchistBalancesViewImpl {
- #[template_child]
- balances_histogram: TemplateChild<SchistBalancesHistogram>,
-}
-
-#[glib::object_subclass]
-impl ObjectSubclass for SchistBalancesViewImpl {
- const NAME: &'static str = "SchistBalancesView";
- type Type = SchistBalancesView;
- type ParentType = gtk::Box;
-
- fn class_init(klass: &mut Self::Class) {
- klass.bind_template();
- }
-
- fn instance_init(obj: &InitializingObject<Self>) {
- obj.init_template();
- }
-}
-
-impl ObjectImpl for SchistBalancesViewImpl {
- fn constructed(&self) {
- self.parent_constructed();
- }
-}
-
-impl WidgetImpl for SchistBalancesViewImpl {}
-
-impl BoxImpl for SchistBalancesViewImpl {}