[PATCH] emblemcellrenderer: fixed reference to name attribute





fixed reference to name attribute when
rising AttributeError
---
 meld/ui/emblemcellrenderer.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meld/ui/emblemcellrenderer.py b/meld/ui/emblemcellrenderer.py
index 3cc5cfe..6a7e526 100644
--- a/meld/ui/emblemcellrenderer.py
+++ b/meld/ui/emblemcellrenderer.py
@@ -58,7 +58,7 @@ class EmblemCellRenderer(gtk.GenericCellRenderer):
             else:
                 self._tint_color = None
         else:
-            raise AttributeError("unknown property %s" % name)
+            raise AttributeError("unknown property %s" % pspec.name)

     def do_get_property(self, pspec):
         if pspec.name == "icon-name":
@@ -68,7 +68,7 @@ class EmblemCellRenderer(gtk.GenericCellRenderer):
         elif pspec.name == "icon-tint":
             return self._icon_tint
         else:
-            raise AttributeError("unknown property %s" % name)
+            raise AttributeError("unknown property %s" % pspec.name)

     def on_render(self, window, widget, background_area, cell_area,
                   expose_area, flags):
-- 1.8.3.1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]