diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-06-03 20:28:19 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-06-03 20:37:47 +0000 |
| commit | aca9af18f6cb32137bab0ae8fade0952a6d8ddb2 (patch) | |
| tree | ac451d7ac7f382866cff339c71bbd9862170f91b /src/ui/dialog/attrdialog.cpp | |
| parent | Attemp to add values from enums (diff) | |
| download | inkscape-aca9af18f6cb32137bab0ae8fade0952a6d8ddb2.tar.gz inkscape-aca9af18f6cb32137bab0ae8fade0952a6d8ddb2.zip | |
Improvements to CSS dialog
Diffstat (limited to 'src/ui/dialog/attrdialog.cpp')
| -rw-r--r-- | src/ui/dialog/attrdialog.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/ui/dialog/attrdialog.cpp b/src/ui/dialog/attrdialog.cpp index 8d4e74548..0403f9b7c 100644 --- a/src/ui/dialog/attrdialog.cpp +++ b/src/ui/dialog/attrdialog.cpp @@ -281,7 +281,6 @@ void AttrDialog::onAttrDelete(Glib::ustring path) this->_store->erase(row); this->_repr->setAttribute(name.c_str(), nullptr, false); this->setUndo(_("Delete attribute")); - reloadStyles(name); } } } @@ -310,7 +309,6 @@ bool AttrDialog::onKeyPressed(GdkEventKey *event) this->_store->erase(row); this->_repr->setAttribute(name.c_str(), nullptr, false); this->setUndo(_("Delete attribute")); - reloadStyles(name); } return true; } @@ -375,28 +373,6 @@ void AttrDialog::nameEdited (const Glib::ustring& path, const Glib::ustring& nam * @return * Called when the value is edited in the TreeView editable column */ -void AttrDialog::reloadStyles(Glib::ustring name) -{ - SPDocument *document = this->_desktop->doc(); - SPObject *obj = document->getObjectById(_repr->attribute("id")); - if (obj) { - for (auto iter : obj->style->properties()) { - if (iter->style_src != SP_STYLE_SRC_UNSET) { - if (iter->name == name) { - obj->style->readFromObject(obj); - obj->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG); - } - } - } - } -} - -/** - * @brief AttrDialog::valueEdited - * @param event - * @return - * Called when the value is edited in the TreeView editable column - */ void AttrDialog::valueEdited (const Glib::ustring& path, const Glib::ustring& value) { Gtk::TreeModel::Row row = *_store->get_iter(path); @@ -411,7 +387,6 @@ void AttrDialog::valueEdited (const Glib::ustring& path, const Glib::ustring& va if(!value.empty()) { row[_attrColumns._attributeValue] = value; } - reloadStyles(name); this->setUndo(_("Change attribute value")); } |
