From 175e906e69dfcc66ba2e67675e4bc120b8b08d94 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Mon, 24 Dec 2018 17:29:36 +0100 Subject: Add status to attribute widget --- src/ui/dialog/xml-tree.cpp | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'src/ui/dialog/xml-tree.cpp') diff --git a/src/ui/dialog/xml-tree.cpp b/src/ui/dialog/xml-tree.cpp index 488bc8246..4a1a2d550 100644 --- a/src/ui/dialog/xml-tree.cpp +++ b/src/ui/dialog/xml-tree.cpp @@ -90,7 +90,6 @@ XmlTree::XmlTree() : status.set_markup(""); status.set_line_wrap(true); status_box.pack_start( status, TRUE, TRUE, 0); - contents->pack_end(status_box, false, false, 2); contents->pack_start(*flowbox_content, true, true, 0); @@ -179,6 +178,8 @@ XmlTree::XmlTree() : node_box.pack_start(*tree_scroller); + node_box.pack_end(status_box, false, false, 2); + /* attributes */ attributes = new AttrDialog; attr_box.pack_start(*attributes); @@ -250,22 +251,6 @@ void XmlTree::tree_reset_context() } -/** - * Sets the XML status bar, depending on which attr is selected. - */ -void XmlTree::attr_reset_context(gint attr) -{ - if (attr == 0) { - _message_context->set(Inkscape::NORMAL_MESSAGE, - _("Click attribute to edit.")); - } - else { - const gchar *name = g_quark_to_string(attr); - _message_context->setF(Inkscape::NORMAL_MESSAGE, - _("Attribute %s selected. Press Ctrl+Enter when done editing to commit changes."), name); - } -} - void XmlTree::set_tree_desktop(SPDesktop *desktop) { if ( desktop == current_desktop ) { -- cgit v1.2.3