Enlightenment CVS committal Author : raster Project : e17 Module : libs/esmart
Dir : e17/libs/esmart/src/lib/esmart_text_entry Modified Files: Esmart_Text_Entry.h esmart_text_entry.c Log Message: add accessors =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/esmart/src/lib/esmart_text_entry/Esmart_Text_Entry.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- Esmart_Text_Entry.h 10 Nov 2004 15:22:39 -0000 1.2 +++ Esmart_Text_Entry.h 11 Nov 2004 00:24:31 -0000 1.3 @@ -18,10 +18,11 @@ void esmart_text_entry_max_chars_set (Evas_Object * o, int max); void esmart_text_entry_edje_part_set (Evas_Object * o, Evas_Object * edje, const char *part); - +Evas_Object *esmart_text_entry_edje_object_get(Evas_Object * o); +const char *esmart_text_entry_edje_part_get(Evas_Object * o); /* you've gotta free this resut */ -//char * esmart_text_entry_string_get(Evas_Object *o) +const char *esmart_text_entry_text_get(Evas_Object *o); void esmart_text_entry_return_key_callback_set (Evas_Object * o, void (*func) (void *data, =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/esmart/src/lib/esmart_text_entry/esmart_text_entry.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- esmart_text_entry.c 10 Nov 2004 15:22:39 -0000 1.5 +++ esmart_text_entry.c 11 Nov 2004 00:24:31 -0000 1.6 @@ -46,32 +46,16 @@ return (o); } -#if 0 /* come on guys! use the basic focus stuff! :) */ -int -esmart_text_entry_is_focused (Evas_Object * o) +const char * +esmart_text_entry_text_get (Evas_Object * o) { - return (evas_object_focus_get (o)); -} - -void -esmart_text_entry_focus_set (Evas_Object * o, int val) -{ - evas_object_focus_set(o, val); -} -#endif - -char * -esmart_text_entry_string_get (Evas_Object * o) -{ - char *result = NULL; Esmart_Text_Entry *e = NULL; if ((e = evas_object_smart_data_get (o))) { - if (e->buf.text) - result = strdup (e->buf.text); + return e->buf.text; } - return (result); + return (NULL); } void @@ -101,6 +85,30 @@ } } +Evas_Object * +esmart_text_entry_edje_object_get(Evas_Object * o) +{ + Esmart_Text_Entry *e = NULL; + + if ((e = evas_object_smart_data_get (o))) + { + return e->edje.o; + } + return NULL; +} + +const char * +esmart_text_entry_edje_part_get(Evas_Object * o) +{ + Esmart_Text_Entry *e = NULL; + + if ((e = evas_object_smart_data_get (o))) + { + return e->edje.part; + } + return NULL; +} + void esmart_text_entry_return_key_callback_set (Evas_Object * o, void (*func) (void *data, ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs