summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/selectorsdialog.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-08-29 16:38:32 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-08-29 16:38:32 +0000
commitb515997d1b2af5271b18448f9fafd0600d3c5b16 (patch)
treebfd40a59b993ad4518ded7b36bbf4358edb0c04b /src/ui/dialog/selectorsdialog.cpp
parentImprove CSS and Selectors dialog (diff)
downloadinkscape-b515997d1b2af5271b18448f9fafd0600d3c5b16.tar.gz
inkscape-b515997d1b2af5271b18448f9fafd0600d3c5b16.zip
Fixes on UX inb CSS dialog
Diffstat (limited to 'src/ui/dialog/selectorsdialog.cpp')
-rw-r--r--src/ui/dialog/selectorsdialog.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/ui/dialog/selectorsdialog.cpp b/src/ui/dialog/selectorsdialog.cpp
index f66876475..375d2d89b 100644
--- a/src/ui/dialog/selectorsdialog.cpp
+++ b/src/ui/dialog/selectorsdialog.cpp
@@ -25,8 +25,8 @@
#include "verbs.h"
#include "xml/attribute-record.h"
-#include "xml/sp-css-attr.h"
#include "xml/node-observer.h"
+#include "xml/sp-css-attr.h"
#include <glibmm/i18n.h>
#include <glibmm/regex.h>
@@ -395,10 +395,7 @@ void SelectorsDialog::_panedresized(Gtk::Allocation allocation)
_resized();
}
-void SelectorsDialog::_panedrealized()
-{
- _style_dialog->readStyleElement();
-}
+void SelectorsDialog::_panedrealized() { _style_dialog->readStyleElement(); }
void SelectorsDialog::_childresized()
{
@@ -877,10 +874,8 @@ void SelectorsDialog::_addToSelector(Gtk::TreeModel::Row row)
sp_repr_css_attr_add_from_string(css, obj->getRepr()->attribute("style"));
Glib::ustring selprops = row[_mColumns._colProperties];
sp_repr_css_attr_add_from_string(css_selector, selprops.c_str());
- for ( List<AttributeRecord const> iter = css_selector->attributeList() ;
- iter ; ++iter )
- {
- gchar const * key = g_quark_to_string(iter->key);
+ for (List<AttributeRecord const> iter = css_selector->attributeList(); iter; ++iter) {
+ gchar const *key = g_quark_to_string(iter->key);
css->setAttribute(key, nullptr);
}
sp_repr_css_write_string(css, css_str);