don't traceback with GTK < 2.18
This commit is contained in:
		
							parent
							
								
									15acafdde7
								
							
						
					
					
						commit
						ed8ec75c52
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -307,6 +307,13 @@ class MessageTextView(gtk.TextView):
 | 
			
		|||
            _buffer.set_text(self.undo_list.pop())
 | 
			
		||||
        self.undo_pressed = True
 | 
			
		||||
        
 | 
			
		||||
    def get_sensitive(self):
 | 
			
		||||
        # get sensitive is not in GTK < 2.18
 | 
			
		||||
        try:
 | 
			
		||||
            super(MessageTextView, self).get_sensitive()
 | 
			
		||||
        except AttributeError:
 | 
			
		||||
            return self.get_property('sensitive')
 | 
			
		||||
 | 
			
		||||
# We register depending on keysym and modifier some bindings
 | 
			
		||||
# but we also pass those as param so we can construct fake Event
 | 
			
		||||
# Here we register bindings for those combinations that there is NO DEFAULT
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue