[glibmm] Gio::MenuModel::get_item_atribute(): const correction.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Gio::MenuModel::get_item_atribute(): const correction.
- Date: Fri, 2 Dec 2016 11:44:03 +0000 (UTC)
commit 02a06c002a9c92b0220145c7c3d6bcd2adb2f64c
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Dec 2 12:06:06 2016 +0100
Gio::MenuModel::get_item_atribute(): const correction.
We can fix this now that we can break ABI.
gio/src/menumodel.hg | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gio/src/menumodel.hg b/gio/src/menumodel.hg
index 696e8f5..bf29a12 100644
--- a/gio/src/menumodel.hg
+++ b/gio/src/menumodel.hg
@@ -132,16 +132,13 @@ public:
#m4begin
dnl See the .ccg implementation for how this conversion works.
- //TODO: When we can break ABI, remove the method overload and just make it const.
- //It makes no sense to return const by value.
_CONVERSION(`MenuAttribute',`const gchar*',`giomm_get_menu_attribute($3)')
#m4end
//TODO: Add a get_item_attribute() templated method to get values directly
//instead of returning a Glib::VariantBase?
- _WRAP_METHOD(Glib::VariantBase get_item_attribute(int item_index, MenuAttribute attribute, const
Glib::VariantType& expected_type), g_menu_model_get_item_attribute_value)
- _WRAP_METHOD(const Glib::VariantBase get_item_attribute(int item_index, MenuAttribute attribute, const
Glib::VariantType& expected_type) const, g_menu_model_get_item_attribute_value, constversion)
+ _WRAP_METHOD(Glib::VariantBase get_item_attribute(int item_index, MenuAttribute attribute, const
Glib::VariantType& expected_type) const, g_menu_model_get_item_attribute_value)
// Ignore varargs function
_IGNORE(g_menu_model_get_item_attribute)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]