From 4695b79bcc78f81c098c8011ba3355416ffe30dc Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Thu, 17 Jan 2008 19:26:04 +0000 Subject: Hide the Image filter effect primitive from the filter effects dialog. Files containing that filter will still show the filter in the dialog, but the settings area warns that the filter is not yet implemented in Inkscape. (bzr r4537) --- src/ui/widget/combo-enums.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/ui/widget') diff --git a/src/ui/widget/combo-enums.h b/src/ui/widget/combo-enums.h index 405e82e04..c77c2f5a8 100644 --- a/src/ui/widget/combo-enums.h +++ b/src/ui/widget/combo-enums.h @@ -77,6 +77,20 @@ public: row[_columns.label] = s; } + void remove_row(E id) { + Gtk::TreeModel::iterator i; + + for(i = _model->children().begin(); i != _model->children().end(); ++i) { + const Util::EnumData* data = (*i)[_columns.data]; + + if(data->id == id) + break; + } + + if(i != _model->children().end()) + _model->erase(i); + } + void set_active_by_id(E id) { setProgrammatically = true; for(Gtk::TreeModel::iterator i = _model->children().begin(); -- cgit v1.2.3