Enlightenment CVS committal

Author  : moom16
Project : e17
Module  : proto

Dir     : e17/proto/etk/src/lib


Modified Files:
        etk_entry.c etk_entry.h 


Log Message:
* Add etk_entry_text_set


===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/etk/src/lib/etk_entry.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- etk_entry.c 1 Nov 2005 00:18:41 -0000       1.5
+++ etk_entry.c 1 Nov 2005 12:04:10 -0000       1.6
@@ -63,6 +63,19 @@
 }
 
 /**
+ * @brief Sets the text of an entry
+ * @param entry an entry
+ * @param text the text to set
+ */
+void etk_entry_text_set(Etk_Entry *entry, const char *text)
+{
+   if (!entry || !entry->editable_object)
+      return;
+   etk_editable_text_object_text_set(entry->editable_object, text);
+   etk_signal_emit(_etk_entry_signals[ETK_ENTRY_TEXT_CHANGED_SIGNAL], 
ETK_OBJECT(entry), NULL);
+}
+
+/**
  * @brief Gets the text of an entry
  * @param entry an entry
  * @return Returns the text of the entry
@@ -71,7 +84,6 @@
 {
    if (!entry || !entry->editable_object)
       return NULL;
-
    return etk_editable_text_object_text_get(entry->editable_object);
 }
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/etk/src/lib/etk_entry.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- etk_entry.h 23 Oct 2005 08:05:34 -0000      1.2
+++ etk_entry.h 1 Nov 2005 12:04:10 -0000       1.3
@@ -34,6 +34,7 @@
 Etk_Type *etk_entry_type_get();
 Etk_Widget *etk_entry_new();
 
+void etk_entry_text_set(Etk_Entry *entry, const char *text);
 const char *etk_entry_text_get(Etk_Entry *entry);
 
 /** @} */




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to