[gnote] Rename DynamicModule::enabled to DynamicModule::is_enabled



commit 503b807304ad7c5109ca8196bbd473bb897c57e5
Author: Debarshi Ray <debarshir src gnome org>
Date:   Sun Sep 26 15:15:20 2010 +0300

    Rename DynamicModule::enabled to DynamicModule::is_enabled

 src/addinmanager.cpp        |    7 ++++---
 src/preferencesdialog.cpp   |    4 ++--
 src/sharp/dynamicmodule.hpp |    2 +-
 3 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/addinmanager.cpp b/src/addinmanager.cpp
index f4f288d..7e8e906 100644
--- a/src/addinmanager.cpp
+++ b/src/addinmanager.cpp
@@ -108,7 +108,8 @@ namespace gnote {
     for(sharp::ModuleList::const_iterator iter = list.begin();
         iter != list.end(); ++iter) {
       const sharp::DynamicModule* dmod = *iter;
-      global_addins_prefs.set_boolean("Enabled", dmod->id(), dmod->enabled());
+      global_addins_prefs.set_boolean("Enabled", dmod->id(),
+                                      dmod->is_enabled());
     }
 
     Glib::RefPtr<Gio::File> prefs_file = Gio::File::create_for_path(
@@ -348,7 +349,7 @@ namespace gnote {
       ApplicationAddin * addin = iter->second;
       const sharp::DynamicModule * dmod
         = m_module_manager.get_module(iter->first);
-      if (!dmod || dmod->enabled()) {
+      if (!dmod || dmod->is_enabled()) {
         addin->initialize();
       }
     }
@@ -361,7 +362,7 @@ namespace gnote {
       ApplicationAddin * addin = iter->second;
       const sharp::DynamicModule * dmod
         = m_module_manager.get_module(iter->first);
-      if (!dmod || dmod->enabled()) {
+      if (!dmod || dmod->is_enabled()) {
         try {
           addin->shutdown();
         }
diff --git a/src/preferencesdialog.cpp b/src/preferencesdialog.cpp
index 41979d7..ff86aa9 100644
--- a/src/preferencesdialog.cpp
+++ b/src/preferencesdialog.cpp
@@ -693,8 +693,8 @@ namespace gnote {
   {
     const sharp::DynamicModule * module = get_selected_addin();
     if(module) {
-      enable_addin_button->set_sensitive(!module->enabled());
-      disable_addin_button->set_sensitive(module->enabled());
+      enable_addin_button->set_sensitive(!module->is_enabled());
+      disable_addin_button->set_sensitive(module->is_enabled());
       addin_prefs_button->set_sensitive(
         module->has_interface(AddinPreferenceFactoryBase::IFACE_NAME));
       addin_info_button->set_sensitive(true);
diff --git a/src/sharp/dynamicmodule.hpp b/src/sharp/dynamicmodule.hpp
index 8448332..98917a8 100644
--- a/src/sharp/dynamicmodule.hpp
+++ b/src/sharp/dynamicmodule.hpp
@@ -62,7 +62,7 @@ public:
   virtual const char * category() const = 0;
   virtual const char * version() const = 0;
   virtual const char * copyright() const;
-  bool enabled() const
+  bool is_enabled() const
     {
       return m_enabled;
     }



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