From a4ac8d825324937ea490cc9c3cd6f7f2c90b741a Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 5 Dec 2021 23:41:54 +0500 Subject: [PATCH] Partially convert Glade UI to GTK+4 --- main.glade | 15 --------- main.ui | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++ src/main.rs | 2 +- 3 files changed, 95 insertions(+), 16 deletions(-) delete mode 100644 main.glade create mode 100644 main.ui diff --git a/main.glade b/main.glade deleted file mode 100644 index b84b624..0000000 --- a/main.glade +++ /dev/null @@ -1,15 +0,0 @@ - - - - My GTK App - - - Press me! - 12 - 12 - 12 - 12 - - - - diff --git a/main.ui b/main.ui new file mode 100644 index 0000000..b091a6f --- /dev/null +++ b/main.ui @@ -0,0 +1,94 @@ + + + + + + True + False + vertical + + + True + False + 5 + 5 + 5 + 5 + + + True + False + + + + + Save + True + True + True + + + + + Apply + True + True + True + + + + + + + True + True + left + False + + + True + False + page 1 + + + + + True + False + page 2 + + + + + True + False + page 3 + + + + + True + False + page 1 + + + + + True + False + page 2 + + + + + True + False + page 3 + + + + + + + + diff --git a/src/main.rs b/src/main.rs index 4cba971..e08b309 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ use gtk::prelude::*; use gtk::*; static ID: &str = "com.causa-arcana.polytree.polytree-session"; -static UI: &str = include_str!("../main.glade"); +static UI: &str = include_str!("../main.ui"); fn main() { let app = Application::builder().application_id(ID).build();