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/attrdialog.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/attrdialog.cpp')
| -rw-r--r-- | src/ui/dialog/attrdialog.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/ui/dialog/attrdialog.cpp b/src/ui/dialog/attrdialog.cpp index 7861e13b5..21e92f600 100644 --- a/src/ui/dialog/attrdialog.cpp +++ b/src/ui/dialog/attrdialog.cpp @@ -103,13 +103,13 @@ AttrDialog::AttrDialog(): 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()))); _valueRenderer = Gtk::manage(new Gtk::CellRendererText()); _valueRenderer->property_editable() = true; @@ -198,13 +198,12 @@ void AttrDialog::_set_status_message(Inkscape::MessageType /*type*/, const gchar void AttrDialog::attr_reset_context(gint attr) { if (attr == 0) { - _message_context->set(Inkscape::NORMAL_MESSAGE, - _("<b>Click</b> attribute to edit.")); - } - else { + _message_context->set(Inkscape::NORMAL_MESSAGE, _("<b>Click</b> attribute to edit.")); + } else { const gchar *name = g_quark_to_string(attr); - _message_context->setF(Inkscape::NORMAL_MESSAGE, - _("Attribute <b>%s</b> selected. Press <b>Ctrl+Enter</b> when done editing to commit changes."), name); + _message_context->setF( + Inkscape::NORMAL_MESSAGE, + _("Attribute <b>%s</b> selected. Press <b>Ctrl+Enter</b> when done editing to commit changes."), name); } } |
