From a39e642b5aede4410799ec49de990ac529f0c40e Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 4 Sep 2018 11:22:18 +0300 Subject: [PATCH] EpisodeWidget: Change cacnel button to an icon This also reworks the button_box to be just a GtkBox instead. I couldn't get ButtonBox to behave the way I wanted. Fixes #89 --- podcasts-gtk/resources/gtk/episode_widget.ui | 70 +++++++++++--------- podcasts-gtk/src/widgets/episode.rs | 2 +- 2 files changed, 40 insertions(+), 32 deletions(-) diff --git a/podcasts-gtk/resources/gtk/episode_widget.ui b/podcasts-gtk/resources/gtk/episode_widget.ui index 066485b..59043e9 100644 --- a/podcasts-gtk/resources/gtk/episode_widget.ui +++ b/podcasts-gtk/resources/gtk/episode_widget.ui @@ -44,8 +44,10 @@ Tobias Bernard False + 230 True False + start vertical 6 @@ -61,7 +63,7 @@ Tobias Bernard False - True + False 0 @@ -205,23 +207,53 @@ Tobias Bernard - + True False - center + end + 6 - - Cancel + True - False + True + True + Play this episode center center + + + True + False + media-playback-start-symbolic + + + + + False + False + 0 + + + + + True + False + Cancel the download proccess + center + center + + + True + False + edit-delete-symbolic + + False False end - 0 + 1 @@ -241,34 +273,10 @@ Tobias Bernard - - False - False - 1 - True - - - - - True - True - True - Play this episode - center - center - - - True - False - media-playback-start-symbolic - - - False False 2 - True diff --git a/podcasts-gtk/src/widgets/episode.rs b/podcasts-gtk/src/widgets/episode.rs index 940148a..20823c9 100644 --- a/podcasts-gtk/src/widgets/episode.rs +++ b/podcasts-gtk/src/widgets/episode.rs @@ -65,7 +65,7 @@ struct InfoLabels { #[derive(Clone, Debug)] struct Buttons { - container: gtk::ButtonBox, + container: gtk::Box, play: gtk::Button, download: gtk::Button, cancel: gtk::Button,