Change how we check for updating the icon theme
This commit is contained in:
		
							parent
							
								
									d1008d1fc3
								
							
						
					
					
						commit
						f30f258ce6
					
				| @ -444,7 +444,7 @@ class MainWindow( object ): | |||||||
|             self.plugins["applications"].focusSearchEntry() |             self.plugins["applications"].focusSearchEntry() | ||||||
| 
 | 
 | ||||||
|     def grab( self ): |     def grab( self ): | ||||||
|         gdk.gdk_pointer_grab (hash(self.window.window), True, Gdk.EventMask.BUTTON_PRESS_MASK, None, None, 0) |         gdk.gdk_pointer_grab (hash(self.window.window), True, Gdk.EventMask.BUTTON_PRESS_MASK, None, None, Gdk.CURRENT_TIME) | ||||||
|         Gdk.keyboard_grab( self.window.window, False, Gdk.CURRENT_TIME ) |         Gdk.keyboard_grab( self.window.window, False, Gdk.CURRENT_TIME ) | ||||||
|         Gtk.grab_add(self.window) |         Gtk.grab_add(self.window) | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -84,9 +84,9 @@ class IconManager(GObject.GObject): | |||||||
| 
 | 
 | ||||||
|             if iconFileName and needTempFile and os.path.exists( iconFileName ): |             if iconFileName and needTempFile and os.path.exists( iconFileName ): | ||||||
|                 tmpIconName = iconFileName.replace("/", "-") |                 tmpIconName = iconFileName.replace("/", "-") | ||||||
|                 shutil.copyfile(iconFileName, os.path.join(self.iconDir, tmpIconName)) |  | ||||||
|                 realIconName = tmpIconName[:-4] |                 realIconName = tmpIconName[:-4] | ||||||
|                 if not self.defaultTheme.has_icon( realIconName ): |                 if not os.path.exists(os.path.join(self.iconDir, tmpIconName)): | ||||||
|  |                     shutil.copyfile(iconFileName, os.path.join(self.iconDir, tmpIconName)) | ||||||
|                     self.defaultTheme.append_search_path(self.iconDir) |                     self.defaultTheme.append_search_path(self.iconDir) | ||||||
| 
 | 
 | ||||||
|             image = Gtk.Image() |             image = Gtk.Image() | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user