[gtkmm] Application: add/remove_accelerator(): Add overloads without the variant parameter.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Application: add/remove_accelerator(): Add overloads without the variant parameter.
- Date: Wed, 9 Oct 2013 08:29:31 +0000 (UTC)
commit ff210002ec745ccd18cf8b495e2835f65599d44b
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Oct 9 10:28:23 2013 +0200
Application: add/remove_accelerator(): Add overloads without the variant parameter.
* gtk/src/application.hg: Use the {?} syntax to add methods that
do not take the parameter.
gtk/src/application.hg | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/src/application.hg b/gtk/src/application.hg
index 26f4cef..ac471ad 100644
--- a/gtk/src/application.hg
+++ b/gtk/src/application.hg
@@ -299,11 +299,11 @@ public:
_WRAP_METHOD(void set_menubar(const Glib::RefPtr<Gio::MenuModel>& menubar), gtk_application_set_menubar)
- //TODO: Add a version that takes a VariantBase and deprecate this method:
- _WRAP_METHOD(void add_accelerator(const Glib::ustring& accelerator, const Glib::ustring& action_name,
GVariant * parameter), gtk_application_add_accelerator)
+ //TODO: Add a *_variant() version that takes a VariantBase, add a templated method, and remove this method
when we can break ABI:
+ _WRAP_METHOD(void add_accelerator(const Glib::ustring& accelerator, const Glib::ustring& action_name,
GVariant* parameter{?}), gtk_application_add_accelerator)
- //TODO: Add a version that takes a VariantBase and deprecate this method:
- _WRAP_METHOD(void remove_accelerator(const Glib::ustring& action_name, GVariant* parameter),
gtk_application_remove_accelerator)
+ //TODO: Add a *_variant() version that takes a VariantBase, add a templated method, and remove this method
when we can break ABI:
+ _WRAP_METHOD(void remove_accelerator(const Glib::ustring& action_name, GVariant* parameter{?}),
gtk_application_remove_accelerator)
_WRAP_METHOD(guint inhibit(Window& window, ApplicationInhibitFlags flags, const Glib::ustring& reason),
gtk_application_inhibit)
_WRAP_METHOD(void uninhibit(guint cookie), gtk_application_uninhibit)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]