From 8b34520e5d20143aabb2cf9b777dafba2d6eb813 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Tue, 3 Oct 2006 22:50:05 +0000 Subject: [PATCH] Added preferences.xml option to show the widgets to get the axonometric grid. Add to preferences.xml to enable it. --- src/ui/dialog/document-properties.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp index ae856cdc5..07598d516 100644 --- a/src/ui/dialog/document-properties.cpp +++ b/src/ui/dialog/document-properties.cpp @@ -27,6 +27,7 @@ #include "xml/node-event-vector.h" #include "helper/units.h" +#include "prefs-utils.h" #include "inkscape.h" #include "verbs.h" @@ -124,6 +125,12 @@ DocumentProperties::init() G_CALLBACK(on_deactivate_desktop), 0); show_all_children(); + if (prefs_get_int_attribute("dialogs.documentoptions", "axonomgrid_enabled", 0) != 1) { + _rrb_gridtype._hbox->hide(); + _rsu_ax.getSU()->hide(); + _rsu_az.getSU()->hide(); + } + present(); } -- 2.30.2