- 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:
parent
96dbda64cd
commit
849a8ff473
|
@ -22,9 +22,6 @@
|
||||||
|
|
||||||
#include <sgpemv2/module.hh>
|
#include <sgpemv2/module.hh>
|
||||||
|
|
||||||
// FIXME: remove this header
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
using namespace sgpem;
|
using namespace sgpem;
|
||||||
|
|
||||||
Module::Module(const Glib::ustring& identifier) throw(InvalidPluginException) :
|
Module::Module(const Glib::ustring& identifier) throw(InvalidPluginException) :
|
||||||
|
|
|
@ -51,7 +51,7 @@ namespace sgpem
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef void (*f_void)(void);
|
typedef void (*f_void)(void);
|
||||||
typedef Glib::ustring (*f_ustring)(void);
|
typedef const char* (*f_ustring)(void);
|
||||||
typedef float (*f_float)(void);
|
typedef float (*f_float)(void);
|
||||||
|
|
||||||
bool _enabled;
|
bool _enabled;
|
||||||
|
|
|
@ -277,19 +277,9 @@ void PreferencesEditor::update_plugins()
|
||||||
Gtk::TreeModel::iterator new_row = plugins_model->append();
|
Gtk::TreeModel::iterator new_row = plugins_model->append();
|
||||||
// featuring its name, its description, and its author
|
// 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(0, (**i_p).get_name());
|
new_row->set_value(1, (**i_p).describe());
|
||||||
// new_row->set_value(1, (**i_p).describe());
|
new_row->set_value(2, (**i_p).get_author());
|
||||||
// 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);
|
|
||||||
}
|
}
|
||||||
// when the model gets updated, the associated TreeView
|
// when the model gets updated, the associated TreeView
|
||||||
// widget is automatically updated
|
// widget is automatically updated
|
||||||
|
|
Loading…
Reference in New Issue