diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-02-28 12:31:18 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2017-02-28 12:31:18 +0000 |
| commit | 50ccd526dbb34f9954f5a71de18847b258e19f9b (patch) | |
| tree | 9a50ef40f9ad606696eb6e4aad56f4b199680fc3 /src/ui/dialog | |
| parent | This patch adds the copy-paste formated text functionality to the text tool. (diff) | |
| download | inkscape-50ccd526dbb34f9954f5a71de18847b258e19f9b.tar.gz inkscape-50ccd526dbb34f9954f5a71de18847b258e19f9b.zip | |
Add some comment. Comment out unused signals.
(bzr r15554)
Diffstat (limited to 'src/ui/dialog')
| -rw-r--r-- | src/ui/dialog/dialog-manager.h | 10 | ||||
| -rw-r--r-- | src/ui/dialog/prototype.cpp | 5 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/ui/dialog/dialog-manager.h b/src/ui/dialog/dialog-manager.h index 15573f760..36e9a12be 100644 --- a/src/ui/dialog/dialog-manager.h +++ b/src/ui/dialog/dialog-manager.h @@ -30,11 +30,11 @@ public: static DialogManager &getInstance(); - sigc::signal<void> show_dialogs; - sigc::signal<void> show_f12; - sigc::signal<void> hide_dialogs; - sigc::signal<void> hide_f12; - sigc::signal<void> transientize; + // sigc::signal<void> show_dialogs; + // sigc::signal<void> show_f12; + // sigc::signal<void> hide_dialogs; + // sigc::signal<void> hide_f12; + // sigc::signal<void> transientize; /* generic dialog management start */ typedef std::map<GQuark, DialogFactory> FactoryMap; diff --git a/src/ui/dialog/prototype.cpp b/src/ui/dialog/prototype.cpp index c28f37c6a..b3bf60aab 100644 --- a/src/ui/dialog/prototype.cpp +++ b/src/ui/dialog/prototype.cpp @@ -46,9 +46,14 @@ Prototype::Prototype() : sigc::mem_fun(*this, &Prototype::handleDesktopChanged) ); desktopTracker.connect(GTK_WIDGET(gobj())); + // This results in calling handleDocumentReplaced twice. Fix me! connectionDocumentReplaced = getDesktop()->connectDocumentReplaced( sigc::mem_fun(this, &Prototype::handleDocumentReplaced)); + // Alternative mechanism but results in calling handleDocumentReplaced four times. + // signalDocumentReplaced().connect( + // sigc::mem_fun(this, &Prototype::handleDocumentReplaced)); + connectionSelectionChanged = getDesktop()->getSelection()->connectChanged( sigc::hide(sigc::mem_fun(this, &Prototype::handleSelectionChanged))); |
