Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_gadcon.h e_int_gadcon_config.c Log Message: add icon provision for gadcon classes and label provider functions. also add all the data, update and add new icons etc. etc. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_gadcon.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- e_gadcon.h 7 May 2006 09:49:37 -0000 1.18 +++ e_gadcon.h 9 May 2006 13:02:47 -0000 1.19 @@ -79,11 +79,15 @@ struct _E_Gadcon_Client_Class { int version; + /* All members below are part of version 1 */ char *name; struct { E_Gadcon_Client *(*init) (E_Gadcon *gc, char *name, char *id, char *style); void (*shutdown) (E_Gadcon_Client *gcc); void (*orient) (E_Gadcon_Client *gcc); + char *(*label) (void); + Evas_Object *(*icon) (Evas *evas); + /* All members below are part of version 2 */ } func; }; =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_gadcon_config.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- e_int_gadcon_config.c 7 May 2006 09:49:37 -0000 1.3 +++ e_int_gadcon_config.c 9 May 2006 13:02:47 -0000 1.4 @@ -187,10 +187,16 @@ for (l = e_gadcon_provider_list(); l; l = l->next) { E_Gadcon_Client_Class *cc; + char *label; + Evas_Object *icon; cc = l->data; - /* FIXME: need icon */ - e_widget_ilist_append(oi, NULL, cc->name, _cb_select, cfdata, cc->name); + icon = NULL; + label = NULL; + if (cc->func.label) label = cc->func.label(); + if (!label) label = cc->name; + if (cc->func.icon) icon = cc->func.icon(evas); + e_widget_ilist_append(oi, icon, label, _cb_select, cfdata, cc->name); } e_widget_ilist_go(oi); ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs