Add type of buffers, add signals "_buffer_type_changed" and "_buffer_unmerged"
This commit is contained in:
		
							parent
							
								
									54bcac1f1b
								
							
						
					
					
						commit
						9793665389
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		|  | @ -29,7 +29,7 @@ QtCore = qt_compat.import_module('QtCore') | |||
| QtNetwork = qt_compat.import_module('QtNetwork') | ||||
| 
 | ||||
| _PROTO_INIT_CMDS = ['init password=%(password)s,compression=gzip', | ||||
|                     '(listbuffers) hdata buffer:gui_buffers(*) number,full_name,short_name,nicklist,title,local_variables', | ||||
|                     '(listbuffers) hdata buffer:gui_buffers(*) number,full_name,short_name,type,nicklist,title,local_variables', | ||||
|                     '(listlines) hdata buffer:gui_buffers(*)/own_lines/first_line(*)/data date,displayed,prefix,message', | ||||
|                     '(nicklist) nicklist', | ||||
|                     'sync', | ||||
|  |  | |||
|  | @ -303,7 +303,9 @@ class MainWindow(QtGui.QMainWindow): | |||
|                         index = [i for i, b in enumerate(self.buffers) if b.pointer() == item['__path'][0]] | ||||
|                         if index: | ||||
|                             index = index[0] | ||||
|                             if message.msgid in ('_buffer_moved', '_buffer_merged'): | ||||
|                             if message.msgid == '_buffer_type_changed': | ||||
|                                 self.buffers[index].data['type'] = item['type'] | ||||
|                             elif message.msgid in ('_buffer_moved', '_buffer_merged', '_buffer_unmerged'): | ||||
|                                 buf = self.buffers[index] | ||||
|                                 buf.data['number'] = item['number'] | ||||
|                                 self.remove_buffer(index) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sebastien Helleu
						Sebastien Helleu