[gtkmm] Application: Add comments about the strange add/set accel methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Application: Add comments about the strange add/set accel methods.
- Date: Tue, 1 Apr 2014 11:20:40 +0000 (UTC)
commit 77224c326e2fc178dec1cdbeae02c43d8bb10d75
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Apr 1 13:17:03 2014 +0200
Application: Add comments about the strange add/set accel methods.
gtk/src/application.hg | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/src/application.hg b/gtk/src/application.hg
index f1f17fd..25f7f38 100644
--- a/gtk/src/application.hg
+++ b/gtk/src/application.hg
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003 The gtkmm Development Team
+/* Copyright (C) 2003-2014 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -324,11 +324,13 @@ public:
_WRAP_METHOD(std::vector<Glib::ustring> get_accels_for_action(const Glib::ustring& detailed_action_name)
const, gtk_application_get_accels_for_action)
#m4 _CONVERSION(`const std::vector<Glib::ustring>&',`const
gchar*-const*',`Glib::ArrayHandler<Glib::ustring>::vector_to_array($3).data ()')
- _WRAP_METHOD(void set_accels_for_action(const Glib::ustring& detailed_action_name, const
std::vector<Glib::ustring>& ccels), gtk_application_set_accels_for_action)
+ _WRAP_METHOD(void set_accels_for_action(const Glib::ustring& detailed_action_name, const
std::vector<Glib::ustring>& accels), gtk_application_set_accels_for_action)
//TODO: Add unset_accels_for_action().
//See https://bugzilla.gnome.org/show_bug.cgi?id=726623
+ //Note: add_accelerator() is very similar to this, though it doesn't take the detailed action name.
+ //Hopefully it will be deprecated: https://bugzilla.gnome.org/show_bug.cgi?id=708905#c5
/** Sets a keyboard accelerator that will trigger the
* given action. It will be the primary
* accelerator, which may be displayed in the UI.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]