tasn pushed a commit to branch master.

http://git.enlightenment.org/bindings/cxx/eflxx.git/commit/?id=b48e7822bd334abf0d748170c626d0f55271c947

commit b48e7822bd334abf0d748170c626d0f55271c947
Author: Caio Marcelo de Oliveira Filho <cmarc...@gmail.com>
Date:   Tue Mar 2 04:48:08 2010 +0000

    Edjexx: use new API for deleting groups in Edit object
    
    Due to change on edje_edit_group_del(). Just propagating change from
    Edje, not fully tested. :-P
    
    
    
    SVN revision: 46775
---
 edjexx/include/edjexx/Edit.h | 7 ++++---
 edjexx/src/Edit.cpp          | 4 ++--
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/edjexx/include/edjexx/Edit.h b/edjexx/include/edjexx/Edit.h
index 510624d..69e5d4b 100644
--- a/edjexx/include/edjexx/Edit.h
+++ b/edjexx/include/edjexx/Edit.h
@@ -135,14 +135,15 @@ edje_edit_string_free(
   bool addGroup (const std::string &name);
  
   /*!
-   * Delete the current group from the given edje.
-   * You can only delete the currently loaded group.
+   * Delete the specified group from the given edje.
+   * You can only delete a currently unused group.
    * All the parts and the programs inside the group will be deleted as well,
    * but not image or font embedded in the edje.
    *
+   * @param group The group to be deleted
    * @return true on success, false on failure
    */
-  bool delGroup ();
+  bool delGroup (const std::string &group);
 
   /*!
    * Check if a group with the given name exist in the edje.
diff --git a/edjexx/src/Edit.cpp b/edjexx/src/Edit.cpp
index 4783755..d3ec47c 100644
--- a/edjexx/src/Edit.cpp
+++ b/edjexx/src/Edit.cpp
@@ -46,9 +46,9 @@ bool Edit::addGroup (const std::string &name)
 }
  
 
-bool Edit::delGroup ()
+bool Edit::delGroup (const std::string &group)
 {
-  return edje_edit_group_del (o);
+  return edje_edit_group_del (o, group.c_str ());
 }
 
 bool Edit::hasGroup (const std::string &group)

-- 


Reply via email to