Rename activate signal in cell renderers to 'clicked'

This commit is contained in:
Tomeu Vizoso 2009-06-30 10:09:42 +02:00
parent 434b1e5899
commit afce505143
2 changed files with 2 additions and 2 deletions

View File

@ -923,7 +923,7 @@ class CellRendererIcon(gtk.GenericCellRenderer):
__gtype_name__ = 'SugarCellRendererIcon'
__gsignals__ = {
'activate': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, [object])
'clicked': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, [object])
}
def __init__(self, tree_view):

View File

@ -1234,7 +1234,7 @@ class CellRendererInvoker(Invoker):
tree_view = self._tree_view
path, column_, x_, y_ = tree_view.get_path_at_pos(int(event.x),
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
return False
if event.button == 3 and self._point_in_cell_renderer(event.x, event.y):