Rename activate signal in cell renderers to 'clicked'
This commit is contained in:
parent
434b1e5899
commit
afce505143
@ -923,7 +923,7 @@ class CellRendererIcon(gtk.GenericCellRenderer):
|
|||||||
__gtype_name__ = 'SugarCellRendererIcon'
|
__gtype_name__ = 'SugarCellRendererIcon'
|
||||||
|
|
||||||
__gsignals__ = {
|
__gsignals__ = {
|
||||||
'activate': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, [object])
|
'clicked': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, [object])
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, tree_view):
|
def __init__(self, tree_view):
|
||||||
|
@ -1234,7 +1234,7 @@ class CellRendererInvoker(Invoker):
|
|||||||
tree_view = self._tree_view
|
tree_view = self._tree_view
|
||||||
path, column_, x_, y_ = tree_view.get_path_at_pos(int(event.x),
|
path, column_, x_, y_ = tree_view.get_path_at_pos(int(event.x),
|
||||||
int(event.y))
|
int(event.y))
|
||||||
self._cell_renderer.emit('activate', path)
|
self._cell_renderer.emit('clicked', path)
|
||||||
# So the treeview receives it and knows a drag isn't going on
|
# So the treeview receives it and knows a drag isn't going on
|
||||||
return False
|
return False
|
||||||
if event.button == 3 and self._point_in_cell_renderer(event.x, event.y):
|
if event.button == 3 and self._point_in_cell_renderer(event.x, event.y):
|
||||||
|
Loading…
Reference in New Issue
Block a user