diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2018-12-26 16:38:21 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2018-12-26 16:38:21 +0000 |
| commit | b8dbb47f62e711209fa5deef2b4e0c867d591dd6 (patch) | |
| tree | fcfb3d881f9b59d39ff663b9146c2b08cab79721 /src/ui/widget/ink-flow-box.cpp | |
| parent | fix po files (diff) | |
| download | inkscape-b8dbb47f62e711209fa5deef2b4e0c867d591dd6.tar.gz inkscape-b8dbb47f62e711209fa5deef2b4e0c867d591dd6.zip | |
Allow InkFlowBox (XMLInspector) remember opendes status
Diffstat (limited to 'src/ui/widget/ink-flow-box.cpp')
| -rw-r--r-- | src/ui/widget/ink-flow-box.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/widget/ink-flow-box.cpp b/src/ui/widget/ink-flow-box.cpp index 394cf232c..127da3107 100644 --- a/src/ui/widget/ink-flow-box.cpp +++ b/src/ui/widget/ink-flow-box.cpp @@ -113,14 +113,14 @@ void InkFlowBox::on_global_toggle(Gtk::ToggleButton *tbutton) void InkFlowBox::insert(Gtk::Widget *widget, Glib::ustring label, gint pos, bool active, int minwidth) { + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); Gtk::ToggleButton *tbutton = new Gtk::ToggleButton(label, true); - tbutton->set_active(active); + tbutton->set_active(prefs->getBool(getPrefsPath(pos), active)); tbutton->signal_toggled().connect( sigc::bind<gint, Gtk::ToggleButton *>(sigc::mem_fun(*this, &InkFlowBox::on_toggle), pos, tbutton)); _controller.pack_start(*tbutton); tbutton->show(); - Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - prefs->setBool(getPrefsPath(pos), active); + prefs->setBool(getPrefsPath(pos), prefs->getBool(getPrefsPath(pos), active)); widget->set_size_request(minwidth, -1); _flowbox.insert(*widget, pos); showing = 0; |
