Fix build with libsigc++ 2.3.1 (fixes #4223)

This commit is contained in:
Flössie
2017-12-14 20:12:25 +01:00
parent 1854147ce9
commit a46f96d32d
2 changed files with 7 additions and 5 deletions

View File

@@ -46,11 +46,7 @@ ExifPanel::ExifPanel () : idata (nullptr)
exifTreeModel = Gtk::TreeStore::create (exifColumns); exifTreeModel = Gtk::TreeStore::create (exifColumns);
exifTree->set_model (exifTreeModel); exifTree->set_model (exifTreeModel);
exifTree->set_grid_lines (Gtk::TREE_VIEW_GRID_LINES_NONE); exifTree->set_grid_lines (Gtk::TREE_VIEW_GRID_LINES_NONE);
exifTree->set_row_separator_func ( exifTree->set_row_separator_func (sigc::mem_fun(*this, &ExifPanel::rowSeperatorFunc));
[&] (const Glib::RefPtr<Gtk::TreeModel>& model, const Gtk::TreeModel::iterator & row)-> bool {
return row->get_value (exifColumns.isSeparator);
}
);
delicon = RTImage::createFromFile ("gtk-close.png"); delicon = RTImage::createFromFile ("gtk-close.png");
keepicon = RTImage::createFromFile ("gtk-apply.png"); keepicon = RTImage::createFromFile ("gtk-apply.png");
@@ -540,6 +536,11 @@ void ExifPanel::showAlltoggled ()
setImageData (idata); setImageData (idata);
} }
bool ExifPanel::rowSeperatorFunc(const Glib::RefPtr<Gtk::TreeModel>& model, const Gtk::TreeModel::iterator& iter)
{
return iter->get_value(exifColumns.isSeparator);
}
void ExifPanel::editTag (Gtk::TreeModel::Children root, Glib::ustring name, Glib::ustring value) void ExifPanel::editTag (Gtk::TreeModel::Children root, Glib::ustring name, Glib::ustring value)
{ {

View File

@@ -93,6 +93,7 @@ private:
void resetAllPressed(); void resetAllPressed();
void addPressed(); void addPressed();
void showAlltoggled(); void showAlltoggled();
bool rowSeperatorFunc(const Glib::RefPtr<Gtk::TreeModel>& model, const Gtk::TreeModel::iterator& iter);
public: public:
ExifPanel (); ExifPanel ();