no new windows

This commit is contained in:
2024-04-10 20:25:02 +03:00
parent d51aaed23d
commit 5fa5c5e3a7
20 changed files with 404 additions and 97 deletions

View File

@@ -30,7 +30,6 @@ impl ObjectSubclass for CardDisplay {
fn class_init(klass: &mut Self::Class) {
klass.bind_template();
klass.set_layout_manager_type::<gtk::BoxLayout>();
// klass.set_layout_manager_type(a);
}
fn instance_init(obj: &InitializingObject<Self>) {
@@ -46,8 +45,6 @@ impl ObjectImpl for CardDisplay {
self.obj().set_layout_manager(Some(layout_manager));
self.image.set_width_request(256);
self.image.set_height_request(256);
// self.image.
// self.image.set
}
fn dispose(&self) {

View File

@@ -65,7 +65,11 @@ impl CardDisplay {
self.update_file_for_image();
connection.flush_prepared_statement_cache();
connection.cache_flush().expect("Cannot flush cache");
Some((&self.imp().imagepath, &self.imp().hieroglyph))
}
pub fn get_answer_entry(&self) -> &Entry {