[glibmm] Updated a comment
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Updated a comment
- Date: Tue, 1 Oct 2013 08:42:46 +0000 (UTC)
commit bc22906341a50079c60cb68b9a89062b70fdb975
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Oct 1 10:42:38 2013 +0200
Updated a comment
gio/src/menu.hg | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gio/src/menu.hg b/gio/src/menu.hg
index 1016856..14c3af8 100644
--- a/gio/src/menu.hg
+++ b/gio/src/menu.hg
@@ -48,6 +48,7 @@ public:
_WRAP_METHOD(void freeze(), g_menu_freeze)
+ //TODO: Make the item "const Glib::RefPtr<const MenuItem>&"? The function is documented as just copying
its attributes.
_WRAP_METHOD(void insert_item(int position, const Glib::RefPtr<MenuItem>& item), g_menu_insert_item)
_WRAP_METHOD(void prepend_item(const Glib::RefPtr<MenuItem>& item), g_menu_prepend_item)
_WRAP_METHOD(void append_item(const Glib::RefPtr<MenuItem>& item), g_menu_append_item)
@@ -55,7 +56,7 @@ public:
_WRAP_METHOD(void remove_all(), g_menu_remove_all)
//TODO: Allow label to be null. But when would that be useful?
-//TODO: Return the MenuItem* ? See https://bugzilla.gnome.org/show_bug.cgi?id=708906
+//We don't return the MenuItem* because the C API can't give us something modifiable: See
https://bugzilla.gnome.org/show_bug.cgi?id=708906
_WRAP_METHOD(void insert(int position, const Glib::ustring& label, const Glib::ustring& detailed_action =
Glib::ustring()), g_menu_insert)
_WRAP_METHOD(void prepend(const Glib::ustring& label, const Glib::ustring& detailed_action =
Glib::ustring()), g_menu_prepend)
_WRAP_METHOD(void append(const Glib::ustring& label, const Glib::ustring& detailed_action =
Glib::ustring()), g_menu_append)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]