Fix custom places creation
This commit is contained in:
		
							parent
							
								
									3a7cf21d05
								
							
						
					
					
						commit
						e55263a666
					
				| @ -263,9 +263,10 @@ class mintMenuConfig( object ): | |||||||
|         for count in range( len(self.customplacepaths) ): |         for count in range( len(self.customplacepaths) ): | ||||||
|             self.customplacestreemodel.append( [ self.customplacenames[count], self.customplacepaths[count] ] ) |             self.customplacestreemodel.append( [ self.customplacenames[count], self.customplacepaths[count] ] ) | ||||||
| 
 | 
 | ||||||
|         self.customplacestreemodel.connect("row-changed", self.updatePlacesGSettings) |         self.customplacestreemodel.connect("row-inserted", self.updatePlacesGSettings) | ||||||
|         self.customplacestreemodel.connect("row-deleted", self.updatePlacesGSettings) |         self.customplacestreemodel.connect("row-deleted", self.updatePlacesGSettings) | ||||||
|         self.customplacestreemodel.connect("rows-reordered", self.updatePlacesGSettings) |         self.customplacestreemodel.connect("rows-reordered", self.updatePlacesGSettings) | ||||||
|  |         self.customplacestreemodel.connect("row-changed", self.updatePlacesGSettings) | ||||||
|         self.customplacestree.set_model( self.customplacestreemodel ) |         self.customplacestree.set_model( self.customplacestreemodel ) | ||||||
|         self.namescolumn = Gtk.TreeViewColumn( _("Name"), self.cell, text = 0 ) |         self.namescolumn = Gtk.TreeViewColumn( _("Name"), self.cell, text = 0 ) | ||||||
|         self.placescolumn = Gtk.TreeViewColumn( _("Path"), self.cell, text = 1 ) |         self.placescolumn = Gtk.TreeViewColumn( _("Path"), self.cell, text = 1 ) | ||||||
| @ -538,8 +539,8 @@ class mintMenuConfig( object ): | |||||||
|                 customplacenames = customplacenames + [ self.customplacestreemodel.get_value(treeiter, 0 ) ] |                 customplacenames = customplacenames + [ self.customplacestreemodel.get_value(treeiter, 0 ) ] | ||||||
|                 customplacepaths = customplacepaths + [ self.customplacestreemodel.get_value(treeiter, 1 ) ] |                 customplacepaths = customplacepaths + [ self.customplacestreemodel.get_value(treeiter, 1 ) ] | ||||||
|                 treeiter = self.customplacestreemodel.iter_next(treeiter) |                 treeiter = self.customplacestreemodel.iter_next(treeiter) | ||||||
|             self.settingsPlaces.set( "list-string", "custom_paths", customplacepaths) |             self.settingsPlaces.set( "list-string", "custom-paths", customplacepaths) | ||||||
|             self.settingsPlaces.set( "list-string", "custom_names", customplacenames) |             self.settingsPlaces.set( "list-string", "custom-names", customplacenames) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| window = mintMenuConfig() | window = mintMenuConfig() | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user