From 88baf53b0441d9c011655e2d4975728d4ee01d89 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Tue, 28 Feb 2006 07:47:09 +0000 Subject: Cleanup of embedded swatches palette switching. (bzr r188) --- src/dialogs/swatches.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dialogs/swatches.cpp') 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::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::iterator it = curr->_colors.begin(); it != curr->_colors.end(); it++ ) { _holder->addPreview(*it); } + _holder->thawUpdates(); } } break; -- cgit v1.2.3