- Description and name of plugins is now correctly displayed in preferences dialog

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1094 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
elvez 2006-09-11 21:06:23 +00:00
parent 96dbda64cd
commit 849a8ff473
3 changed files with 4 additions and 17 deletions

View File

@ -22,9 +22,6 @@
#include <sgpemv2/module.hh>
// FIXME: remove this header
#include <iostream>
using namespace sgpem;
Module::Module(const Glib::ustring& identifier) throw(InvalidPluginException) :

View File

@ -51,7 +51,7 @@ namespace sgpem
private:
typedef void (*f_void)(void);
typedef Glib::ustring (*f_ustring)(void);
typedef const char* (*f_ustring)(void);
typedef float (*f_float)(void);
bool _enabled;

View File

@ -277,19 +277,9 @@ void PreferencesEditor::update_plugins()
Gtk::TreeModel::iterator new_row = plugins_model->append();
// featuring its name, its description, and its author
// FIXME: the plugins do not behave correctly
// new_row->set_value(0, (**i_p).get_name());
// new_row->set_value(1, (**i_p).describe());
// new_row->set_value(2, (**i_p).get_author());
// std::cout << (**i_p).get_name() << std::endl;
// std::cout << (**i_p).describe() << std::endl;
// std::cout << (**i_p).get_author().c_str() << std::endl;
Glib::ustring name("name!");
Glib::ustring author("author!");
Glib::ustring desc("description!");
new_row->set_value(0, name);
new_row->set_value(1, desc);
new_row->set_value(2, author);
new_row->set_value(0, (**i_p).get_name());
new_row->set_value(1, (**i_p).describe());
new_row->set_value(2, (**i_p).get_author());
}
// when the model gets updated, the associated TreeView
// widget is automatically updated