From: johanengelen Date: Tue, 3 Oct 2006 22:50:05 +0000 (+0000) Subject: Added preferences.xml option to show the widgets to get the axonometric grid. Add... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8b34520e5d20143aabb2cf9b777dafba2d6eb813;p=inkscape.git Added preferences.xml option to show the widgets to get the axonometric grid. Add to preferences.xml to enable it. --- 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(); }