summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0d6fa07)
raw | patch | inline | side by side (parent: 0d6fa07)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 9 Oct 2006 23:16:46 +0000 (23:16 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 9 Oct 2006 23:16:46 +0000 (23:16 +0000) |
src/extension/effect.cpp | patch | blob | history |
index 71ddf3e247216509297ae421e9d49dfdfba3dc55..168688f0ef75b2e46b3897d4522b6d6b7034bcd1 100644 (file)
--- a/src/extension/effect.cpp
+++ b/src/extension/effect.cpp
if (!strcmp(this->get_id(), "org.inkscape.filter.dropshadow"))
return;
+ bool hidden = false;
+
if (repr != NULL) {
Inkscape::XML::Node * child_repr;
if (!strcmp(child_repr->name(), "effects-menu")) {
// printf("Found local effects menu in %s\n", this->get_name());
local_effects_menu = sp_repr_children(child_repr);
+ if (child_repr->attribute("hidden") && !strcmp(child_repr->attribute("hidden"), "yes")) {
+ hidden = true;
+ }
}
if (!strcmp(child_repr->name(), "menu-name") ||
!strcmp(child_repr->name(), "_menu-name")) {
_menu_node = sp_repr_new("verb");
_menu_node->setAttribute("verb-id", this->get_id(), false);
- merge_menu(_effects_list->parent(), _effects_list, local_effects_menu, _menu_node);
+ if (!hidden)
+ merge_menu(_effects_list->parent(), _effects_list, local_effects_menu, _menu_node);
}
return;