summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 51118f9)
raw | patch | inline | side by side (parent: 51118f9)
author | jucablues <jucablues@users.sourceforge.net> | |
Tue, 19 Feb 2008 15:58:42 +0000 (15:58 +0000) | ||
committer | jucablues <jucablues@users.sourceforge.net> | |
Tue, 19 Feb 2008 15:58:42 +0000 (15:58 +0000) |
src/ui/dialog/filter-effects-dialog.cpp | patch | blob | history | |
src/ui/dialog/filter-effects-dialog.h | patch | blob | history |
index 6b7a0345735ad8a1c0adeb55a79da171c676fa6d..a97654b75774914be3031f36be45cfdfeb0b3242 100644 (file)
_empty_settings(_("No effect selected"), Gtk::ALIGN_LEFT),
_no_filter_selected(_("No filter selected"), Gtk::ALIGN_LEFT),
_locked(false),
- _attr_lock(false)
+ _attr_lock(false),
+ _settings_initialized(false)
{
_settings = new Settings(*this, _settings_tab1, sigc::mem_fun(*this, &FilterEffectsDialog::set_attr_direct),
NR_FILTER_ENDPRIMITIVETYPE);
_no_filter_selected.set_sensitive(false);
_settings_tab2.pack_start(_no_filter_selected);
+ _settings_initialized = true;
_filter_general_settings->type(0);
_filter_general_settings->add_multispinbutton(/*default x:*/ (double) -0.1, /*default y:*/ (double) -0.1, SP_ATTR_X, SP_ATTR_Y, _("Coordinates"), -100, 100, 0.01, 0.1, 2);
@@ -2383,6 +2385,8 @@ void FilterEffectsDialog::set_attr(SPObject* o, const SPAttributeEnum attr, cons
void FilterEffectsDialog::update_filter_general_settings_view()
{
+ if(_settings_initialized != true) return;
+
if(!_locked) {
_attr_lock = true;
index da528c0a22da5857054eaf7fb151c04bcac3fbbf..0bd47b52ffed401d486750247c8622ff805d0a96 100644 (file)
Gtk::VBox _settings_tab1;
Gtk::Label _empty_settings;
Gtk::Label _no_filter_selected;
-
+ bool _settings_initialized;
class Settings;
class MatrixAttr;
class ColorMatrixValues;