[glibmm] Add some TODO's.



commit c6ac211745f2098ffefad8fc1a04db02399c329f
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date:   Mon Oct 29 23:06:00 2012 -0400

    Add some TODO's.
    
    	* gio/src/menuitem.hg:
    	* gio/src/menumodel.hg: Add TODO's about possibly adding methods to
    	the classes in these files (these TODO's were added a few days ago and
    	being commited now).  Also add a TODO about an unwrapped signal in
    	MenuModel.
    	* glib/src/glib_extra_objects.defs: Add GArray to the list of objects
    	to avoid a gmmproc documentation warning.

 ChangeLog                        |   12 ++++++++++++
 gio/src/menuitem.hg              |    6 ++++++
 gio/src/menumodel.hg             |    7 +++++++
 glib/src/glib_extra_objects.defs |    5 +++++
 4 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2a937ab..3ee9ca3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2012-10-29  Josà Alburquerque  <jaalburquerque gmail com>
+
+	Add some TODO's.
+
+	* gio/src/menuitem.hg:
+	* gio/src/menumodel.hg: Add TODO's about possibly adding methods to
+	the classes in these files (these TODO's were added a few days ago and
+	being commited now).  Also add a TODO about an unwrapped signal in
+	MenuModel.
+	* glib/src/glib_extra_objects.defs: Add GArray to the list of objects
+	to avoid a gmmproc documentation warning.
+
 2012-10-29  Mark Vender  <markv743 yahoo co uk>
 
 	Strip trailing whitespace.
diff --git a/gio/src/menuitem.hg b/gio/src/menuitem.hg
index 3798d5b..2ad13b3 100644
--- a/gio/src/menuitem.hg
+++ b/gio/src/menuitem.hg
@@ -47,6 +47,9 @@ public:
 //TODO: GMenuItem * g_menu_item_new_section                 (const Glib::ustring& label,
 //                                                     const Glib::RefPtr<MenuModel>& section);
 
+  //TODO: Add a set_attribute() templated method to get values directly instead
+  //of requiring a Glib::VariantBase?
+
   _WRAP_METHOD(void set_attribute_value(const Glib::ustring& attribute, const Glib::VariantBase& value), g_menu_item_set_attribute_value, deprecated "Use set_attribute() instead.")
   _WRAP_METHOD(void set_attribute(const Glib::ustring& attribute, const Glib::VariantBase& value), g_menu_item_set_attribute_value)
   _IGNORE(g_menu_item_set_attribute)
@@ -59,6 +62,9 @@ public:
   _WRAP_METHOD(void set_submenu(const Glib::RefPtr<MenuModel>& submenu), g_menu_item_set_submenu)
   _WRAP_METHOD(void set_section(const Glib::RefPtr<MenuModel>& section), g_menu_item_set_section)
 
+  //TODO: Add a get_attribute() templated method to get values directly instead
+  //of returning a Glib::VariantBase?
+ 
   _WRAP_METHOD(Glib::VariantBase get_attribute(const Glib::ustring& attribute, const Glib::VariantType& expected_type{?}) const, g_menu_item_get_attribute_value)
 
   // Ignore varargs function.
diff --git a/gio/src/menumodel.hg b/gio/src/menumodel.hg
index fc01ef2..729b9c2 100644
--- a/gio/src/menumodel.hg
+++ b/gio/src/menumodel.hg
@@ -136,6 +136,10 @@ dnl See the .ccg implementation for how this conversion works.
   //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)
 
@@ -159,6 +163,9 @@ dnl See the .ccg implementation for how this conversion works.
   _WRAP_METHOD(Glib::RefPtr<const MenuLinkIter> iterate_item_links(int item_index) const, g_menu_model_iterate_item_links, constversion)
 
   _WRAP_METHOD(void items_changed(int position, int removed, int added), g_menu_model_items_changed)
+
+  //TODO: The "items-changed" signal cannot be wrapped because it is not
+  //included in the *Class declaration of GMenuModel.
 };
 
 } // namespace Gio
diff --git a/glib/src/glib_extra_objects.defs b/glib/src/glib_extra_objects.defs
index 9dd327a..0b28216 100644
--- a/glib/src/glib_extra_objects.defs
+++ b/glib/src/glib_extra_objects.defs
@@ -17,6 +17,11 @@
   (c-name "GDateTime")
 )
 
+(define-object GArray
+  (in-module "GLib")
+  (c-name "GArray")
+)
+
 (define-object KeyFile
   (in-module "GLib")
   (c-name "GKeyFile")



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]