no new windows
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user