| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
use gtk::subclass::prelude::*; |
| 21 |
use gtk::{CompositeTemplate, glib}; |
| 22 |
|
| 23 |
#[derive(Debug, Default, CompositeTemplate)] |
| 24 |
#[template(resource = "/org/gnome/Podcasts/gtk/empty_show.ui")] |
| 25 |
pub struct EmptyShowPriv {} |
| 26 |
|
| 27 |
#[glib::object_subclass] |
| 28 |
impl ObjectSubclass for EmptyShowPriv { |
| 29 |
const NAME: &'static str = "PdEmptyShow"; |
| 30 |
type Type = EmptyShow; |
| 31 |
type ParentType = gtk::Box; |
| 32 |
|
| 33 |
fn class_init(klass: &mut Self::Class) { |
| 34 |
klass.bind_template(); |
| 35 |
} |
| 36 |
|
| 37 |
|
| 38 |
fn instance_init(obj: &glib::subclass::InitializingObject<Self>) { |
| 39 |
obj.init_template(); |
| 40 |
} |
| 41 |
} |
| 42 |
|
| 43 |
impl ObjectImpl for EmptyShowPriv {} |
| 44 |
|
| 45 |
impl WidgetImpl for EmptyShowPriv {} |
| 46 |
impl BoxImpl for EmptyShowPriv {} |
| 47 |
|
| 48 |
glib::wrapper! { |
| 49 |
pub struct EmptyShow(ObjectSubclass<EmptyShowPriv>) |
| 50 |
@extends gtk::Widget, gtk::Box, |
| 51 |
@implements gtk::ConstraintTarget, gtk::Buildable, gtk::Accessible; |
| 52 |
} |
| 53 |
|
| 54 |
impl Default for EmptyShow { |
| 55 |
fn default() -> Self { |
| 56 |
glib::Object::new() |
| 57 |
} |
| 58 |
} |