diff options
Diffstat (limited to 'schist_gtk4_gui/src/balances_histogram.rs')
| -rw-r--r-- | schist_gtk4_gui/src/balances_histogram.rs | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/schist_gtk4_gui/src/balances_histogram.rs b/schist_gtk4_gui/src/balances_histogram.rs deleted file mode 100644 index d258ae4..0000000 --- a/schist_gtk4_gui/src/balances_histogram.rs +++ /dev/null @@ -1,59 +0,0 @@ -use gtk::{ - glib::{ - self, - subclass::{ - object::{ObjectImpl, ObjectImplExt}, - types::ObjectSubclass, - InitializingObject, - }, - Object, - }, - subclass::{box_::BoxImpl, widget::{ - CompositeTemplateClass, CompositeTemplateInitializingExt, WidgetClassExt, WidgetImpl, - }}, - TemplateChild, -}; - -glib::wrapper! { - pub struct SchistBalancesHistogram(ObjectSubclass<SchistBalancesHistogramImpl>) - @extends gtk::Box, gtk::Widget, - @implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget; -} - -impl SchistBalancesHistogram { - pub fn new() -> Self { - Object::builder().build() - } -} - -#[derive(gtk::CompositeTemplate, Default)] -#[template(resource = "/net/joeac/schist/ui/balances_histogram.ui")] -pub struct SchistBalancesHistogramImpl { - #[template_child] - balances_list: TemplateChild<gtk::ListBox>, -} - -#[glib::object_subclass] -impl ObjectSubclass for SchistBalancesHistogramImpl { - const NAME: &'static str = "SchistBalancesHistogram"; - type Type = SchistBalancesHistogram; - 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 SchistBalancesHistogramImpl { - fn constructed(&self) { - self.parent_constructed(); - } -} - -impl WidgetImpl for SchistBalancesHistogramImpl {} - -impl BoxImpl for SchistBalancesHistogramImpl {} |
