typo
This commit is contained in:
parent
1c25e7a930
commit
41e9deceff
|
@ -686,7 +686,7 @@ class Roster_window:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def on_roster_treeview_button_press_event(self, widget, event):
|
def on_roster_treeview_button_press_event(self, widget, event):
|
||||||
'''popup contact's , group's or agent's menu'''
|
'''popup contact's, group's or agent's menu'''
|
||||||
if event.type == gtk.gdk.BUTTON_PRESS:
|
if event.type == gtk.gdk.BUTTON_PRESS:
|
||||||
if event.button == 3: # Right click
|
if event.button == 3: # Right click
|
||||||
try:
|
try:
|
||||||
|
@ -711,7 +711,7 @@ class Roster_window:
|
||||||
if event.button == 1: # Left click
|
if event.button == 1: # Left click
|
||||||
try:
|
try:
|
||||||
path, column, x, y = self.tree.get_path_at_pos(int(event.x),
|
path, column, x, y = self.tree.get_path_at_pos(int(event.x),
|
||||||
nt(event.y))
|
int(event.y))
|
||||||
except TypeError:
|
except TypeError:
|
||||||
self.tree.get_selection().unselect_all()
|
self.tree.get_selection().unselect_all()
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue