Fix menu refresh
This commit is contained in:
		
							parent
							
								
									a90cb0ac19
								
							
						
					
					
						commit
						c36cbfe690
					
				| @ -586,7 +586,7 @@ class pluginclass( object ): | |||||||
|     def buildButtonList( self ):          |     def buildButtonList( self ):          | ||||||
|         if self.buildingButtonList: |         if self.buildingButtonList: | ||||||
|             self.stopBuildingButtonList = True |             self.stopBuildingButtonList = True | ||||||
|             gobject.timeout_add( 100, self.buildButtonList ) |             GObject.timeout_add( 100, self.buildButtonList ) | ||||||
|             return |             return | ||||||
| 
 | 
 | ||||||
|         self.stopBuildingButtonList = False |         self.stopBuildingButtonList = False | ||||||
| @ -1579,9 +1579,9 @@ class pluginclass( object ): | |||||||
|     def menuChanged( self, x, y ): |     def menuChanged( self, x, y ): | ||||||
|         # wait some miliseconds because there a multiple events send at the same time and we don't want to rebuild the menu for each |         # wait some miliseconds because there a multiple events send at the same time and we don't want to rebuild the menu for each | ||||||
|         if self.menuChangedTimer: |         if self.menuChangedTimer: | ||||||
|             Gobject.source_remove( self.menuChangedTimer ) |             GObject.source_remove( self.menuChangedTimer ) | ||||||
| 
 | 
 | ||||||
|         self.menuChangedTimer = Gobject.timeout_add( 100, self.updateBoxes, True ) |         self.menuChangedTimer = GObject.timeout_add( 100, self.updateBoxes, True ) | ||||||
| 
 | 
 | ||||||
|     def updateBoxes( self, menu_has_changed ):         |     def updateBoxes( self, menu_has_changed ):         | ||||||
|         # FIXME: This is really bad! |         # FIXME: This is really bad! | ||||||
|  | |||||||
| @ -392,7 +392,7 @@ class ApplicationLauncher( easyButton ): | |||||||
| 
 | 
 | ||||||
|         icon = self.getIcon( Gtk.IconSize.DND ) |         icon = self.getIcon( Gtk.IconSize.DND ) | ||||||
|         if icon: |         if icon: | ||||||
|             self.drag_source_set_icon_pixbuf( icon ) |             gtk.gtk_drag_source_set_icon_pixbuf( hash(self), hash(icon) ) | ||||||
|             del icon |             del icon | ||||||
| 
 | 
 | ||||||
|     def startupFileChanged( self, *args ): |     def startupFileChanged( self, *args ): | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user