1
# -*- coding: utf-8 -*-
4
Copyright (C) 2006-2008 Adolfo González Blázquez <code@infinicode.org>
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License as
8
published by the Free Software Foundation; either version 2
9
of the License, or (at your option) any later version.
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
If you find any bugs or have any suggestions email: code@infinicode.org
23
import TreeViewTooltips as tvt
24
from gettext import gettext as _
26
class ToolTips(tvt.TreeViewTooltips):
28
def __init__(self,column):
30
tvt.TreeViewTooltips.__init__(self)
33
def get_tooltip(self, view, column, path):
35
model = view.get_model()
36
oldpath = model[path][1]
37
newpath = model[path][3]
39
return _("<b>Original: </b> %s\n<b>Renamed: </b> %s") % (oldpath, newpath)
41
return _("<b>Original: </b> %s") % oldpath
43
"""if column is self.column:
44
filepath = model[path][3]
45
return '<b>New filename: </b> %s' % filepath
47
filepath = model[path][1]
48
return '<b>Original filename: </b> %s' % filepath"""