Don't traceback when an icon isn't found
This commit is contained in:
		
							parent
							
								
									a8c9f4301b
								
							
						
					
					
						commit
						e5c7dea51c
					
				| @ -90,8 +90,11 @@ class RichTextBuffer(gtk.TextBuffer): | |||||||
| 
 | 
 | ||||||
| 		self.insert_with_tags_by_name(it, name, "icon", "object-id") | 		self.insert_with_tags_by_name(it, name, "icon", "object-id") | ||||||
| 		icon_theme = gtk.icon_theme_get_default() | 		icon_theme = gtk.icon_theme_get_default() | ||||||
| 		pixbuf = icon_theme.load_icon(name, 16, 0) | 		try: | ||||||
| 		self.insert_pixbuf(it, pixbuf) | 			pixbuf = icon_theme.load_icon(name, 16, 0) | ||||||
|  | 			self.insert_pixbuf(it, pixbuf) | ||||||
|  | 		except gobject.GError: | ||||||
|  | 			pass | ||||||
| 
 | 
 | ||||||
| 	def apply_tag(self, tag_name): | 	def apply_tag(self, tag_name): | ||||||
| 		self.active_tags.append(tag_name) | 		self.active_tags.append(tag_name) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Dan Williams
						Dan Williams