diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2006-02-28 07:47:09 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2006-02-28 07:47:09 +0000 |
| commit | 88baf53b0441d9c011655e2d4975728d4ee01d89 (patch) | |
| tree | 24dbe7865557d710598ce933ebc02e868143d0ca /src/dialogs/swatches.cpp | |
| parent | Refactoring layout when switching palettes (diff) | |
| download | inkscape-88baf53b0441d9c011655e2d4975728d4ee01d89.tar.gz inkscape-88baf53b0441d9c011655e2d4975728d4ee01d89.zip | |
Cleanup of embedded swatches palette switching.
(bzr r188)
Diffstat (limited to 'src/dialogs/swatches.cpp')
| -rw-r--r-- | src/dialogs/swatches.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dialogs/swatches.cpp b/src/dialogs/swatches.cpp index e6d1ac2b5..7da1b5694 100644 --- a/src/dialogs/swatches.cpp +++ b/src/dialogs/swatches.cpp @@ -475,9 +475,11 @@ SwatchesPanel::SwatchesPanel() : if ( first->_prefWidth > 0 ) { _holder->setColumnPref( first->_prefWidth ); } + _holder->freezeUpdates(); for ( std::vector<ColorItem*>::iterator it = first->_colors.begin(); it != first->_colors.end(); it++ ) { _holder->addPreview(*it); } + _holder->thawUpdates(); Gtk::RadioMenuItem::Group groupOne; int i = 0; @@ -525,9 +527,11 @@ void SwatchesPanel::_handleAction( int setId, int itemId ) if ( curr->_prefWidth > 0 ) { _holder->setColumnPref( curr->_prefWidth ); } + _holder->freezeUpdates(); for ( std::vector<ColorItem*>::iterator it = curr->_colors.begin(); it != curr->_colors.end(); it++ ) { _holder->addPreview(*it); } + _holder->thawUpdates(); } } break; |
