diff options
Diffstat (limited to 'nautilus/nautilus-mat.py')
| -rw-r--r-- | nautilus/nautilus-mat.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nautilus/nautilus-mat.py b/nautilus/nautilus-mat.py index ccb12aa..7e2e78a 100644 --- a/nautilus/nautilus-mat.py +++ b/nautilus/nautilus-mat.py | |||
| @@ -7,7 +7,7 @@ try: | |||
| 7 | import gettext | 7 | import gettext |
| 8 | gettext.install("mat") | 8 | gettext.install("mat") |
| 9 | except: | 9 | except: |
| 10 | logging.warning("Failed to initialize gettext") | 10 | logging.warning("Failed to initialise gettext") |
| 11 | _ = lambda x: x | 11 | _ = lambda x: x |
| 12 | 12 | ||
| 13 | import xml.sax | 13 | import xml.sax |
| @@ -19,9 +19,9 @@ import MAT.strippers | |||
| 19 | 19 | ||
| 20 | class MatExtension(GObject.GObject, Nautilus.MenuProvider): | 20 | class MatExtension(GObject.GObject, Nautilus.MenuProvider): |
| 21 | def __init__(self): | 21 | def __init__(self): |
| 22 | logging.debug("nautilus-mat: initializing") | 22 | logging.debug("nautilus-mat: initialising") |
| 23 | pass | 23 | pass |
| 24 | 24 | ||
| 25 | def get_file_items(self, window, files): | 25 | def get_file_items(self, window, files): |
| 26 | if len(files) != 1: | 26 | if len(files) != 1: |
| 27 | return | 27 | return |
| @@ -59,7 +59,7 @@ class MatExtension(GObject.GObject, Nautilus.MenuProvider): | |||
| 59 | def menu_activate_cb(self, menu, file): | 59 | def menu_activate_cb(self, menu, file): |
| 60 | if file.is_gone(): | 60 | if file.is_gone(): |
| 61 | return | 61 | return |
| 62 | 62 | ||
| 63 | file_path = urllib.unquote(file.get_uri()[7:]) | 63 | file_path = urllib.unquote(file.get_uri()[7:]) |
| 64 | 64 | ||
| 65 | class_file = MAT.mat.create_class_file(file_path, | 65 | class_file = MAT.mat.create_class_file(file_path, |
