diff options
| author | su_v <suv-sf@users.sourceforge.net> | 2014-08-26 08:44:06 +0000 |
|---|---|---|
| committer | ~suv <suv-sf@users.sourceforge.net> | 2014-08-26 08:44:06 +0000 |
| commit | 84632bca5511a1daae902bbd9faad00d67fd58bf (patch) | |
| tree | 2dd483c8d5c7411b9cbac3b263f3f77f86d37c38 /src/ui/widget | |
| parent | librevenge: update to latest patch from bug #1323592 (support old and new ver... (diff) | |
| parent | UI. Fix for Bug #340723 "Interface inconsistency of tooltips". (diff) | |
| download | inkscape-84632bca5511a1daae902bbd9faad00d67fd58bf.tar.gz inkscape-84632bca5511a1daae902bbd9faad00d67fd58bf.zip | |
update to trunk (r13532)
(bzr r13398.1.8)
Diffstat (limited to 'src/ui/widget')
| -rw-r--r-- | src/ui/widget/rendering-options.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/ui/widget/rendering-options.cpp b/src/ui/widget/rendering-options.cpp index d6248df69..837387f7b 100644 --- a/src/ui/widget/rendering-options.cpp +++ b/src/ui/widget/rendering-options.cpp @@ -12,6 +12,9 @@ # include <config.h> #endif +#include <gtkmm.h> + +#include "preferences.h" #include "rendering-options.h" #include "util/units.h" #include <glibmm/i18n.h> @@ -38,6 +41,7 @@ RenderingOptions::RenderingOptions () : Glib::ustring(""), Glib::ustring(""), false) { + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); // set up tooltips _radio_vector.set_tooltip_text( _("Render using Cairo vector operations. " @@ -52,15 +56,21 @@ RenderingOptions::RenderingOptions () : set_border_width(2); - // default to vector operations - _radio_vector.set_active (true); Gtk::RadioButtonGroup group = _radio_vector.get_group (); _radio_bitmap.set_group (group); _radio_bitmap.signal_toggled().connect(sigc::mem_fun(*this, &RenderingOptions::_toggled)); - + + // default to vector operations + if (prefs->getBool("/dialogs/printing/asbitmap", false)) { + _radio_bitmap.set_active(); + } else { + _radio_vector.set_active(); + } + // configure default DPI _dpi.setRange(Inkscape::Util::Quantity::convert(1, "in", "pt"),2400.0); - _dpi.setValue(Inkscape::Util::Quantity::convert(1, "in", "pt")); + _dpi.setValue(prefs->getDouble("/dialogs/printing/dpi", + Inkscape::Util::Quantity::convert(1, "in", "pt"))); _dpi.setIncrements(1.0,10.0); _dpi.setDigits(0); _dpi.update(); |
