[PATCH castor] Fix missing input dialog message
Export this patch
From: Michael Spector <spektom@gmail.com>
---
src/dialog.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/dialog.rs b/src/dialog.rs
index 485a5ec..6bfc760 100644
--- a/src/dialog.rs
+++ b/src/dialog.rs
@@ -43,7 +43,7 @@ pub fn error(gui: &Arc<Gui>, message: &str) {
pub fn input(gui: &Arc<Gui>, url: Url, message: &str) {
let dialog = gtk::Dialog::new_with_buttons(
- Some(message),
+ Some("Input"),
Some(gui.window()),
gtk::DialogFlags::MODAL,
&[
@@ -53,6 +53,8 @@ pub fn input(gui: &Arc<Gui>, url: Url, message: &str) {
);
let content_area = dialog.get_content_area();
+ let message = gtk::Label::new(Some(message));
+ content_area.add(&message);
let entry = gtk::Entry::new();
content_area.add(&entry);
--
2.30.0