Allows load button for those plugins which are not loaded (eg, failed to load)
svn: r15351
This commit is contained in:
parent
6db2110937
commit
fccc819e82
@ -268,6 +268,7 @@ class PluginStatus(ManagedWindow.ManagedWindow):
|
||||
self.list.set_model(self.model)
|
||||
self.list.set_rules_hint(True)
|
||||
self.list.connect('button-press-event', self.button_press)
|
||||
self.list.connect('cursor-changed', self.cursor_changed)
|
||||
col = gtk.TreeViewColumn(_('Loaded'), gtk.CellRendererText(),
|
||||
markup=0)
|
||||
col.set_sort_column_id(0)
|
||||
@ -713,6 +714,13 @@ class PluginStatus(ManagedWindow.ManagedWindow):
|
||||
self.model_reg.clear()
|
||||
self.__populate_reg_list()
|
||||
|
||||
def cursor_changed(self, obj):
|
||||
selection = obj.get_selection()
|
||||
model, node = selection.get_selected()
|
||||
if node:
|
||||
data = model.get_value(node, 3)
|
||||
self.__load_btn.set_sensitive(data is not None)
|
||||
|
||||
def button_press(self, obj, event):
|
||||
""" Callback function from the user clicking on a line """
|
||||
if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1:
|
||||
|
Loading…
Reference in New Issue
Block a user