diff options
Diffstat (limited to 'glib/glibmm')
-rw-r--r-- | glib/glibmm/dispatcher.cc | 14 | ||||
-rw-r--r-- | glib/glibmm/dispatcher.h | 15 |
2 files changed, 29 insertions, 0 deletions
diff --git a/glib/glibmm/dispatcher.cc b/glib/glibmm/dispatcher.cc index 083f948e..dd7dff8d 100644 --- a/glib/glibmm/dispatcher.cc +++ b/glib/glibmm/dispatcher.cc @@ -498,6 +498,7 @@ Dispatcher::~Dispatcher() noexcept DispatchNotifier::unreference_instance(impl_->notifier_, impl_); } +#ifndef GLIBMM_DISABLE_DEPRECATED void Dispatcher::emit() { @@ -509,6 +510,19 @@ Dispatcher::operator()() { impl_->notifier_->send_notification(impl_); } +#endif // GLIBMM_DISABLE_DEPRECATED + +void +Dispatcher::emit() const +{ + impl_->notifier_->send_notification(impl_); +} + +void +Dispatcher::operator()() const +{ + impl_->notifier_->send_notification(impl_); +} sigc::connection Dispatcher::connect(const sigc::slot<void()>& slot) diff --git a/glib/glibmm/dispatcher.h b/glib/glibmm/dispatcher.h index 83bd24e9..b27da57b 100644 --- a/glib/glibmm/dispatcher.h +++ b/glib/glibmm/dispatcher.h @@ -80,8 +80,23 @@ public: explicit Dispatcher(const Glib::RefPtr<MainContext>& context); ~Dispatcher() noexcept; +#ifndef GLIBMM_DISABLE_DEPRECATED + /** Same as the const version. + * @deprecated 2.76: Use the const version instead. + */ void emit(); + /** Same as the const version. + * @deprecated 2.76: Use the const version instead. + */ void operator()(); +#endif // GLIBMM_DISABLE_DEPRECATED + + /** @newin{2,76} + */ + void emit() const; + /** @newin{2,76} + */ + void operator()() const; sigc::connection connect(const sigc::slot<void()>& slot); /** @newin{2,48} |