Small cleanup for Merge n 4

This commit is contained in:
michael
2011-05-15 20:45:23 -04:00
parent 40a7853edf
commit 860fa2e35b

View File

@@ -107,8 +107,8 @@ FileCatalog::FileCatalog (CoarsePanel* cp, ToolBar* tb, FilePanel* filepanel) :
bUnRanked->signal_button_press_event().connect (sigc::mem_fun(*this, &FileCatalog::capture_event),false);
for (int i=0; i<5; i++) {
iranked[i] = Gtk::manage( new Gtk::Image (argv0+"/images/rated.png") );
igranked[i] = Gtk::manage( new Gtk::Image (argv0+"/images/grayrated.png") );
iranked[i] = new Gtk::Image (argv0+"/images/rated.png");
igranked[i] = new Gtk::Image (argv0+"/images/grayrated.png");
iranked[i]->show ();
igranked[i]->show ();
bRank[i] = Gtk::manage( new Gtk::ToggleButton () );
@@ -227,6 +227,10 @@ FileCatalog::FileCatalog (CoarsePanel* cp, ToolBar* tb, FilePanel* filepanel) :
FileCatalog::~FileCatalog()
{
for (int i=0; i<5; i++) {
delete iranked[i];
delete igranked[i];
}
delete iTrashEmpty;
delete iTrashFull;
}