Enlightenment CVS committal Author : davemds Project : e17 Module : libs/edje
Dir : e17/libs/edje/src/lib Modified Files: Edje_Edit.h edje_edit.c Log Message: * create gradient using "use_rel = 1" * remove some debug * fix some returns =================================================================== RCS file: /cvs/e/e17/libs/edje/src/lib/Edje_Edit.h,v retrieving revision 1.27 retrieving revision 1.28 diff -u -3 -r1.27 -r1.28 --- Edje_Edit.h 13 Jul 2008 14:18:17 -0000 1.27 +++ Edje_Edit.h 15 Jul 2008 01:03:24 -0000 1.28 @@ -1251,7 +1251,7 @@ ); /**Get the number of stops in the given spectra.*/ -EAPI int ///@return The number of stops +EAPI int ///@return The number of stops, or 0 on errors edje_edit_spectra_stop_num_get( Evas_Object *obj, ///< The edje object const char* spectra ///< The name of the spectra =================================================================== RCS file: /cvs/e/e17/libs/edje/src/lib/edje_edit.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- edje_edit.c 13 Jul 2008 14:29:18 -0000 1.21 +++ edje_edit.c 15 Jul 2008 01:03:24 -0000 1.22 @@ -1599,6 +1599,7 @@ pd->gradient.rel2.relative_y = 1; pd->gradient.rel2.offset_x = -1; pd->gradient.rel2.offset_y = -1; + pd->gradient.use_rel = 1; } EAPI unsigned char @@ -2829,12 +2830,12 @@ if (!ed->file) return NULL; if (!ed->file->spectrum_dir) return NULL; - printf("GET SPECTRUM LIST for %s\n", ed->file->path); + //printf("GET SPECTRUM LIST for %s\n", ed->file->path); for (l = ed->file->spectrum_dir->entries; l; l = l->next) { s = l->data; - printf("SPECTRUM: %s [id: %d]\n", s->entry, s->id); + //printf("SPECTRUM: %s [id: %d]\n", s->entry, s->id); spectrum = evas_list_append(spectrum, evas_stringshare_add(s->entry)); } @@ -2920,12 +2921,12 @@ { Edje_Spectrum_Directory_Entry *s; - GET_ED_OR_RETURN(-1); + GET_ED_OR_RETURN(0); - printf("GET SPECTRA STOP NUM for spectra: %s\n", spectra); + //printf("GET SPECTRA STOP NUM for spectra: %s\n", spectra); s = _edje_edit_spectrum_entry_get(ed, spectra); - if (!s) return -1; + if (!s) return 0; return evas_list_count(s->color_list); } @@ -2977,7 +2978,7 @@ s = _edje_edit_spectrum_entry_get(ed, spectra); if (!s) return 0; - printf("GET SPECTRA STOP COLOR for spectra: %s stopn: %d\n", spectra, stop_number); + //printf("GET SPECTRA STOP COLOR for spectra: %s stopn: %d\n", spectra, stop_number); color = evas_list_nth(s->color_list, stop_number); if (!color) return 0; @@ -3132,7 +3133,7 @@ edje_edit_state_gradient_rel1_relative_x_set(Evas_Object *obj, const char *part, const char *state, double val) { GET_PD_OR_RETURN(0); - printf("SET GRADIENT REL1 RELX for part: %s state: %s [TO %f]\n", part, state, val); + //printf("SET GRADIENT REL1 RELX for part: %s state: %s [TO %f]\n", part, state, val); pd->gradient.rel1.relative_x = val; edje_object_calc_force(obj); ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs