-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, using ilist widget in my wallpaper fetcher i found that there's not
a way to get the value of the sixth parameter assigned by 
e_widget_ilist_[append|predend]* .
Without this function i've to create a callback for each element of
ilist, and inside the callback i call every time the same function
modiyfing only the parameter; with this i need to register only one
callback, and inside i can get the value of "val".
To explain better(?), each element of ilist is an URL for a RSS feed.
In this way is easy to allow user to add other feeds to the module. 

Attached file is .diff

Regards

Massimiliano
- -- 
Massimiliano Calamelli
http://mcalamelli.netsons.org
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFHuZp7leGEL56NNP4RAhmKAJsEr46x2ATFzgKmj22N7l3kOKtQqwCfeWo6
E73RgZMTcWwM8X0sGcRZm04=
=Yuy4
-----END PGP SIGNATURE-----
Index: e_widget_ilist.c
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_widget_ilist.c,v
retrieving revision 1.38
diff -u -r1.38 e_widget_ilist.c
--- e_widget_ilist.c    15 Jul 2007 23:39:28 -0000      1.38
+++ e_widget_ilist.c    18 Feb 2008 14:32:18 -0000
@@ -380,6 +380,17 @@
    return e_ilist_selected_count_get(wd->o_ilist);
 }
 
+EAPI const char *
+e_widget_ilist_selected_val_get(Evas_Object *obj)
+{
+   E_Widget_Data *wd;
+   E_Widget_Callback *wcb;
+
+   wd = e_widget_data_get(obj);
+   wcb = e_ilist_selected_data2_get(wd->o_ilist);
+   return wcb->value;
+}
+
 EAPI void
 e_widget_ilist_unselect(Evas_Object *obj)
 {
Index: e_widget_ilist.h
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_widget_ilist.h,v
retrieving revision 1.22
diff -u -r1.22 e_widget_ilist.h
--- e_widget_ilist.h    15 Jul 2007 23:39:28 -0000      1.22
+++ e_widget_ilist.h    18 Feb 2008 14:32:18 -0000
@@ -31,6 +31,7 @@
 EAPI const char  *e_widget_ilist_selected_label_get(Evas_Object *obj);
 EAPI Evas_Object *e_widget_ilist_selected_icon_get(Evas_Object *obj);
 EAPI int          e_widget_ilist_selected_count_get(Evas_Object *obj);
+EAPI const char  *e_widget_ilist_selected_val_get(Evas_Object *obj);
 EAPI void         e_widget_ilist_unselect(Evas_Object *obj);
 EAPI void         e_widget_ilist_remove_num(Evas_Object *obj, int n);
 EAPI void         e_widget_ilist_multi_select_set(Evas_Object *obj, int multi);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to