diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-04-29 15:05:11 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2019-04-29 15:05:11 +0000 |
| commit | 42f2371f5e073dc5afa591a7d63d81d39f8835b8 (patch) | |
| tree | fb3f0f6dd208461740d4e5e319098a8864757ede /src/ui/dialog/livepatheffect-add.cpp | |
| parent | Add inkex/deprecated-simple to PYTHONPATH (diff) | |
| download | inkscape-42f2371f5e073dc5afa591a7d63d81d39f8835b8.tar.gz inkscape-42f2371f5e073dc5afa591a7d63d81d39f8835b8.zip | |
Simplify UI for LPE add
Diffstat (limited to 'src/ui/dialog/livepatheffect-add.cpp')
| -rw-r--r-- | src/ui/dialog/livepatheffect-add.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ui/dialog/livepatheffect-add.cpp b/src/ui/dialog/livepatheffect-add.cpp index 8e4d7db15..737d1e5ff 100644 --- a/src/ui/dialog/livepatheffect-add.cpp +++ b/src/ui/dialog/livepatheffect-add.cpp @@ -101,11 +101,10 @@ LivePathEffectAdd::LivePathEffectAdd() _LPESelectorFlowBox->signal_child_activated().connect(sigc::mem_fun(*this, &LivePathEffectAdd::on_activate)); _LPEDialogSelector->add_events(Gdk::POINTER_MOTION_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK | Gdk::ENTER_NOTIFY_MASK | Gdk::LEAVE_NOTIFY_MASK); - Glib::ustring effectgladefile = get_filename(Inkscape::IO::Resource::UIS, "dialog-livepatheffect-add-effect.ui"); for (int i = 0; i < static_cast<int>(converter._length); ++i) { Glib::RefPtr<Gtk::Builder> builder_effect; try { - builder_effect = Gtk::Builder::create_from_file(effectgladefile); + builder_effect = Gtk::Builder::create_from_file(gladefile); } catch (const Glib::Error &ex) { g_warning("Glade file loading failed for filter effect dialog"); return; @@ -136,10 +135,10 @@ LivePathEffectAdd::LivePathEffectAdd() Gtk::Label *LPEDescription; builder_effect->get_widget("LPEDescription", LPEDescription); LPEDescription->set_text(converter.get_description(data->id)); - Gtk::ToggleButton *LPEExperimental; - builder_effect->get_widget("LPEExperimental", LPEExperimental); + Gtk::ToggleButton *LPEExperimentalToggle; + builder_effect->get_widget("LPEExperimentalToggle", LPEExperimentalToggle); bool active = converter.get_experimental(data->id) ? true : false; - LPEExperimental->set_active(active); + LPEExperimentalToggle->set_active(active); Gtk::Image *LPEIcon; builder_effect->get_widget("LPEIcon", LPEIcon); LPEIcon->set_from_icon_name(converter.get_icon(data->id), Gtk::BuiltinIconSize(Gtk::ICON_SIZE_DIALOG)); |
