summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: baa9591)
raw | patch | inline | side by side (parent: baa9591)
author | Jon A. Cruz <jon@joncruz.org> | |
Mon, 26 Jul 2010 00:34:37 +0000 (17:34 -0700) | ||
committer | Jon A. Cruz <jon@joncruz.org> | |
Mon, 26 Jul 2010 00:34:37 +0000 (17:34 -0700) |
src/preferences-skeleton.h | patch | blob | history | |
src/ui/dialog/icon-preview.cpp | patch | blob | history |
index cabb13d4713f747a03feb6f7c744af4af62d409e..32f4b7c350bddfe7bdf4d25650bb80d2c6bc8fd1 100644 (file)
"\n"
" <group\n"
" id=\"iconpreview\"\n"
+" autoRefresh=\"1\"\n"
" pack=\"1\"\n"
" selectionHold=\"1\"\n"
" showFrames=\"1\"\n"
index c8f5d2c2e43fcbb96dd596bdd66aca3ecd8662b3..cbd2769947226c5866171774c6beb987613ed943 100644 (file)
this->desktop = Panel::getDesktop();
if ( this->desktop ) {
docReplacedConn = this->desktop->connectDocumentReplaced(sigc::hide<0>(sigc::mem_fun(this, &IconPreviewPanel::setDocument)));
- if (this->desktop->selection) {
+ if ( this->desktop->selection && Inkscape::Preferences::get()->getBool("/iconpreview/autoRefresh", true) ) {
selChangedConn = desktop->selection->connectChanged(sigc::hide(sigc::mem_fun(this, &IconPreviewPanel::queueRefresh)));
}
}
this->document = document;
if (this->document) {
- docModConn = this->document->connectModified(sigc::hide(sigc::mem_fun(this, &IconPreviewPanel::queueRefresh)));
+ if ( Inkscape::Preferences::get()->getBool("/iconpreview/autoRefresh", true) ) {
+ docModConn = this->document->connectModified(sigc::hide(sigc::mem_fun(this, &IconPreviewPanel::queueRefresh)));
+ }
queueRefresh();
}
}