Commit 1be49fe2 authored by Jabier Arraiza's avatar Jabier Arraiza

Dialogs improvement

parent 5a0eb79c
......@@ -2018,13 +2018,13 @@ SPDesktop::show_dialogs()
mapVerbPreference.insert(std::make_pair ("TextFont", "/dialogs/textandfont") );
mapVerbPreference.insert(std::make_pair ("Export", "/dialogs/export") );
mapVerbPreference.insert(std::make_pair ("XmlTree", "/dialogs/xml") );
mapVerbPreference.insert(std::make_pair ("Selectors", "/dialogs/selectors") );
mapVerbPreference.insert(std::make_pair ("CloneTiler", "/dialogs/clonetiler") );
mapVerbPreference.insert(std::make_pair ("ObjectProperties", "/dialogs/object") );
mapVerbPreference.insert(std::make_pair ("SpellCheck", "/dialogs/spellcheck") );
mapVerbPreference.insert(std::make_pair ("Symbols", "/dialogs/symbols") );
mapVerbPreference.insert(std::make_pair ("ObjectsPanel", "/dialogs/objects") );
mapVerbPreference.insert(std::make_pair ("Prototype", "/dialogs/prototype") );
mapVerbPreference.insert(std::make_pair("Selectors", "/dialogs/selectors"));
for (std::map<Glib::ustring, Glib::ustring>::const_iterator iter = mapVerbPreference.begin(); iter != mapVerbPreference.end(); ++iter) {
......
......@@ -125,7 +125,6 @@ DialogManager::DialogManager() {
registerFactory("TileDialog", &create<ArrangeDialog, FloatingBehavior>);
registerFactory("Symbols", &create<SymbolsDialog, FloatingBehavior>);
registerFactory("StyleDialog", &create<StyleDialog, FloatingBehavior>);
registerFactory("Selectors", &create<SelectorsDialog, FloatingBehavior>);
#if HAVE_POTRACE
registerFactory("Trace", &create<TraceDialog, FloatingBehavior>);
......@@ -140,7 +139,8 @@ DialogManager::DialogManager() {
registerFactory("Export", &create<Export, FloatingBehavior>);
registerFactory("CloneTiler", &create<CloneTiler, FloatingBehavior>);
registerFactory("XmlTree", &create<XmlTree, FloatingBehavior>);
registerFactory("Selectors", &create<SelectorsDialog, FloatingBehavior>);
} else {
registerFactory("Prototype", &create<Prototype, DockBehavior>);
......@@ -166,7 +166,6 @@ DialogManager::DialogManager() {
registerFactory("Swatches", &create<SwatchesPanel, DockBehavior>);
registerFactory("TileDialog", &create<ArrangeDialog, DockBehavior>);
registerFactory("Symbols", &create<SymbolsDialog, DockBehavior>);
registerFactory("Selectors", &create<SelectorsDialog, DockBehavior>);
#if HAVE_POTRACE
registerFactory("Trace", &create<TraceDialog, DockBehavior>);
......@@ -181,7 +180,7 @@ DialogManager::DialogManager() {
registerFactory("Export", &create<Export, DockBehavior>);
registerFactory("CloneTiler", &create<CloneTiler, DockBehavior>);
registerFactory("XmlTree", &create<XmlTree, DockBehavior>);
registerFactory("Selectors", &create<SelectorsDialog, DockBehavior>);
}
}
......
......@@ -354,7 +354,7 @@ void SelectorsDialog::_showWidgets()
{
// Pack widgets
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
bool dir = prefs->getBool("/dialogs/selectors/updown", true);
bool dir = prefs->getBool("/dialogs/selectors/updow", true);
_paned.set_orientation(dir ? Gtk::ORIENTATION_VERTICAL : Gtk::ORIENTATION_HORIZONTAL);
_selectors_box.set_orientation(Gtk::ORIENTATION_VERTICAL);
_selectors_box.set_name("SelectorsDialog");
......
......@@ -310,6 +310,7 @@ static Glib::RefPtr<Gtk::ActionGroup> create_or_fetch_actions( SPDesktop* deskto
SP_VERB_DIALOG_NAMEDVIEW,
SP_VERB_DIALOG_TEXT,
SP_VERB_DIALOG_XML_EDITOR,
SP_VERB_DIALOG_SELECTORS,
SP_VERB_DIALOG_LAYERS,
SP_VERB_EDIT_CLONE,
SP_VERB_EDIT_COPY,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment