Support more versions of glib and gtk
This commit is contained in:
@ -13,6 +13,7 @@ const DIALOG_TIMEOUT: Duration = Duration::from_secs(60);
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
init_logging("BSCREENSAVER_DIALOG_GTK3_LOG");
|
||||
glib::log_set_default_handler(glib::rust_log_handler);
|
||||
|
||||
let mut config = Configuration::load()?;
|
||||
let new_login_command = config.new_login_command
|
||||
@ -22,7 +23,6 @@ fn main() -> anyhow::Result<()> {
|
||||
|
||||
let standalone = std::env::var("BSCREENSAVER_DIALOG_STANDALONE").is_ok();
|
||||
|
||||
unsafe { glib::log_writer_default_set_use_stderr(true) };
|
||||
gtk::init()?;
|
||||
|
||||
let top_sg = gtk::SizeGroup::builder()
|
||||
|
Reference in New Issue
Block a user