Compare commits
	
		
			3 commits
		
	
	
		
			237fb2c6c4
			...
			a84fa83cf2
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| a84fa83cf2 | |||
| 58a8402a91 | |||
| 
							 | 
						c98742a9cc | 
					 1 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
					@ -17,6 +17,7 @@ import math
 | 
				
			||||||
import json
 | 
					import json
 | 
				
			||||||
import os.path
 | 
					import os.path
 | 
				
			||||||
from EntryDialog import EntryDialog
 | 
					from EntryDialog import EntryDialog
 | 
				
			||||||
 | 
					from collections import OrderedDict
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Config Dialog ###
 | 
					### Config Dialog ###
 | 
				
			||||||
| 
						 | 
					@ -141,7 +142,8 @@ class HostsMask:
 | 
				
			||||||
        HostsConfFrame.add(HostsConfTable)
 | 
					        HostsConfFrame.add(HostsConfTable)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        i = 0
 | 
					        i = 0
 | 
				
			||||||
        hosts = sorted(self.Terminals.keys(), reverse=False)
 | 
					
 | 
				
			||||||
 | 
					        hosts = self.Terminals.keys()
 | 
				
			||||||
        for host in hosts:
 | 
					        for host in hosts:
 | 
				
			||||||
            HostTable = gtk.Table(1, 2)
 | 
					            HostTable = gtk.Table(1, 2)
 | 
				
			||||||
            HostTable.props.column_spacing = 2
 | 
					            HostTable.props.column_spacing = 2
 | 
				
			||||||
| 
						 | 
					@ -183,7 +185,7 @@ class CruSSH:
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ### State Vars ###
 | 
					    ### State Vars ###
 | 
				
			||||||
    Terminals = {}
 | 
					    Terminals = OrderedDict()
 | 
				
			||||||
    TermMinWidth = 1
 | 
					    TermMinWidth = 1
 | 
				
			||||||
    TermMinHeight = 1
 | 
					    TermMinHeight = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -197,7 +199,8 @@ class CruSSH:
 | 
				
			||||||
    ### Methods ###
 | 
					    ### Methods ###
 | 
				
			||||||
    def reflowTable(self, cols=1, rows=1):
 | 
					    def reflowTable(self, cols=1, rows=1):
 | 
				
			||||||
        # empty table and re-size
 | 
					        # empty table and re-size
 | 
				
			||||||
        hosts = sorted(self.Terminals.keys(), reverse=True)
 | 
					        hosts = list(self.Terminals.keys())
 | 
				
			||||||
 | 
					        hosts.reverse()
 | 
				
			||||||
        for host in hosts:
 | 
					        for host in hosts:
 | 
				
			||||||
            if self.Terminals[host].get_parent() == self.LayoutTable:
 | 
					            if self.Terminals[host].get_parent() == self.LayoutTable:
 | 
				
			||||||
                self.LayoutTable.remove(self.Terminals[host])
 | 
					                self.LayoutTable.remove(self.Terminals[host])
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue