[accerciser/pygi] Fixing checkboxes under plugin preferences tab



commit ebe229502c9d2f11be086f4cbc33a7b871cace41
Author: Aline Bessa <alibezz gmail com>
Date:   Thu Aug 18 00:44:41 2011 -0300

    Fixing checkboxes under plugin preferences tab

 src/lib/accerciser/plugin/plugin_manager.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/lib/accerciser/plugin/plugin_manager.py b/src/lib/accerciser/plugin/plugin_manager.py
index 9f164f9..bbd5470 100644
--- a/src/lib/accerciser/plugin/plugin_manager.py
+++ b/src/lib/accerciser/plugin/plugin_manager.py
@@ -222,7 +222,8 @@ class PluginManager(gtk.ListStore, Tools):
     if isinstance(plugin_instance, gtk.Widget):
       plugin_instance.destroy()
     plugin_instance._close()
-    self[iter][self.COL_INSTANCE] = None
+    
+    self[iter][self.COL_INSTANCE] = False
 
   def _reloadPlugin(self, iter):
     '''
@@ -304,7 +305,7 @@ class PluginManager(gtk.ListStore, Tools):
       self._disablePlugin(iter)
     else:
       self._reloadPlugin(iter)
-  
+
   def _onPluginRowChanged(self, model, path, iter):
     '''
     Callback for model row changes. Persists plugins state (enabled/disabled)
@@ -363,10 +364,10 @@ class PluginManager(gtk.ListStore, Tools):
       self.connect('popup-menu', self._onPopupMenu)
 
       crc = gtk.CellRendererToggle()
-      crc.connect('toggled', self._onPluginToggled)
       tvc = gtk.TreeViewColumn()
       tvc.pack_start(crc, True)
       tvc.set_cell_data_func(crc, self._pluginStateDataFunc)
+      crc.connect('toggled', self._onPluginToggled)
       self.append_column(tvc)
 
       crt = gtk.CellRendererText()



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