[conduit] Remove more traces of Tomboy icon



commit b5e06d8e1c204e823a179406bcb12cc19870fd9f
Author: John Stowers <john stowers gmail com>
Date:   Thu Sep 23 12:24:06 2010 +1200

    Remove more traces of Tomboy icon

 conduit/dataproviders/__init__.py |    2 +-
 conduit/modules/TomboyModule.py   |   11 +++++++----
 2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/conduit/dataproviders/__init__.py b/conduit/dataproviders/__init__.py
index 37c3ed2..d0657ca 100644
--- a/conduit/dataproviders/__init__.py
+++ b/conduit/dataproviders/__init__.py
@@ -4,7 +4,7 @@ def N_(message): return message
 
 #Default Categories for the DataProviders
 CATEGORY_FILES = DataProviderCategory.DataProviderCategory(N_("Files and Folders"), "computer")
-CATEGORY_NOTES = DataProviderCategory.DataProviderCategory(N_("Notes"), "tomboy")
+CATEGORY_NOTES = DataProviderCategory.DataProviderCategory(N_("Notes"), "note")
 CATEGORY_PHOTOS = DataProviderCategory.DataProviderCategory(N_("Photos"), "image-x-generic")
 CATEGORY_OFFICE = DataProviderCategory.DataProviderCategory(N_("Office"), "applications-office")
 CATEGORY_SETTINGS = DataProviderCategory.DataProviderCategory(N_("Settings"), "applications-system")
diff --git a/conduit/modules/TomboyModule.py b/conduit/modules/TomboyModule.py
index 19f1dd2..a110073 100644
--- a/conduit/modules/TomboyModule.py
+++ b/conduit/modules/TomboyModule.py
@@ -15,10 +15,13 @@ import conduit.utils as Utils
 
 from gettext import gettext as _
 
-MODULES = {
-	"TomboyNoteTwoWay" :        { "type": "dataprovider"    },
-	"TomboyNoteConverter" :     { "type": "converter"       }
-}
+if Utils.program_installed("tomboy"):
+    MODULES = {
+	    "TomboyNoteTwoWay" :        { "type": "dataprovider"    },
+	    "TomboyNoteConverter" :     { "type": "converter"       }
+    }
+else:
+    MODULES = {}
 
 class TomboyNote(Note.Note):
     """



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