diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-05-29 13:56:34 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-06-02 09:50:17 +0000 |
| commit | dbc354261d4cdb3f8431d15a45c092ed608ad246 (patch) | |
| tree | 352e53959a2f61dd96b3e1835fb6187f83540fe3 /src | |
| parent | fix coding style (diff) | |
| download | inkscape-dbc354261d4cdb3f8431d15a45c092ed608ad246.tar.gz inkscape-dbc354261d4cdb3f8431d15a45c092ed608ad246.zip | |
Remove lock button from XML dialog
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/widget/ink-flow-box.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/ui/widget/ink-flow-box.cpp b/src/ui/widget/ink-flow-box.cpp index 6b2530429..728d720a3 100644 --- a/src/ui/widget/ink-flow-box.cpp +++ b/src/ui/widget/ink-flow-box.cpp @@ -30,8 +30,10 @@ InkFlowBox::InkFlowBox(const gchar *name) tbutton->set_always_show_image(true); _flowbox.set_selection_mode(Gtk::SelectionMode::SELECTION_NONE); Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - tbutton->set_active(true); // commented for furter use prefs->getBool(Glib::ustring("/dialogs/") + get_name() + - // Glib::ustring("/flowbox/lock"), true)); + prefs->setBool(Glib::ustring("/dialogs/") + get_name() + + Glib::ustring("/flowbox/lock"), false); + tbutton->set_active(prefs->getBool(Glib::ustring("/dialogs/") + get_name() + + Glib::ustring("/flowbox/lock"), true)); Glib::ustring iconname = "object-unlocked"; if (tbutton->get_active()) { iconname = "object-locked"; @@ -39,8 +41,9 @@ InkFlowBox::InkFlowBox(const gchar *name) tbutton->set_image(*sp_get_icon_image(iconname, Gtk::ICON_SIZE_MENU)); tbutton->signal_toggled().connect( sigc::bind<Gtk::ToggleButton *>(sigc::mem_fun(*this, &InkFlowBox::on_global_toggle), tbutton)); - //_controller.pack_start(*tbutton); - // tbutton->show(); + _controller.pack_start(*tbutton); + tbutton->hide(); + tbutton->set_no_show_all(true); showing = 0; sensitive = true; } |
