Fix roster popup menu.
Replace Gdk.Event with Gdk.Event.new, so that event is constructed with correct type information. This fixes showing a roster popup menu when launched using keyboard shortcut (Menu key or Shift-F10).
This commit is contained in:
		
							parent
							
								
									a15f37aee3
								
							
						
					
					
						commit
						38581b7080
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3967,7 +3967,7 @@ class RosterWindow:
 | 
			
		|||
                self.on_history(widget, contact, account)
 | 
			
		||||
 | 
			
		||||
    def on_roster_window_popup_menu(self, widget):
 | 
			
		||||
        event = Gdk.Event(Gdk.EventType.KEY_PRESS)
 | 
			
		||||
        event = Gdk.Event.new(Gdk.EventType.KEY_PRESS)
 | 
			
		||||
        self.show_treeview_menu(event)
 | 
			
		||||
 | 
			
		||||
    def on_row_activated(self, widget, path):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue