From f693c986ecc118c58272ecc3c71a38c11e8a869e Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Wed, 28 Mar 2018 13:24:26 +0300 Subject: [PATCH] Add an empty_show if Show has no episodes. --- hammond-gtk/resources/gtk/empty_show.ui | 63 ++++++++++++++++++++++++ hammond-gtk/resources/gtk/show_widget.ui | 4 +- hammond-gtk/resources/resources.xml | 1 + hammond-gtk/src/widgets/episode.rs | 14 ++++-- 4 files changed, 76 insertions(+), 6 deletions(-) create mode 100644 hammond-gtk/resources/gtk/empty_show.ui diff --git a/hammond-gtk/resources/gtk/empty_show.ui b/hammond-gtk/resources/gtk/empty_show.ui new file mode 100644 index 0000000..c88fcb1 --- /dev/null +++ b/hammond-gtk/resources/gtk/empty_show.ui @@ -0,0 +1,63 @@ + + + + + + True + False + center + center + True + True + vertical + 12 + + + True + False + 128 + application-rss+xml-symbolic + True + + + + False + True + 0 + + + + + True + False + This show does not have any episodes + + + + + + + False + True + 1 + + + + + True + False + If you think this is an Error, Plese consider opening a bug report. + + + + False + True + 2 + + + + diff --git a/hammond-gtk/resources/gtk/show_widget.ui b/hammond-gtk/resources/gtk/show_widget.ui index e91316e..4f41060 100644 --- a/hammond-gtk/resources/gtk/show_widget.ui +++ b/hammond-gtk/resources/gtk/show_widget.ui @@ -1,5 +1,5 @@ -