fix traceback with Gtk3.6
This commit is contained in:
		
							parent
							
								
									936d538eba
								
							
						
					
					
						commit
						0519253ff8
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1932,7 +1932,8 @@ class Interface:
 | 
			
		|||
        # Calculate the side lenght of the popup to make it a square
 | 
			
		||||
        size = int(round(math.sqrt(len(self.emoticons_images))))
 | 
			
		||||
        for image in self.emoticons_images:
 | 
			
		||||
            item = Gtk.MenuItem()
 | 
			
		||||
            # In Gtk 3.6, Gtk.MenuItem() doesn't contain a label child
 | 
			
		||||
            item = Gtk.MenuItem('q')
 | 
			
		||||
            img = Gtk.Image()
 | 
			
		||||
            if isinstance(image[1], GdkPixbuf.PixbufAnimation):
 | 
			
		||||
                img.set_from_animation(image[1])
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue