summaryrefslogtreecommitdiffstats
path: root/src/ui/widget
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2015-07-24 19:38:06 +0000
committerDiederik van Lierop <mail@diedenrezi.nl>2015-07-24 19:38:06 +0000
commitf873250f0c426d7b281acd37d65c4e549eb204a3 (patch)
tree384b4f74b13edfdfc67b2faf150d422277a05d63 /src/ui/widget
parentFix a bug continuing a bezier path whith a LPE one like spiro or bspline on a... (diff)
downloadinkscape-f873250f0c426d7b281acd37d65c4e549eb204a3.tar.gz
inkscape-f873250f0c426d7b281acd37d65c4e549eb204a3.zip
Make persistence of snap indicator configurable, and clean up the snapping tab in the preferences dialog
Fixed bugs: - https://launchpad.net/bugs/1420301 (bzr r14253)
Diffstat (limited to 'src/ui/widget')
-rw-r--r--src/ui/widget/preferences-widget.cpp1
-rw-r--r--src/ui/widget/preferences-widget.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/widget/preferences-widget.cpp b/src/ui/widget/preferences-widget.cpp
index 72597e4d9..e906762e3 100644
--- a/src/ui/widget/preferences-widget.cpp
+++ b/src/ui/widget/preferences-widget.cpp
@@ -205,6 +205,7 @@ void PrefCheckButton::init(Glib::ustring const &label, Glib::ustring const &pref
void PrefCheckButton::on_toggled()
{
+ this->changed_signal.emit(this->get_active());
if (this->get_visible()) //only take action if the user toggled it
{
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
diff --git a/src/ui/widget/preferences-widget.h b/src/ui/widget/preferences-widget.h
index 8b75b8368..1d2d77699 100644
--- a/src/ui/widget/preferences-widget.h
+++ b/src/ui/widget/preferences-widget.h
@@ -59,6 +59,7 @@ class PrefCheckButton : public Gtk::CheckButton
public:
void init(Glib::ustring const &label, Glib::ustring const &prefs_path,
bool default_value);
+ sigc::signal<void, bool> changed_signal;
protected:
Glib::ustring _prefs_path;
void on_toggled();