diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-12-24 18:08:45 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2018-12-26 11:46:59 +0000 |
| commit | 43b6199dbd09a75e19a5808a99813bfeada2292f (patch) | |
| tree | 8f70a4c590b056c45f5d1bddf69cb34e73b7ed04 /src/ui/dialog/cssdialog.cpp | |
| parent | add "add" button on same place (diff) | |
| download | inkscape-43b6199dbd09a75e19a5808a99813bfeada2292f.tar.gz inkscape-43b6199dbd09a75e19a5808a99813bfeada2292f.zip | |
Fixing styles
Diffstat (limited to 'src/ui/dialog/cssdialog.cpp')
| -rw-r--r-- | src/ui/dialog/cssdialog.cpp | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/ui/dialog/cssdialog.cpp b/src/ui/dialog/cssdialog.cpp index 903bed90d..9b68c207c 100644 --- a/src/ui/dialog/cssdialog.cpp +++ b/src/ui/dialog/cssdialog.cpp @@ -14,12 +14,12 @@ #include "cssdialog.h" -#include "verbs.h" -#include "selection.h" #include "message-context.h" #include "message-stack.h" +#include "selection.h" #include "ui/icon-loader.h" #include "ui/widget/iconrenderer.h" +#include "verbs.h" #include "xml/attribute-record.h" #include <glibmm/i18n.h> @@ -50,7 +50,7 @@ CssDialog::CssDialog(): _store = Gtk::ListStore::create(_cssColumns); _treeView.set_model(_store); - Inkscape::UI::Widget::IconRenderer * addRenderer = manage(new Inkscape::UI::Widget::IconRenderer()); + Inkscape::UI::Widget::IconRenderer *addRenderer = manage(new Inkscape::UI::Widget::IconRenderer()); addRenderer->add_icon("edit-delete"); _treeView.append_column("", *addRenderer); @@ -96,13 +96,13 @@ CssDialog::CssDialog(): status.set_size_request(1, -1); status.set_markup(""); status.set_line_wrap(true); - status_box.pack_start( status, TRUE, TRUE, 0); + status_box.pack_start(status, TRUE, TRUE, 0); _getContents()->pack_end(status_box, false, false, 2); _message_stack = std::make_shared<Inkscape::MessageStack>(); _message_context = std::unique_ptr<Inkscape::MessageContext>(new Inkscape::MessageContext(_message_stack)); - _message_changed_connection = _message_stack->connectChanged( - sigc::bind(sigc::ptr_fun(_set_status_message), GTK_WIDGET(status.gobj()))); + _message_changed_connection = + _message_stack->connectChanged(sigc::bind(sigc::ptr_fun(_set_status_message), GTK_WIDGET(status.gobj()))); _getContents()->pack_start(_mainBox, Gtk::PACK_EXPAND_WIDGET); @@ -148,13 +148,12 @@ void CssDialog::setDesktop(SPDesktop* desktop) void CssDialog::css_reset_context(gint css) { if (css == 0) { - _message_context->set(Inkscape::NORMAL_MESSAGE, - _("<b>Click</b> CSS property to edit.")); - } - else { + _message_context->set(Inkscape::NORMAL_MESSAGE, _("<b>Click</b> CSS property to edit.")); + } else { const gchar *name = g_quark_to_string(css); - _message_context->setF(Inkscape::NORMAL_MESSAGE, - _("Propery <b>%s</b> selected. Press <b>Ctrl+Enter</b> when done editing to commit changes."), name); + _message_context->setF( + Inkscape::NORMAL_MESSAGE, + _("Propery <b>%s</b> selected. Press <b>Ctrl+Enter</b> when done editing to commit changes."), name); } } @@ -166,7 +165,7 @@ void CssDialog::css_reset_context(gint css) */ bool CssDialog::_addProperty(GdkEventButton *event) { - if(event->type == GDK_BUTTON_RELEASE && event->button == 1) { + if (event->type == GDK_BUTTON_RELEASE && event->button == 1) { _propRow = *(_store->append()); return true; } |
