diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-01-17 23:39:15 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-01-17 23:39:15 +0000 |
| commit | f073692caee8865d30636ecdab2b831dd0cca990 (patch) | |
| tree | 38e4c5407b2088a425b2fa4d6c7313fa4cdf9f27 /src/dialogs/layers-panel.cpp | |
| parent | display 'Saving document...' visible when saving takes a long time (diff) | |
| download | inkscape-f073692caee8865d30636ecdab2b831dd0cca990.tar.gz inkscape-f073692caee8865d30636ecdab2b831dd0cca990.zip | |
prevent self-induced firings of opacity-changed callback; fixes 1636968
(bzr r2234)
Diffstat (limited to 'src/dialogs/layers-panel.cpp')
| -rw-r--r-- | src/dialogs/layers-panel.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/dialogs/layers-panel.cpp b/src/dialogs/layers-panel.cpp index 4bd8aebb5..32a52a373 100644 --- a/src/dialogs/layers-panel.cpp +++ b/src/dialogs/layers-panel.cpp @@ -538,7 +538,9 @@ void LayersPanel::_checkTreeSelection() if ( inTree->repr ) { SPCSSAttr *css = sp_repr_css_attr(inTree->repr, "style"); if ( css ) { + _opacityConnection.block(); _opacity.set_value( sp_repr_css_double_property( css, "opacity", 1.0 ) * 100 ); + _opacityConnection.unblock(); } } } @@ -681,7 +683,6 @@ void LayersPanel::_opacityChanged() if ( _desktop && layer && !_opacityConnection.blocked() ) { _opacityConnection.block(); - Gtk::Adjustment* adj = _opacity.get_adjustment(); SPCSSAttr *css = sp_repr_css_attr_new(); @@ -854,12 +855,8 @@ LayersPanel::LayersPanel() : } g_signal_connect( G_OBJECT(INKSCAPE), "activate_desktop", G_CALLBACK( layers_panel_activated ), this ); - - setDesktop( targetDesktop ); - - show_all_children(); restorePanelPrefs(); |
