Enlightenment CVS committal Author : handyande Project : e17 Module : apps/examine
Dir : e17/apps/examine/src Modified Files: examine.c examine_client.c Log Message: And struct support in examine - not fancy, but it understands them... =================================================================== RCS file: /cvs/e/e17/apps/examine/src/examine.c,v retrieving revision 1.37 retrieving revision 1.38 diff -u -3 -r1.37 -r1.38 --- examine.c 5 Feb 2006 22:13:42 -0000 1.37 +++ examine.c 30 Apr 2006 07:36:15 -0000 1.38 @@ -400,6 +400,12 @@ ewl_callback_append(entries[1], EWL_CALLBACK_VALUE_CHANGED, cb_set_bln, prop_item); + } else if (prop_item->type == ECORE_CONFIG_SCT) { + entries[1] = ewl_label_new(); + ewl_label_text_set(EWL_LABEL(entries[1]), "structure - MAKE ME A BOX"); /* FIXME - make structures borders, not lines in the row */ + } else if (prop_item->type == ECORE_CONFIG_NIL) { + entries[1] = ewl_label_new(); + ewl_label_text_set(EWL_LABEL(entries[1]), "undefined"); } else entries[1] = ewl_entry_new(); prop_item->w = entries[1]; =================================================================== RCS file: /cvs/e/e17/apps/examine/src/examine_client.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -3 -r1.29 -r1.30 --- examine_client.c 4 Nov 2005 09:27:39 -0000 1.29 +++ examine_client.c 30 Apr 2006 07:36:15 -0000 1.30 @@ -316,6 +316,8 @@ prop_tmp->data = strdup(range); } else if (!strcmp(type, "boolean")) { prop_tmp->type = ECORE_CONFIG_BLN; + } else if (!strcmp(type, "structure")) { + prop_tmp->type = ECORE_CONFIG_SCT; } else { prop_tmp->type = ECORE_CONFIG_NIL; prop_tmp->value.ptr = prop_tmp->oldvalue.ptr = NULL; } @@ -379,6 +381,7 @@ } break; case ECORE_CONFIG_NIL: + case ECORE_CONFIG_SCT: break; default: /* ECORE_CONFIG_STR, ECORE_CONFIG_RGB */ free(target->value.ptr); @@ -416,6 +419,9 @@ examine_client_set_val(target); } break; + case ECORE_CONFIG_NIL: + case ECORE_CONFIG_SCT: + break; default: /* ECORE_CONFIG_STR, ECORE_CONFIG_RGB */ #if 0 printf("$%x, %s, %p, %p\n",target->type,target->key,target->value.ptr,target->oldvalue.ptr); @@ -524,6 +530,9 @@ prop->oldvalue.val = tmpi; ewl_checkbutton_checked_set(EWL_CHECKBUTTON(prop->w), tmpi); break; + case ECORE_CONFIG_NIL: + case ECORE_CONFIG_SCT: + break; default: /* ECORE_CONFIG_STR, ECORE_CONFIG_RGB */ prop->value.ptr = strdup(ret); prop->oldvalue.ptr = strdup(ret); @@ -548,6 +557,9 @@ case ECORE_CONFIG_FLT: valstr = malloc(1000); /* ### FIXME */ snprintf(valstr, sizeof(valstr)-1, "%f", target->value.fval); + break; + case ECORE_CONFIG_NIL: + case ECORE_CONFIG_SCT: break; default: /* ECORE_CONFIG_STR, ECORE_CONFIG_RGB */ valstr = target->value.ptr; ------------------------------------------------------- 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